JustanAccount Posted November 9, 2016 Share Posted November 9, 2016 (edited) @PanAzej (my new hero) Hi, I created a mod to stash items. It's not taking line 84 in compartments.lua Could you have a quick look for me please? you probably don't need to load it up. Thank You Compartments.zip Edited November 9, 2016 by JustanAccount Link to comment https://forums.kleientertainment.com/forums/topic/71571-a-quick-tip-with-coding/ Share on other sites More sharing options...
CarlZalph Posted November 10, 2016 Share Posted November 10, 2016 (edited) Should say that "prefabs" is nil, and you need to define it or remove it from the Prefab function line. return Prefab("compartments", fn, assets) Edited November 10, 2016 by CarlZalph assets->prefabs Link to comment https://forums.kleientertainment.com/forums/topic/71571-a-quick-tip-with-coding/#findComment-835766 Share on other sites More sharing options...
Serpens Posted November 10, 2016 Share Posted November 10, 2016 CarlZalph: the "prefab nil" problem was already "fixed" by developers. Since many many amateur modders had nil prefabs in their mods, all those mods crashed when the devs made a prefabs in game files local. After reporting this, they made those mods work again. But of course modders should make it correct. JustanAccount: When does the mod crash? I just activated this mod and started game, but no crash. Maybe your DST version is not the latest, so the fix I described above is not in your version? Link to comment https://forums.kleientertainment.com/forums/topic/71571-a-quick-tip-with-coding/#findComment-836004 Share on other sites More sharing options...
JustanAccount Posted November 12, 2016 Author Share Posted November 12, 2016 @Serpens Thanks for the reply, but I fixed that mod. BTW I was creating items (messing around) and at one stage when I dropped the item, it 'poofed' and reappeared in my inventory. I actually like this in retrospect... any idea on how I did that? Link to comment https://forums.kleientertainment.com/forums/topic/71571-a-quick-tip-with-coding/#findComment-836599 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