Stan` Posted January 26, 2018 Report Share Posted January 26, 2018 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 ? Quote Link to comment Share on other sites More sharing options...
false_god123 Posted January 26, 2018 Author Report Share Posted January 26, 2018 here it is gaul_barracks.xml Quote Link to comment Share on other sites More sharing options...
Nescio Posted January 26, 2018 Report Share Posted January 26, 2018 Are you using A22 (the latest stable release) or A23 (the svn development version)? Line 11 could be the problem, cf. A23's https://trac.wildfiregames.com/browser/ps/trunk/binaries/data/mods/public/simulation/templates/structures/gaul_barracks.xml with A22's https://github.com/0ad/0ad/blob/be68a3098fb0158772cd363207a29d97e3c6d364/binaries/data/mods/public/simulation/templates/structures/gaul_barracks.xml . Quote Link to comment Share on other sites More sharing options...
false_god123 Posted January 26, 2018 Author Report Share Posted January 26, 2018 I am using A22 Quote Link to comment Share on other sites More sharing options...
Nescio Posted January 26, 2018 Report Share Posted January 26, 2018 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. Quote Link to comment Share on other sites More sharing options...
false_god123 Posted January 26, 2018 Author Report Share Posted January 26, 2018 I am still getting the same error after i remove the "decay|" although i have been following this tutorial exactly https://trac.wildfiregames.com/wiki/CreatingNewUnits but it mentions "I'm using the SVN version in this tutorial." And like you said i'm using A22 build, So is there a basic tutorial for A22 build? Quote Link to comment Share on other sites More sharing options...
Nescio Posted January 26, 2018 Report Share Posted January 26, 2018 Then apparently something else is wrong as well. Could you post your mod somewhere? E.g. a zip attachment or a link to a github repository? Quote Link to comment Share on other sites More sharing options...
false_god123 Posted January 26, 2018 Author Report Share Posted January 26, 2018 testmod.rar Quote Link to comment Share on other sites More sharing options...
Nescio Posted January 26, 2018 Report Share Posted January 26, 2018 Try using this in your local mods folder: testmod.zip Quote Link to comment Share on other sites More sharing options...
false_god123 Posted January 26, 2018 Author Report Share Posted January 26, 2018 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> Quote Link to comment Share on other sites More sharing options...
Nescio Posted January 26, 2018 Report Share Posted January 26, 2018 (edited) 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: Edited January 26, 2018 by Nescio ce 2 Quote Link to comment Share on other sites More sharing options...
false_god123 Posted January 26, 2018 Author Report Share Posted January 26, 2018 Yes that has done it thanks guys! 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.