|
|
|
|
September 30th, 2009, 12:34 PM
|
|
Second Lieutenant
|
|
Join Date: Sep 2008
Posts: 466
Thanks: 35
Thanked 95 Times in 60 Posts
|
|
Max mod nation description length?
Does anyone know if there's a maximum length for the #descr command for nation modding, and if so, what that limit is?
My description keeps getting chopped off, and I'm not sure if it's due to bad formatting or exceeding a length limit; I know I'm well short of various vanilla nation description lengths, and it's not breaking at a "usual" length like 1024 chars or anything (not in front of the game at the moment, but it's something like 650 chars where it's cutting off for me presently.)
Also, the mod manual describes the syntax as
HTML Code:
#descr "<nation name>"
, but I assume the correct syntax is just
HTML Code:
#descr "<description text>"
as it seems to not like the 2nd argument.
...and, as long as I'm here, anyone aware of character limits for the other modding name/brief/descr(ription)/summary commands?
|
September 30th, 2009, 01:43 PM
|
|
Colonel
|
|
Join Date: Jun 2007
Location: Finland
Posts: 1,617
Thanks: 179
Thanked 304 Times in 123 Posts
|
|
Re: Max mod nation description length?
Do you have a quote of some sort in the description text, perhaps closed with (") signs? I've had that happen to me many times.
|
September 30th, 2009, 04:55 PM
|
|
Second Lieutenant
|
|
Join Date: Sep 2008
Posts: 466
Thanks: 35
Thanked 95 Times in 60 Posts
|
|
Re: Max mod nation description length?
No, no stray double-quotes. I'm using a programming font to make sure things like that stand out (but I verified with a character search.) There is a single-quote in the text, but it's not aligned with the break.
|
October 3rd, 2009, 05:47 AM
|
|
General
|
|
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
|
|
Re: Max mod nation description length?
Here are the limits for nation modding:
#name: 36 characters
#epithet: 36 characters
#flag: 2500 characters (for the filename)
#descr: 2500 characters
#summary: 500 characters
#brief: 500 characters
These limits are from the parser, per-nation. There might also be a global limit to the descriptions as well, I think I ran into that myself when preparing combined mods for my mod nation games.
|
The Following 2 Users Say Thank You to lch For This Useful Post:
|
|
October 3rd, 2009, 06:03 AM
|
|
Colonel
|
|
Join Date: Jun 2007
Location: Finland
Posts: 1,617
Thanks: 179
Thanked 304 Times in 123 Posts
|
|
Re: Max mod nation description length?
Quote:
Originally Posted by lch
These limits are from the parser, per-nation. There might also be a global limit to the descriptions as well, I think I ran into that myself when preparing combined mods for my mod nation games.
|
Nein! Nooo! Eiii! Inte!
First I learn that there's a limit on added spells and I had to scrap all sorts of cool ideas for the CPCS. Now max lenght descriptions (I hit the character limit often) can limit mod compactibility! Ugh. I'll have to learn to write more to the point I guess.
Tomorrow I'll learn that there is a limit on mod-image pixels and I'll have to make all my sprites 50% smaller.
__________________
I have now officially moved to the Dom3mods forums and do not actively use this account any more. You can stll contact me by PM's, since my account gives e-mail notifications on such occasions.
If you need to ask something about modding, you can contact me here.
See this thread for the latest info concerning my mods.
|
October 3rd, 2009, 11:10 AM
|
|
Major General
|
|
Join Date: Oct 2006
Location: Tennessee USA
Posts: 2,059
Thanks: 229
Thanked 106 Times in 71 Posts
|
|
Re: Max mod nation description length?
Quote:
Originally Posted by lch
Here are the limits for nation modding:
#name: 36 characters
#epithet: 36 characters
#flag: 2500 characters (for the filename)
#descr: 2500 characters
#summary: 500 characters
#brief: 500 characters
These limits are from the parser, per-nation. There might also be a global limit to the descriptions as well, I think I ran into that myself when preparing combined mods for my mod nation games.
|
I play with a TON of mod nations enabled at the same time and I have not noticed a global limit. It may be possible I have not hit the cap yet and if that is the case, it must be VERY high.
__________________
BLAH BLAH BLAH BLAH NEXT TURN.
|
October 3rd, 2009, 11:30 AM
|
|
General
|
|
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
|
|
Re: Max mod nation description length?
Quote:
Originally Posted by Foodstamp
I play with a TON of mod nations enabled at the same time and I have not noticed a global limit. It may be possible I have not hit the cap yet and if that is the case, it must be VERY high.
|
The game doesn't crash in that case, it just doesn't include the nation descriptions anymore. If I recall correctly then first all the new unit and then spell descriptions are added, and then the nation descriptions. When preparing one all-mod-nations megagame I ran into each of these limitations, which required me to shorten some of the description texts. I'd have to look through old IRC logs to be able to tell specifics. It was a couple of patches ago, too, though, so the situation might be better now.
Burnsaber, there are limitations to everything, everywhere.
|
October 7th, 2009, 09:50 PM
|
|
Second Lieutenant
|
|
Join Date: Sep 2008
Posts: 466
Thanks: 35
Thanked 95 Times in 60 Posts
|
|
Re: Max mod nation description length?
Quote:
Originally Posted by lch
Here are the limits for nation modding:
#name: 36 characters
#epithet: 36 characters
#flag: 2500 characters (for the filename)
#descr: 2500 characters
#summary: 500 characters
#brief: 500 characters
These limits are from the parser, per-nation. There might also be a global limit to the descriptions as well, I think I ran into that myself when preparing combined mods for my mod nation games.
|
Hrm...well, I replaced my text with a block of lorem ipsum, and it seems that #descr (for nations) is actually limited to only 999 characters. However, some of the vanilla nations (e.g. LA Caelum) clearly exceed this, so perhaps you found the size of the in-game buffer, and something else is trimming the input to a smaller length prior to display?
I've only got my one mod that I'm working on installed, so it's presumably not a global limit being exceeded.
Perhaps I should report this as a bug?
|
October 8th, 2009, 03:12 AM
|
|
General
|
|
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
|
|
Re: Max mod nation description length?
Quote:
Originally Posted by Stavis_L
Hrm...well, I replaced my text with a block of lorem ipsum, and it seems that #descr (for nations) is actually limited to only 999 characters.
|
JK has a habit of limiting things at the value 999 (ex.: spell slots, damage), so it may very well be that input strings are limited by that amount.
Quote:
Originally Posted by Stavis_L
However, some of the vanilla nations (e.g. LA Caelum) clearly exceed this, so perhaps you found the size of the in-game buffer, and something else is trimming the input to a smaller length prior to display?
|
As I said, I looked at the parser, but maybe the input from mods is indeed limited artificially by a greater amount than what the ingame limits are, yes.
Quote:
Originally Posted by Stavis_L
Perhaps I should report this as a bug?
|
It's not a bug, you just found out the real limit. There will always be a limit, anyway.
|
October 3rd, 2009, 05:30 PM
|
|
Major General
|
|
Join Date: Oct 2006
Location: Tennessee USA
Posts: 2,059
Thanks: 229
Thanked 106 Times in 71 Posts
|
|
Re: Max mod nation description length?
Well that makes me sad in the pants. I imagine by the time I retire, I will have every nation spot loaded with mod nations . I can do without descriptions I guess
__________________
BLAH BLAH BLAH BLAH NEXT TURN.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|