Jump to content

Help in finding and understanding errors


Crock

Recommended Posts

Might be unrelated, but here is something to consider:

 

"Exception: Block with name 'snow' not found!"

 

Does this block exist in your blocks.xml:

 

<block id="9" name="snow">

<property name="Material" value="snow" />

<property name="Shape" value="Terrain" />

<property name="Mesh" value="terrain" />

<property name="Texture" value="6,6,6,6,6,6" />

<property name="DropScale" value="2" />

<property name="Map.Color" value="215,215,223" />

</block>

Link to comment
Share on other sites

2015-10-11T23:33:22 11.554 ERR Loading and parsing xml (End tag cannot appear in this state.  Line 615, position 3.)

2015-10-11T23:33:22 11.557 ERR Loading and parsing '[color="#00FFFF"]materials.xml[/color]' (Object reference not set to an instance of an object)
2015-10-11T23:33:22 11.557 ERR Loading of [color="#00FFFF"]materials[/color] aborted due to errors!
2015-10-11T23:33:22 11.559 ERR   at [color="#00FFFF"]Materials[/color]FromXml.CreateMaterials (.XmlFile _xmlFile) [0x00000] in <filename unknown>:0

 

materials.xml didn't load so blocks.xml didn't load because blocks are ascribed a material, which don't exist since the materials.xml did not load. My guess is that you don't have a materials.xml due to

2015-10-11T23:33:22 11.929 ERR Loading and parsing '[color="#FF8C00"]blocks[/color].xml' (Block with id=0  [color="#00FFFF"]references a not existing material 'air'[/color])
2015-10-11T23:33:22 11.929 ERR Loading of [color="#FF8C00"]blocks aborted[/color] due to errors!
2015-10-11T23:33:22 11.929 ERR   at BlocksFromXml.CreateBlocks (.XmlFile _xmlFile, Boolean _fillLookupTable) [0x00000] in <filename unknown>:0 

So it says air doesn't exist and air is the first material in the materials.xml.

Then items didn/t load due to the same

2015-10-11T23:33:22 11.992 ERR Loading and parsing [color="#FFA07A"]items xml [/color]file (Attribute 'material' 'wood' refers not exisiting [color="#00FFFF"]material[/color] in item '1'/  at ItemClassesFromXml.CreateItems (.XmlFile _xmlFile) [0x00000] in <filename unknown>:0 )
2015-10-11T23:33:22 11.993 ERR Loading of items aborted due to errors!
2015-10-11T23:33:22 11.993 ERR   at ItemClassesFromXml.CreateItems (.XmlFile _xmlFile) [0x00000] in <filename unknown>:0 

 

recipe don't load because items don't exist

2015-10-11T23:33:24 13.292 ERR Loading and parsing '[color="#FFD700"]recipes[/color].xml' (No [color="#FFA07A"]item[/color]/block with name '[color="#FFA07A"]porkCharred[/color]' existing)
2015-10-11T23:33:24 13.293 ERR Loading of recipes aborted due to errors!
2015-10-11T23:33:24 13.293 ERR   at RecipesFromXml.LoadRecipies (.XmlFile _xmlFile) [0x00000] in <filename unknown>:0 

loot doesn't load since block/items don't exist.

2015-10-11T23:33:24 13.301 ERR Loading and parsing '[color="#EE82EE"]loot[/color].xml' ([color="#FF8C00"]No block [/color]with name 'lootForest' found)
2015-10-11T23:33:24 13.301 ERR Loading of loot aborted due to errors!
2015-10-11T23:33:24 13.301 ERR   at LootFromXml.LoadLootContainers (.XmlFile _xmlFile) [0x00000] in <filename unknown>:0 

 

I'd start with that info.

 

Link your materials and blocks.xml?

 

 

 

 

Vote h0tr0d 2016 -- the immaterial has become...immaterial

Link to comment
Share on other sites

Does the mod have any extra materials? If so, and the materials.xml does go to line 615, then Stompyz may have something.

 

It could be the document wasn't closed correctly:

 

if the whole thing starts with <materials> and the end isn't </materials> and such.

 

Link your materials.xml please.

 

 

Vote h0tr0d 2016 -- my hand isn't big enough.

Link to comment
Share on other sites

The damage of 100,000 and range of 1000 is a bit extreme. It's probably too high. Try 1000 damage and 200 range.

 

Is the SilenceIsGolden book there? if so its just your damage/range values I would expect

 

Also an unrelated error in the BFG code.

 

<item id="911" name="BFG">

<property name="CustomIcon" value="nailgun" />

<property name="CustomIconTint" value="33cc33" />

<property name="Meshfile" value="Items/Tools/nailgunPrefab" />

<property name="Material" value="metal" />

<property name="HoldType" value="37" />

<property name="Stacknumber" value="1" />

<property name="RepairTools" value="repairKit" />

<property name="Degradation" value="500" param1="false" />

<property name="DegradationBreaksAfter" value="false" />

<property name="SoundJammed" value="Weapons/weapon_jam" />

<property name="Weight" value="33" />

<property class="Action0">

<!-- AttackAction -->

<property name="Class" value="Launcher" />

<property name="Delay" value="0.2" />

<property name="Range" value="200" />

<property name="Magazine_size" value="25" />

<property name="Magazine_items" value="BFGammo" />

<property name="Instantiate_on_load" value="false" />

<property name="Reload_time" value="2" />

<property name="Bullet_icon" value="uzi" />

<property name="Sound_start" value="Enemies/Acid_Puking_Hulk/hulkattack" /> />

<property name="Sound_repeat" value="" /><property name="Sound_end" value="" /><property name="Sound_empty" value="Weapons/weapon_empty" /><property name="Sound_reload" value="Weapons/Motorized/Nailgun/nailgun_reload" /><property name="DamageBonus.head" value="6" /><property name="DamageBonus.glass" value="25" /></property>

<property name="Group" value="Ammo/Weapons" />

<property class="Preview">

<property name="Zoom" value="14" />

<property name="Pos" value="0.1,-0.1" />

<property name="Rot" value="0,-45,0" />

</property>

</item>

 

And the ID for Justaxeme is too high, needs to be under 4095

Link to comment
Share on other sites

Does the mod have any extra materials? If so, and the materials.xml does go to line 615, then Stompyz may have something.

 

It could be the document wasn't closed correctly:

if the whole thing starts with <materials> and the end isn't </materials> and such.

You have:

 

</materials>

</materials>

 

at the end

 

whoops.

 

thank you .. now the game loads but .. now the adminTool will not spawn with the giveself command. This is what I really need in the game to clear out large areas. Can you see why it does not spawn?

 

Item id 901. That is your cap. If you want the others available in creative you have to make groups to go past 901, no? I suppose that's irrelevant.

 

Try giving yourself item id 901. Then if it works rearrange your items so the things you want to be able to give yourself are 901 or lower.

 

Vote h0tr0d 2016 -- I did it again

Link to comment
Share on other sites

  • 2 years later...

Hello All

 

Trying to make my own Modded Things. Sometimes it runs well, sometimes bad. Mostly i can correct it bymyself. Now last time i make changes.

 

Today i start the game ang got this Error.

 

2018-08-29T19:42:20 296.058 ERR Loading and parsing xml (Multiple document element was detected. Line 539, position 2.)

 

My Question is .. wich xml he wants from me ?

Link to comment
Share on other sites

Hello All

 

Trying to make my own Modded Things. Sometimes it runs well, sometimes bad. Mostly i can correct it bymyself. Now last time i make changes.

 

Today i start the game ang got this Error.

 

2018-08-29T19:42:20 296.058 ERR Loading and parsing xml (Multiple document element was detected. Line 539, position 2.)

 

My Question is .. wich xml he wants from me ?

 

Usually the one you changed last. That error means you have multiple root elements on an XML document and that isn't allowed.

 

This is ok:


<root>
<item1></item1>
<item2></item2>
</root>
[/Code]

 

 

This isn't:

[Code]
<item1></item1>
<item2></item2>
[/Code]

 

Nor this:

[Code]
<root>
<item1></item1>
<item2></item2>
</root>
<root>
<item3></item3>
</root>
[/Code]

 

All items have to be inside one root element

Link to comment
Share on other sites

Usually the one you changed last. That error means you have multiple root elements on an XML document and that isn't allowed.

 

This is ok:


<root>
<item1></item1>
<item2></item2>
</root>
[/Code]

 

 

This isn't:

[Code]
<item1></item1>
<item2></item2>
[/Code]

 

Nor this:

[Code]
<root>
<item1></item1>
<item2></item2>
</root>
<root>
<item3></item3>
</root>
[/Code]

 

All items have to be inside one root element

 

Ok, but i can't watch xml, when i don't know wich one. Loading Screen Sits by "Loading Block" . Have i look in Blocks or in Items ?

Link to comment
Share on other sites

Not sure what you mean. It will be the one you last edited. If the game is showing "Loading Blocks" then check that first. Try using an online xml checker to check each one to make sure it's syntactically ok or post your XML here and the weirdos/people here will usually help

 

Was a good idea with the checker, thx.

 

1.2018-08-29T19:42:20 296.058 ERR Loading and parsing xml (Multiple document element was detected. Line 539, position 2.)

2.Solved

3. was i typo in buff.xml on line 539 and an endtag in trader.xml. And i forgot to uncommented the other trader machine.

 

Thx For lead me the way.

 

Ps.: Sorry for the bad English.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...