Author Topic: BUG G3dviewer v1.3.6,linux,It Don't load particlexml if it is in an extra folder  (Read 708 times)

titi_son

  • Draco Rider
  • *****
  • Posts: 283
  • titi_son
    • View Profile
The G3d viewer doesn't load the particlexml if it is in an extra folder :
IN MEGAGLEST THE PARTICLES WORK!!!!

The particle.bmp is placed under unit/images/particle.bmp

Unit xml (only the skill):
Code: [Select]
<skill>
<type value="harvest"/>
<name value="harvest_skill"/>
<ep-cost value="0"/>
<speed value="200"/>
<anim-speed value="0"/>
<animation path="models/unit.g3d"/>
<particles value="true">

<particle-file path="particle/particles.xml"/>

</particles>

<sound enabled="false" start-time="0">
<sound-file path="sounds/initiate_harvest1.wav"/>
<sound-file path="sounds/initiate_harvest2.wav"/>
<sound-file path="sounds/initiate_harvest3.wav"/>
<sound-file path="sounds/initiate_harvest4.wav"/>
</sound>
</skill>

Particle xml (placed under /unit/particle/particles.xml):
Code: [Select]
<?xml version="1.0" standalone="yes"?>

<unit-particle-system>

    <texture value="true" path="images/particle.bmp" luminance="true"/>

<mode value="normal"/>

<primitive value="quad"/>

<offset x="0" y="-4.0" z="1"/>

<direction x="0" y="1.0" z="-0.4"/>

<color red="0.0" green="0.9" blue="0.1" alpha="1.0" />

<color-no-energy red="0.0" green="0.4" blue="0.0" alpha="1.0" />

    <radius value="0.3" />

    <size value="1" />

    <size-no-energy value="0" />

    <speed value="5" />

<gravity value="0.1"/>

    <emission-rate value="4" />

    <energy-max value="50" />

    <energy-var value="0" />

    <fixed value="false" />

    <relative value="true" />

    <teamcolorNoEnergy value="false" />

    <teamcolorEnergy value="false" />

<!--trajectory type="spiral">

<speed value="14.0"/>

<scale value="1"/>

<frequency value="0.5"/>

</trajectory-->

</unit-particle-system>

I won't say what i am working on while i found out this ...
My first Tilseset: SPRING :) (included in Megaglest )

Secret Hint: To play online join the IRC #megaglest-lobby on freenode which is the lobby chat ingame. So you can chat with or wait for people in the lobby without running megaglest all the time.

 

anything