modifying .uc files

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

gjq

New Member
Jun 15, 2017
7
0
1
Hi,

I am a newbie trying to modify .uc files (and creating a new one) from a previously compiled game. Here is a walk-through of what I have tried.

When I recompile ("ucc make" in a console in the "System" folder), I see that sometimes the changes I make are taken into account, but not always. So I manually deleted all .u files and recompile.

I get the following slew of warnings/errors:
1. A whole bunch of .h files needed to be updated (they didn't exist):
The file '..\<class>\Inc\<class>.h' needs to be updated. Do you want to overwrite the existing version? (Y/N): Y

I didn't have the folder "Inc" in any of these classes (Editor, Engine, UnrealEd etc.), and saying "Y" to overwrite/force overwrite does nothing. I get past this error when I simply create an "Inc" subfolder in every class folder it complains about.

2. For a new .uc I created, I get this after my class is released:
Analyzing...
Script vs. class name mismatch (EyeLinkTCP/.)
Parsing .
D:\EyeLink_UE2\0TEST_MRT_GridCell_Task_EyeTrack\HH_Oestrogen\Neuro2\Classes\..uc(9) : Error, Class must be named ., not EyeLinkTCP
Compile aborted due to errors.
Success - 0 error(s), 171 warning(s)

even though my .uc file has the same name as the class. Why is the class name recognized as only a "."?? I see that if I do NOT delete the .u files now, but rerun
Code:
ucc make
without doing anything else, I get the following message instead (so I have to recompile twice??):
Analyzing...
Parsing EyeLinkTCP
Parsing Exp2GameInfo
Parsing Exp2Subject
Parsing Exp2Spawner
Parsing Exp2Controller
Parsing Exp2HUD
Parsing Exp2Beeper
Parsing Exp2Cue
Parsing Exp2Landmark
Parsing Exp2ObjSprite
Compiling EyeLinkTCP
D:\EyeLink_UE2\0TEST_MRT_GridCell_Task_EyeTrack\HH_Oestrogen\Neuro2\Classes\EyeLinkTCP.uc(61) : Error, Call to 'StringToIpAddr': bad or missing parameter 1
Compile aborted due to errors.
Success - 0 error(s), 1 warning(s)

This leads me to the next error.

3. I get a "Critical Error" window saying:
No Label

OS: Windows NT 6.2 (Build: 9200)
CPU: GenuineIntel PentiumPro-class processor @ 2814 MHz with 2047MB RAM
Video: Intel(R) HD Graphics 630 (4574)

Failed to find object 'Class Neuro2.Exp2GameInfo'

History: UObject::SafeLoadError <- UObject::StaticLoadClass <- InitGameInfo <- UGameEngine::LoadMap <- LocalMapURL <- UGameEngine::Browse <- UGameEngine::Init <- InitEngine

Although Exp2GameInfo.uc does exist in a folder called "Neuro2" (or "neuro2" -- but I checked that it doesn't seem to be case-sensitive). And I tried removing the EyeLinkTCP.uc file but still get this error.

I also, btw, am running on a machine with Intel Core i7 and an NVIDIA GeForce GTX 1050 Ti and running Windows 10 Pro (why is it showing up as Windows NT?).

4. At one stage, when I remove every bit of code that gives me a warning, I get the following Critical Error window:
No Label

OS: Windows NT 6.2 (Build: 9200)
CPU: GenuineIntel PentiumPro-class processor @ 2816 MHz with 2047MB RAM
Video: Intel(R) HD Graphics 630 (4574)

General protection fault!

History: GUIController::execGetMenuFont <- UObject::processEvent <- (RTGUIController Transient.RTGUIController0, Function GUI.GUIController.InitializeController) <- UGameEngine::Init <- InitEngine
I've tried moving/deleting the following files from the System folder: UE2Runtime.ini, User.ini and Default.ini -- which gets rid of the error message but then the game doesn't start either...so I guess I need to modify something here? I see that UE2Runtime.ini gets generated each time, so it's one of the other two that should lead me to the error (what?)?

I am at a loss and have trawled through the forums -- I would really appreciate any advice!! Thanks in advance for any help
 
Last edited:

gjq

New Member
Jun 15, 2017
7
0
1
For anyone having similar errors, which I find a bit opaque, I was getting these errors because I had created .uc files that were not named according to the convention in the map files, I am told (though not sure what that means). Once I renamed the new .uc files I created with the correct prefix, deleted the .u file for the custom package I was dealing with, "ucc make" didn't come up with any of the above errors.