Announcement

Collapse
No announcement yet.

Create native mods for UT2004 (basic SDK)

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Create native mods for UT2004 (basic SDK)

    I thought I'd share this for people to play with (it's 2019 afterall), but it is possible to create native packages for UT2004, albeit severely limited since the headers weren't published and are instead based off UT v432 headers and modified further to work with UT2004 (but only Object, Interaction, Actor classes (actually Volume as well) - I wasn't bothered with the rest or to compile onslaught etc.).

    We've used this on LDG for our music downloader mod (which is pretty much the only feature of the game that's worth to implement as a native mod) and I included a heavily stripped version of it in the source code (which you can compile). You can compile it for 32-bit version using Microsoft Visual Studio .NET 2003 or for 64-bit version using Microsoft Visual Studio 2005. Both of them work (64-bit version is statically linked into an executable, but the executable still exports required symbols and you can link against it - the only limitation I noticed is that you have to use numbered native functions, otherwise it has the same capability to load the corresponding DLL). To test, compile the packages & DLL, place it to your System directory and add the mutator. Then use in-game console "CmdDownloadMusic http://www.someurl.com/somemusic.ogg somemusic" to interactively download music.

    The source code I've stripped from LDG version is the in-game installer of the DLL for 32-bit version and Anti-TCC "graceful" bypass (= will only whitelist itself without disabling any checks). Everything is also renamed to prevent any collisions. You WILL get kicked by Anti-TCC if you go online with a native package without doing some shenanigans, don't worry

    Download link: https://www.4shared.com/zip/uqGiQ_Dx...NativeSDK.html
Working...
X