Author Topic: More issues (Map Editor)  (Read 3120 times)

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
More issues (Map Editor)
« on: 2010-03-27, 06:40:20 PM »
When editing a map, I can name plans whatever I want, but in the plan editor, when I try to name them, it says only letters, digits, and spaces are allowed.  There's nothing stopping me from putting illegal characters in the plan's name from the map editor.  The same is true of naming static sprite instances.  In my case, I was trying to use colons in the plan names.  Specifically, something like "Message: Entry" "Message: Off Limits" etc.  It would be useful to be able to use colons in plan names, and perhaps replace them with underscores at compile time.

Speaking of which, underscores are perfectly acceptable as far as the compiler was concerned, but the plan editor wouldn't let me put them in as part of the name.

The other thing I wanted to mention is that I really like how I can alphabetize the plans list, and I wish there were a way to do the same with the sprites list.  Manual ordering would also be useful.
« Last Edit: 2010-03-27, 06:44:23 PM by durnurd »
Edward Dassmesser

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2752
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: More issues (Map Editor)
« Reply #1 on: 2010-03-28, 08:07:00 AM »
Underscores are prevented because
1. Plan names have to be unique.
2. Spaces are converted to underscores by SGDK2's compile process.
3. What would happen if you had one plan named "A B" and another "A_B".  They would look unique before you compiled, but SGDK would convert them to the same name.

Space seems to be more useful to an end user than underscore, so I just ruled out underscore and accepted space instead.