hi
I like this game very much!
but it would be very cool, if I could add new weapons and water-types.
I hope this will be added in the future.
I like this game very much!
but it would be very cool, if I could add new weapons and water-types.
I hope this will be added in the future.
New weapons is unlikely as you have no easy way to define their behaviour. I know people did change the images though.
New water is possible, however long:
From now on, I don't know if it works (I'm pretty sure it won't work in network games, unless the other player has all of the files you are creating or modifying) and have no time to validate this:
As I said, no guarantee.
New water is possible, however long:
- Check http://www.wormux.org/phpboost/wiki/map-creation to learn how to create a custom map
- Check in the config file the
<water>
tag; the documentation above says which types are allowed.
From now on, I don't know if it works (I'm pretty sure it won't work in network games, unless the other player has all of the files you are creating or modifying) and have no time to validate this:
- Add in data/water the new water type folder, let's say slime, with:
- A 1x22 png file for the water texture, named slime.png
- An image of some size around 9x9, named slime_drop.png (the 'skin' of the drops projected when something falls into the slime)
- In data/graphism.xml, there's a section called
<section name="water_colors">
You must add there such information as:
<color name="slime" r="60" g="0" b="0" a="224" />
with r,g,b the values of the RGB components - In the new map you created you should be able to specify the new water type "slime".
As I said, no guarantee.
____________________
Whenever reporting a problem, please report the following information:
Whenever reporting a problem, please report the following information:
- Environment: Windows (XP/2000/Vista/Seven/...), Linux (Ubuntu Karmic/Mandriva/...), ...
- Context of the game: network/local game, normal/blitz mode, what you were doing, ...
- Frequency and reproducibility: crashes after 5 minutes of play, only after some action ...
so, I tested it now:
I first looked into the water-folder. there is a folder called wine!
so I tried to use wine, but it dindn't worked.
then I looked into the graphism.xml and saw this:
<section name="water_colors">
<color name="wine" r="60" g="0" b="0" a="224" />
<color name="water" r="0" g="109" b="193" a="127" />
<color name="lava" r="255" g="148" b="0" a="224" />
<color name="radioactive" r="170" g="212" b="0" a="224" />
<color name="dirtywater" r="67" g="107" b="21" a="64" />
<color name="chocolate" r="30" g="18" b="2" a="255" />
</section>
and this:
<!-- Water -->
<surface name="water" file="water/water/water.png" />
<surface name="water_bottom" file="water/water/water_bottom.png" />
<surface name="lava" file="water/lava/lava.png" />
<surface name="lava_bottom" file="water/lava/lava_bottom.png" />
<surface name="radioactive" file="water/radioactive/radioactive.png" />
<surface name="radioactive_bottom" file="water/radioactive/radioactive_bottom.png" />
<surface name="dirtywater" file="water/dirtywater/dirtywater.png" />
<surface name="dirtywater_bottom" file="water/dirtywater/dirtywater_bottom.png" />
<surface name="chocolate" file="water/chocolate/chocolate.png" />
<surface name="chocolate_bottom" file="water/chocolate/chocolate_bottom.png" />
</section>
wine wine was already there, but only this:
<color name="wine" r="60" g="0" b="0" a="224" />
so I added this:
<surface name="wine" file="water/wine/wine.png" />
<surface name="wine_bottom" file="water/wine/wine_bottom.png" />
and it worked!!!
now I can use wine in my maps.
but there is one strange thing:
in the water-folders are only the
(for example
lava.png and lava_drop.png, but no lava_bottom.png like I saw in the XML.
what is this not-existing *_bottom.png for?
edit:
the drop is wrong. it uses the water drop...
Edit by aligator On 07/01/11 at 18h01
I first looked into the water-folder. there is a folder called wine!
so I tried to use wine, but it dindn't worked.
then I looked into the graphism.xml and saw this:
<section name="water_colors">
<color name="wine" r="60" g="0" b="0" a="224" />
<color name="water" r="0" g="109" b="193" a="127" />
<color name="lava" r="255" g="148" b="0" a="224" />
<color name="radioactive" r="170" g="212" b="0" a="224" />
<color name="dirtywater" r="67" g="107" b="21" a="64" />
<color name="chocolate" r="30" g="18" b="2" a="255" />
</section>
and this:
<!-- Water -->
<surface name="water" file="water/water/water.png" />
<surface name="water_bottom" file="water/water/water_bottom.png" />
<surface name="lava" file="water/lava/lava.png" />
<surface name="lava_bottom" file="water/lava/lava_bottom.png" />
<surface name="radioactive" file="water/radioactive/radioactive.png" />
<surface name="radioactive_bottom" file="water/radioactive/radioactive_bottom.png" />
<surface name="dirtywater" file="water/dirtywater/dirtywater.png" />
<surface name="dirtywater_bottom" file="water/dirtywater/dirtywater_bottom.png" />
<surface name="chocolate" file="water/chocolate/chocolate.png" />
<surface name="chocolate_bottom" file="water/chocolate/chocolate_bottom.png" />
</section>
wine wine was already there, but only this:
<color name="wine" r="60" g="0" b="0" a="224" />
so I added this:
<surface name="wine" file="water/wine/wine.png" />
<surface name="wine_bottom" file="water/wine/wine_bottom.png" />
and it worked!!!
now I can use wine in my maps.
but there is one strange thing:
in the water-folders are only the
(for example

lava.png and lava_drop.png, but no lava_bottom.png like I saw in the XML.
what is this not-existing *_bottom.png for?
edit:
the drop is wrong. it uses the water drop...
Edit by aligator On 07/01/11 at 18h01
The file <type>_bottom.png was loaded as a texture, but had always consisted in a solid color. It is no longer loaded, and should be removed.
The drops are strangely defined in weapons.xml, like this:
<sprite name="water_drop">
<image file="water/water/water_drop.png" />
</sprite>
The drops are strangely defined in weapons.xml, like this:
<sprite name="water_drop">
<image file="water/water/water_drop.png" />
</sprite>
____________________
Whenever reporting a problem, please report the following information:
Whenever reporting a problem, please report the following information:
- Environment: Windows (XP/2000/Vista/Seven/...), Linux (Ubuntu Karmic/Mandriva/...), ...
- Context of the game: network/local game, normal/blitz mode, what you were doing, ...
- Frequency and reproducibility: crashes after 5 minutes of play, only after some action ...
ok, but when I add a new entry like this:
<sprite name="wine_drop">
<image file="water/wine/wine_drop.png" />
</sprite>
it doesn't work.
this is bad....
<sprite name="wine_drop">
<image file="water/wine/wine_drop.png" />
</sprite>
it doesn't work.
this is bad....
1 User online :: 0 Administrator, 0 Moderator, 0 Member and 1 Visitor
User online: No member online
User online: No member online
Answer
You aren't allowed to write in this category
Log in
Sign up







aligator 