View Full Version : [HELP] Running one WK Module...
Help needed in updating RandomMap (http://worms2d.info/WkRandomMap) to make it running with 3.7.2.1 version.
_______________________________________
EDIT:
Release:
First version is done, details and download link here:
http://worms2d.info/WkWMDB
Bug reports and suggestions:
wkWmdb - Download random maps from the WMDB (http://forum.team17.co.uk/showthread.php?t=64617)
SgtFusion
13 Apr 2013, 09:17
The only way to do that is to get someone to rewrite it for the newest version of W:A. There's no other way.
CyberShadow
13 Apr 2013, 09:25
Have you tried using the DirectDraw renderer?
Have you tried using the DirectDraw renderer?
no, it doesn't work. this issue with RandomMap began with 3.6.31.2b, where it stopped working for most people. however, other people such as LeTotalKiller can run it fine on 3.7.2.1. the module itself is buggy because its developer initially intended it as a test, and he was also surprised that it worked on 3.6.31.0. but the dll refused to even load during wormkit startup on a few systems even before steam alpha. he didn't reply to my last message however.
LTKiller
13 Apr 2013, 10:39
no, it doesn't work. this issue with RandomMap began with 3.6.31.2b, where it stopped working for most people. however, other people such as LeTotalKiller can run it fine on 3.7.2.1. the module itself is buggy because its developer initially intended it as a test, and he was also surprised that it worked on 3.6.31.0. but the dll refused to even load during wormkit startup on a few systems even before steam alpha. he didn't reply to my last message however.
Well, I'm using DirectDraw 32-bit -but I guess it'd be compatible with DD 8-bit too- and it works perfectly (can't use Direct3D on this computer, however I can do some testing on a more powerful computer and check).
Have you tried using the DirectDraw renderer?
Yes, no changes.
LTKiller
13 Apr 2013, 12:17
Wow, since I installed this module on Ubuntu I can't get the Options menu working anymore. :confused:
i think it was highly dependant on directdraw in hardware.
what does wkMapGEN use to show a picture in the map editor? MapGEN works on the latest update, so this could be used in wkRandomMap as well. we would however lose the status bar and texts, but it would allow the module to work after all
i think it was highly dependant on directdraw in hardware.
what does wkMapGEN use to show a picture in the map editor? MapGEN works on the latest update, so this could be used in wkRandomMap as well. we would however lose the status bar and texts, but it would allow the module to work after all
Would be great, even without the status bar and text.
Plutonic
13 Apr 2013, 15:59
mapgen just hooks into the loading of the file, generates to a temp location and loads that instead, it doesn't hook into the map editor at all. you could do similar for a random map equivalent with a download instead of generate.
mapgen just hooks into the loading of the file, generates to a temp location and loads that instead, it doesn't hook into the map editor at all. you could do similar for a random map equivalent with a download instead of generate.
yes that's what i'm talking about, ok
mapgen just hooks into the loading of the file, generates to a temp location and loads that instead, it doesn't hook into the map editor at all. you could do similar for a random map equivalent with a download instead of generate.
Will this method provide ability of setting additional search parameters?
LOAD /maps/?map[type]=moleshop&map[feature_size]=-2
EDIT:
What, if we have a feature that allows using !wmdb #<MapID> like with HB, but I guess it's material for a separate module.
Plutonic
13 Apr 2013, 21:29
yeah, you would be able to do that still.
im not sure about using a lobby command since the map is already loaded there. unless we use a method similar to the one when you download map as a client, or make a rough replacement in memory (?)
yeah, you would be able to do that still.
Sounds beautiful.
Plutonic
15 Apr 2013, 17:09
Just looking at the original, it doesnt seem to hook into any WA functions so I'm not sure why it wouldn't work...
it hooks directdraw and something else
Indeed. Hooking ddraw fails in wine, and hooking ddraw fails when ddraw doesn't exist (because it's using d3d). It also hooks a certain ddraw function which may well not be called with the software renderer (I don't know whether it is or not).
In other words, it's all wrapped around the graphics for really no good reason.
Plutonic
16 Apr 2013, 07:59
Does seem a bit over engineered... I'll have a little play at making my own.
Plutonic
16 Apr 2013, 22:08
Ok, I have a first version working now, just needs testing etc.
I havn't done it the same way as the old one, so functionality is different:
RandomMap basically runs a search on the WMDB website and then parses the page to look for map codes. This would break if the layout of the web page ever changed so I didn;t want to go this route despite its flexability for refining searches.
Instead I have gone the same way at hostingbuddy, using wmdb's inbuilt random map selector.
As such a png is generated in the list for each scheme type on wmdbs drop down, both normal size and large maps. I have kept them separate.
I will give it more of a test later and get it uploaded probably tomorrow.
Can't wait for testing this ;]
Plutonic
19 Apr 2013, 20:46
First version is done, details and download link here:
http://worms2d.info/WkWMDB
LTKiller
19 Apr 2013, 21:46
Thanks Pluto. :)
First version is done, details and download link here:
http://worms2d.info/WkWMDB
Going to test it right away. Thanks.
EDIT:
It's faster, noob-proof (required structure is auto-created) and providing incomparably more options available on one click. Great job and thanks one more time.
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.