Logo Platform
logo amplifiers simplified

Modding Traps - be careful !

Reply
Copied to clipboard!
9 years ago
Nov 18, 2015, 7:09:29 PM
Hello,

Here I give some tips about very tricky situations where your mod will bug, or not be showable in new mod interface. It's easy to waste many hours trying to find what's go wrong.

If you find more tips like this, share it here please.



Master file :



[CODE]

Enchanteur

https://www.games2gether.com/endless-legend/forum/15-modding/Homepage>

Tiny Techs







Full FRENCH localization & more.





Test tech mod

[/CODE]



Here it's written : "Full FRENCH localization & more".

Never use the symbol "&" here ! or mod will not load in mods panel, like if the mod was not in the mod folder.





Other tips :



[CODE]









[/CODE]



In the commentary, i used : "... Population on other FIDS, --unique +1 approval ..."

Never use "--" in a commentary !

I don't know how, but it's like the game recognize some fragment of xml in there, maybe doing a "end commentary" load.

Effect : game crash as you load the mod.
0Send private message
9 years ago
Nov 18, 2015, 10:50:14 PM
I support the idea of this thread! Let's share the traps we keep falling into!



My advice is to check your spelling. Many times I've typed out a variable or a reference in several different places and the simulation descriptors end up looking for things which don't exist. It's almost always better to copy your names around.



Even something as minor as capitalisation will screw you over in some situations. In particular, Boolean only accepts 'true' and 'false', not "True" or "False".



Also, turn on logging and read the logs! Often it will tell you exactly where the problem is. Logs are generated here:

[code]C:\Users\\Documents\Endless Legend\Temporary Files[/code]

and it shows the last four times EL was running.
0Send private message
9 years ago
Nov 19, 2015, 8:39:50 AM
Hi Enchanteur,



I second this kind of post!



I just wanted to let you know that "--" or "&" are both specific xml sequence.

"--" is use to end a commentary with "-->". So you MUST NOT use it in a commentary (that's what I read in the xml documentation actually...)

"&" is use to start an escape sequence describing a special char with a code. If you want to use a "&" then use the following char code: "&"

For similar reason, use ">" instead of ">" and "<" instead of "<"



These kind of language specificity may be found there: http://www.w3.org/TR/xml/



Cheers,

flo.



P.S. If you are using some tools with syntax highlighting for xml, it should help you with these kind of exception because these are standard exception.
0Send private message
9 years ago
Nov 23, 2015, 12:04:51 PM
About capitalisation, effectively, I ever had the problem, when writing "percent" instead of "Percent" -> crash when mod load.
0Send private message
?

Click here to login

Reply
Comment