ZataraTMM Posted July 12, 2016 Share Posted July 12, 2016 (edited) Hello, many of you might know the mod "Caitlin the Ophelia" and...sadly, it isn't beeing updated anymore. Can someone help me out fixing the game-breaking bug it has? If you eat 6 nightmare fuel, you're soposed to spawn a "helper", but in this case it crashes the server with this crashlog Here and [00:03:19]: [string "../mods/Caitlin/scripts/prefabs/shadowfrien..."]:128: attempt to perform arithmetic on field 'SHADOWWAXWELL_LIFETIME' (a nil value) LUA ERROR stack traceback: ../mods/Caitlin/scripts/prefabs/shadowfriend.lua:128 in (field) fn (Lua) <80-148> scripts/mainfunctions.lua:146 in () ? (Lua) <135-177> =[C]:-1 in (method) SpawnPrefab (C) <-1--1> scripts/mainfunctions.lua:191 in (global) SpawnPrefab (Lua) <188-193> ../mods/Caitlin/scripts/prefabs/caitlin.lua:105 in (upvalue) HallucinationSpawn (Lua) <94-114> ../mods/Caitlin/scripts/prefabs/caitlin.lua:126 in (field) oneatfn (Lua) <116-129> scripts/components/eater.lua:176 in () ? (Lua) <121-195> =(tail call):-1 in () (tail) <-1--1> scripts/bufferedaction.lua:24 in (method) Do (Lua) <20-34> scripts/entityscript.lua:1243 in (method) PerformBufferedAction (Lua) <1235-1253> scripts/stategraphs/SGwilson.lua:2287 in (field) fn (Lua) <2283-2291> scripts/stategraph.lua:568 in (method) UpdateState (Lua) <536-580> scripts/stategraph.lua:607 in (method) Update (Lua) <599-627> scripts/stategraph.lua:125 in (method) Update (Lua) <109-148> scripts/update.lua:209 in () ? (Lua) <150-223> I'm not good at doing fixings and stuff. i know very little, 1% about modding.So if someone can spoonfeed me on how to fix this issue? Thank you for your time :). Edited July 12, 2016 by ZataraTMM Link to comment https://forums.kleientertainment.com/forums/topic/68808-help-needed-caitlin-the-ophelia-shadowfriend/ Share on other sites More sharing options...
CarlZalph Posted July 13, 2016 Share Posted July 13, 2016 Crash is due to the mod referencing to TUNING.SHADOWWAXWELL_LIFETIME which no longer exists in DST. It used to be equal to total_day_time * 2.5, which is equal to 1200. So for a hotfix just replace the instances of it with 1200 and it'll be good to go. Reason for this tuning constant being removed is due to how the shadow minions of Waxwell no longer being a time-based thing. Link to comment https://forums.kleientertainment.com/forums/topic/68808-help-needed-caitlin-the-ophelia-shadowfriend/#findComment-792050 Share on other sites More sharing options...
ZataraTMM Posted July 13, 2016 Author Share Posted July 13, 2016 (edited) 14 hours ago, CarlZalph said: Crash is due to the mod referencing to TUNING.SHADOWWAXWELL_LIFETIME which no longer exists in DST. It used to be equal to total_day_time * 2.5, which is equal to 1200. So for a hotfix just replace the instances of it with 1200 and it'll be good to go. Reason for this tuning constant being removed is due to how the shadow minions of Waxwell no longer being a time-based thing. So basically i replace every inst.lifetime = (TUNING.SHADOWWAXWELL_LIFETIME * 2) with inst.lifetime = (TUNING.SHADOWWAXWELL_LIFETIME * 1200)? edit: Nevermind! figured it out. Thank you so much!! Edited July 13, 2016 by ZataraTMM Link to comment https://forums.kleientertainment.com/forums/topic/68808-help-needed-caitlin-the-ophelia-shadowfriend/#findComment-792206 Share on other sites More sharing options...
CarlZalph Posted July 13, 2016 Share Posted July 13, 2016 58 minutes ago, ZataraTMM said: So basically i replace every inst.lifetime = (TUNING.SHADOWWAXWELL_LIFETIME * 2) with inst.lifetime = (TUNING.SHADOWWAXWELL_LIFETIME * 1200)? edit: Nevermind! figured it out. Thank you so much!! inst.lifetime = (TUNING.SHADOWWAXWELL_LIFETIME * 2) -> inst.lifetime = (1200 * 2) But you got 'er, so it's all good. Link to comment https://forums.kleientertainment.com/forums/topic/68808-help-needed-caitlin-the-ophelia-shadowfriend/#findComment-792225 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