ModMash


New Planets, Late game enemy, Land Mines, Underground world, Subways, Valkyries, Ore refining, Crash Site Items and Tech Loot, Subspace Transport, Sub-Dimensional Stacking, Biter harvesting. Placeable spawners, Alien Ooze, Ore Enrichments, conversions, Regenerative Walls and Belts, Recycler, Fluid controls, Mini Boiler, Fishing Machine, Mini Loaders. Titanium Walls, pipes and Belts, Biter Neural Toxin, Fish and Ooze juice. This is a modpack for all splinters.

Overhaul
2 years ago
0.16 - 1.1
4.07K

b Error in accessing the "util" object (Resolved)

4 years ago

"modmash": modmash/data-final-fixes.lua:3: modmash/prototypes/scripts/types.lua:629: attempt to call field 'ends_with' (a nil value)

Any mod that accesses its "util" file makes your mod cause a mistake.
It's the consequences of your decision to add instead:
'require("prototypes.scripts.util")
row
'if not util then require("prototypes.scripts.util") end'.
Since the previous uploaded mod initializes "util" your mod thinks that it is already loaded and does not call 'require("prototypes.scripts.util")' as a result of which the functions from the file become inaccessible.
You will still have to manually detect the need to enable the "util" file or rename the object "util" like utilm.
Sorry about the bad language, it's a Google translator :)

4 years ago

Thank you, your explanation was great and I have gone through and basically moved and references to util to modmash.util so there will be no conflicts then made local references to the functions so I know wheats being used where and it should be slightly faster.

Cheers

4 years ago

Great, the mistake's gone! Thank you.)
But there is another compatibility error in the next bug report.

This thread has been locked.