Serpens Posted September 23, 2016 Share Posted September 23, 2016 (edited) Hi As already stated here http://forums.kleientertainment.com/topic/70291-coop-adventure-mode-your-ideas/ I want to make an adventure mod. DarkXero already helped me via PM with explaining more stuff about worldgeneration, but I think it is better to open a thread and also ask for help of other experienced modders, since DarkXero really did more than enough and he deserves a break or at least less work I already got the map folder from DS to find out, how the adventure is scripted in DS. But I think I also need the prefab folder and every script that is maxwell related, like "maxwellintro.lua" (don't know in which folder this is) So could someone please send me this stuff? The question I have at the moment, is how to add "overrides" -> settings? To get one of the adventure worlds, I think it is "King of Winter", I added this to the modworldgenmain (of course also other functions above): AddTaskSetPreInitAny(function(tasksetdata) if tasksetdata.location ~= "forest" then return end tasksetdata.numoptionaltasks = 2 tasksetdata.tasks = adventure2_tasks tasksetdata.optionaltasks = adventure2_optionaltasks tasksetdata.set_pieces = { ["WesUnlock"] = { restrict_to="background", tasks={ "Hounded Greater Plains", "Walrus Desolate", "Walled Kill the spiders", "The Deep Forest", "Forest hunters" }}, ["ResurrectionStoneWinter"] = { count=1, tasks={"Resource-rich Tier2","Sanity-Blocked Great Plains","Hounded Greater Plains","Insanity-Blocked Necronomicon", "Walrus Desolate","Walled Kill the spiders","The Deep Forest","Forest hunters"}}, ["MacTuskTown"] = { tasks={"Insanity-Blocked Necronomicon", "Hounded Greater Plains", "Sanity-Blocked Great Plains"} }, } tasksetdata.substitutes = GetRandomSubstituteList(SUBS_1, 1) tasksetdata.ordered_story_setpieces = teleportato_layouts tasksetdata.required_prefabs = { "multiplayer_portal","teleportato_ring", "teleportato_box", "teleportato_crank", "teleportato_potato", "teleportato_base", "chester_eyebone" } -- tasksetdata.overrides={ -- day = "longdusk", -- start_setpeice = "WinterStartMedium", -- start_node = "Clearing", -- loop = "never", -- branching = "least", -- season = "onlywinter", -- season_start = "winter", -- weather = {"always", "often"}, --?! -- deerclops = "often", -- hounds = "never", -- mactusk = "always", -- carrot = "never", -- berrybush = "rare", -- } end) But the overrides do not work (that's why they are outcommented). Of course some of the settings changed in DST, so that is of course a reason why it does not work, but even if I only leave a setting that should exist, this way of adding the overrides does not work with the error message:[00:04:59]: DoLuaFile Error: #[string "scripts/map/storygen.lua"]:626: Must specify a layout mode for your level. edit: Solved: The error message meant, that I have to the list of overrides: wormhole_prefab = "wormhole",layout_mode = "LinkNodesByKeys", Edited September 25, 2016 by Serpens Link to comment https://forums.kleientertainment.com/forums/topic/70374-ds-adventure-coding-help/ Share on other sites More sharing options...
Serpens Posted September 24, 2016 Author Share Posted September 24, 2016 (edited) in addition to the prefab folder (or at least all the stuff in it that is not in DST anymore), of course I also need the anims,images and sounds from those maxwell stuff. I already found two mods, one with one maxwell light+throne, and one with maxwell phonograph, but that is not everything I need. Please help me gathering them. I won't buy DS+all DLCs just to make a mod for DST... Edited September 24, 2016 by Serpens Link to comment https://forums.kleientertainment.com/forums/topic/70374-ds-adventure-coding-help/#findComment-817694 Share on other sites More sharing options...
Serpens Posted September 24, 2016 Author Share Posted September 24, 2016 Got the files, thanks! Feel free to add more adventure ideas here: http://forums.kleientertainment.com/topic/70291-coop-adventure-mode-your-ideas/ Link to comment https://forums.kleientertainment.com/forums/topic/70374-ds-adventure-coding-help/#findComment-817751 Share on other sites More sharing options...
Serpens Posted September 25, 2016 Author Share Posted September 25, 2016 (edited) I'm making good progress The worlds do work and also Maxwell is spawning and talking But unfortunately at the moment without sound ?! In logfile I see errors like this: [00:49:24]: FMOD Error: Can't play event dontstarve/maxwell/appear_adventure: FSB mismatches the FEV it was compiled with, the stream/sample mode it was meant to be created with was different, or the FEV was built for a different platform Anyone knows how to solve this? Taking a look at the Phonograph mod , I see that the author added sound files, with a fev file. But I don't find any sound file for phonograph in the original DS files, so where the author got those sound files from?! And then he does in modmain RemapSoundEvent, but I have no clue if I also need to do this or not... http://steamcommunity.com/sharedfiles/filedetails/?id=704495354 Edited September 25, 2016 by Serpens Link to comment https://forums.kleientertainment.com/forums/topic/70374-ds-adventure-coding-help/#findComment-817919 Share on other sites More sharing options...
Lumina Posted September 25, 2016 Share Posted September 25, 2016 I don't know how to solve this, sorry, but the don't starve mod tool have a fmod designer. Maybe the author of the mod used this to create sound, and maybe you could look at it to see if it could help solve your compatibility problem. Link to comment https://forums.kleientertainment.com/forums/topic/70374-ds-adventure-coding-help/#findComment-818086 Share on other sites More sharing options...
Serpens Posted September 25, 2016 Author Share Posted September 25, 2016 (edited) 6 hours ago, Lumina said: I don't know how to solve this, sorry, but the don't starve mod tool have a fmod designer. Maybe the author of the mod used this to create sound, and maybe you could look at it to see if it could help solve your compatibility problem. yes, I already unpacked the DS dontstrave.fev file, to see if there is a phonograph sound that the author extracted. But I found none. At least not under the maxwell tab... and there is no search I think... edit: okay found it by looking at the maxwellphonograph.lua file, which sounds it normally plays... edit2: Solved. Thankfully the soundfile maxwell.fbs is also included in DST, so I removed the DS soundfile in the mod and now it just uses the DST soundfile wihch do work Edited September 25, 2016 by Serpens Link to comment https://forums.kleientertainment.com/forums/topic/70374-ds-adventure-coding-help/#findComment-818132 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