Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling christmas event throws an error for globals.AudioSettings.RadioBroadcastSettings #1088

Open
itsGreyGhost opened this issue Jan 16, 2025 · 1 comment
Labels
bug Something isn't working fixed
Milestone

Comments

@itsGreyGhost
Copy link

SPT Version

4.0

Project Type

Server

Expected Result

Enabling christmas event activates without errors.

Actual Result

It throws an error and halts the server from starting.

Looks to be have been introduced in this commit: a651681

TypeError: Cannot read properties of undefined (reading 'RadioBroadcastSettings')
TypeError: Cannot read properties of undefined (reading 'RadioBroadcastSettings')
at SeasonalEventService.applyChristmasEvent (C:\snapshot\project\obj\services\SeasonalEventService.js)
at SeasonalEventService.updateGlobalEvents (C:\snapshot\project\obj\services\SeasonalEventService.js)
at SeasonalEventService.enableSeasonalEvents (C:\snapshot\project\obj\services\SeasonalEventService.js)
at PostDbLoadService.performPostDbLoadActions (C:\snapshot\project\obj\services\PostDbLoadService.js)
at GameController.load (C:\snapshot\project\obj\controllers\GameController.js)
at GameCallbacks.onLoad (C:\snapshot\project\obj\callbacks\GameCallbacks.js)
at App.load (C:\snapshot\project\obj\utils\App.js)
TypeError: Cannot read properties of undefined (reading 'RadioBroadcastSettings')
TypeError: Cannot read properties of undefined (reading 'RadioBroadcastSettings')
at SeasonalEventService.applyChristmasEvent (C:\snapshot\project\obj\services\SeasonalEventService.js)
at SeasonalEventService.updateGlobalEvents (C:\snapshot\project\obj\services\SeasonalEventService.js)
at SeasonalEventService.enableSeasonalEvents (C:\snapshot\project\obj\services\SeasonalEventService.js)
at PostDbLoadService.performPostDbLoadActions (C:\snapshot\project\obj\services\PostDbLoadService.js)
at GameController.load (C:\snapshot\project\obj\controllers\GameController.js)
at GameCallbacks.onLoad (C:\snapshot\project\obj\callbacks\GameCallbacks.js)
at App.load (C:\snapshot\project\obj\utils\App.js)

Steps To Reproduce

Enable christmas event either by using "hohoho" or modifying the seasonalevents.json file and set it to an active date range.

Server Log

server-2025-01-15.log

BepinEx Log

LogOutput.log

Client Log

2025.01.16_4-28-47_0.16.0.2.34510 traces.log

Player Profile

No response

Screenshots

No response

@itsGreyGhost itsGreyGhost added the triage New issue. Who dis? label Jan 16, 2025
@chompDev chompDev added bug Something isn't working needs-investigation labels Jan 16, 2025
@chompDev chompDev added this to the 4.0.0 milestone Jan 16, 2025
@chompDev chompDev removed triage New issue. Who dis? needs-investigation labels Jan 16, 2025
@chompDev
Copy link
Contributor

Fixed with: de00ac3

@chompDev chompDev added the fixed label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed
Projects
None yet
Development

No branches or pull requests

2 participants