Planetbase

Planetbase

Planetbase Workshop
Here you can download translations or challenges for Planetbase. Just subscribe to the desired item and it will appear in the game.
Learn More
donnietr 2 20 May, 2016 @ 9:45am
xml error
I took out the requires field. Noticed that the save game file was on differant line so i put it there. using the starport_atlantis template. so now i get:
XML Parse error loading challenge: death resurection.
Multiple document element was detected. Line 5, position 3
I am at a loss here of course. what do i do for this one?
< >
Showing 1-15 of 29 comments
post your xml file here
donnietr 2 20 May, 2016 @ 10:02am 
<?xml version="1.0" encoding="utf_8"?>
<challenge group_id="donnietr" order="1" difficulty="3"/>

<!-- This challenge is based on the class D planet, and it starts with savegame -->
<starting_location planet_class="D" latitude="60" longitude="66" savegame="true"/>

<!-- Define the Colony Ship crew -->
<starting_specializations>
<starting_specialization type="Worker" amount="4"/>
<starting_specialization type="Engineer" amount="5"/>
<starting_specialization type="Biologist" amount="3"/>
<starting_specialization type="Medic" amount="2"/>
<starting_specialization type="Driller" amount="4"/>
<starting_specialization type="Carrier" amount="3"/>
</starting_specializations>


<!-- Initial resources. Note that the player starts with 6 semiconductors -->
<starting_resources>
<starting_resource type="Semiconductors" amount="6"/>
</starting_resources>

<!-- Modifications to the usual gameplay rules of the game -->
<gameplay_modifiers>
<!-- Disable all ships -->
<gameplay_modifier type="DisableColonistShips"/>
<gameplay_modifier type="DisableVisitorShips"/>


<!-- Allow the player to build any structures -->
<gameplay_modifier type="DisableStructureRequirements"/>

<!-- Give the player driller bots from the start -->
<gameplay_modifier type="UnlockTech" param="DrillerBot"/>

<!-- Make meteors very frequent -->
<gameplay_modifier type="MeteorRisk" param="High"/>
<gameplay_modifier type="SandstormRisk" param="Low"/>


<!-- Disable structures that are not relevant for this challenge -->


<!-- Disable structures that are not relevant for this challenge -->

</gameplay_modifiers>

<!-- Parameters to tweak terrain and create a variation of the original planet -->
<terrain_modifiers>
<terrain_modifier type="HeightMultiplier" value="1.2"/>
<terrain_modifier type="HeightOffset" value="0.025"/>
<terrain_modifier type="CraterDensity" value="0.5"/>
<terrain_modifier type="BackdropScale" value="1,0.5,1"/>
</terrain_modifiers>

<!-- Parameters to tweak environment and create a variation of the original planet -->
<environment_modifiers>
<environment_modifier type="FogIntensityDay" value="0.002"/>
<environment_modifier type="FogIntensityNight" value="0.002"/>
<environment_modifier type="FogIntensityTwilight" value="0.004"/>
</environment_modifiers>

<!-- Objectives for the challenge -->
<objectives>
<objective type="BuildStructures" param="AntiMeteorLaser" value="5"/>
<objective type="BuildComponents" param="TelescopeConsole" value="3"/>
<objective type="SurviveTime" value="20"/>
</objectives>

</challenge>
donnietr 2 20 May, 2016 @ 10:02am 
also i just found out about the en_language file. the strings go where?
donnietr 2 20 May, 2016 @ 10:03am 
<?xml version="1.0" encoding="utf-8"?>
<strings>

<string name="test_group">Donnietr</string>
<string name="test_challenge_name">Death Resurection</string>
<string name="test_challenge_base_name">HelpMe</string>
<string name="test_challenge_description">Rebuild the dead base</string>
<string name="test_challenge_objective">Build 4 anti meteor lasers and 3 consoles</string>
<string name="test_challenge_done">All objectives completed</string>

</strings>
donnietr 2 20 May, 2016 @ 10:03am 
thanks
ottoVonRibbentrop 1 20 May, 2016 @ 10:05am 
you should not close the challenge tag at the beginning

replace

<challenge group_id="donnietr" order="1" difficulty="3"/>

with

<challenge group_id="donnietr" order="1" difficulty="3">
ottoVonRibbentrop 1 20 May, 2016 @ 10:07am 
<?xml version="1.0" encoding="utf-8"?>
<strings>

<string name="donnietr">donnietr</string>
<string name="death_resurrection_name">Death Resurection</string>
<string name="death_resurrection_base_name">HelpMe</string>
<string name="death_resurrection_description">Rebuild the dead base</string>
<string name="death_resurrection_objective">Build 4 anti meteor lasers and 3 consoles</string>
<string name="death_resurrection_done">All objectives completed</string>

</strings>
ottoVonRibbentrop 1 20 May, 2016 @ 10:09am 
also, do you have a savegame? if not you have to replace

savegame="true"

with

savegame="false"
donnietr 2 20 May, 2016 @ 10:23am 
yes i h ave a save game but where do i place it? I had it on top line but would say you had to complete it first. the second time i put it above the "True" line and got this error.
ottoVonRibbentrop 1 20 May, 2016 @ 10:26am 
start without a savegame (put false) and when all is working you can try to start with a save game

how did you named your files? this is really important
ottoVonRibbentrop 1 20 May, 2016 @ 10:27am 
without a savegame you will need to specify all the resources you want to start with, for example


<starting_resources>
<starting_resource type="Meal" amount="30"/>
<starting_resource type="Metal" amount="80"/>
<starting_resource type="Bioplastic" amount="80"/>
<starting_resource type="Spares" amount="20"/>
<starting_resource type="MedicalSupplies" amount="10"/>
<starting_resource type="Semiconductors" amount="10"/>
</starting_resources>
donnietr 2 20 May, 2016 @ 10:30am 
i replaced where i had put it originally. I will repost it here for you.
<?xml version="1.0" encoding="utf_8"?>
<challenge group_id="donnietr" order="1" difficulty="3">

<!-- This challenge is based on the class D planet, and it starts with savegame (savegame must be named challenge_death_resurection_save.xml)-->
<starting_location planet_class="D" latitude="60" longitude="66" savegame="true"/>

<!-- Define the Colony Ship crew -->
<starting_specializations>
<starting_specialization type="Worker" amount="4"/>
<starting_specialization type="Engineer" amount="5"/>
<starting_specialization type="Biologist" amount="3"/>
<starting_specialization type="Medic" amount="2"/>
<starting_specialization type="Driller" amount="4"/>
<starting_specialization type="Carrier" amount="3"/>
</starting_specializations>


<!-- Initial resources. Note that the player starts with 6 semiconductors -->
<starting_resources>
<starting_resource type="Semiconductors" amount="6"/>
</starting_resources>

<!-- Modifications to the usual gameplay rules of the game -->
<gameplay_modifiers>
<!-- Disable all ships -->
<gameplay_modifier type="DisableColonistShips"/>
<gameplay_modifier type="DisableVisitorShips"/>


<!-- Allow the player to build any structures -->
<gameplay_modifier type="DisableStructureRequirements"/>

<!-- Give the player driller bots from the start -->
<gameplay_modifier type="UnlockTech" param="DrillerBot"/>

<!-- Make meteors very frequent -->
<gameplay_modifier type="MeteorRisk" param="High"/>
<gameplay_modifier type="SandstormRisk" param="Low"/>


<!-- Disable structures that are not relevant for this challenge -->


<!-- Disable structures that are not relevant for this challenge -->

</gameplay_modifiers>

<!-- Parameters to tweak terrain and create a variation of the original planet -->
<terrain_modifiers>
<terrain_modifier type="HeightMultiplier" value="1.2"/>
<terrain_modifier type="HeightOffset" value="0.025"/>
<terrain_modifier type="CraterDensity" value="0.5"/>
<terrain_modifier type="BackdropScale" value="1,0.5,1"/>
</terrain_modifiers>

<!-- Parameters to tweak environment and create a variation of the original planet -->
<environment_modifiers>
<environment_modifier type="FogIntensityDay" value="0.002"/>
<environment_modifier type="FogIntensityNight" value="0.002"/>
<environment_modifier type="FogIntensityTwilight" value="0.004"/>
</environment_modifiers>

<!-- Objectives for the challenge -->
<objectives>
<objective type="BuildStructures" param="AntiMeteorLaser" value="5"/>
<objective type="BuildComponents" param="TelescopeConsole" value="3"/>
<objective type="SurviveTime" value="20"/>
</objectives>

</challenge>
If you look at the top i took this line from the starport_atlantis template.
ottoVonRibbentrop 1 20 May, 2016 @ 10:34am 
i did not tried with savegame yet, so I would try to start without savegame, name your files

challenge_death_resurrection.xml
en_death_resurrection.xml
Last edited by ottoVonRibbentrop; 20 May, 2016 @ 10:36am
donnietr 2 20 May, 2016 @ 10:48am 
I got it to load! But the extra people arent there. it was supposed to laod new people and see the base die. They would save the base but not the people. it shows the challenge in brackets but just death_resurection_
ottoVonRibbentrop 1 20 May, 2016 @ 10:53am 
I put resurrection (with double r) so just make sure, if you want with 1 R that you have the same in all the file and the filename as well

the people you have should be
<starting_specializations>
<starting_specialization type="Worker" amount="4"/>
<starting_specialization type="Engineer" amount="5"/>
<starting_specialization type="Biologist" amount="3"/>
<starting_specialization type="Medic" amount="2"/>
<starting_specialization type="Driller" amount="4"/>
<starting_specialization type="Carrier" amount="3"/>
</starting_specializations>

then if you create a save file you will have to remove this entries, since they will be useless, I think it will use the amount you had on the save file
the same for the resources
< >
Showing 1-15 of 29 comments
Per page: 1530 50