[UT2k4] RegularEngine Framework
Name: RegularEngine Framework
Version: Beta 1
Description: Well, I meant to do this a while ago, but got side tracked by Real Life (tm). RegularEngine is a generic example of how one might build a mod. This uses the class based pawns from the latest Riftwar as well as a simplified version of the campaign mode. It also includes the versatile key bind code, which is a key bind set that can rest on top of Epic's (so that one can have multiple keysets without conflict).
The zip includes all the source code as well as a running example, which is a Humans vs Skaarj campaign mode.
It's not intended to be included wholesale into another mod. Including the RegularEngine package in your mod may very well conflict with someone else's, especially if they made the unwise mistake of altering the code.
If one was to use this, my suggestion would be to copy the code into another folder and change every "Regular" to "MyModName".
Anyway, this should be generally fairly solid. It has actually already been used in a few released mods (when people would ask me about the Class-Based tutorial on the wiki, I would tell them to use this instead). But if some people could beat on it and try to find open holes, I'd like to clean up anything gaping before writing tutes on it.
Comments: This does not include anything about making a mod menu, etc. Nor does it contain any of the weapon or powers code from Riftwar. A lot of that belongs to Wong's SSP set.
Cleaned up the zip so that you can extract it to the UT2004 dir.
If anyone has any questions about the code, now would be probably be a good time to ask, before I write the docs.
Now available in wiki form:
Did notice a bug when I was making the wiki pages. Fixed on the wiki, will update the zip later. It's pretty tiny.
I think I'm probably missing something here because when I plonk it in my Systems folder and load the RegularEngine Example from Instant Action it doesn't seem to do anything other then a regular DM. How do you open the class selector? And how do I access this Human Vs Skaarj Campaign?
It should prompt you when you first enter the game to pick a class.
Or you should be able to press alt fire while spectating or right after you die.
Then at the end of a match you should see the maps/campaign.
If you enter "keybinds" into the console, you should get the VKB menu.
None of that works for me.
Has anybody else got this working?
I just checked the log and found these errors a couple of times.
Warning: Failed to load 'RGXUDS': Can't find file for package 'RGXUDS'
Warning: Failed to load 'RegularEngine': Can't find file for package 'RGXUDS'
Warning: Failed to load 'Class RegularEngine.RegularGame': Can't find file for package 'RGXUDS'
Huh, I wouldn't have thought that would have caused a dependency.
You may be able to simply recomplile the package, or just redownload the zip that is there now.
I just tried compiling it myself and got a Bad expression in IF on line 18 of RegularPlayer.
if ( UDSVersatileKeyBind(Player.LocalInteractions[i]) != None )
Is there any chance of you separating the three basic mods (Classes/Campaign/VersatileKeys) so you can download and use them independently?
Ah wonderful, when I fixed the package I uploaded the old RegularPlayer.u
If the UDSVersatileKeyBind referred to a RegularVersatileKeyBind, you'd have no problem. Try redownloading the latest. Sorry for the mixup, haven't had much time with the holidays.
The three sections are small, and outlined off the Wiki:
Making it easy to use or not use either section. As I said above, this is not intended as plug and play code. It's intended that someone will read it, understand it a bit, and then adopt the parts that they require. There are variations of the Player Classes which might work better in certain situations (and I'll probably write another tute as I get the time).
Ah thanks working great now, good stuff RegularX.
No problemo. Sorry for the double mixup. Last time I say something is a small bug outloud.