.uc files: sorry if this has been asked before

Discussions about UT99
User avatar
EvilGrins
Godlike
Posts: 8292
Joined: Thu Jun 30, 2011 8:12 pm
Personal rank: God of Fudge
Location: Palo Alto, CA

.uc files: sorry if this has been asked before

Post by EvilGrins » Wed Jun 16, 2021 12:13 am

How does one decompress .uc files?

Is it different if they're for UT or Unreal?
http://unreal-games.livejournal.com/
Image
medor wrote:Replace Skaarj with EvilGrins :mrgreen:
Smilies · viewtopic.php?f=8&t=13758

User avatar
UT Sniper (SJA94)
Masterful
Posts: 694
Joined: Thu Jun 24, 2010 10:35 pm
Personal rank: noob programmer
Location: England

Re: .uc files: sorry if this has been asked before

Post by UT Sniper (SJA94) » Wed Jun 16, 2021 12:31 am

You don't decompress .uc files, they are unreal script source files, you compile them into .u files.

User avatar
EvilGrins
Godlike
Posts: 8292
Joined: Thu Jun 30, 2011 8:12 pm
Personal rank: God of Fudge
Location: Palo Alto, CA

Re: .uc files: sorry if this has been asked before

Post by EvilGrins » Wed Jun 16, 2021 2:01 am

UT Sniper (SJA94) wrote:
Wed Jun 16, 2021 12:31 am
You don't decompress .uc files, they are unreal script source files, you compile them into .u files.
Okay then, how do I do that?
http://unreal-games.livejournal.com/
Image
medor wrote:Replace Skaarj with EvilGrins :mrgreen:
Smilies · viewtopic.php?f=8&t=13758

User avatar
Aspide
Average
Posts: 37
Joined: Wed Jun 09, 2021 12:13 am

Re: .uc files: sorry if this has been asked before

Post by Aspide » Wed Jun 16, 2021 4:59 am

First of all you need to put the .uc files in a folder, for example “MyScripts”. This folder needs to be in the UT99 folder (not the Maps, Music , etc.. folders). Then you need a application to compile them, the original UT99 comes with UCC.exe, but I personally use UMake to compile scripts. Download UMake, put the UMake.exe somewhere in your computer, drag the “MyScripts folder into UMake.exe and then select the dependencies of the file.
After all of that UMake will transform the original folder to an .u file in your System folder (MyScripts.u).

I hope this helps.
Somewhere in Nevada...

User avatar
OjitroC
Godlike
Posts: 2531
Joined: Sat Sep 12, 2015 8:46 pm

Re: .uc files: sorry if this has been asked before

Post by OjitroC » Wed Jun 16, 2021 9:59 am

EvilGrins wrote:
Wed Jun 16, 2021 12:13 am
How does one decompress .uc files?

Is it different if they're for UT or Unreal?
How many do you have? Where did they come from? It might be an idea to post part or all of a .uc file you want to compile so that we have an idea of what it is (it could be something that has already been complied as a u file elsewhere for example or it may not really need to be compiled if it is very simple and just a subclass of an existing class as you can use another method for this).

A uc file is a text file that can be opened and read by any text editor so there should not be an issue in looking at the content of the file.

User avatar
sektor2111
Godlike
Posts: 5536
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Re: .uc files: sorry if this has been asked before

Post by sektor2111 » Wed Jun 16, 2021 2:26 pm

Aspide wrote:
Wed Jun 16, 2021 4:59 am
First of all you need to put the .uc files in a folder, for example “MyScripts”.
...
I hope this helps.
Nope... UC files belongs to a sub-folder called "Classes" inside whatever Folder which is the NAME of a future compilation. UMake is a compiling helper, it's not mandatory. If there is nothing found as expected UC files inside Classes, you'll get this:
EmptyClasses.PNG
Or maybe in your environment they are compiled other way...
You do not have the required permissions to view the files attached to this post.

User avatar
Aspide
Average
Posts: 37
Joined: Wed Jun 09, 2021 12:13 am

Re: .uc files: sorry if this has been asked before

Post by Aspide » Wed Jun 16, 2021 7:27 pm

:facepalm: Sorry, you are right. I forgot to mention that the .uc files need to be in a folder called “Classes” inside the “MyScripts” folder. Also if you want to include other files in the .u file (like textures or sounds), you need to create a folder inside the “MyScripts” folder. For example .pcx files have to be in a folder called “Textures”, .wav files in “Sounds”, and if you want to include models: .3d files in “Models”. All of this files need to be imported by a .uc file.

So, in the end it will look like this:

MyScripts:

-Classes
-Models
-Sounds
-Textures

Again I apologize, I was typing that just before going to bed.... :sleep:
Somewhere in Nevada...

User avatar
EvilGrins
Godlike
Posts: 8292
Joined: Thu Jun 30, 2011 8:12 pm
Personal rank: God of Fudge
Location: Palo Alto, CA

Re: .uc files: sorry if this has been asked before

Post by EvilGrins » Wed Jun 16, 2021 8:19 pm

OjitroC wrote:
Wed Jun 16, 2021 9:59 am
How many do you have?
402
Image
OjitroC wrote:
Wed Jun 16, 2021 9:59 am
Where did they come from?
They're from Klingon Honor Guard, that Unreal/UT Star Trek game.

I still wanna see if I can use weapons and monsters and aliens from that for UT.
http://unreal-games.livejournal.com/
Image
medor wrote:Replace Skaarj with EvilGrins :mrgreen:
Smilies · viewtopic.php?f=8&t=13758

User avatar
OjitroC
Godlike
Posts: 2531
Joined: Sat Sep 12, 2015 8:46 pm

Re: .uc files: sorry if this has been asked before

Post by OjitroC » Wed Jun 16, 2021 8:36 pm

EvilGrins wrote:
Wed Jun 16, 2021 8:19 pm
I still wanna see if I can use weapons and monsters and aliens from that for UT.
The short answer to that is ... no. You would need to rework the code in the .uc files as, although it is an Unreal Engine game, it uses modified versions of all the important UE components and so weapons, monsters and aliens will be subclassed from Actors/Classes that won't work in UT.

A while ago I downloaded KHG and had a look at it. Essentially the only useable things from it are sounds and textures.

Do you not have a compiled version of KHG? If so, you can test out some of the u files and see for yourself.

The nearest thing that works is the Klingon Honor Guard mod for Unreal but that won't work in UT as it uses Unreal-only resources.

Automatically merged

Just to illustrate the point, this is the error on trying to summon Klingons.HGGrunt
UT Log wrote:DevLoad: Loading: Package klingons
Log: Failed import: Class Class Core.StringProperty (file ../System/Core.u)
Warning: Failed to load "klingons": Can't find Class in file "Class Core.StringProperty"..
Warning: Failed to load "Class klingons.hggrunt": Can't find Class in file "Class Core.StringProperty"..

User avatar
EvilGrins
Godlike
Posts: 8292
Joined: Thu Jun 30, 2011 8:12 pm
Personal rank: God of Fudge
Location: Palo Alto, CA

Re: .uc files: sorry if this has been asked before

Post by EvilGrins » Thu Jun 17, 2021 2:12 am

OjitroC wrote:
Wed Jun 16, 2021 11:59 pm
but that won't work in UT as it uses Unreal-only resources.
Maybe not directly, but others have imported stuff from Unreal to UT before, so if not directly, maybe someone with mad coding skills could export stuff from there into something that could be used.
http://unreal-games.livejournal.com/
Image
medor wrote:Replace Skaarj with EvilGrins :mrgreen:
Smilies · viewtopic.php?f=8&t=13758