PDA

View Full Version : WormKitDS: WormKit without WormKit


StepS
19 Jun 2011, 21:16
Hello, I present you a new way of loading WormKit modules, made by Kawoosh (KMZ) - WormKitDS. With this method you don't need anymore to run WormKit.exe or to associate everything for it - WA.exe will load modules itself!
The latest stable version is 1.0.0.1 and it's written on C++.
This method has been made some months ago but I was too lazy to post it, so sorry for that:rolleyes:
The HookLib.dll is also not needed anymore.
For Linux users: only some modules which don't use Windows APIs (i.e. RubberWorm and some others) will work under Linux in this way.

Download:

Fast installer (http://myfiles.my1.ru/wa/build/WormKitDS-installer.rar) (it will delete WormKit.exe and reassociate replays/URLs back to WA.exe)
Or just the archive (http://myfiles.my1.ru/wa/wk/WormKitDS.rar) with required files to be put into W:A folder (madCHook.dll is for those who don't have WormKit yet)
You may get the source code here (http://myfiles.my1.ru/wa/wk/WkDS_Source.rar).


WKB article (http://worms2d.info/WormKitDS)

Short FAQ:
Q: You've said that this is a new WormKit, but why do I see something like "dsound.dll"?
A: To make WA loading modules itself, a DLL file which had the same name as one of the WA's required DLLs was needed. Usually this file is located in system32 folder, but here it's also used as a module loader.

Q: Will it affect the stability of modules somehow?
A: Nope.

Q: Will this way work under Linux?
A: Partially. As it's known for now, modules (such as RubberWorm) which don't use Windows APIs will work under linux.
It is the madCHook library that has some incompatibilities with Linux, CyberShadow has started a rewrite of it to further support Linux, here (http://dump.thecybershadow.net/8402759fd73a29acecd16770cb2f26db/WormKit.zip) is the current file and source code. Note that it's still unfinished and is written on Delphi, but any contribution to the project will be appreciated.

Q: Will this allow me to watch replays, to do stuff with them or to use WebSnoop?
A: Yes, but you should use the installer, because it associates replays and URLs back to WA.exe (in case you messed the associations up).

Q: Omg, really?
A: Yes. Just run WA.exe.

Q: Can I temporarily disable WormKitDS?
A: Yes, you need to run WA.exe with /nowk command-line parameter.
If you used the installer, then just navigate to WA's executable/shortcut, then hold Shift and right-click it; the option "Run WA without WormKit" will appear. To play a replay without WormKit, just right-click it and choose the corresponding option.

Q: Oh, and what if I run my old WormKit.exe while having a new WormKitDS?
A: Nothing. The priority is given only to the one. The fast installer deletes WormKit.exe and edits registry back to WA.exe.

Q: When I run the game, a message "This module is no more needed..." pops up!
A: Please delete wkPathOverride.

Q: When I run the game, a message "Bad module: ..." pops up!
A: This message means that the current WormKit module is corrupted, has an unproprietary function in its code or doesn't seem to be a valid module. Consult the module developer.

Q: Now I got the intro screen again! How can I get rid of it?
A: Turn it off again in Advanced options menu. This is a known issue if you're not using the installer.

Q: Will this way work for WWP or Worms 2?
A: The loader will work, but most of WormKit modules are written specifically to work with W:A code only.

wowwow
20 Jun 2011, 01:33
Omg very nice work

Anyway i will keep using Wormkit.exe xDD

I will download it at the future due to record videos with Rubbergames , coz it was impossible to me (i know wkPathOverride)

DarkLord22
20 Jun 2011, 04:30
Will this allow for exporting videos from rubberworm games?
That's the only thing that really interests me; otherwise, I'll just stick with wormkit.exe.

StepS
20 Jun 2011, 09:01
Yes this will, but for this you need to use my installer, because it will associate replays with WA.exe and delete WormKit exe (change it in Wheat Snooper after it's done, because I cannot edit it from installer yet; prosnooper's default app gets changed to wa.exe)

bonz
20 Jun 2011, 09:14
associate replays with WA.exe and delete WormKit exe
Ehrm, and people can't do that themselves?

franpa
20 Jun 2011, 09:19
So long as the time was spent beta testing/using the module without issue, delaying the release is fine.

StepS
20 Jun 2011, 09:22
Ehrm, and people can't do that themselves?

Mostly yes. That's what my installers are made for. But it's still your decision to use or not to use it.

wowwow
20 Jun 2011, 17:22
I have been thinking , is it possible that using this program can avoid skipped packets problem?

StepS
20 Jun 2011, 18:35
I have been thinking , is it possible that using this program can avoid skipped packets problem?

this problem concerns WormNAT2, and no, I don't think that this will help.

CyberShadow
20 Jun 2011, 19:21
I have been thinking , is it possible that using this program can avoid skipped packets problem?
A while ago I updated WormNAT2 with a fix (https://github.com/CyberShadow/WormKit/commit/b58973a13d2b0239452708a4446eb3b2d541fe09) which hopefully takes care of this problem. Note that everyone connected to same game must be using the updated version (or not have wkWormNAT2 running at all). The number of reports for this problem has since decreased, so I would guess that the fix worked.

Explorer
22 Jun 2011, 01:49
Hello. I see a typo in your installer. (or I guess so)

StepS
22 Jun 2011, 16:03
Lol, these are kilobytes with a decimal comma.
Maybe some little bytes for DelWormKit.bat:D

StepS
4 Jul 2011, 12:47
a WKB article (http://worms2d.info/WormKitDS) has been added.

Explorer
4 Jul 2011, 13:40
Lol, these are kilobytes with a decimal comma.
Maybe some little bytes for DelWormKit.bat:D

Well I think you didn't understand what I mean. (It's my fault for not explaining clearly)

Most English-speaking countries use the period (.) to mark the decimal, while use the comma (,) to separate digits. (see this wikipedia article (http://en.wikipedia.org/wiki/Decimal_mark))
Like this: 123,456,789.00

So I expect the numbers in the installer are expressed this way. That's why I called it a typo in my last post.

StepS
4 Jul 2011, 20:03
Well I think you didn't understand what I mean. (It's my fault for not explaining clearly)

Most English-speaking countries use the period (.) to mark the decimal, while use the comma (,) to separate digits. (see this wikipedia article (http://en.wikipedia.org/wiki/Decimal_mark))
Like this: 123,456,789.00

So I expect the numbers in the installer are expressed this way. That's why I called it a typo in my last post.

Well, now I did, and also don't forget about deleted (http://stepsfiles.tk/wa/other/wormkitdsthread/page1.htm#post745159) posts which totally bumped the thread.:eek:
I've fixed this, but it's the bug of installbuilder. Have to find more about this.

Shilvan
20 Jul 2011, 14:17
Hi all, I am Shilvan, moderator of WormsMania, the italian community of worms, I can't write anything without a presentation, so this is a my ethical satisfaction :p

Now the reason which I write here is this: we have note that the installer of WormKitDS work perfectly when somebody have WormKit already installed, but with new players that haven't WormKit the installer doesn't copy dsound and madCHook DLLs into WA folder. I think this is only a distraction of the programmers ;) So I gently ask if you can solve this with a new installer. Our comunity wants to help new italian players in the simplest modality as possible, so if you want to help us you will have the gratitude of the WM community.

Thanks a lot in advance

P.S. StepS, I don't know if MrKaos have say this thing to you :p so I decided to report this personally

StepS
20 Jul 2011, 21:33
No, everything works fine, tested on five systems.
Probably some antivirus software is blocking it (most likely madCHook, as dsound is 0/43 detected VT).

Ravander
2 Aug 2011, 02:31
Could you make it so you don't have to press shift while right clicking and selecting "launch without wormkit"? why do you have to press shift anyway?

StepS
2 Aug 2011, 06:18
Could you make it so you don't have to press shift while right clicking and selecting "launch without wormkit"? why do you have to press shift anyway?
because it's an extended option.
And I have no idea of making a new context-menu element for a unique WA.exe file, if you know - please tell me how!

wowwow
27 Aug 2011, 03:07
Since i use this program , i have a problem after watching a replay:

I open the replay and i watch it , all right , no problems. But then i exit and i have a problem , explorer.exe is still gone and i have to manually turn it on again.

Is it me just or anybody else is having this problem?

PS: win7

StepS
27 Aug 2011, 08:08
explorer.exe is still gone and i have to manually turn it on again.

I don't know the reason of this problem for you, but also do not use ColorFix. With the built-in palette fixes it is obsolete and only makes things worse, also don't forget PX's 32-bit mode.

wowwow
27 Aug 2011, 13:22
I don't know the reason of this problem for you, but also do not use ColorFix. With the built-in palette fixes it is obsolete and only makes things worse, also don't forget PX's 32-bit mode.

I deleted colorfix since 3.6.30.0 was released and also im in win7 32-bit ;o

Maybe PX issue

Entuser
27 Aug 2011, 14:37
No, PX doesn't do anything with explorer.exe. You can try disabling it , however.

wowwow
27 Aug 2011, 19:39
I have another problem =(

If i open a replay and I press R , the replay will restart , but with all holes made by explosions still there , so many objetcs floating...

StepS
28 Aug 2011, 14:36
I deleted colorfix since 3.6.30.0 was released and also im in win7 32-bit ;o

Maybe PX issue

Did you use the steps of the best color fixing combination (see http://forum.team17.co.uk/showpost.php?p=734366&postcount=80 and http://forum.team17.co.uk/showpost.php?p=734381&postcount=81). Not sure about replays though, but it worked like a charm for me and loads of people, since it was first introduced in my installers.

I have another problem =(

If i open a replay and I press R , the replay will restart , but with all holes made by explosions still there , so many objetcs floating...
I guess this isn't the right topic to discuss, eh?