Hi guys I am amazed by your mod. I think is really the best one around.
By the way, I was trying to change the spawn probability of "Hydrocraft.HCDogwhistle" changing the following line
Original
table.insert(SuburbsDistributions["all"]["crate"].items, "Hydrocraft.HCDogwhistle");
table.insert(SuburbsDistributions["all"]["crate"].items, 0.1);
Modified
table.insert(SuburbsDistributions["all"]["crate"].items, "Hydrocraft.HCDogwhistle");
table.insert(SuburbsDistributions["all"]["crate"].items, 1);
I changed only one number for sake of simplicity and debugging purposes.
After that, I have errors in the loading of the mod. Simply it does not load. the lua loader keeps giving errors.
I then have changed back the number to its original value (0.1), restoring completely the HCLoading.lua.
Nevertheless, it keeps giving the same errors. You guys have surely more experience than me and could maybe tell me, according to your experience, what could be the reason of this errors.
- Does lua loaders follow a certain priority schedule, such as folders, then alphabetic, then time of modification? This could probably explain why it gives the same errors after complete restoration of the code: maybe the modification of the file changes its "modification date" attribute, therefore changing its loading schedule.
I am wondering if the lua loder follows such a schedule.
I have no other ideas at the moment.
Thank you in advance,
Francesco