[REQUEST] Tool to decompile .u files

Post ideas for a new map/mod, and someone might make it real.
Post Reply
User avatar Romania
Dragosvr92
Administrator
Administrator
Posts: 1128
Joined: 11 Sep 2009, 06:04
Name: Dragoș-Valentin Rădulescu
Location: Romania
Age: 32
Contact:

[REQUEST] Tool to decompile .u files

Post by Dragosvr92 »

@DeepImpact, i was thinking you could create a tool such as this to simplify modding for LOTD?

Tool to export .uc files out of .u files.

To decompile the .u file you need to type and run this command in Command prompt.

Code: Select all

UCC.exe BatchExport FILENAME.u class .uc C:\PATH\TO\FOLDER
I was thinking of a simple tool in which you can Select the .u file from the system folder.
Also, a Browse button to browse to the path where you want it extracted.
Name it something like LOTD-UC-Exporter.exe ?


I made some basic example layout in html you could check.
Example.PNG
I think it may look better though with a clean white layout like Trin did in his LOTDServer Tool.
Maybe the path to folder can be set by default to temp and then ask you where to save the output?
This tool can be universal as it works with any unreal game. Thoughts? :D
Spoiler:

Code: Select all

<html>
<head>

<title>LOTD-UC-Exporter</title>
<style>
html, body {
    background: #161817 url("http://www.rising-dead.com/forums/styles/LOTD/theme/images/bg_lotd.jpg") no-repeat fixed center center / cover ;
    color: #d9d9d9;
}

.exportfile {
	background-color:grey;
	margin: 0 120px 0 105px;
	color:#000;
}

fieldset {
	background-color:#272b27;
	border-radius:6px;
	margin: 100px 281px;
	text-align:center;
}

legend {
	background-color:green;border-radius:6px;
}
</style>
</head>

<body>

<fieldset>

<legend>Select the files to export</legend>

<form method="post" action="">
<p>
<div class="exportfile">
Specify the .u file you want to decompile:
<input type="file" size="40" name="datafile"></div>
</p>

<p>
<div class="exportfile">
Output Directory
<input type="file" size="40" name="datafile"></div>
</p>

<input type="checkbox" name="load" value="loadfolder">Open extraction folder<br>
<div><input type="submit" value="Decompile {Filename?}"></div>
</form>

</fieldset>

</body>
</html>
More about the manual process here: [HOWTO] (Re)Compile .U Files
You do not have the required permissions to view the files attached to this post.
Formerly known as TheKiller
User avatar Canada
Puppy Wehtam
Server Admin
Server Admin
Posts: 218
Joined: 11 Mar 2011, 05:52
Location: On Easy Street
Age: 33

Re: [REQUEST] Tool to decompile .u files

Post by Puppy Wehtam »

This would be very useful, I hope you can do this for us DeepImpact. :)
Image
Mapper, Server Owner (Puppy's Zomdemic)
User avatar United States of America
DeepImpact
Server Admin
Server Admin
Posts: 83
Joined: 27 May 2013, 02:08
Age: 47
Contact:

Re: [REQUEST] Tool to decompile .u files

Post by DeepImpact »

* You mean something like this app?
http://www.moddb.com/games/unreal-tourn ... -tool-v111
In the screenshot... I see Unreal 3 and Unreal 2004. Which unreal engine does lotd use exactly? i forget...
It does have the selection of the ucc location and the game exe location. Supports *.u files and will export class UC files.
Not sure if that app will work for lotd or is what you need.. untested.

* If that app doesn't work for lotd.. I will see what I can do for ya all. ;--) itta give me somehting to do when i'm bored.
.. It doesn't look too difficult to make it really..at first glance. for decompiling u files. hmm.. click a button and run a cmd.
.. recompiling. hmm.. I don't see a UW.ini in my lotd system folder. Cause I hadn't decompiled anything yet? probably why.

Ok.. let me know about that other app... but if it's not what your looking for.. I'll try to make the app you need. no prob... ;-)

EDIT: That app not good enough... I will see if I can fix us up something that is. ;--)
User avatar Romania
Dragosvr92
Administrator
Administrator
Posts: 1128
Joined: 11 Sep 2009, 06:04
Name: Dragoș-Valentin Rădulescu
Location: Romania
Age: 32
Contact:

Re: [REQUEST] Tool to decompile .u files

Post by Dragosvr92 »

Yep. It does work on LOTD. But its bugged. It only lists two columns of the .u files in the directory, theres no scrollbar to list all.
Also it autoselects all files for decompiling. I explained in the link and on Evolve as we spoke. :)

Thanks.
Formerly known as TheKiller
User avatar United States of America
DeepImpact
Server Admin
Server Admin
Posts: 83
Joined: 27 May 2013, 02:08
Age: 47
Contact:

Re: [REQUEST] Tool to decompile .u files

Post by DeepImpact »

LOTD-UC-Exporter 1.0 will be ready for testing soon...probably by tomorrow. Just gotta check a few things first.
- It auto creates a batch file when selecting a .u file and or output folder.. and runs the .bat file after you press start....
...displaying the ucc.exe output data on the app as well... you will Not see a ucc dos window. ;--)
- The auto batch file seemed the only way to overcome spaces in file names and folder names.
... the main hold up was spaces. stupid spaces! lol
User avatar Romania
Dragosvr92
Administrator
Administrator
Posts: 1128
Joined: 11 Sep 2009, 06:04
Name: Dragoș-Valentin Rădulescu
Location: Romania
Age: 32
Contact:

Re: [REQUEST] Tool to decompile .u files

Post by Dragosvr92 »

That is awesome Deep, thanks for your help ! :D
Formerly known as TheKiller
User avatar Canada
Puppy Wehtam
Server Admin
Server Admin
Posts: 218
Joined: 11 Mar 2011, 05:52
Location: On Easy Street
Age: 33

Re: [REQUEST] Tool to decompile .u files

Post by Puppy Wehtam »

Awesome. Can't wait to see it in action. :)
Image
Mapper, Server Owner (Puppy's Zomdemic)
User avatar Romania
Dragosvr92
Administrator
Administrator
Posts: 1128
Joined: 11 Sep 2009, 06:04
Name: Dragoș-Valentin Rădulescu
Location: Romania
Age: 32
Contact:

Re: [REQUEST] Tool to decompile .u files

Post by Dragosvr92 »

I moved the release post of the tool into a topic in the download section.
Link here=> LOTD-UC-Exporter
Formerly known as TheKiller
Post Reply