Game name length

Started by pcj, Wed 21/02/2007 15:27:20

Previous topic - Next topic

pcj

I didn't see anything about this in the forums or even a mention of it in the System limits section of the manual, but the length of the Game name field seems to be a pretty arbitrary limit (one which I need to be a bit longer), so I was wondering if there were a way to make it longer, i.e., in the global script, or if I should just wait for 2.8.

Thanks.
Space Quest: Vohaul Strikes Back is now available to download!

Ashen

#1
The Game.Name property can be altered in script, and should only have the same limits as any other String (if there are any? It can definitely be longer than the field in the editor allows).

Any help?
I know what you're thinking ... Don't think that.

Scorpiorus

And yeah, I agree a longer name support in the Game name editbox would be nice. For cosmetic reasons.

pcj

Quote from: Ashen on Wed 21/02/2007 16:00:16
The Game.Name property can be altered in script, and should only have the same limits as any other String (if there are any? It can definitely be longer than the field in the editor allows).

Any help?

Should work, I'll check it out, thanks.
Space Quest: Vohaul Strikes Back is now available to download!

monkey0506

My tests show that you can only make the Game.Name property up to 99 characters. But I may have found a bug in that trying to access Game.Name.Length generates an error:

Quote---------------------------
Compile Error
---------------------------
There was an error compiling your script. The problem was:

In: 'Global script'



Error (line 9): must have an instance of the struct to access a non-static member



Do you want to fix the script now? (Your game has not been saved).
---------------------------
Yes   No   
---------------------------

Line 9:

Code: ags
  Display("game name length: %d", Game.Name.Length);


I had to copy Game.Name into another String first to be able to figure out its length.

Scorpiorus

Ah yeah, that's a known issue with the implementation of static properties where we can't directly access their member fields and need to use a temporary as you say.

monkey0506

Okay as long as it's a known issue I won't report it then. ;)

But what I said about the length holds, Game.Name is truncated to 99 characters in the script.

Pumaman

The editor limits the game name to 29 characters, which I can see might not be enough if you have a long game name.

As a workaround, in your game_start script, do something like:
Game.Name = "This is my really long game name".

As monkey says, at run-time the game name is limited to 99 characters; if this poses a problem for anyone, tell me what the name of your game is and I'll have a think about it :P

monkey0506

But CJ...you must include subtitles...very long subtitles. :=

Kweepa

"The game that is almost impossible because to complete it you must before anything else p"
Still waiting for Purity of the Surf II

pcj

What's the reasoning behind limiting the game name anyway, besides string limits?
Space Quest: Vohaul Strikes Back is now available to download!

SSH

Because having such a long name is stupid?
12

Pumaman

There's no particular "reasoning" to most of the limits in AGS, it's more to do with the data structures that the game is saved into.

pcj

Space Quest: Vohaul Strikes Back is now available to download!

GarageGothic

Titles longer than 99 characters??!?  :o Here I thought that "The Lord of the Rings: The Battle for Middle-Earth II â€" The Rise of the Witch King" was a horribly long name for a video game. I'd hate to see how the desktop shortcut for the game looks.

SMF spam blocked by CleanTalk