Destiny8Chicken Posted February 12, 2015 Share Posted February 12, 2015 So I'm a novice Don't Starve modder and I recently created a mod which crashed Don't Starve Together Beta. I made a slight adjustment in an attempt to fix it however Don't Starve Together Beta autodisables the mod and then crashes. Could someone tell me how I can turn off the auto mod disable? thank you. Link to comment Share on other sites More sharing options...
Mobbstar Posted February 12, 2015 Share Posted February 12, 2015 in DS you can force enable a mod by editing the modsettings.lua in the mods folder. I'm not sure if the same applies to DST Link to comment Share on other sites More sharing options...
Destiny8Chicken Posted February 12, 2015 Author Share Posted February 12, 2015 Thank you for the advice however now DST simply autodisables the mod and crashes upon game startup, do you know any possible fixes? Link to comment Share on other sites More sharing options...
Mobbstar Posted February 12, 2015 Share Posted February 12, 2015 Thank you for the advice however now DST simply autodisables the mod and crashes upon game startup, do you know any possible fixes? That's a problem with your mod. I can't fix an invisible car Link to comment Share on other sites More sharing options...
Destiny8Chicken Posted February 12, 2015 Author Share Posted February 12, 2015 ok right, could you please take a look at this in that case; I'm trying to have the character's max health as 100 + current sanity and this is the code: inst.components.health:SetMaxHealth(100+(self.inst.replica.sanity:Current)) This is all I've changed to break the mod, what have I done wrong? Link to comment Share on other sites More sharing options...
Destiny8Chicken Posted February 12, 2015 Author Share Posted February 12, 2015 also you're right it is the mod; I got rid of the broken part and it worked fineBut I'd still like your advice on what I did wrong if you know or have the capacity to find out please Link to comment Share on other sites More sharing options...
debugman18 Posted February 12, 2015 Share Posted February 12, 2015 ok right, could you please take a look at this in that case; I'm trying to have the character's max health as 100 + current sanity and this is the code: inst.components.health:SetMaxHealth(100+(self.inst.replica.sanity:Current)) This is all I've changed to break the mod, what have I done wrong? I'm not totally familiar with DST's workings yet, but I believe replica components aren't really used by prefabs directly like that. Try changingself.inst.replica.sanity:Currenttoinst.components.sanity.current. If that doesn't work, you should probably post in the DST-specific mod forums. Link to comment Share on other sites More sharing options...
Corrosive Posted February 13, 2015 Share Posted February 13, 2015 @Destiny8Chicken, @debugman18, I'm not familiar with the DST API either, but presumably you are trying to reference self, which is a nonexistent variable. Self is often defined as a local variable inside of a class definition or function, and doesn't mean anything unless you have a self variable outside of the function. In any case you can always check your log file to see what went wrong. Just search this forum for log figure out where to find that. In the future though, you'll probably have better results asking DST questions in the DST modding forum Link to comment Share on other sites More sharing options...
debugman18 Posted February 13, 2015 Share Posted February 13, 2015 @Destiny8Chicken, @debugman18, I'm not familiar with the DST API either, but presumably you are trying to reference self, which is a nonexistent variable. Self is often defined as a local variable inside of a class definition or function, and doesn't mean anything unless you have a self variable outside of the function. In any case you can always check your log file to see what went wrong. Just search this forum for log figure out where to find that. In the future though, you'll probably have better results asking DST questions in the DST modding forum I'm aware that self was being used incorrectly there. That's why I didn't include it in my correction. I'm also almost 100% sure that replica components aren't used explicitly like that. Link to comment Share on other sites More sharing options...
Corrosive Posted February 13, 2015 Share Posted February 13, 2015 I figured self should at least be mentioned since that's what was causing the problem O.o In any case, I have quite a bit to learn about the DST API, but I'm not sure what would prevent replica components being used like that, apart from it being improper use(i.e. shouldn't but can, technically). Link to comment Share on other sites More sharing options...
Kzisor Posted February 13, 2015 Share Posted February 13, 2015 Not to sound rude, but should DST issues be posted in the DST mod and Tools subforum? Link to comment Share on other sites More sharing options...
Destiny8Chicken Posted February 13, 2015 Author Share Posted February 13, 2015 Thanks for all your posts, debugman18 came closest to fixing the problem however whilst the game worked, the max health was kept at 300, not being affected by the actual sanity level, so sanity seemed to be a constant of 200 for some reason, however I'm going to take your advice and put this in the DST beta modding forums, thanks for all your help Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.