U Files Export Problem!!! HELP

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

U Files Export Problem!!! HELP

Post by osmel92 » Tue Jun 07, 2022 3:42 pm

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: 2394
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: U Files Export Problem!!! HELP

Post by Barbie » Tue Jun 07, 2022 7:54 pm

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: 15
Joined: Thu Oct 03, 2013 10:13 pm

Re: U Files Export Problem!!! HELP

Post by osmel92 » Wed Jun 08, 2022 10:40 am

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: 2394
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: U Files Export Problem!!! HELP

Post by Barbie » 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?
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett

Letylove49
Experienced
Posts: 117
Joined: Tue Feb 28, 2012 7:47 pm
Personal rank: <[MHA]>Admin
Location: suisse

Re: U Files Export Problem!!! HELP

Post by Letylove49 » Wed Jun 08, 2022 8:54 pm

hace you exported or uncompiled ?
<[MHA]>Letylove49 aka Shado170

osmel92
Novice
Posts: 15
Joined: Thu Oct 03, 2013 10:13 pm

Re: U Files Export Problem!!! HELP

Post by osmel92 » Thu Jun 09, 2022 6:00 am

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: 2394
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: U Files Export Problem!!! HELP

Post by Barbie » Thu Jun 09, 2022 10:52 am

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.
You do not have the required permissions to view the files attached to this post.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett

osmel92
Novice
Posts: 15
Joined: Thu Oct 03, 2013 10:13 pm

Re: U Files Export Problem!!! HELP

Post by osmel92 » Thu Jun 09, 2022 10:54 pm

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###"