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.
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.