Lumina Posted April 24, 2017 Share Posted April 24, 2017 Hi, I have a mod when i add multiple foods (for variety, mostly). I try to tune things so it doesn't become too easy to don't starve. I would like to tune number of existing prefab so mine could be present without it becoming too powerful. How can i do this ? Could i do this in a way that will adapt to different present (so for example, if the player choose "less" or "none" berries, my mod will not override it ?) Link to comment Share on other sites More sharing options...
SephVII Posted April 24, 2017 Share Posted April 24, 2017 8 minutes ago, Lumina said: Hi, I have a mod when i add multiple foods (for variety, mostly). I try to tune things so it doesn't become too easy to don't starve. I would like to tune number of existing prefab so mine could be present without it becoming too powerful. How can i do this ? Could i do this in a way that will adapt to different present (so for example, if the player choose "less" or "none" berries, my mod will not override it ?) Not sure if it helps but while u wait for a good answer u could look up into this mod (maybe?) to get any hints on the codes ? Best Regardshttp://steamcommunity.com/sharedfiles/filedetails/?id=609675532&searchtext=Limit Link to comment Share on other sites More sharing options...
Lumina Posted April 24, 2017 Author Share Posted April 24, 2017 As far as i understand, this happen after world creation. It's an option, but i would prefer something happening at world gen, so this doesn't affect set piece and stuff like this. Thanks anyway for the answer and link Link to comment Share on other sites More sharing options...
Serpens Posted April 24, 2017 Share Posted April 24, 2017 please describe a bit more what do you want to achive. Less trees generated in world generation? Or what? It is very likely that this what you want is related to this: same way you add new stuff, you can also reduce the this "distributeprefab" thing for existing prefabs. As far as I know you have to go through every room... (so it is alot of work) Link to comment Share on other sites More sharing options...
Lumina Posted April 24, 2017 Author Share Posted April 24, 2017 Yes, let say i add a plant giving food, so i want to reduce berrybushes. But my problem is : if i do, for example : GLOBAL.terrain.rooms.Forest.contents.distributeprefabs.berrybush = .01 (instead of .03 in the current file). What would happen if the player put the setting on "lot" of berrybushes (when creating a world) ? or on "none" ? will it override it ? Or does the setting work in another way and i don't have to worry ? If i'm not wrong you worked on a mod changing this stuff, serpens, (the better "more animals" one) so maybe you know if theses settings are related to the number in distribute or not. Link to comment Share on other sites More sharing options...
Serpens Posted April 24, 2017 Share Posted April 24, 2017 47 minutes ago, Lumina said: GLOBAL.terrain.rooms.Forest.contents.distributeprefabs.berrybush = .01 yes, I would say this is exactly what you have to change, for every room (and related to original value, so 0.01 for every room is not good, if the previous value was 1 or that high) Unfortunately I don't know 100% how the game settings work. I also don't know if this is accessable in lua files or not... I think not. But I'm quite sure that is will override your values. And also keep in mind that there could be other mods also changing those values. So all in all I would highly dissuade from setting fixed values for these. Maybe a better (and also automatable) solution would be to multiply the existing value with 1/3 or 2/3 or 1/2. Don't know exactly, but I think there is a function to loop through all existing rooms... I think DarkXero mentioned it in this thread somewhere:http://forums.kleientertainment.com/topic/69888-solved-add-own-set-pieces-to-worldgeneration/ Link to comment Share on other sites More sharing options...
Lumina Posted April 24, 2017 Author Share Posted April 24, 2017 2 hours ago, Serpens said: yes, I would say this is exactly what you have to change, for every room (and related to original value, so 0.01 for every room is not good, if the previous value was 1 or that high) Maybe not all the rooms, since after all all i need is less bushes, not necessarily less bushes everywhere, i could just lower the most important values or the values of room when i add the more food. But yes, i understand the idea, one room isn't enough, and the value should be set for each room depending of the current value of each room. 2 hours ago, Serpens said: But I'm quite sure that is will override your values. And also keep in mind that there could be other mods also changing those values. Ok, override of value is fine. Mod changing value is not that bad too, since if they need to change it there is probably a reason. 2 hours ago, Serpens said: Maybe a better (and also automatable) solution would be to multiply the existing value with 1/3 or 2/3 or 1/2. This would be better but i'm not sure i have the knowledge to do it. I will stay with the first solution for the moment, see if it works fine, it will be enough for the moment. I didn't see a lot of mod modifying the amount of current prefab and the only one i see lowered them so it's fine. Link to comment Share on other sites More sharing options...
Serpens Posted April 24, 2017 Share Posted April 24, 2017 2 hours ago, Lumina said: I didn't see a lot of mod modifying the amount of current prefab and the only one i see lowered them so it's fine. every mod that is introducing a new prefab with distributprefab is lowering the amount of everything else, as learned in my thread =P =P =P Link to comment Share on other sites More sharing options...
Lumina Posted April 24, 2017 Author Share Posted April 24, 2017 Yes, i remember. But a little more lowering will not be a real problem, i think. At worse it will add a little more difficulty, and i have more the contrary problem at the moment Link to comment 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