Opened 10 years ago

Last modified 10 years ago

#26 accepted defect

XMLStarlet 1.0 does not support inplace editing

Reported by: OPK-Desperado Owned by: Christian Illy
Priority: major Component: Scripts
Keywords: Cc:

Description

If i make a new instance, it doesent save the config.xml correctly. There is only one line: </ServerSettings>

After finished the instance-process, it shows me this

Saving
<?xml version="1.0"?>
<ServerSettings>

<property name="AirDropFrequency" value="24"></property>

</ServerSettings>
<?xml version="1.0"?>
<ServerSettings>

<property name="BlockDurabilityModifier" value="100"></property>

</ServerSettings>
<?xml version="1.0"?>
<ServerSettings>

<property name="BuildCreate" value="true"></property>

</ServerSettings>
...
Done

Ubuntu 10.04.4 LTS

Attachments (1)

sdtd-server.png (24.0 KB ) - added by OPK-Desperado 10 years ago.

Download all attachments as: .zip

Change History (3)

by OPK-Desperado, 10 years ago

Attachment: sdtd-server.png added

comment:1 by Christian Illy, 10 years ago

Owner: set to Christian Illy
Status: newaccepted
Summary: Malformed XMLXMLStarlet 1.0 does not support inplace editing

Looks like Ubuntu 10.04 ships with a to old version of XMLStarlet (1.0 instead of >1.3 in all newer releases) which does not handle the "-L" (edit inplace) parameter.

Probably the easiest solution would be if you could install a newer XMLstarlet version (e.g. you could try if this one runs on your system: http://packages.ubuntu.com/precise/xmlstarlet ). Alternatively you could copy the official template from the engine folder and edit it manually. Though you will also run into problems with the extended player-logging (i.e. the player.xml won't work).

Adapting the scripts to handle this special case is out of scope at least for a few days.

comment:2 by Christian Illy, 10 years ago

Component: Scripts
Note: See TracTickets for help on using tickets.