Little Fighter Empire - Forums
Plugins for LF2 (including one for platforms) - Printable Version

+- Little Fighter Empire - Forums (https://lf-empire.de/forum)
+-- Forum: Little Fighter 2 Zone (https://lf-empire.de/forum/forumdisplay.php?fid=7)
+--- Forum: [2.0] Exe Editing (https://lf-empire.de/forum/forumdisplay.php?fid=43)
+--- Thread: Plugins for LF2 (including one for platforms) (/showthread.php?tid=9238)



Plugins for LF2 (including one for platforms) - Som1Lse - 05-30-2014

Well plugins may be a little too big of a word for it...

It is simply a modified version of the ddraw.dll AI wrapper, which instead of adding scriptable AI loads DLLs from a directory.
The directory names are "dlls" for the release version, and "dllsd" for the debug version.

Link: https://www.mediafire.com/folder/1be5x960o61v5/LF2DDrawPlugins

Now obviously a lot of people aren't going to like not being able to use the scriptable AI so I recreated it: https://www.mediafire.com/folder/ct4voonhc56cg/LF2AIPlugin
And as an extra little bonus I'll throw in my very buggy platform code: https://www.mediafire.com/folder/v3r36t3c5vev2/LF2Itr14Plugin

I suppose you all know how the AI scripting works, so no need to go into more detail there, but for the platforming to work, you need to create a file named "itr14.dll" in the same directory as LF2, and then add scripting to handle the platforming and stuff. It is the same language and the same API as the AI scripting, so I think you'll figure it out; here is the script I've used so far. It is very buggy and contains a lot of debugging code:
WARNING: Hurts if you are a programmer! (Click to View)
All of the previous links include the full source as well as CodeBlocks project file, but there are a few things to note:
  1. The code has been modified so it now compiles using MinGW (GCC).
  2. The code now no longer uses Microsoft Detours for hooks, but instead uses MHook (which does basically the same thing). You can get MHook here: http://codefromthe70s.org/mhook23.aspx



RE: Plugins for LF2 (including one for platforms) - A-Man - 05-30-2014

Woho! I was just reading about your platform implementation, and I was wondering when you're going to release it. This looks really neat. I see you had to reprogram almost all the logic of itrs and bdys. That's too powerful I got to say! Hopefully, we're going to see some really cool implementations with this.
Keep this up!

Edit: Sorry for such a useless post. I suggest you add a study example along with the dll for lazy people to test.