House of Ward ~ Patron of Eothese, Mythic_Commodore, Wundai, & Saint Nicholas
there is a limit of 68 hidden resources
"Do you know, my son, with what little understanding the world is ruled?"Pope Julius III
Want to add your own mercenaries? Read my Tutorial
Required buildings in EDB:
core_castle_building
core_building
port
castle_port
Last edited by EarendilElenthol; October 15, 2009 at 04:43 PM.
House of Ward ~ Patron of Eothese, Mythic_Commodore, Wundai, & Saint Nicholas
Is the limit of 128 building trees tested?
Not sure exactly what you meant by that - I've just tried testing in Kingdoms with a Named Character with a 44 character first name and also a 44 character surname - so 88 characters... (same name internally and in display) although it does some nasty things to the display of the name graphically due to lack of space it doesn't seem to have any sort of hardcoded problem. Can you clarify?
Visit Total War Center Wiki for:
Total War Mods - Modding Portal - Total War Series
M2TW Modding - Battle Map Buildings - Techtrees - worldpkgdesc
Rome Remastered Modding - New Campaign Map
IWTE functions for RR - Unit models in RR
Hidden_resources need to be at least 5 characters to work
House of Ward ~ Patron of Eothese, Mythic_Commodore, Wundai, & Saint Nicholas
From what I gathered by looking at a couple of .strings files, textual data (any string) can be at most 64KB in size. E.g. a unit description, menu entry etc. etc. The reason is that the game use a 2-byte prefix for the internal representation of a string; and this prefix corresponds to the length of that string.
FYI: the strings file is a plain key=>value mapping with the text from source files converted to internal character encoding. This internal representation may not contain equivalents of NULL characters (\0 or U+0000) -- it triggers some really funky stuff.
This would suggest that at least as far as the underlying text handling part of the engine is concerned the max length of any string is fixed at 64KB; so assuming that holds true, you should be able to use _very_ long character names as you see fit.
Good point Tellos Athenaios, we've been so used to looking at converted versions of the text files I'd forgotten they had a string length in the .bin file
Watch out for funny stuff happening below that though like the problem that crops up apparently fairly randomly with string length problems in the models db file.
http://www.twcenter.net/forums/showt...95#post4530695
I haven't noted that here before because it wasn't quite as straightforward as a hardcoded limit - but long strings in that file can definitely cause problems.
Visit Total War Center Wiki for:
Total War Mods - Modding Portal - Total War Series
M2TW Modding - Battle Map Buildings - Techtrees - worldpkgdesc
Rome Remastered Modding - New Campaign Map
IWTE functions for RR - Unit models in RR
It's 10 acc to this.
Does anyone know whether there's a hardcoded maximum for names or not? I've made a list of names for a faction and it turned out to be quite a long one (19 pages in Words). It would be a bummer if I implement them into my mod only to find out that all work was for nothing.
Last edited by Razor; August 08, 2010 at 09:11 AM.
Sengoku: Total War (a Shogun mod for M2TW) - Work In Progress
Late Roman Era Campaign Map for M2TW
Late Roman Units for M2TW
Globalization: making someone else's problem your problem
Dose anyone know the max number of climates? I'm currently on 12 (there are 10 default climates in vanilla).
Im going for another climate soon...
Contact me on Steam: steamcommunity.com/id/IZob/ or send a PM.