A new WormKit module - wkRandomMap [Archive] - Team17 Forum

PDA

View Full Version : A new WormKit module - wkRandomMap

Shage
19 Aug 2008, 02:04
I want to post here my first module for WormKit - wkRandomMap.
It allows you to increase your playing map list up to infinity.
You click the mouse - and you get a new random map from the wmdb server. You may set up some parameters of the arriving map - as on WMDB: map type (wxw, BnG) and features (e.g. "good graphics")
Here you can find: The wormkit module, the small amount of pre-installed map types and the readme, where you can see how to create your own.
Installing: Extract the archive to your worms:armageddon folder
Using: Find a new folder "_Random maps_" in your saved levels directory and load any map from it.
This is a beta so it may have some glitches.
The module could be found in the attachment.
I wanna read your comments ;)

Koen-ftw
19 Aug 2008, 14:42
Haha, this is neat. And it doesn't break the whole game which is a big plus for me! :D

Gnork
19 Aug 2008, 15:14
tried it, nice idea. suggestions: show somewhere which map is being downloaded and the size of it. It looks kinda sluggish when the game stalls for a little while to get the map without any message. If a large map is downloaded from a slow connection, this could confuse people.

Shage
19 Aug 2008, 15:43
Hmmm, all status of the map downloading must be dislayed on the screen. If not - something goes wrong, but i cant say what exactly, since everything is perfect on my comp and some others who tested it.
P.S. it was the most difficult part of the module - to display something

Shage
20 Aug 2008, 11:42
you haven't installed the module properly
Look inside the archive. You will find the _Random Map_ folder in it: User\SavedLevels\_Random Map_

[UFP]Ghost
20 Aug 2008, 12:32
:eek:
I can't find the _RANDOM_MAP_ folder in the list
both on xp and vista, virtual or real pc, also when only this module is loaded by wormkit
I assumed that he meant to create one...

eddy2000
20 Aug 2008, 12:51
i have set one url with many maps http://wmdb.org/maps
but i can see only few map in random maps folder.

Shage
20 Aug 2008, 14:12
pisto
You havent installed the module propely. Look in the archive: You will find the folder you miss in the "user\SavedLevels" dir. Extract the whole archive in the folder with WA.exe file.
Creating your own file is described in the readme file with one mistake - the command must be LOAD, not Load (case sensitive).
Example:
I want to get a random wxw map with features: original, good graphics
Go to wmdb.org, select map as you want and press "go"
i got the next URL: "http://www.wmdb.org/maps/w2w?feature_graphics=1&feature_originality=1"
then you must delete "http://www.wmdb.org"
the remaining string is "/maps/w2w?feature_graphics=1&feature_originality=1"
So, you must put the string
"LOAD /maps/w2w?feature_graphics=1&feature_originality=1"
in the file named, for example, "WXW good graphics.PnG"
That's all. Now when you try to open this map in the editor, you will get the random map with certain parameters

Shage
20 Aug 2008, 17:50
firstly i wanna sorry for the double post - its coz moderating
second, i dunno whats wrong but try simple copy the PnG files from that hidden dir to anywhere, eg directly to the SavedLevel fir (it is no matter where the file is located)

robowurmz
20 Aug 2008, 20:51
firstly i wanna sorry for the double post - its coz moderating
second, i dunno whats wrong but try simple copy the PnG files from that hidden dir to anywhere, eg directly to the SavedLevel fir (it is no matter where the file is located)
Didn't you read what he said? He deleted those files. Deleted. Not hidden, moved, or copied. Deleted.

pisto
20 Aug 2008, 21:53
ok I resolved the problem.
I won't say what was going wrong, because you would laught at me too loud.

[UFP]Ghost
20 Aug 2008, 22:13
ok I resolved the problem.
I won't say what was going wrong, because you would laught at me too loud.
tell us, I really want to know.

KRD
21 Aug 2008, 03:47
I have but a tiny problem with this WormKit module* and that is its name.
The term "random map" has a very specific use in our community; it signifies maps generated within the game's map editor, maps that are truly random. Now I realise "wkRandomMap" describes the module's function well in a way and I can't think of a better name off the top of my head, but all maps you can get to with it are the exact opposite of what I, and hopefully the rest of WormNet, refer to as random maps. They are user-made, custom maps.
* As opposed to the giant, crippling ones I have with just about all others. :(

Shage
21 Aug 2008, 07:18
The original name of the module was wkWMDBagent
You may simply rename the module and/or the "_Random maps_ folder
The name is "random map" just because you get not a specific map - you get a random map... from a huge list.
Next: What features would be added in the next release:
- History: All maps would be saved in a special history folder.
- More options: You may customize more options for the new map, so you may select the map only from latest list or the map with large views/downloads rating
- Improved loading screen: You will see the map description and features on the loading screen. It is good for those, who has slow connection - because they are watching this screen for more time
- Cancel loading: You may simply cancel loading by hitting the "esc" button
P.S. i have not so good english so notice me on any mistake you found (in the module)

raffie
21 Aug 2008, 08:10
ok I resolved the problem.
I won't say what was going wrong, because you would laught at me too loud.
Then we'll guess xD
You have diff installs of WA and were looking in the wrong install map? :)

pisto
21 Aug 2008, 08:44
I looked for maps in the scheme menu.
senile dementia.

bonz
21 Aug 2008, 11:06
because they are watching this screen for more time
In-game advertising? :D

Shage
21 Aug 2008, 11:11
Leave this alone, only useful info about currently downloading map :)

Shage
15 Jul 2009, 11:25
i've made an update for the module. Now it supports WMDB with changed design.
Another new features:
* View map name, author and so on while map downloads
* Caching downloaded maps
** All downloaded maps are sorting by type and saving on disk
** If the dice points on the same map again, it will loads from disk
Also now this module is open-source.
Module description page: http://worms2d.info/WkRandomMap
Download page: http://shadowtheage.narod.ru/wkRandomMap.html
UPD: Was old version in archive, now all shoulda be right. Sry.

yakuza
15 Jul 2009, 11:40
Can we set up classes? Like make it select a random map amongst a group of maps, say RopeRaces?

Shage
15 Jul 2009, 11:51
Yeah. Msot popular game types that are known by wmdb are already present in the archive. Also you can take map from groups by following parameters:
- Map type (the most important parameter)
- Map flags like they are on WMDB: Elaborate/Clumsy, Good graphics/Not-so-good graphics, Original/Unimaginative, Open/Tight, Themed, Sprites, Remix, Adult
- Map name search
- Maps of certain author

Seep
16 Jul 2009, 11:17
I don't see info when downloadin map, just like Gnork said.

Shage
16 Jul 2009, 11:33
What version of the game do you have? It should work fine with 3-6-29-0 and 3-6-28-0. If not - i'll try to fix a bug but i can't promise anything because i can't repeat it :(

Seep
16 Jul 2009, 12:08
I got latest beta, rubberworms and a lot more other wk stuff.

[UFP]Ghost
17 Jul 2009, 07:04
awesome :D

Seep
17 Jul 2009, 14:40
Ghost;699766']awesome :D
Yup :rolleyes:

vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.