Duke4.net Forums: Futuretime23 - Viewing Profile - Duke4.net Forums

Jump to content

Hide message Show message
Welcome to the Duke4.net Forums!

Register an account now to get access to all board features. After you've registered and logged in, you'll be able to create topics, post replies, send and receive private messages, disable the viewing of ads and more!

Reputation: 53 I have a solid reputation
Junior Members
Active Posts:
29 (0.06 per day)
Most Active In:
Duke Nukem Forever General Discussion (29 posts)
21-June 17
Profile Views:
Last Active:
User is online 17 minutes ago
Viewing Topic: Shadow Warrior betas released!

My Information

Age Unknown
Birthday Unknown
Not Telling Not Telling

Contact Information


Topics I've Started

  1. DNF Modding Discoveries

    06 June 2018 - 11:03 AM

    So I decided to post some of the findings I made while modding DNF. Some of these aren't new though, but are worth mentioning again.

    First off, Noesis is a godsend. This is a key tool for any and all DNF modding (the other being a hex editor)

    How to do engine/dngame gameplay mods:

    In order to get some gameplay mods going, what I did was extract megapackage.dat and copy dngame.u and engine.u to the system folder of DNF. Any mods you make to these scripts will override the scripts in megapackage.dat This works on ALL versions of DNF as far as I know.

    I keep a downgraded copy of DNF to have access to the SOS console which helps out a lot for doing this. For example, say I want to make Duke walk fast, I go to engine.u and replace the three 260 floats with say 390. (2 of the floats are for single player, namely one is for a level load and one's for a checkpoint load. the third I believe is for MP Duke as he has different variables than SP Duke)

    You can make the ego regen disable mod also permanent in this way (I need to find the variables for the recovery rate again though) as well as other mods. It's possible to read the .u scripts with the unreal tournament packaging tool, just be prepared to see a lot of unknownfunctions show up.

    How to get past the weapon limit:

    This doubles as an explanation as to how the weapon limit works in DNF.
    The guns, items, pipe/trip and the fists in DNF have a bIsPrimaryWeapon property. By default, items, pipe bombs, tripmines and the fists have this set to false while the guns all have them set to true. This places the guns in the limit, i.e, PrimaryWeapon1: RPG, PrimaryWeapon2: Machinegun, etc.

    In order to get past the weapon limit, you need to set each gun's bIsPrimaryWeapon property to false. Unfortunately I haven't been able to do this via dngame.u (where all of the guns and their scripts are located) because ATM it's unknown what byte handles this property.
    An alternative way consists of doing it via set commands, for example, set rpg bisprimaryweapon false. On 1.00 and 1.01 with SOS console this is fairly easy, but it can be a pain in 1.03 since you need to edit the user.ini and bind this command, which for some godforsaken reason, keeps resetting randomly. Fortunately there's a way around this by editing your inputs in 1.00 with the sos console and then copying that user.ini to 1.03. It seems to work so far.

    What are the issues with this mod?

    Unfortunately, you can't use the mouse wheel to cycle thru your guns as the SwapWeaponsDown and Up command don't work well by using this old weapon select logic. You need to use keybindings to select each gun. For example 1=useweapon dngame.pistol_gold and so on.
    Also, because of how the weapon wheel for controllers work, I don't believe the weapon limit mod works with it since the logic for that specifically points towards PrimaryWeapons. Speaking of which, another issue I've encountered is that infinite ammo boxes no longer give ammo. This is because it's programmed to give ammo to your current PrimaryWeapons. And also, the first gun pickup will only give you the ammo on the current clip, but not other pickups of the same gun. No clue why, maybe it's a glitch or it's an old piece of leftover code back when initial pickups weren't meant to give you full ammo?

    Another thing, but this is relating to how the weapon limit bypass mod is working for now, is that occassionally some guns may reset back to their default true setting for the bisprimaryweapon property. Press the bind to reenable that and reload the checkpoint if the guns disappeared entirely. Typically, if this happens, the guns just drop on the floor and you can pick em up again with what ammo they originally had.

    For the record, I have not tried this in MP (each gun has a MP counterpart) or the DLC. Only in the SP campaign.

    I'll probably either edit this post later or make a new one and put some other findings I made (like replacing enemies/pickups/npcs in maps, or editing specific variables for enemies, weapons, items, etc)



Futuretime23 has no profile comments yet. Why not say hello?

All copyrights and trademarks are property of their respective owners. Instead of reading this text, you could be playing Ion Maiden! ;) © 2018 Voidpoint, LLC

Enter your sign in name and password

Sign in options