2025-07-21 19:30 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001673Spring engineGeneralpublic2009-10-12 18:06
ReporterDOT 
Assigned Tohoijui 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version0.80.4.0 
Target VersionFixed in Version0.80.4.0+git 
Summary0001673: Units with backspace is not spawnable on /give
Descriptionif a unit got a backspace on it like for example "arm solar"
it is impossible to spawn it
 trying with /give arm_solar 1
doesn't work
doing /give arm solar 1
gives "bad team number solar"
and so on..
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0004189

hoijui (reporter)

are unit names really allowed to have white spaces in htem? or is it simply not checked anywhere, but though to be disallowed?
i for one would prefer to not allow white spaces in them.

~0004190

DOT (reporter)

yes they are allowed to have white spaces on them
it is possible to set on build info (sidedata..)
that the units have a white spaces on them and buildable and such

IMO spring should remove the white spaces which then gives "armsolar" instead of "arm solar"

~0004191

hoijui (reporter)

I would preffer spring to gracefully die when loading such a mod.
otherwise it could get confusing for the mod author or others, if he look at the mod files and see the name beeing specified as "arm solar", but hwen they try to reference it whne hte game is running, in a part of the engine that accepts unit names wiht white spaces, they woudl get a "Unit arm solar does not exist!" error.
When we disallow even loading such a mod, the mod author would do the error once, and then never use spaces in file names again, so noone else then him will ever have the chance to have a problem because of it.

~0004201

DOT (reporter)

Yes good idea too and Spring should also spew all Units with white spaces to it an error on Infolog on it

actually the error was when the unit name is "arm solar"
it will spew out "Error team solar does not exist!" or something like that

~0004203

hoijui (reporter)

Last edited: 2009-10-10 10:18

looks like we have a solution, may have to ask some people if it could cause problems, then do it.

~0004205

Auswaschbar (reporter)

Just print out a warning like:
'Unitname "my unit" contains whitespaces, this may cause problems.'

~0004206

hoijui (reporter)

fixed with commit: 094309e6e9565a5c4f768cbbfbb74593c86106b2
only issues a warning, does not abort.

i think aborting would be better, but well... this way we can blame it on Mod devs beeing stupid to not read infolog, and say we are so gentle to still allow it.
+Notes

-Issue History
Date Modified Username Field Change
2009-10-07 11:42 DOT New Issue
2009-10-07 20:46 hoijui Note Added: 0004189
2009-10-08 11:13 DOT Note Added: 0004190
2009-10-09 11:21 hoijui Note Added: 0004191
2009-10-09 16:21 DOT Note Added: 0004201
2009-10-09 22:09 hoijui Note Added: 0004203
2009-10-09 22:09 hoijui Status new => acknowledged
2009-10-10 10:18 hoijui Note Edited: 0004203
2009-10-11 13:56 Auswaschbar Note Added: 0004205
2009-10-12 18:06 hoijui Note Added: 0004206
2009-10-12 18:06 hoijui Status acknowledged => resolved
2009-10-12 18:06 hoijui Fixed in Version => 0.80.4.0+git
2009-10-12 18:06 hoijui Resolution open => fixed
2009-10-12 18:06 hoijui Assigned To => hoijui
+Issue History