ZeroCiel Posted September 21, 2019 Share Posted September 21, 2019 Hi,I'm a musha fan.Now I'm taking over the maintenance of musha on steam. Sunnyyyyholic hasn't been online for a long time. I've done a lot of repair work, but some I still can't fix. No nobody teach me the code. So I'd like to ask a few questions here. If I change the pickble component .(pick.picker),Then the plants of the world cannot regenerate. But if I don't modify the pickble, yamache won't be able to collect plants properly. In the past version update,Kiel may have modified some of the data. Until then, yamache does not need to change the pickble component, When the plants are collected, they can be put in a backpack. But right now, I think it's an updated version of Kiel, but I don't know how to fix it. Can everyone give me a suggestion? Link to comment https://forums.kleientertainment.com/forums/topic/111956-need-help%EF%BC%88about-mushas-code%EF%BC%89/ Share on other sites More sharing options...
Serpens Posted September 21, 2019 Share Posted September 21, 2019 Are you sure you want to work on such an "expert" mod, without much experience? I would call me an advenced modder and I would not want to work on such a big and complicated mod Anyway, it seems english is not your native language, so maybe you should also try to find people of yuor language to explain you things, cause in english it is quite hard to understand what exactly you mean. Link to comment https://forums.kleientertainment.com/forums/topic/111956-need-help%EF%BC%88about-mushas-code%EF%BC%89/#findComment-1262970 Share on other sites More sharing options...
Cleyven Posted September 25, 2019 Share Posted September 25, 2019 (edited) Hi! Funny coincidence, I'm also try to learn how to mod without a lot of experience and the mod I'm using as base is one of Sunnyyyyholic mods, MyPets! The mod MyPets as it stands now, crashes when you plant a seed on the floor with Wormwood (when you create a wild crop). This bug was fixed by another user (mod called Pet) the problem was that even though you can plant seeds on the floor and create wild crops that will grow as normal and reach maturity, as soon as you close the game and comeback afterwards the wild crops you have previously created not only don't grow anymore as time passes (similar to what you mention in Musha mod) but also when you force them to grow with manure as soon as they reach maturity and change from wild crop to vegetable the game crashes. I was able to fix the issue and made the wild crops work as normal by modifying the crop file in the Pet mod. I did this by comparing the crop file (inside the components folder) in the mod with the crop file in the Don't Starve Together folder (Steam\steamapps\common\Don't Starve Together\data\databundles\scripts.zip\scripts\components) and changed what was needed in order for them to match. As far as I could understand there were some changes in the load part of the code but I can really transcribe why they didn't work. Like I mentioned I don't have much experience and I'm still learning so I might have broken something else, but as far as I could test, the wild crops were working as they should after I modified the file. Not sure if this will help you in any way but it does resembles to me the issue you have. Cheers and good luck! Edited September 25, 2019 by Cleyven Text Format Link to comment https://forums.kleientertainment.com/forums/topic/111956-need-help%EF%BC%88about-mushas-code%EF%BC%89/#findComment-1264663 Share on other sites More sharing options...
Serpens Posted September 25, 2019 Share Posted September 25, 2019 (edited) @Cleyven@ZeroCiel The part with the crop sounds like the original author overwrote original game files. And when the devs do change their files, the mod will still base on the old DST files and therefore cuasing a crash. This is the reason, why you normally should never overwrite orignal game files , see my post here: https://forums.kleientertainment.com/forums/topic/112023-postinit-for-woodie-lucy/?do=findComment&comment=1263644 The musha and also the Pet mod look very impressive with all those features and artwork. But it sounds like the code is very poorly made... or it is indeed because of the impressive scope of the mod that there really is no better way to do it. Just took a short look at the mentioned crop.lua and yes, there is absolutely NO NEED do overwrite the whole file (surely same for all other files). Everything can also be achieved within modmain with AddComponentPostInt or AddPrefabPostInit and then the result will be much more compatible to game updates. So:If you want to fix this mod, remove from the whole scripts folder every file with the same name like a original DST file, and do the stuff from it within modmain instead. Only then you have a chance that the mod will still work after the next game update. Edited September 25, 2019 by Serpens Link to comment https://forums.kleientertainment.com/forums/topic/111956-need-help%EF%BC%88about-mushas-code%EF%BC%89/#findComment-1264694 Share on other sites More sharing options...
Cleyven Posted September 26, 2019 Share Posted September 26, 2019 Wow....thank you so much for your reply @Serpens That does make a lot of sense. At the moment I'm still trying to understand what is which and what does what, does not help that I don't really know yet how to freely test the mods (still trying to find out how or where can I learn to use the console commands). Thank you for the advise, really, I will try to see if I can "clean" the mod and after that I might be able also to add the new pet to it (the Mothling), but I still have a long way to go. Link to comment https://forums.kleientertainment.com/forums/topic/111956-need-help%EF%BC%88about-mushas-code%EF%BC%89/#findComment-1264982 Share on other sites More sharing options...
Serpens Posted September 26, 2019 Share Posted September 26, 2019 (edited) 1 hour ago, Cleyven said: Wow....thank you so much for your reply @Serpens That does make a lot of sense. At the moment I'm still trying to understand what is which and what does what, does not help that I don't really know yet how to freely test the mods (still trying to find out how or where can I learn to use the console commands). Thank you for the advise, really, I will try to see if I can "clean" the mod and after that I might be able also to add the new pet to it (the Mothling), but I still have a long way to go. for examples of how to use AddPrefabPostInit and AddComponentPostInit it is best to look at several other mods which used those. And if this does not help, you can ask here at the forum specifc questions. Topics like "I dont know what to do please help me with the whole mod" are less likely to get help, compared to presenting a specifc short problem. For console commands simply open the console (see keyboardsettings to find or change the key) and then enter some of the preconfigured commands found in consolecommands.lua, these commands usually starts with "c_..." like c_godmode() or c_freecrafting() or c_gonext() or c_find()/c_findnext() or c_select() which are the most useful ones. In addtioin to those console commands you can also use everything you can also use within lua files. So to check a component of your character you can use print(c_find("mycharprefab").components.mycomponent.mysearchedvalue) to eg print a value from a specific component. Of course you can also use thngs like TheWorld and so on in console. Edited September 26, 2019 by Serpens Link to comment https://forums.kleientertainment.com/forums/topic/111956-need-help%EF%BC%88about-mushas-code%EF%BC%89/#findComment-1265015 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