If an new update has dropped it can take up to a week or more for the compiler to be updated. Unless the old compiler still works. So be patient, as soon as the compiler is updated I'll update my mod. Feedback is welcome, if you have any idea's or questions feel free to ask. If you encounter any bugs please let me know. Before posting any issues please read the description.
Mod Format Explantion
EXML Format:Partial edit, only touches the lines/values that need editing. Very low chance of conflicts with other mods (unless they edit the same values). Can be edited easily by user using an editor like Notepad ++/VSCODE/... . MBIN Format:Full File Replacement. High chance of conflict, comparable with old pak format (pre. WORLDS). Can be used together with EXML, MBIN mods are loaded first so changes in EXML mods that edit the same file will still be applied. Other MBIN mods that change the same file follow the FIFO principle, merging is highly recommended with MBIN mods (see How To). Lua Format: Script file used by AMUMSS to generate the mod or used for merging with this tool. CS Format: Script file used by NMSMB to generate the mod or used for merging with this tool.
OK, I have two mods that need to be merged, so in my load order I end up with a rewardtable.mbin
When I install this mod, using the rewardteable.exml, and making sure it loads AFTER the rewardtable.mbin, instead of OVERWRITING the plant amounts that are in the rewardtable.mbin, the plant amounts from BOTH the rewardtable.mbin, and rewardtable.exml get added together.
Example: Starbulb is 75 by default in the Rewardtable.mbin If I add this mod and change the amounts of the plants to 250 in the reqrdtable.exml, instead of getting 250 plants, I get 325. 250+75=325.
Why are they adding together?
Is this exml being APPENDED instead of EDITING or REPLACING the old values?
It seems like this mod no longer functions correctly, at least for me. Growth timers in-game all display 3600 despite me setting a different growth time in AMUMSS, and despite the growth saying it is 3600 the plants are still growing at their vanilla rates but are yielding modified harvests. I also tried renaming the .lua so it would be the last file read by AMUMSS so the edits from it wouldn't be overwritten by something else. Combined mod from AMUMSS is also last in my mod load order, so nothing should be overwriting it. So it seems that the growth time part isn't being fully applied anymore.
give it a spin again, with updated version timere should be 3600 secs (ie 1 hour) I do feel that the amounts are random altho the edits are in so not sure what going on there atm
I use the .lua and wanted to grow the plants slower as I always wonder what all these arcade players want them grow even faster as they already do?
So I set to 10x the growth time and it's alright with the hydroponic trays, but it's even way slower in the Bio-Dome or it does not grow at all. I got NipNip there and with vanilla they need just a few hours, they're really fast in growing compared to other plants.
But now, with .lua and inside the Bio-Dome, they did not reach the size to be ready to harvest even after 3 realtime days.
commenting out the input part as I already chose the values of my liking
And just a few minutes ago I witnessed a new quirk, yesterday I already got a hint of weirdness and now it was settled:
as I checked for the plants during the session the first time after I planted them, it was exactly 10 hours to go, on the second, counting down from 9:59:59 etc.
as I checked another time later, it was exactly 9 hours to go, on the second, counting down from 8:59:59 etc.
just today, as I checked a few minutes ago, it was exactly 8 hours to go, on the second, counting down from 7:59:59 etc.
I assume there is a huge bug, which just makes the countdown start an hour earlier than before when checking for the plants after being abroad for some time. Dunno the timeout for that quirky behavior itself. And having no clue what could be the trigger for that glitch.
The edits are what should be at least. It might be an exe limitation since testing for 12 hour extreme's are not on my bucket list. I'd suggest lowering it down to like 8 hours and see if that works
You're free to make your own mod, If you use my lua you do have to credit me and maybe point people to my mod too. Do keep in mind that if you do release a mods you'll probably have to update it each month
The Lua download (maybe the NMSMB also?) isn't up-to-date.
The lua in the pak contains: ChangesToProductTable[#ChangesToProductTable +1] = { -- ["SPECIAL_KEY_WORDS"] = {"ID", productId, "Description", "VariableSizeString.xml"}, ["SPECIAL_KEY_WORDS"] = {"ID", productId}, ["VALUE_CHANGE_TABLE"] = { {"Description", "CUI_PLANT_DESC"} } }
While the lua download contains: ChangesToProductTable[#ChangesToProductTable +1] = { ["SPECIAL_KEY_WORDS"] = {"ID", productId, "Description", "VariableSizeString.xml"},
["VALUE_CHANGE_TABLE"] = { {"Value", "CUI_PLANT_DESC"} } } Which causes several WARNINGS (for each item) of the following kind: -> Based on SPECIAL_KEY_WORDS pairs: >>> <"ID","PEARLPLANT"> + <"Description","VariableSizeString.xml"> <<< [[WARNING]] Should have found SPECIAL_KEY_WORDS: <"ID","PEARLPLANT"> + <"Description","VariableSizeString.xml"> [[WARNING]] Some KEY_WORDS not found, script result may be wrong! It's just the description text so won't effect functionality, but figured I would let you know.
ah forgot that one will upload the fixed lua for that Edit: corrected lua should be on now, the one in pak you can skip for now, with the next major update it should be good again
Just a small thing, but "resources" is spelled "resrouces" in the LUA, so it shows up in all of the Descriptions of the plants as "resrouces"
I've changed my LUA to correct it, but just letting you know. ["LANGUAGE"] = Languages["EN"], ["DESCRIPTION"] = [[A medium-sized, farmable plant that yields an occasional harvest of valuable resrouces.Suitable for hydroponic indoor planting. Ensure the correct climate before planting outdoors.
27 comments
Mod Format Explantion
Interesting links
How To Guides
Mods folder has changed, all mods should now go in: ...\No Man's Sky\GAMEDATA\MODS
For more information read this: (credits to GumskBF): NMS modding After 5.50
When I install this mod, using the rewardteable.exml, and making sure it loads AFTER the rewardtable.mbin, instead of OVERWRITING the plant amounts that are in the rewardtable.mbin, the plant amounts from BOTH the rewardtable.mbin, and rewardtable.exml get added together.
Example: Starbulb is 75 by default in the Rewardtable.mbin
If I add this mod and change the amounts of the plants to 250 in the reqrdtable.exml, instead of getting 250 plants, I get 325.
250+75=325.
Why are they adding together?
Is this exml being APPENDED instead of EDITING or REPLACING the old values?
Growth timers in-game all display 3600 despite me setting a different growth time in AMUMSS, and despite the growth saying it is 3600 the plants are still growing at their vanilla rates but are yielding modified harvests.
I also tried renaming the .lua so it would be the last file read by AMUMSS so the edits from it wouldn't be overwritten by something else.
Combined mod from AMUMSS is also last in my mod load order, so nothing should be overwriting it.
So it seems that the growth time part isn't being fully applied anymore.
So I set to 10x the growth time and it's alright with the hydroponic trays, but it's even way slower in the Bio-Dome or it does not grow at all.
I got NipNip there and with vanilla they need just a few hours, they're really fast in growing compared to other plants.
But now, with .lua and inside the Bio-Dome, they did not reach the size to be ready to harvest even after 3 realtime days.
EqualPlantTimerAndProduction.lua
- changing the time variable to 43200
- commenting out the input part as I already chose the values of my liking
And just a few minutes ago I witnessed a new quirk, yesterday I already got a hint of weirdness and now it was settled:
- as I checked for the plants during the session the first time after I planted them, it was exactly 10 hours to go, on the second, counting down from 9:59:59 etc.
- as I checked another time later, it was exactly 9 hours to go, on the second, counting down from 8:59:59 etc.
- just today, as I checked a few minutes ago, it was exactly 8 hours to go, on the second, counting down from 7:59:59 etc.
I assume there is a huge bug, which just makes the countdown start an hour earlier than before when checking for the plants after being abroad for some time. Dunno the timeout for that quirky behavior itself.And having no clue what could be the trigger for that glitch.
'MATH_OPERATION' Parameters
HarvestMultiple = 10;
["MOD_FILENAME"] = ModName.."-"..HarvestMultiple.."X.pak",
local ChangesToRewardTable = NMS_MOD_DEFINITION_CONTAINER["MODIFICATIONS"][1]["MBIN_CHANGE_TABLE"][1]["EXML_CHANGE_TABLE"]
for k = 1, #PlantRewardIds do
local rewardId = PlantRewardIds[k]
ChangesToRewardTable[#ChangesToRewardTable +1] =
{
["SPECIAL_KEY_WORDS"] = {"Id", rewardId, "List", "GcRewardTableItemList.xml"},
["MATH_OPERATION"] = "*",
["VALUE_CHANGE_TABLE"] =
{
{"AmountMin", HarvestMultiple},
{"AmountMax", HarvestMultiple}
}
}
end
Do keep in mind that if you do release a mods you'll probably have to update it each month
The lua in the pak contains:
ChangesToProductTable[#ChangesToProductTable +1] =
{
-- ["SPECIAL_KEY_WORDS"] = {"ID", productId, "Description", "VariableSizeString.xml"},
["SPECIAL_KEY_WORDS"] = {"ID", productId},
["VALUE_CHANGE_TABLE"] =
{
{"Description", "CUI_PLANT_DESC"}
}
}
While the lua download contains:
ChangesToProductTable[#ChangesToProductTable +1] =
Which causes several WARNINGS (for each item) of the following kind:{
["SPECIAL_KEY_WORDS"] = {"ID", productId, "Description", "VariableSizeString.xml"},
["VALUE_CHANGE_TABLE"] =
{
{"Value", "CUI_PLANT_DESC"}
}
}
-> Based on SPECIAL_KEY_WORDS pairs: >>> <"ID","PEARLPLANT"> + <"Description","VariableSizeString.xml"> <<<
It's just the description text so won't effect functionality, but figured I would let you know.[[WARNING]] Should have found SPECIAL_KEY_WORDS: <"ID","PEARLPLANT"> + <"Description","VariableSizeString.xml">
[[WARNING]] Some KEY_WORDS not found, script result may be wrong!
Edit: corrected lua should be on now, the one in pak you can skip for now, with the next major update it should be good again
I've changed my LUA to correct it, but just letting you know.
["LANGUAGE"] = Languages["EN"],
["DESCRIPTION"] = [[A medium-sized, farmable plant that yields an occasional harvest of valuable resrouces.Suitable for hydroponic indoor planting. Ensure the correct climate before planting outdoors.
Approximate growing time: <TECHNOLOGY>]]..Time..[[ seconds<>]]}