Deus Ex: Revision

Deus Ex: Revision

View Stats:
BadRushin Mar 29, 2016 @ 3:13am
Energy regeneration in Deus Ex Revision
Hello folks
I wanted to play Deus Ex Revision with regenerating energy. I have found a method for editing the original Deus Ex game files to enable the multiplayer's energy regeneration in singleplayer. (http://www.gamefaqs.com/boards/250533-deus-ex/60237612 post #8 by jake-sf) It works in original Deus Ex game but not in Revision. Does anyone know how to edit Revision's files for similar effect?
< >
Showing 1-15 of 22 comments
BadRushin Mar 30, 2016 @ 4:14pm 
I have tried to use UnrealEd.exe supplied together with DeusEx Editing Pack to edit DeusEx.u files in DeusEx/Revision/System, DeusEx/Revision/Biomod and DeusEx/Revision/Shifter
But they all have the MaintainEnergy() functions commented out. I think this means that Revision gets that function from somewhere else or I am using UnrealEd.exe incorrectly.
I have Managed to find a RevisionPlayer pawn in some of those packages but it has no script attached to it...
This edit really only needs to edit two lines of script with two words I just need one of the devs to point me in the right direction. Can someone please help me?
Hawk  [developer] Mar 30, 2016 @ 11:40pm 
MaintainEnergy doesn't seem to be commented out in Revision's DeusEx.u DeusExPlayer

Check line 1591 on DeusExPlayer
BadRushin Mar 31, 2016 @ 12:59am 
Ok, I think that my problem is that I am always editing the standard DeusEx.u file or the example DeusEx.u file supplied with UnrealEd2 even though I specifically tell the editor to load a different file.
Is there a program that you would suggest to edit the custom DeusEx.u file? Replacing the default DeusEx.u with custom ones crashes UnrealEd2 on start.
Hawk  [developer] Mar 31, 2016 @ 7:25am 
What if you use UED1 and browse the classes and load Revision's DeusEx.u and Revision.u

You may need to set your Unreal Editor's preferences > advanced and add Revision's paths.
BadRushin Mar 31, 2016 @ 9:03pm 
just adding the paths still had me editing just the base deusex.u file
so I changed the order of the paths to the one in revision.ini
but this has me saving Revision package to the default DeusEx game
this might be because after compiling the changed scripts I am choosing DeusEx as the package to save. Do I have to choose another package to have changes to Revision files be saved to Revision package? What is the name of Revision package?
Hawk  [developer] Mar 31, 2016 @ 9:30pm 
Revision uses its own DeusEx.u package located at Deus Ex/Revision/System
Along with Revision.u etc, but most of the things you want are in DeusEx.u
BadRushin Mar 31, 2016 @ 10:08pm 
That I know, but how do I save changes to the revision's DeusEx.u and not the default DeusEx.u When saving - I need to select a package and it doesn't show the path to file but just the name of the package which is the same as the default one. And for whatever reason it always saves it to the default location.
On another note, I have found this little tool UT Package tool (http://www.acordero.org/projects/unreal-tournament-package-tool/) it lets me have a look inside a .u package and see if it is changed correctly or not. Too bad I can't edit the contents of those packages there :-/
Hawk  [developer] Mar 31, 2016 @ 11:03pm 
That I don't know I'm afraid, I've never edited a package directly.

Hopefully one of the other devs could help you.
BadRushin Mar 31, 2016 @ 11:09pm 
OK, I think I managed to get it to work...
(If you want to edit the base game - go to this walkthrough http://www.gamefaqs.com/boards/250533-deus-ex/60237612 you can use Deus Ex Editing Pack instead of SDK for it too)
I haven't extensively tested it yet but here is what I did (PAY CLOSE ATTENTION TO FILE PATHS AND BACKUPS - THERE ARE A LOT!!):
This guide will use steps from the original at gamefaqs.
PREPARATIONS:
1) Download Deus Ex Editing pack (http://www.offtopicproductions.com/forum/viewtopic.php?f=36&t=10464) and install it to your "Deus Ex" game folder (wherever it is)
2) go to Deus Ex/System and edit DeusEx.ini: in the [Core.System] change the "Paths=" section from this:

Paths=..\System\*.u
Paths=..\Maps\*.dx
Paths=..\Textures\*.utx
Paths=..\Sounds\*.uax
Paths=..\Music\*.umx

to look like this:

Paths=..\Revision\Sounds\*.uax
Paths=..\Revision\Textures\*.utx
Paths=..\Revision\Maps\*.dx
Paths=..\Revision\System\*.u
Paths=..\Revision\NewVision\Textures\*.utx
Paths=..\Revision\HDTP\Textures\*.utx
Paths=..\Revision\HDTP\System\*.u
Paths=..\Music\*.umx
Paths=..\Sounds\*.uax
Paths=..\Textures\*.utx
Paths=..\Maps\*.dx
Paths=..\System\*.u

3) Make a backup of DeusEx.int and DeusEx.u in Deus Ex/System (I am not really sure if the .int file is needed but the original guide said so)

EDITING BASE REVISION GAME:
1) Got to Deus Ex\Revision\System
2) Make a backup of DeusEx.int and DeusEx.u in Deus Ex\Revision\System
3) Open UnrealEd.exe in the Deus Ex\System folder.
4) On the right, you should see a list of Actors. These are everything that appears in the game. We need to navigate through this and find DeusExPlayer. Its under Pawn - PlayerPawn - PlayerPawnExt.
5) Right click DeusExPlayer and click "Edit DeusExPlayer script". A window with a lot of scripting will appear.
6) Ctrl + F, search for "25%" (this is to make it easy for you). You should see the following lines:
if ((energyUse == 0) && (Energy <= MaxRegenPoint) && (Level.NetMode != NM_Standalone))
{
energyRegen = RegenRate * deltaTime;
Energy += energyRegen;
}
7) Simply remove (Level.NetMode != NM_Standalone). It will now look like this:
if ((energyUse == 0) && (Energy <= MaxRegenPoint))
{
energyRegen = RegenRate * deltaTime;
Energy += energyRegen;
}
8) You ALSO need to change MaxRegenPoint to a number. This will be the maximum amount of energy you can regenerate, so if you only want the first 10% to regenerate, put in 10. It'll look like this:
if ((energyUse == 0) && (Energy <= 10))
{
energyRegen = RegenRate * deltaTime;
Energy += energyRegen;
}
9) In the taskbar above the editor itself, click Script - Compile Changed Scripts. Wait it out.
10) At the bottom right of the editor, click Save, select the package DeusEx, and save.
11) Go to Deus Ex/System and copy DeusEx.u file to some folder (for example create "Revision edited" folder on your desktop) - this file is your edited Revision file
(if you don't want to edit any other game modes - go to final steps)

EDITING BIOMOD GAME MODE:
1) Got to Deus Ex\Revision\Biomod
2) Make a backup of DeusEx.int and DeusEx.u in Deus Ex\Revision\Biomod
3) Copy DeusEx.u (and replace) from Deus Ex\Revision\Biomod to Deus Ex\Revision\System
4) Open UnrealEd.exe in the Deus Ex\System folder.
5) On the right, you should see a list of Actors. These are everything that appears in the game. We need to navigate through this and find DeusExPlayer. Its under Pawn - PlayerPawn - PlayerPawnExt.
6) Right click DeusExPlayer and click "Edit DeusExPlayer script". A window with a lot of scripting will appear.
7) Ctrl + F, search for "25%" (this is to make it easy for you). You should see the following lines:
if ((energyUse == 0) && (Energy <= MaxRegenPoint) && (Level.NetMode != NM_Standalone))
{
energyRegen = RegenRate * deltaTime;
Energy += energyRegen;
}
8) Simply remove (Level.NetMode != NM_Standalone). It will now look like this:
if ((energyUse == 0) && (Energy <= MaxRegenPoint))
{
energyRegen = RegenRate * deltaTime;
Energy += energyRegen;
}
9) You ALSO need to change MaxRegenPoint to a number. This will be the maximum amount of energy you can regenerate, so if you only want the first 10% to regenerate, put in 10. It'll look like this:
if ((energyUse == 0) && (Energy <= 10))
{
energyRegen = RegenRate * deltaTime;
Energy += energyRegen;
}
10) In the taskbar above the editor itself, click Script - Compile Changed Scripts. Wait it out.
11) At the bottom right of the editor, click Save, select the package DeusEx, and save.
12) Go to Deus Ex/System and copy DeusEx.u file to some folder (for example create "Biomod edited" folder on your desktop) - this file is your edited Biomod file
(if you don't want to edit any other game modes - go to final steps)

EDITING SHIFTER GAME MODE:
1) Got to Deus Ex\Revision\Shifter
2) Make a backup of DeusEx.int and DeusEx.u in Deus Ex\Revision\Shifter
3) Copy DeusEx.u (and replace) from Deus Ex\Revision\Shifter to Deus Ex\Revision\System
4) Open UnrealEd.exe in the Deus Ex\System folder.
5) On the right, you should see a list of Actors. These are everything that appears in the game. We need to navigate through this and find DeusExPlayer. Its under Pawn - PlayerPawn - PlayerPawnExt.
6) Right click DeusExPlayer and click "Edit DeusExPlayer script". A window with a lot of scripting will appear.
7) Ctrl + F, search for "25%" (this is to make it easy for you). You should see the following lines:
if ((energyUse == 0) && (Energy <= MaxRegenPoint) && (Level.NetMode != NM_Standalone))
{
energyRegen = RegenRate * deltaTime;
Energy += energyRegen;
}
8) Simply remove (Level.NetMode != NM_Standalone). It will now look like this:
if ((energyUse == 0) && (Energy <= MaxRegenPoint))
{
energyRegen = RegenRate * deltaTime;
Energy += energyRegen;
}
9) You ALSO need to change MaxRegenPoint to a number. This will be the maximum amount of energy you can regenerate, so if you only want the first 10% to regenerate, put in 10. It'll look like this:
if ((energyUse == 0) && (Energy <= 10))
{
energyRegen = RegenRate * deltaTime;
Energy += energyRegen;
}
10) In the taskbar above the editor itself, click Script - Compile Changed Scripts. Wait it out.
11) At the bottom right of the editor, click Save, select the package DeusEx, and save.
12) Go to Deus Ex/System and copy DeusEx.u file to some folder (for example create "Shifter edited" folder on your desktop) - this file is your edited Shifter file
(if you don't want to edit any other game modes - go to final steps)

FINAL STEPS:
1) If you use steam: just verify cache for Deus Ex and Deus Ex revision games (while keeping your edited files in their folders).
If you don't use steam: restore all your backups for game modes that you edited AND the original files in Deus Ex\System (while keeping your edited files in their folders)
2) Make sure that you still have backups of all the original files. Now copy and replace the edited DeusEx.u files you have in the folders somewhere to their respectful locations:
Revision\System - for base Revision gameplay
Revision\Biomod - for Biomod gameplay
Revision\Shifter - for Shifter gameplay

THIS SHOULD DO THE TRICK.
Last edited by BadRushin; Mar 31, 2016 @ 11:16pm
Hawk  [developer] Mar 31, 2016 @ 11:11pm 
You might want to disable updates for Revision if using this, otherwise it'll be overwrote with each patch.
BadRushin Mar 31, 2016 @ 11:15pm 
Would it be too hard to implement it as an gameplay option in future releases?
Hawk  [developer] Mar 31, 2016 @ 11:16pm 
I can't say for sure, but I think it'd be too much of a niché thing to be implimented officially.
BadRushin Mar 31, 2016 @ 11:24pm 
Darn!
Hawk  [developer] Mar 31, 2016 @ 11:44pm 
Maybe it could be added as a cheat one day.
Jimmy NoShoes Apr 4, 2016 @ 9:40am 
I'd welcome an alternate play style with regenerating energy. I would hope that the energy drain would be at least doubled for all augs augs however, to accomodate the fact you can just stand there and refill over a period of time and not make use of energy cells. (If you could regen 100% that is).

Or, have it regen to 10-15% only. This aleviates any requirement to change energy cells placed in the game to something else, and allows you to have emergency usage of augs. Again though, some augs drain so slowly its open to abuse, so balance comes into the question with any regen really.
Last edited by Jimmy NoShoes; Apr 4, 2016 @ 9:51am
< >
Showing 1-15 of 22 comments
Per page: 1530 50