Main Menu
Search
EnglishUnited Kingdom

wkTerrain

Started by xKoweKx, June 20, 2016, 11:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xKoweKx

this simple wormkit module allows you to use custom terrains without replacing the original ones
usage: put new terrain folder in Data/Level (for example: Domestic or Dino from WWP)

note: terrain lists and files are NOT synchronized in online multiplayer games! if you want to play online with your friends, ensure that you have the exact same terrains installed.

tested on steam 3.7.2.1, probably works on cd version too.
edit: updated to newer version - you can use now up to 127 terrains total

download: wkTerrain.dll
source code: dllmain.cpp

examples:
- dinos from WWP
- domestic from WWP

j0e

This is really awesome. Looking forward to trying it. Can you play online with custom terrain without syncing files if you, as host, right click to convert the random map to an image?

XanKriegor

Sounds interesting.

Joe, image is image, no other files needed.

raffie

Nice as a concept, but really only becomes useful when it's usable online.

SiD

Nice work!

If I generate a random map (without going into the map editor), can the custom terrains still be chosen? or must they always be selected manually?

Some sort of lobby notification could be good. e.g. wkTerrain: this server is using custom terrain 'Dinos'

xKoweKx

I've updated the module to fix a minor bug. Now you can use up to 127 terrains.

SiD, custom terrains must be selected manually in terrain editor
lobby notifications and file synchronization are planned to be released as bigger module in the future. this module is just a simple extract from my old mod I did back in november.

h3oCharles

#6
Can you provide the Dinos and Domestic themes for us as an example/template?

EDIT1: Also, it would be nice to get a theme compiler, just so sharing and using these themes wouldn't a problem.

xKoweKx

TheMadCharles, unfortunately I am not allowed to share those files, as they are copyrighted material. Someone would have to ask Team17 for their permission to make those files public.
You can use http://worms2d.info/WA_directory_editor to create new terrains based on existing ones. Make sure to use the same palette as the original files. SiD has already created a Tetris themed terrain.

As maintaining up to date list of terrains is bothersome, I would suggest to create a new category of files on TUS and create a simple xml/json list of terrain names + direct urls to files. A simple update to the module/separate program would query the list on regular basis and download new terrains.

h3oCharles

Quote from: xKoweKx on June 21, 2016, 10:10 AM
SiD has already created a Tetris themed terrain.

Where is it?


Triad

#10
WA has function to convert bit maps to png. Can we create a custom terrain map, convert it to png and use it online?

Either way, this is an awesome module and I think it should be an official feature on next WA update. You know maps and schemes are extractable from replays. I think same thing should be for custom terrains.



SiD

#11
I've attached my Tetris theme for anyone wanting to try it.
Unzip and place Tetris folder in Worms Armageddon\Data\Level
xKoweKx's wkterrain.dll needs to be in your Worms folder.

and yeh Triad, you can convert to png in map editor with no problems (But of course you won't see my non gradient background, and idiotic wind debris)

Mega`Adnan

I like it! 8)
Well the Tetris background is a little bit higher and falling tetris is below the clouds, but still good.  :-*
Keep it up!



Quote from: XanKriegor on November 18, 2015, 03:21 PMAdnan, you are Mega, not Micro and not even faint  :D So fight till the end please.

StepS

Great work. The only thing I found strange though was that it opens the WA.exe file to get the version. You could instead get the needed data from the data section of the already loaded executable module. (And, of course, it should first check the version via GetFileVersionInfo - I have some wrappers for that ready, if needed). I might make some adjustments to the module soon, if I find the opportunity.
Added to the WormKit page; if it needs a separate page I can create it.
Dec 30 2013 23:59:44 <StepS> windowed mode isn't the only thing you need about frontend
Dec 30 2013 23:59:49 <StepS> you need it to be actually bigger
Dec 31 2013 00:00:13 <StepS> it actually is very small on my 15-inch full HD screen
Dec 31 2013 00:00:25 <StepS> while running at 640x480 or stretched mode makes it fuzzy
Dec 31 2013 00:00:44 <StepS> this problem has been around since the Worms Armageddon's release and no one has even tried to beat it
[...]

SiD

After a fresh install of Windows 10, this module seems to be causing my game to crash when loading a custom terrain.
Error log:
wa caused a Microsoft C++ Exception (0xe06d7363)
in module KERNELBASE.dll at 0023:76a3dad8.
"Land data read error"
Exception parameters: 19930520 00196384 00654670
Version 3.7.2.1