U Files Export Problem!!! HELP

Discussions about Coding and Scripting
Post Reply
osmel92
Novice
Posts: 19
Joined: Thu Oct 03, 2013 10:13 pm

U Files Export Problem!!! HELP

Post by osmel92 »

My problem is the following, I need to get a couple of codes but they appear as "UnknownFunction???"

Export with"WOTgrealExporter":

Code: Select all

function Timer ()
{
	if ( UnknownFunction130(UnknownFunction154(s_SWATGame(Level.Game).GamePeriod,0),UnknownFunction155(s_SWATGame(Level.Game).RoundNumber,CurrentRound)) )
	{
		CurrentRound = s_SWATGame(Level.Game).RoundNumber;
		SetNewSize();
	}
}
However, using UTPT some unknown functions it detects well but others do not appear, it even changes the mode of the code as shown here:

Export with UTPT:

Code: Select all

function Timer ()
{
  if ( (s_SWATGame(Level.Game).GamePeriod == 0) && (s_SWATGame(Level.Game).RoundNumber != CurrentRound) )
  {
    CurrentRound = s_SWATGame(Level.Game).RoundNumber;
    SetNewSize();
  }
}
I would like to know if there is any exporter .U files more efficient than these 2, including the UCC BatchExporter for greater ease???
User avatar
Barbie
Godlike
Posts: 2802
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: U Files Export Problem!!! HELP

Post by Barbie »

If the code is not stripped you can easily export the code via

Code: Select all

ucc.exe batchexport YourPackage.u class uc YourPackage.u\Classes
Get full description with

Code: Select all

ucc.exe help batchexport
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
osmel92
Novice
Posts: 19
Joined: Thu Oct 03, 2013 10:13 pm

Re: U Files Export Problem!!! HELP

Post by osmel92 »

I have followed your code and I have been able to export, however all the ".UC" files only appear to me written "defaultproperties{}" without classes or codes :(
User avatar
Barbie
Godlike
Posts: 2802
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: U Files Export Problem!!! HELP

Post by Barbie »

Probably the code is stripped. Do you have a download link to the file in question that we can have look at it?
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
Letylove49
Adept
Posts: 277
Joined: Tue Feb 28, 2012 7:47 pm
Location: suisse
Contact:

Re: U Files Export Problem!!! HELP

Post by Letylove49 »

hace you exported or uncompiled ?
Image



Letylove49 aka Alicia
osmel92
Novice
Posts: 19
Joined: Thu Oct 03, 2013 10:13 pm

Re: U Files Export Problem!!! HELP

Post by osmel92 »

Barbie wrote: Wed Jun 08, 2022 7:56 pm Probably the code is stripped. Do you have a download link to the file in question that we can have look at it?
Este es el archivo:

https://www.mediafire.com/file/6shbm8ms ... ra2.u/file

Automatically merged

Letylove49 wrote: Wed Jun 08, 2022 8:54 pm hace you exported or uncompiled ?
It is what I have tried, but the best program that seems to me to be more efficient with the codes is WOTgrealExporter, but the bad thing is that it does not recognize many variables and places them as "UnknownFunction###" and it is a real problem :(
User avatar
Barbie
Godlike
Posts: 2802
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: U Files Export Problem!!! HELP

Post by Barbie »

osmel92 wrote: Thu Jun 09, 2022 6:05 am TOExtra2.u
Sadly I cannot open it in UnrealEd because a lot of dependent files are missing:
TOExtra2.u-missing_files.jpg
But viewing it with a text editor gave me the impression that the text code was stripped so that only the byte code is available.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
osmel92
Novice
Posts: 19
Joined: Thu Oct 03, 2013 10:13 pm

Re: U Files Export Problem!!! HELP

Post by osmel92 »

what happens is that this is for Tactical Ops 3.4 mod for UT99 so they are dependent files, but the problem is the "UnknownFunction###"
Post Reply