Jump to content

Help with modding


false_god123
 Share

Recommended Posts

4 minutes ago, false_god123 said:

It is loading up now just the "axeman" and something to do with the barracks, that's pretty much all what's in my mod folder

here is the error

<!DOCTYPE html>
<meta charset="utf-8">
<title>Pyrogenesis Log</title>
<style>body { background: #eee; color: black; font-family: sans-serif; } p { background: white; margin: 3px 0 3px 0; } .error { color: red; } .warning { color: blue; }</style>
<h2>0 A.D. (0.0.22) Main log (warnings and errors only)</h2>
<p class="error">ERROR: CXeromyces: Failed to parse XML file simulation/templates/structures/gaul_barracks.xml</p>
<p class="error">ERROR: Failed to load entity template 'structures/gaul_barracks'</p>

Also thanks for the links

Can you show us that barrack file ?

Link to comment
Share on other sites

Be careful where you get the files you base yours upon. Let's have a look at line 11 again:

yours: <SpawnEntityOnDeath>decay|rubble/rubble_stone_5x5</SpawnEntityOnDeath>

A22: <SpawnEntityOnDeath>rubble/rubble_stone_5x5</SpawnEntityOnDeath>

A23: <SpawnEntityOnDeath>decay|rubble/rubble_stone_5x5</SpawnEntityOnDeath>

The "decay|" part is problematic in A22. Remove that and see what errors you'll get then.

Link to comment
Share on other sites

i got a slightly different error while trying to spawn in the axeman in editor

<!DOCTYPE html>
<meta charset="utf-8">
<title>Pyrogenesis Log</title>
<style>body { background: #eee; color: black; font-family: sans-serif; } p { background: white; margin: 3px 0 3px 0; } .error { color: red; } .warning { color: blue; }</style>
<h2>0 A.D. (0.0.22) Main log (warnings and errors only)</h2>
<p class="error">ERROR: CCacheLoader failed to find archived or source file for: "art/actors/units/gaul/champion_axeman.xml"</p>
<p class="error">ERROR: CObjectManager::FindObjectBase(): Cannot find object 'units/gaul/champion_axeman.xml'</p>
 

Link to comment
Share on other sites

Oh, that's because there is a mismatch between the actor called in the template (units/gaul/champion_axeman.xml) and the actual location of the actor file (units/gaul/gaul_champion_axeman.xml). So either rename the actor by removing `gaul_` or insert `gaul_` in the template.

Try again with this:

testmod.zip

Which should get you:

Screenshot from 2018-01-26 14-31-12.png

Edited by Nescio
ce
  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...