Generated example CreatureClass

Generated example CreatureClass

Postby paul424 » 23 Jul 2013, 22:26

I just Generated example CreatureClass from fixed XSD which was hanging in here for a long time [ fixed version : http://www.2shared.com/file/uqwccN-V/CreatureDefinitionsSchema.html ] Maybe I should remove most of the attributes and make them elements ?

IT looks quite ugly :

{l Code}: {l Select All Code}
<?xml version="1.0" encoding="UTF-8"?>
<creature xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:noNamespaceSchemaLocation="file:/home/tom/Opendungeons/CreatureDefinitionsSchema.xsd">
    <stats class="qhN.R2ni90" bedname="TLqyHaWD.mZTJoTfW9aRB" bedDimX="-1874663753" bedDimY="-1885100961" move_speed="1.0"
         sight_radius="-819775377.152" dance_rate="0.5">
        <level_stats level="8" health="-1313183911.79" mana="-146480805.626" wager="-2065791755.829" dig_rate="0.0"/>
        <level_stats level="6" health="425580646.177" mana="-1147557528.744" wager="-1134487851.191" dig_rate="0.0"/>
        <attack type="spell">
            <stats level="5" damage="0.0" enabled="false"/>
        </attack>
        <attack type="melee">
            <stats level="8" damage="0.0" enabled="false"/>
        </attack>
        <job type="guard"/>
        <job type="crafter"/>
    </stats>
    <graphics mesh_name="DhN.9Bx">
        <scale xscale="1.0" yscale="1.0" zscale="1.0"/>
        <material name="u.0h-o516w" filename="ogXFtuZCg2hLYPUUvMB7Mcr4jVGW" type="normal_map">
            <normalmap filename="IZ_LSUfDupozuyM6zuHccYQfsHXaZ" space="object"/>
            <specularmap filename="WPcwdll9kiUGemFHJ7_6K"/>
        </material>
        <material name="NCZg" filename="CsodcRh" type="per_pixel_lighting">
            <normalmap filename="XEC-_h" space="object"/>
            <specularmap filename="m52"/>
        </material>
    </graphics>
    <soundlist>
        <sound filename="oL" animation="FBVegRVO" frame="680505598" volume="-900267595.561"/>
        <sound filename="TO0jp-QsSp2.NX7LfEP" animation="y5cfsW0f" frame="1969759044" volume="7925497.661"/>
    </soundlist>
    <scripts filename="fY"/>
</creature>
User avatar
paul424
OD Moderator
 
Posts: 660
Joined: 24 Jan 2012, 13:54

Re: Generated example CreatureClass

Postby domtron » 02 Aug 2013, 21:10

I made a post before but it got lost. -.-

I personally like using yaml when making configuration files. http://www.yaml.org/spec/1.2/spec.html

I had made a yaml version of the above xml code but it got lost and I don't really want to reproduce it(it probably wasn't very good anyway)
domtron
 
Posts: 101
Joined: 10 Jun 2013, 16:22

Re: Generated example CreatureClass

Postby paul424 » 22 Aug 2013, 18:56

what c might stand for in those variables' names : cHumans cCorpars cUndead cConstructs cDenizens cAltruism cOrder cPeace ?
/subset ?
Ahh from C++ sources I see it stands for coefficient .
User avatar
paul424
OD Moderator
 
Posts: 660
Joined: 24 Jan 2012, 13:54

Who is online

Users browsing this forum: No registered users and 1 guest