Page 1 of 1

Wolfenstein: The New Order [Engine:idTech 5]

Posted: Thu Aug 01, 2019 5:49 am
by SunBeam
[ 12.08.2019 - Update #4 ]

New update:

1. Remember this crap?

Image

I really don't like playing the game with g_infiniteAmmo 1 and that happening. So I removed the limitation by patching idAmmoItem::CanItemFitInInventory to always return 1 :) No more glittery objects lying around untouched :P

Same story for idPlayerArmor::CanItemFitInInventory and idWeapon::CanItemFitInInventory. Note that any picked-up Armor after your Max will display "+1 Armor" in your bottom-left (just in case you ask some "why"s).

2. Available for both current and RELOADED - 25th of May 2014 version.

Oh.. and if you wanna enable all Perks, just start the game (or a new game), Tilde to open the console and type in DebugUnlockPerkByAbility -1. I know this is old and known.. though I recommend you do it BEFORE you use any other cheats. Just so you have everything available to you from the beginning. If you wanna "fight" for the counts unlocking each Perk OR counts for some other Steam achievement, be my guest. Just know you'll need god, infinitehealth, notarget, g_permaGodMode, g_infiniteAmmo and g_permaInfiniteAmmo off for the counts to be recorded! You've been warned :D Wanna figure stuff out, you have the .pdb and .exe attached below. There's an awards system being coded in, that might give you a clue on how to enable some of the achievements you don't have yet :P Just look through the symbols for the "award" word.

Also.. if you hate bobbing (screen shake when you sit idle, run, etc.), use this: pm_nobob 1 :P

That's about it for me and this engine/game. Peace!

WolfNewOrder_x64.CT
1.4 - removed 'Maxed out!' restrictions
(44.6 KiB) Downloaded 169 times

BR,
Sun

[ 09.08.2019 - Update #3 ]

Quick update:

1. Revamped the "Show Sys_Console" script; it now runs in a thread and you can toggle it with Numpad Subtract (-) (key can be edited in the script).

2. Added a script to kill the "SHOULD BE DEAD BUT IN GOD MODE" notification. It's annoying when you're able to get back to a solid surface with noclip and can still play, yet the mid-lower screen has that "stamp" on.

3. Turns out the infiniteHealth and noPlayerDeath commands aren't idTech 6 only; I've managed to figure out how to toggle them as well; added to the list of reconstructed commands.

4. Adjusted all of the scripts for the RELOADED version from 25th of May 2014 (the one with the .pdb).

WolfNewOrder_x64.CT
1.3 - added a bunch of stuff; RELOADED version included
(44 KiB) Downloaded 108 times

Will add more content as I progress through idTech - such as removing the ammo cap (so you can collect anything glowing, without the "Maxed" restriction); removing all cheat checks for achievements or perks; etc. :P

BR,
Sun

[ 06.08.2019 - Update #2 ]

Added another script called "Show Sys_Console". This will make visible the default Sys_Console window which gets created at start-up (but not shown). If you want to hide it afterwards, just follow those instructions below:

Image

When you enable the script, this is what you'll see:

Image

You can now execute commands/CVars by typing them in the edit field, then Enter; you can Copy console content; Clear it; or just close the game via the console Quit button :)

WolfNewOrder_x64.CT
1.2 - added 'Show Sys_Console' script
(19.08 KiB) Downloaded 100 times

And here's also the link to the old .exe and the .pdb. Drop them into the game folder and study away, if interested :)

Link: https://www.mediafire.com/file/kgar10pm ... xe_pdb.rar
(pass: sunbeam)

[ 01.08.2019 - Update #1 ]

Noticed the "mov byte ptr [rbx+48],10" in "Unrestrict CVars" script has a side-effect. It basically changes the CVar type as well; so int CVars end-up not being properly set if they are forced to bool type by that MOV :) I've updated the script a bit (using OR this time around). Download it from below:

WolfNewOrder_x64.CT
1.1 - updated 'Unrestrict CVars' script
(15.52 KiB) Downloaded 135 times

BR,
Sun

* * *

Game Name: Wolfenstein: The New Order
Game Vendor: Steam
Game Version: "Jun 18 2014" (type gamedate [Enter] in the console)
Game Process: WolfNewOrder_x64.exe
Game File Version: 1.0.0.2


Hello everyone.

Thought I'd give this title a go (after fucking up and finishing Youngblood) and see if I can get the restricted/removed content back into the game, thus allowing a more pleasant pace while enjoying the main story. I quite liked the way it's designed, the various clips occurring in key moments and so on. And to top it all, I thought I should get these resolved:
  • patch the ConsoleKey to just Tilde (~) (the game has the console available and accessible via Ctrl+~; which is annoying as fuck, given Ctrl key is bound to do crouching and doesn't always get triggered on combo press; not to mention no one in their right minds uses ` character in the console..)
  • remove CVar restrictions (some CVars are "archived in production mode", thus resetting them once set becomes impossible; others are "cannot be set in retail"; so I basically hook the spot where they're checked after idCmdSystemLocal::ExecuteTokenizedString and modify any such flag)
  • god command re-implemented and added to the list of console commands (I know there's an archived CVar - g_permaGodMode - yet I was interested in reconstructing the 'god' command more than using a bool)
  • noclip command re-implemented and added to the list of console commands
  • notarget command re-implemented and added to the list of console commands
The other 3 (InfiniteHealth, noPlayerDeath and noPlayerKill are idTech 6 only). Just in case you'd ask.

So.. in order for me to achieve this I had to determine how these commands work, what they make use of (pointers, offsets, what the structures represent and where's the toggle bool). And to do that I had to install both The Evil Within and Rage games from Steam. Fun fact: Rage comes in x86 and x64 flavors ;) So I used them as my source of study, since they have these commands in (The Evil Within doesn't have 'notarget', but I got the code from Rage and adjusted it to my needs here).

Without any further ado, see the video below:



And the table:

WolfNewOrder_x64.CT
1.0 - ConsoleKey = Tilde; unrestrict CVars; god, noclip, notarget
(15.31 KiB) Downloaded 136 times

Enjoy! :)

BR,
Sun

P.S.#1: If you wanna get rid of the intro video, just rename 'loadvideo_pc_xboxone.bik' to 'loadvideo_pc_xboxone.bik.BAK' in Wolfenstein.The.New.Order\base\bink folder. Yeah, there might be some command-line to ditch it, I'm sure of it; didn't look for it though, as renaming works fine for me.

P.S.#2: I might post the actual analysis later on in the "Specific Game Tutorials" section.

Re: Wolfenstein: The New Order [Engine:idTech 5]

Posted: Thu Aug 01, 2019 4:07 pm
by SunBeam
Here's some useful CVars collected from across the internet for idTech engine:
  • pm_noclipspeed <val> (default: 400)
    You can control the noclip speed with this CVar. Use lower values (e.g.: 200) if you feel you're speeding too fast in noclip mode.
  • g_stoptime 0/1 (default: 0)
    Will freeze world time. You can move around normally or with noclip; player actions, just like anything else in the game world, will be frozen. Yes. you can run or jump.
  • timescale <float> (default: 1.0)
    Will slow down or speed up the engine timescale. I used 0.1 to let the engine run slow enough to catch Anya below before dressing up :)
With the above I was able to take these screenshots :)

Image

Image

  • g_weaponkick 0/1 (default: 1)
    Disables recoil.
  • g_weaponSpreadScale (default: 1.0)
    Set it to 0 for perfect accuracy :P
BR,
Sun

Re: Wolfenstein: The New Order [Engine:idTech 5]

Posted: Sat Aug 03, 2019 12:29 am
by SunBeam
Wish I had discovered this sooner, before doing all that analysis above manually and wasting 2-3 days on it.. Apparently the RELOADED release (Wolfenstein.The.New.Order-RELOADED) from the 25th of May 2014 contains a .pdb :D

Image

That being said, this is what I could've easily learned with the help of this db:

Image

Nevertheless, this should help a lot track down the console creation and functions by name (ASM-resemblance) in Dishonored 2.

BR,
Sun

Re: Wolfenstein: The New Order [Engine:idTech 5]

Posted: Sat Aug 03, 2019 3:31 pm
by sebastianyyz
Nice, thank you

Re: Wolfenstein: The New Order [Engine:idTech 5]

Posted: Mon Aug 05, 2019 9:47 pm
by SunBeam
sebastianyyz wrote:
Sat Aug 03, 2019 3:31 pm
Nice, thank you
You're welcome :)

Updated the table once more adding the ability to show/hide the system console ;) Might find it useful outside of the game for queries 'n' shit :D

Re: Wolfenstein: The New Order [Engine:idTech 5]

Posted: Wed Aug 07, 2019 3:49 pm
by FryGuy
Nice! Just started on the Wolfenstein series and I love all the options having the console gives. Is there a list/dump of cvars?

Edit: ah, I just saw your other post for Wolfenstein: Youngblood, where you show how to list and dump cvars. Good stuff! Do you think you might make your way to Wolfenstein: The Old Blood and Wolfenstein II? Love your work!

Re: Wolfenstein: The New Order [Engine:idTech 5]

Posted: Wed Aug 07, 2019 10:32 pm
by SunBeam
I'm on them :P Stay tuned.

EDIT #1: I noticed that if you play with "g_infiniteAmmo 1", the Perks will not increase count. Keep this in mind when you use this CVar; if you plan on unlocking them all :P

EDIT #2: Checked it real quick. Turns out there are several CVars being checked before executing this function -> "idPlayer::AddKillCheckAndUnlockPerk" :) Among the checks: if god is on; if unlimited ammo is on; if <add here> is on - - then no modifications. Else, counters will increase and you'll end up unlocking them. There are other similar checks verifying if god or unlimited ammo are on, mainly to discourage cheating to achieve these unlocks :P

Re: Wolfenstein: The New Order [Engine:idTech 5]

Posted: Fri Aug 09, 2019 1:53 am
by FryGuy
Hahaha, why would you code checks into your own in-house cheat codes? To stop the devs from doing it? None one else would use them.....unless, they knew sunbeam would crack the code from the start! Sneaky!

Also as a sidenote, I really like having a console. Maybe it's just me but I feel like a lot of the older games I used to play (Jedi Knight series, Fallout/Elder Scroll series, Half-Life series, etc) all had in-game consoles and you could always mess around and get up to all sorts of fun. Bringing back/unlocking these in-game consoles, like in Metro Exodus or now these Id-tech games, seems somewhat more satisfying than someone's everyday Cheat Engine table or nop hack. Serious kudos to you Sunbeam for digging through an entire engine to unlock these features! :)

Re: Wolfenstein: The New Order [Engine:idTech 5]

Posted: Sun Aug 11, 2019 10:55 pm
by SunBeam
FryGuy wrote:
Fri Aug 09, 2019 1:53 am
seems somewhat more satisfying than someone's everyday Cheat Engine table or nop hack
I've been saying that for years now. The comparison I always use is "a keygen is better than a crack". Same here, console + dev stuff - from a certain perspective - are better than a trainer. Sure, the trainer might do some shit you can't with the console, but it's that feel that gets you :D To each their own. The response I always get isn't "yup, keygen > crack" (console > trainer), but this one: "yeah, but either works" (for the player) :D In the end it's all a matter of preference for the consumer. But myself, bitched at or not, I don't care about the consumer. I do this for fun and have gotten to the point where I want it to be quality shit. Maybe that's how I'm built; having gone through and experienced a ton of shit across my "career", thus character-constructed in a programmer-mentality way, engine-digging beats any trainer. Not only that, but I learned a LOT about game engines.

EDIT: Updated the table once more. Final update.

Re: Wolfenstein: The New Order [Engine:idTech 5]

Posted: Thu Sep 05, 2019 3:54 pm
by Mancubus
Oh how good is that, thank you so much!

Any chances you could do the same stuff for The Old Blood?

Re: Wolfenstein: The New Order [Engine:idTech 5]

Posted: Thu Sep 05, 2019 3:56 pm
by SunBeam
Dig a bit deeper and you'll find it -> viewtopic.php?f=4&t=10004.

Re: Wolfenstein: The New Order [Engine:idTech 5]

Posted: Thu Sep 05, 2019 4:35 pm
by Mancubus
Damn, I searched for one, and was unattentive looking through several I can find here. Thanks for being patient :)

Re: Wolfenstein: The New Order [Engine:idTech 5]

Posted: Thu Sep 05, 2019 4:37 pm
by Mancubus
Gosh, I know what I'll be doing this weekend :D

Did you think of creating a Patreon? I'd definitely be happy to contribute every now and then.

Re: Wolfenstein: The New Order [Engine:idTech 5]

Posted: Thu Oct 17, 2019 12:36 pm
by nineteensixteen
Can I spawn or create an enemy by using the console? :D