Off Topic Productions
http://www.offtopicproductions.com/forum/

UnrealEd constantly crashing during package editing
http://www.offtopicproductions.com/forum/viewtopic.php?f=36&t=12223
Page 1 of 2

Author:  Stanton_Blackbyrd [ Sun Aug 14, 2016 12:56 am ]
Post subject:  UnrealEd constantly crashing during package editing

I'm attempting to test a new mod, and I've been trying to import a modified version of "DeusExPlayer.uc", just to make sure that I'm doing everything right. Unfortunately, it would seem that I'm *not* doing something right, because all my attempts to load this file in the editor keep giving me a "General Protection Fault" message.

Is there another way to modify the "DeusExPlayer" script directly (through another editor, perhaps), so that I can continue with my testing?

Author:  Cybernetic pig [ Sun Aug 14, 2016 2:14 am ]
Post subject:  Re: UnrealEd constantly crashing during package editing

Click the "export all" button in the unreal editor actor browser, edit DeusExPlayer.uc in notepad or WOTGreal, then recompile the whole DeusEx.u with UCC.exe. There's guides for this, search "Tacks Deus Ex Lab" for one.

Author:  Stanton_Blackbyrd [ Mon Aug 15, 2016 3:39 am ]
Post subject:  Re: UnrealEd constantly crashing during package editing

Nope, not working. Removed the original "DeusEx.u" file from the System folder and used "ucc make", and the command prompt *still* won't create a new "DeusEx.u" file. All that happens is that I get a message saying "0 error(s), 0 warnings", and no new file.

Is there absolutely no other way at all for me to alter the code in the "DeusEx.u" package, or am I just stuck?

Author:  Cybernetic pig [ Mon Aug 15, 2016 4:07 am ]
Post subject:  Re: UnrealEd constantly crashing during package editing

Do you have any other DeusEx.u's in your DeusExDirectory (e.g GMDX or HDTP' DeusEx.u)? They will need to be deleted or temporarily moved elsewhere.

Author:  Stanton_Blackbyrd [ Fri Aug 19, 2016 12:12 pm ]
Post subject:  Re: UnrealEd constantly crashing during package editing

No, that doesn't seem to be the issue. On that note, I'd already tried testing the usage of a modified DeusExPlayer in GMDX (a testing phase to see how modifying separate packages is supposed to work), and kept getting the same annoying "can't find sound 'bouncemetal'" error from the compiler.

Author:  Cybernetic pig [ Fri Aug 19, 2016 2:57 pm ]
Post subject:  Re: UnrealEd constantly crashing during package editing

GMDX's DeusEx.u references files in a bunch of new packages. Copy-paste every .u file in DeusEx\GMDX\System into DeusEx\System, except for the DeusEx.u file ofc. Do the same for HDTP's .u files, again except its DeusEx.u.

Author:  Stanton_Blackbyrd [ Fri Aug 19, 2016 5:55 pm ]
Post subject:  Re: UnrealEd constantly crashing during package editing

Happened again.

Error: C:\DeusEx (GMDX)\DeusEx\Classes\DeusExPlayer.uc(11898) : Error, Can't find Sound 'bouncemetal'
Critical: appError called:
Critical: Failed due to errors.

All of the files are in their proper places.....I have no idea why the compiler claims to be unable to find any sounds. :/

Author:  Cybernetic pig [ Fri Aug 19, 2016 9:32 pm ]
Post subject:  Re: UnrealEd constantly crashing during package editing

In DeusEx\System find the DeusEx.ini file and under [Editor.EditorEngine] your EditPackages list should look like this:

EditPackages=Core
EditPackages=Engine
EditPackages=Editor
EditPackages=Fire
EditPackages=IpDrv
EditPackages=UWindow
EditPackages=UBrowser
EditPackages=Extension
EditPackages=DeusExUI
EditPackages=ConSys
EditPackages=DeusExConversations
EditPackages=DeusExSounds
EditPackages=DeusExItems
EditPackages=DeusExDeco
EditPackages=DeusExCharacters
EditPackages=HDTPCharacters
EditPackages=HDTPItems
EditPackages=HDTPDecos
EditPackages=HDTPPapers
EditPackages=HDTPBookOpen
EditPackages=HDTPBookClosed
EditPackages=MPCharacters
EditPackages=DeusExText
EditPackages=IpServer
EditPackages=ShifterEX
EditPackages=GMDXSFX
EditPackages=GMDXUI
EditPackages=DeusEx

Are you the one that wanted to add the Invisible War grab SFX? When I release the source code there will also be a step by step guide for compiling GMDX files + documentation.

Author:  Stanton_Blackbyrd [ Mon Aug 22, 2016 10:08 am ]
Post subject:  Re: UnrealEd constantly crashing during package editing

Cybernetic pig wrote:
Are you the one that wanted to add the Invisible War grab SFX?

No, I'm working on a different project.....and at this point, I'm close to wanting to abandon this portion of it. If UED is giving me this much grief with altering someone else's DeusExPlayer file, then I'd hate to think what might happen if I tried anything with the original version.

I'm essentially trying to create my own version of Yukichigai's "combat booster" ability from Shifter. This is achieved through modifying Zyme so that the player can attain a "bullet time" state upon imbibing a vial of the drug. I added a file from Shifter, altered VialCrack, and modified DeusExPlayer in several places throughout the file to make everything similar to what appears in his mod. Then, I started running into numerous errors that didn't even remotely sound like errors in any way whatsoever.

Long story short, this is the latest batch of problems I got from UCC.

Code:
C:\DeusEx (GMDX)\DeusEx\Classes\DeusExPlayer.uc(5022) : Error, '{': Bad command or expression
Failed due to errors.

History: CompileError <- TryCompile <- FScriptCompiler::CompileScript <- (Class DeusEx.DeusExPlayer, Pass 1, Line 5022) <- CompileScripts <- CompileScripts <- CompileScripts <- CompileScripts <- CompileScripts <- CompileScripts <- DoScripts <- UEditorEngine::MakeScripts <- UMakeCommandlet::Main

Exiting due to error

C:\DeusEx (GMDX)\DeusEx\Classes\DeusExPlayer.uc(5272) : Error, 'State' is not allowed here
Failed due to errors.

History: CompileError <- TryCompile <- FScriptCompiler::CompileScript <- (Class DeusEx.DeusExPlayer, Pass 0, Line 5272) <- MakeScript <- MakeScript <- MakeScript <- MakeScript <- MakeScript <- MakeScript <- DoScripts <- UEditorEngine::MakeScripts <- UMakeCommandlet::Main

Exiting due to error

C:\DeusEx (GMDX)\DeusEx\Classes\DeusExPlayer.uc(15008) : Error, Unexpected end of file at end of Class
Failed due to errors.

History: CompileError <- TryCompile <- FScriptCompiler::CompileScript <- (Class DeusEx.DeusExPlayer, Pass 0, Line 15008) <- MakeScript <- MakeScript <- MakeScript <- MakeScript <- MakeScript <- MakeScript <- DoScripts <- UEditorEngine::Make Scripts <- UMakeCommandlet::Main

Exiting due to error

C:\DeusEx (GMDX)\DeusEx\Classes\DeusExPlayer.uc(15007) : Error, End of script encountered inside comment
Failed due to errors.

History: CompileError <- TryCompile <- FScriptCompiler::CompileScript <- (Class DeusEx.DeusExPlayer, Pass 0, Line 15007) <- MakeScript <- MakeScript <- MakeScript <- MakeScript <- MakeScript <- MakeScript <- DoScripts <- UEditorEngine::Make Scripts <- UMakeCommandlet::Main

Exiting due to error


I fix one problem, another one manages to pop up from out of nowhere. If I didn't know any better, I'd think that someone (or something) was actively keeping me from testing a couple of changes. :/

Author:  Cybernetic pig [ Mon Aug 22, 2016 11:51 am ]
Post subject:  Re: UnrealEd constantly crashing during package editing

By the looks of things your code has an error, probably missing a closing/opening bracket somewhere. Have you tried compiling the DeusEx.u without making any changes to it first, to confirm you are good to go?

Quote:
I fix one problem, another one manages to pop up from out of nowhere. If I didn't know any better, I'd think that someone (or something) was actively keeping me from testing a couple of changes. :/


I added a script that detects certain Shifter features and refuses to compile if found :lol:

Just kidding, of course. Just keep at it and we'll get it sorted. Consider posting your code too, if you want me to check for errors.

Author:  Stanton_Blackbyrd [ Sun Dec 11, 2016 10:20 pm ]
Post subject:  Re: UnrealEd constantly crashing during package editing

Cybernetic pig wrote:
By the looks of things your code has an error, probably missing a closing/opening bracket somewhere. Have you tried compiling the DeusEx.u without making any changes to it first, to confirm you are good to go?

Quote:
I fix one problem, another one manages to pop up from out of nowhere. If I didn't know any better, I'd think that someone (or something) was actively keeping me from testing a couple of changes. :/


I added a script that detects certain Shifter features and refuses to compile if found :lol:

Just kidding, of course. Just keep at it and we'll get it sorted. Consider posting your code too, if you want me to check for errors.

Been a little busy this year, but I'm back (for now, I hope). All of the brackets in my code match (as far as I know), so I have no idea as to why compiling is still broken. Unfortunately, the amount of characters in the code itself is nearly six times the posting limit, so I cannot post it. Furthermore, I seem to have caused a bit of an irreversible glitch with the settings on this very message board, and I am unable to access my User Control Panel to fix the problem, so I cannot even attach the file to this post. :/

Author:  Cybernetic pig [ Mon Dec 12, 2016 12:19 am ]
Post subject:  Re: UnrealEd constantly crashing during package editing

http://pastebin.com/

But I doubt I'll be the one who reads over thousands of lines looking for your missing opening/closing bracket.

If it's just a time dilation feature as you say then it shouldn't be so much code.

Author:  Stanton_Blackbyrd [ Mon Dec 12, 2016 2:54 am ]
Post subject:  Re: UnrealEd constantly crashing during package editing

Cybernetic pig wrote:
http://pastebin.com/

Ah.....that works just fine. Only thing left now is to wonder why this particular bit of code won't. :P

http://pastebin.com/[REDACTED]

You'll also need [REDACTED]

Author:  Cybernetic pig [ Mon Dec 12, 2016 3:10 am ]
Post subject:  Re: UnrealEd constantly crashing during package editing

The problem seems to be you've took GMDX's DeusExPlayer.uc and simply replaced it with Shifter's. That won't work as everything is a complex web of code referencing other files and packages as a whole. You'd need to port the specific code into GMDX's DeusExPlayer.uc, such as this:

Code:
function ZymeEffects(float deltaTime)
{
    //Zyme effect
    // This function just manages the time and resets it when applicable.  The fact
    // that the value is negative is what other functions look for.
    if(drugEffectTimer < 0.0)
    {
        drugEffectTimer += deltaTime;

        if(drugEffectTimer >= 0.0)
        {
            if(Level.NetMode == NM_Standalone)
            {
                flagBase.DeleteFlag('Travel_GameSpeed', FLAG_Float); //Just in case it hasn't been set yet
                Level.Game.SetGameSpeed(Level.Game.GameSpeed * 2.000);
            }
            else
                log("DeusExPlayer: Somehow the zyme effect was activated in a non-singleplayer map.  WTF?");
            drugEffectTimer = 180.0;
            ClientMessage("Zyme effect wears off");
        }
    }
}

As well as making every instance of playerTick() call that function, and possibly adding the initialization and management of the 'Travel_Gamespeed' flag, which seems to be added by Shifter for whatever reason.

The consumable and VialCrack classes should be able to be ported in without modification as they are vanilla and GMDX-friendly.
But just taking shifter's DeusExPlayer.uc and replacing vanilla or GMDX's with it won't work.

Author:  Stanton_Blackbyrd [ Mon Dec 12, 2016 7:13 pm ]
Post subject:  Re: UnrealEd constantly crashing during package editing

Cybernetic pig wrote:
The problem seems to be you've took GMDX's DeusExPlayer.uc and simply replaced it with Shifter's. That won't work as everything is a complex web of code referencing other files and packages as a whole. You'd need to port the specific code into GMDX's DeusExPlayer.uc, such as this:

.........
.........
.........

As well as making every instance of playerTick() call that function, and possibly adding the initialization and management of the 'Travel_Gamespeed' flag, which seems to be added by Shifter for whatever reason.

The consumable and VialCrack classes should be able to be ported in without modification as they are vanilla and GMDX-friendly.
But just taking shifter's DeusExPlayer.uc and replacing vanilla or GMDX's with it won't work.

Well, this shows that I was slightly more tired than I thought.....Anyway, I have the proper form now, and I've already made my changes to it.

http://pastebin.com/YeC6f2Lz

And look.......new errors upon compiling! At least I'm not being told there's a missing sound or two.......XD

Code:
Compiling DeusExPlayer
C:\DeusEx (GMDX)\DeusEx\Classes\DeusExPlayer.uc(14201) : Error, Unrecognized member 'GetString' in class 'DebugInfo'
Failed due to errors.

History: CompileError <- TryCompile <- FScriptCompiler::CompileScript <- (Class
DeusEx.DeusExPlayer, Pass 1, Line 14201) <- CompileScripts <- CompileScripts <-
CompileScripts <- CompileScripts <- CompileScripts <- CompileScripts <- DoScript
s <- UEditorEngine::MakeScripts <- UMakeCommandlet::Main

Exiting due to error

C:\DeusEx (GMDX)\System>

Page 1 of 2 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/