PDA

View Full Version : [HELP] Running one WK Module...


GrO
12 Apr 2013, 23:41
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?

StepS
13 Apr 2013, 09:49
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).

GrO
13 Apr 2013, 10:57
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:

StepS
13 Apr 2013, 12:37
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

GrO
13 Apr 2013, 14:57
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.

StepS
13 Apr 2013, 17:28
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

GrO
13 Apr 2013, 18:04
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.

StepS
13 Apr 2013, 21:32
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 (?)

GrO
13 Apr 2013, 21:36
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...

StepS
15 Apr 2013, 19:52
it hooks directdraw and something else

Muzer
16 Apr 2013, 01:18
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.

GrO
16 Apr 2013, 23:35
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. :)

GrO
19 Apr 2013, 22:26
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.