View Issue Details

IDProjectCategoryView StatusLast Update
0003659Spring engineGeneralpublic2013-03-31 17:17
Reportercleanrock Assigned ToKloot  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionwon't fix 
Product Version94.1 
Summary0003659: tdf_grammar throws when section name contain special chars
DescriptionI got a SETSCRIPTTAGS message from a Spads hosts with player info (file with message attached) where some names contain brackets, flobby includes this info in start script (file attached) which spring will barf on with the following message:

Error: Spring: Incorrect/Missing content: Parse error 'brace or further name value pairs expected' in buffer at line 85 column 5 near
        [[ACE]KRAPOO]


I think the parser in spring should be able to handle this, i.e. match the ending bracket.
TagsNo tags attached.
Attached Files
setscripttags_message.txt (Attachment missing)
flobby_script.txt (Attachment missing)
Checked infolog.txt for Errors

Activities

bibim_

2013-03-29 14:10

reporter   ~0010311

As specified in the startscript format file ( https://github.com/spring/spring/blob/master/doc/StartScriptFormat.txt ), non-host lobby clients only have to write the information to connect to the host in the startscript. In your startscript example, all the modoptions will be ignored by Spring, which will use the modoptions of the host startscript instead.

See this forum post for more information:
http://springrts.com/phpbb/viewtopic.php?p=538545#p538545

cleanrock

2013-03-29 16:27

reporter   ~0010313

We should update http://springrts.com/dl/LobbyProtocol/ProtocolDescription.html#SETSCRIPTTAGS:server

This part is no longer true:
A client lobby program must cache and process these tags and apply them accordingly when creating the "script.txt" file.

bibim_

2013-03-29 17:28

reporter   ~0010314

Agreed, this doc should have been updated when client startscript usage has been changed a few years ago. Here is a patch proposal: http://planetspads.free.fr/spads/tmp/ProtocolDescription.xml.patch

cleanrock

2013-03-30 07:16

reporter   ~0010320

bibim, that patch link do not work for me in firefox, can you attach patch ?

bibim_

2013-03-30 09:21

reporter   ~0010321

use right click, save as

abma

2013-03-30 11:00

administrator   ~0010322

forwarded the protocol change: https://github.com/spring/LobbyProtocol/issues/13

Kloot

2013-03-31 17:17

developer   ~0010337

The tdf grammar is not strictly defined but should be kept as simple as possible. Allowing reserved tokens in section names is not a good idea.

Issue History

Date Modified Username Field Change
2013-03-29 11:16 cleanrock New Issue
2013-03-29 11:16 cleanrock File Added: setscripttags_message.txt
2013-03-29 11:17 cleanrock File Added: flobby_script.txt
2013-03-29 14:10 bibim_ Note Added: 0010311
2013-03-29 16:27 cleanrock Note Added: 0010313
2013-03-29 17:28 bibim_ Note Added: 0010314
2013-03-30 07:16 cleanrock Note Added: 0010320
2013-03-30 09:21 bibim_ Note Added: 0010321
2013-03-30 11:00 abma Note Added: 0010322
2013-03-31 17:17 Kloot Note Added: 0010337
2013-03-31 17:17 Kloot Status new => closed
2013-03-31 17:17 Kloot Assigned To => Kloot
2013-03-31 17:17 Kloot Resolution open => won't fix