Author Topic: Skill error  (Read 1996 times)

verarticus

  • Guest
Skill error
« on: 18 January 2010, 23:34:14 »
(I've returned from the dead for a bit lol...)

anyway i forgot some of the stuff i use to know (ill pick it back up again if i keep going)
but i keep getting an error at the end of the skill and i cant tell what i did wrong.

Code: [Select]
<skill>
<type value="attack"/>
<name value="holy_might"/>
<ep-cost value="200"/>
<speed value="75"/>
<anim-speed value="90"/>
<animation path="models/guard_attacking.g3d"/>
<sound enabled="true" start-time="0">
<sound-file path="sounds/guard_attack1.wav"/>
<sound-file path="sounds/guard_attack2.wav"/>
<sound-file path="sounds/guard_attack3.wav"/>
<sound-file path="sounds/guard_attack4.wav"/>
<sound-file path="sounds/guard_attack5.wav"/>
<sound-file path="sounds/guard_attack6.wav"/>
<sound-file path="sounds/guard_attack7.wav"/>
<sound-file path="sounds/guard_attack8.wav"/>
<sound-file path="sounds/guard_attack9.wav"/>
<sound-file path="sounds/guard_attack10.wav"/>
<sound-file path="sounds/guard_attack11.wav"/>
<sound-file path="sounds/guard_attack12.wav"/>
<sound-file path="sounds/guard_attack13.wav"/>
<sound-file path="sounds/guard_attack14.wav"/>
</sound>
<attack-strenght value="600"/>
<attack-var value="30"/>
<attack-range value="1"/>
<attack-type value="slashing"/>
<attack-fields>
<field value="land"/>
</attack-fields>
<attack-start-time value="0"/>
<projectile value="false"/>
<splash value="true"/>
<radius value="1"/>
<damage-all value="false"/>
<particle value="false"/>
</splash>
</skill>

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: Skill error
« Reply #1 on: 19 January 2010, 00:37:55 »
Open the XML in Firefox and if it can't read it, it will tell you what is wrong.
If it can read it then good, that means one of the paths to another file is wrong, or maybe something else.............

Any other info you can tell us to help us figure this out faster?

BTW, I don't think we've ever met, hello, and welcome back to the Glest Forums! ;D
Egypt Remastered!

Proof: Owner of glest@mail.com

verarticus

  • Guest
Re: Skill error
« Reply #2 on: 19 January 2010, 00:45:18 »
heh sorry should have said it a little more detailed :-X

anyway when i opened it in firefox it said error with the </splash>   (the second to last line)
and was pointing at the "s"

I'm remember something about splash + unit that didn't have splash = no but i thought that was the particle affect...

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: Skill error
« Reply #3 on: 19 January 2010, 00:49:47 »
Can you post the entire XML, then I can fix the problem.
Egypt Remastered!

Proof: Owner of glest@mail.com

verarticus

  • Guest
Re: Skill error
« Reply #4 on: 19 January 2010, 00:58:49 »
Code: [Select]
<?xml version="1.0" standalone="no"?>

<unit>
<parameters>
<size value="1"/>
<height value="2"/>
<max-hp value="2500"  regeneration="5"/>
<max-ep value="200" regeneration="5"/>
<armor value="40"/>
<armor-type value="metal"/>
<sight value="12"/>
<time value="70"/>
<multi-selection value="true"/>
<cellmap value="false"/>
<levels>
<level name="true" kills="50"/>
</levels>
<fields>
<field value="land"/>
</fields>
<properties/>
<light enabled="false"/>
<unit-requirements>
</unit-requirements>
<upgrade-requirements/>
<resource-requirements>
<resource name="gold" amount="500"/>
<resource name="Hero" amount="1"/>
</resource-requirements>
<resources-stored/>
<image path="images/guard.bmp"/>
<image-cancel path="../archer/images/tech_cancel.bmp"/>
<meeting-point value="false"/>
<selection-sounds enabled="true">
<sound path="sounds/guard_select1.wav"/>
<sound path="sounds/guard_select2.wav"/>
<sound path="sounds/guard_select3.wav"/>
<sound path="sounds/guard_select4.wav"/>
<sound path="sounds/guard_select5.wav"/>
</selection-sounds>
<command-sounds enabled="true">
<sound path="sounds/guard_ack1.wav"/>
<sound path="sounds/guard_ack2.wav"/>
<sound path="sounds/guard_ack3.wav"/>
<sound path="sounds/guard_ack4.wav"/>
<sound path="sounds/guard_ack5.wav"/>
<sound path="sounds/guard_ack6.wav"/>
<sound path="sounds/guard_ack7.wav"/>
</command-sounds>
</parameters>

<skills>
<skill>
<type value="stop"/>
<name value="stop_skill"/>
<ep-cost value="0"/>
<speed value="1000"/>
<anim-speed value="50"/>
<animation path="models/guard_standing.g3d"/>
<sound enabled="false"/>
</skill>

<skill>
<type value="move"/>
<name value="move_skill"/>
<ep-cost value="0"/>
<speed value="250"/>
<anim-speed value="250"/>
<animation path="models/guard_walking.g3d"/>
<sound enabled="false"/>
</skill>

<skill>
<type value="attack"/>
<name value="attack_skill"/>
<ep-cost value="0"/>
<speed value="150"/>
<anim-speed value="150"/>
<animation path="models/guard_attacking.g3d"/>
<sound enabled="true" start-time="0">
<sound-file path="sounds/guard_attack1.wav"/>
<sound-file path="sounds/guard_attack2.wav"/>
<sound-file path="sounds/guard_attack3.wav"/>
<sound-file path="sounds/guard_attack4.wav"/>
<sound-file path="sounds/guard_attack5.wav"/>
<sound-file path="sounds/guard_attack6.wav"/>
<sound-file path="sounds/guard_attack7.wav"/>
<sound-file path="sounds/guard_attack8.wav"/>
<sound-file path="sounds/guard_attack9.wav"/>
<sound-file path="sounds/guard_attack10.wav"/>
<sound-file path="sounds/guard_attack11.wav"/>
<sound-file path="sounds/guard_attack12.wav"/>
<sound-file path="sounds/guard_attack13.wav"/>
<sound-file path="sounds/guard_attack14.wav"/>
</sound>
<attack-strenght value="240"/>
<attack-var value="30"/>
<attack-range value="1"/>
<attack-type value="slashing"/>
<attack-fields>
<field value="land"/>
</attack-fields>
<attack-start-time value="0"/>
<projectile value="false"/>
<splash value="false"/>
</skill>

<skill>
<type value="attack"/>
<name value="holy_might"/>
<ep-cost value="200"/>
<speed value="75"/>
<anim-speed value="90"/>
<animation path="models/guard_attacking.g3d"/>
<sound enabled="true" start-time="0">
<sound-file path="sounds/guard_attack1.wav"/>
<sound-file path="sounds/guard_attack2.wav"/>
<sound-file path="sounds/guard_attack3.wav"/>
<sound-file path="sounds/guard_attack4.wav"/>
<sound-file path="sounds/guard_attack5.wav"/>
<sound-file path="sounds/guard_attack6.wav"/>
<sound-file path="sounds/guard_attack7.wav"/>
<sound-file path="sounds/guard_attack8.wav"/>
<sound-file path="sounds/guard_attack9.wav"/>
<sound-file path="sounds/guard_attack10.wav"/>
<sound-file path="sounds/guard_attack11.wav"/>
<sound-file path="sounds/guard_attack12.wav"/>
<sound-file path="sounds/guard_attack13.wav"/>
<sound-file path="sounds/guard_attack14.wav"/>
</sound>
<attack-strenght value="600"/>
<attack-var value="30"/>
<attack-range value="1"/>
<attack-type value="slashing"/>
<attack-fields>
<field value="land"/>
</attack-fields>
<attack-start-time value="0"/>
<projectile value="false"/>
<splash value="false"/>
<radius value="1"/>
<damage-all value="false"/>
<particle value="false"/>
</splash>
</skill>

<skill>
<type value="die"/>
<name value="die_skill"/>
<ep-cost value="0"/>
<speed value="60"/>
<anim-speed value="60"/>
<animation path="models/guard_dying.g3d"/>
<sound enabled="true" start-time="0">
<sound-file path="sounds/guard_die1.wav"/>
<sound-file path="sounds/guard_die2.wav"/>
<sound-file path="sounds/guard_die3.wav"/>
<sound-file path="sounds/guard_die4.wav"/>
</sound>
<fade value="false"/>
</skill>

<skill>
<type value="move"/>
<name value="charge_skill"/>
<ep-cost value="0"/>
<speed value="250"/>
<anim-speed value="250"/>
<animation path="models/guard_charging.g3d"/>
<sound enabled="false"/>
</skill>

</skills>

<commands>
<command>
<type value="stop"/>
<name value="stop"/>
<image path="../archer/images/tech_stop.bmp"/>
<unit-requirements/>
<upgrade-requirements/>
<stop-skill value="stop_skill"/>
</command>

<command>
<type value="move"/>
<name value="move"/>
<image path="../archer/images/tech_move.bmp"/>
<unit-requirements/>
<upgrade-requirements/>
<move-skill value="move_skill"/>
</command>

<command>
<type value="attack"/>
<name value="attack"/>
<image path="images/guard_attack.bmp"/>
<unit-requirements/>
<upgrade-requirements/>
<move-skill value="charge_skill"/>
<attack-skill value="attack_skill"/>
</command>

<command>
<type value="attack"/>
<name value="holy_might"/>
<image path="images/holy_might.bmp"/>
<unit-requirements/>
<upgrade-requirements/>
<move-skill value="charge_skill"/>
<attack-skill value="attack_skill"/>
</command>

<command>
<type value="attack_stopped"/>
<name value="hold_position"/>
<image path="../archer/images/tech_hold.bmp"/>
<unit-requirements/>
<upgrade-requirements>
<upgrade name="training_field"/>
</upgrade-requirements>
<stop-skill value="stop_skill"/>
<attack-skill value="attack_skill"/>
</command>
</commands>
</unit>

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: Skill error
« Reply #5 on: 19 January 2010, 01:13:32 »
Ok, I'll fix it.
I can tell you right off hand that any capital letters will cause the game to crash, and you have one in the 'Hero' resource.
Egypt Remastered!

Proof: Owner of glest@mail.com

verarticus

  • Guest
Re: Skill error
« Reply #6 on: 19 January 2010, 01:18:18 »
ah OK thanks
(I must have missed that one XD cause i did have capitals first but changed em back)

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: Skill error
« Reply #7 on: 19 January 2010, 01:23:10 »
Ok, I found the problem:

The '</splash>' is not needed, and all the other stuff in between the tags is not needed, because the first splash tag has a '/>' not a '>' at the end.
If you want the splash, simply change '<splash value="false"/>' to '<splash value="true">'.

Oh and remember to fix this:
Quote
I can tell you right off hand that any capital letters will cause the game to crash, and you have one in the 'Hero' resource.
Egypt Remastered!

Proof: Owner of glest@mail.com

verarticus

  • Guest
Re: Skill error
« Reply #8 on: 19 January 2010, 01:30:38 »
he he oops i wanted the splash XD
(changed it to check something)
ok thanks : )

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: Skill error
« Reply #9 on: 19 January 2010, 13:01:16 »
No problem.
Egypt Remastered!

Proof: Owner of glest@mail.com