#Loading mods into the game will appear

1 messages · Page 1 of 1 (latest)

ancient quail
#

Loading mods into the game will appear Currently, it has not been tested whether it is caused by the tweakunits or tweakdefs code.

pastel pumice
#

What is the bug?

hollow hamlet
#

Game crash, i guess.

#

Can't really point at anything specific given yet

urban ice
#

Thats just messed up tweakdef

pastel pumice
#

tweakdefs are effectively changing the game source, crash can just happen when the code is wrong, report to mod author

urban ice
#

Not a game bug

pastel pumice
#

we cannot give "nice error" here, engine is basically asked to load incorrect code

hollow hamlet
#

it's not on load though

#

it's like the tweak has changed a value on a weapon to an invalid and it then complains on a check

pastel pumice
#

complain to mod author

#

not our bug, tweaks change game source code

vital schooner
#

The root cause of this error is: In line 1950 of the file gamedata/alldefs_post.lua, the code calls math.max() (or another function named "max"), but the first argument passed to this function was expected to be a number, while it actually received a table (the Lua table type). This caused the function to fail and subsequently triggered an error in the configuration parser.

urban ice
vital schooner
#

This kind of issue typically occurs when there‘s an error in the key-value pairs while writing the def, or when the curly braces {} are not wrapping the structure correctly, which leads to such an error report.