NyctoDarkMatter Posted January 1, 2016 Share Posted January 1, 2016 Okay, so I'm working on modifying a small mod so that it works with Shipwrecked, and I am unsure as to what the seasons should be called in the new DLC compared to the old. Here's a chunk of code so you get the idea.function self:PlayDuskTheme() self.season = GetSeasonManager().current_season if self.season == SEASONS.WINTER then self.inst.SoundEmitter:PlaySound( "continuousmusicmod/music/music_work_winter_dusk", "busy") elseif self.season == SEASONS.SPRING then self.inst.SoundEmitter:PlaySound( "continuousmusicmod/music/music_work_spring_dusk", "busy") elseif self.season == SEASONS.SUMMER and rogEnabled then self.inst.SoundEmitter:PlaySound( "continuousmusicmod/music/music_work_summer_dusk", "busy") else --autumn self.inst.SoundEmitter:PlaySound( "continuousmusicmod/music/music_work_dusk", "busy") end if continuous_mode then self.busy_started = true endI want to change WINTER, SPRING, and SUMMER to the corresponding DLC seasons, and I want to alter rogEnabled to check for Shipwrecked (or not check for anything since I plan to make it only compatible with Shipwrecked, as a replacement for the one that is used for RoG). My main issue is I'm not sure what the code would reference these seasons as. Any help would be appreciated. I would upload the main ModMain.lua as a whole, but it's not technically all my code and I want to alter as little as possible from the original maker and have it work. If anyone wants to add me on Skype or PM me on the forums, we can discuss it more there, but as of now, I'm not making the modmain.lua public. That's all for now, any feedback, help, etc. would be appreciated. I hope to work with someone soon! Link to comment https://forums.kleientertainment.com/forums/topic/61679-help-with-shipwrecked-seasons/ Share on other sites More sharing options...
NyctoDarkMatter Posted January 1, 2016 Author Share Posted January 1, 2016 Nevermind, I found it in the seasonmanager.lua for Shipwrecked DLC. For anyone else who needs them, it's SEASONS.MILD, SEASONS.WET, SEASONS.GREEN, and SEASONS.DRY. Thanks for the help anyways guys! Link to comment https://forums.kleientertainment.com/forums/topic/61679-help-with-shipwrecked-seasons/#findComment-704187 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now