[WF-General] Help with a test implementation of mining
David K
dakelk at gta.igs.net
Mon Apr 16 10:27:23 PDT 2007
Hi Everone:
I'm working with the Ubuntu Cyphesis setup. What I wanted to do was
create an iron ore node that
can be mined for iron ore. It is almost complete - the node and ore
both appear in game. My problem
is that I cannot get the Mine.py file to work. (The closest was an
error message printed by Cyphesis.)
I've had to completely delete my Ubuntu image twice now and
reinstall as Ember crashes whenever
it connects to my server.
Could someone show me a script that would create an iron_ore object
in the world when a pick
axe is used on it and leave the iron_ore_node intact? I've gone as far
as I can and need some help
now. Here are the relevant data files/objects:
_Added to .xml_:
<map>
<map name="attributes">
<map name="mass">
<float name="default">3000</float>
<string name="visibility">public<
/string>
</map>
<map name="maxmass">
<float name="default">5000</float>
<string name="visibility">public</string>
</map>
</map>
<string name="id">ore_node</string>
<string name="objtype">class</string>
<list name="parents">
<string>thing</string>
</list>
</map>
<map>
<map name="attributes">
<map name="mass">
<float name="default">1</float>
<string name="visibility">public</string>
</map>
</map>
<string name="id">iron ore</string>
<string name="objtype">class</string>
<list name="parents">
<string>thing</string>
</list>
</map>
<map>
<map name="attributes">
</map>
<string name="id">mining</string>
<string name="objtype">class</string>
<list name="parents">
<string>task</string>
</list>
<map name="activation">
<string name="operation">mine</string>
<string name="tool">pickaxe</string>
<string name="target">ore_node</string>
</map>
<map name="script">
<string name="language">python</string>
<string name="name">world.tasks.Mine</string>
</map>
</map>
_*modeldefs*_:
<models>
<model name="iron_ore" usescaleof="all" showcontained="true">
<translate x="0.000000" y="0.000000" z="0.000000" />
<rotation x="1.000000" y="0.000000" z="0.000000"
degrees="0.000000" />
<submodels>
<submodel mesh="3d_objects/environment
/ground/models/rounded_heap/rounded_heap.mesh">
<parts>
<part name="main" show="true">
<subentities>
<subentity index="0"
material="/global/building_primitives/rough_stone/floor_" />
</subentities>
</part>
</parts>
</submodel>
</submodels>
<actions />
</model>
</models>
<models>
<model name="ore_node" usescaleof="width" showcontained="true">
<translate x="0.000000" y="0.000000" z="0.000000" />
<rotation x="1.000000" y="0.000000" z="0.000000"
degrees="0.000000" />
<submodels>
<submodel
mesh="3d_objects/environment/boulder/models/mossy_boulders/mossy_bouldersC.mesh">
<parts>
<part name="main" show="true">
<subentities>
<subentity index="0"
material="/global/environment/ground/stone/weathered_granite" />
</subentities>
</part>
</parts>
</submodel>
</submodels>
<actions />
</model>
</models>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.worldforge.org/pipermail/general/attachments/20070416/c0a6b1a1/attachment.html
More information about the General
mailing list