You are an unregistered user, you can register here
Navigation

Information

Site

Donations
If you wish to make a donation you can by clicking the image below.


 
Go Back   The Unreal Admins Page > Forums > Front Page > Downloads > Unreal Tournament > Maps & Mods

Reply
Thread Tools Display Modes
  #1  
Unread 7th November, 2007, 12:09 PM
rork's Avatar
rork rork is offline
Godlike
 
Join Date: Nov 2007
Posts: 265
Default utdep.pl - Perl script for UT package info.

ABOUT
utdep.pl is a perl* script originally written to retrieve the dependencies of an Unreal Tournament map. However it can also be used to print the header, index table, name table or object properties of most UT packages. You can use it just to view them but also as a backend for scripts to find certain imports, auto-check dependencies etc...

USAGE
perl.exe -w utdep.pl <package> <switch> [windows]
perl -w utdep.pl <package> <switch> [linux/mac]

There are several switches:

-h print the headers
-n print the name table
-i print the import table
-d print the dependencies list (default)
-l print levelinfo
-a print advanced info (levelinfo, weapons/ammo, botpathing)
-o # show the properties of object, # = objectid in the export table
-r # dump the properties of object, # = objectid in the export table

KNOWN BUGS

The script was tested on UT99/GOTY maps, it might work for other packages
and/or UT versions as well. Testing revealed some bugs, most of them are
impossible to overcome because of the way unreal packages are constructed.

The dependencies don't have to be in the same case as the files.

It's not possible to determine the type of all packages, in this case the
.??? extention is used.
Typical packages that go wrong: unrealshare.u

Not all the packages are printed with the correct extention, the standard
.u packages export music, sounds or textures too which will confuse the
script. I haven't found anything to solve this so the best solution is to
ignore them.
In theory it's possible to check that package whether it exports the
required data but this is beyond the intentions of this script.
Typical packages that go wrong: editor.u, unreali.u, unrealshare.u,
umenu.u, utmenu.u, uwindow.u

Sometimes when using this script for an automated check in some maps errors
occur, however they cannot be repeated when running the script on that map
alone.

When dumping object properties arrays are currently not fully supported.
If arrays are longer then 128 the script will probably produce giberish.
The maximum number of properties that are shown is 1024. Some datatypes
are not implemented and might cause trouble when dumping object properties.
(Support was added for levelinfo, which seems to work well).

QWords (64 bit strings) are parsed as bitstring rather then number to keep
compatibility with 32 bit systems. Currently this only affect the probemask
of the object header.

Not all object data was described, sometimes I had to do an educated guess
based on what I found and what a value van be. Where I was wrong strange
output is expected in further testing.

ACKNOWLEDGEMENTS

With writing this script I had a lot of help at the Beyond Unreal forums,
especially from from Just**Me who gave me an example script to work from.
(The topic and script were lost in the BeyondUnreal crash)

Other helpfull pages at UnrealWiki:
http://wiki.beyondunreal.com/wiki/Package_File_Format
http://wiki.beyondunreal.com/wiki/Pa...t/Data_Details

Thanks to NogginBasher & BlackWolf for testing the script. Also a big thanks
to Wormbo for getting me back on track with exporting the objects.

COPYRIGHTS & DISCLAIMER

You have the right to copy this script, you may also redistribute, adapt and
rewrite it if you want. I can't be held responsible for any damage of this
script did to your system, especially not when they are redistributed or
addapted by other persons. Use the script at your own risk.

Ignore the file below, download
Attached Files
File Type: zip utdep.zip (4.4 KB, 133 views)

Last edited by rork : 30th July, 2012 at 08:59 PM. Reason: Script update
Reply With Quote
  #2  
Unread 7th June, 2008, 07:57 PM
Flash_ Flash_ is offline
Killing Spree
 
Join Date: May 2007
Posts: 42
Default

Works good, thanks for sharing.
Reply With Quote
  #3  
Unread 30th December, 2008, 05:55 PM
Azura's Avatar
Azura Azura is offline
Holy Shit!!
 
Join Date: Apr 2003
Posts: 4,029
Default

Great, this was something I was looking for. It's been a pain trying to find information on the file structure.
__________________
How to feck up a perfectly good game:
UT (1999) = UnbelievableGameSoCoolIMustHelpBringNewPlayers Tournament
UT (2008) = Unreal ThrustMyPrivatePartsInYourFaceBish

And that's probably why UTIII was a relative flop. New game, same sh*thead players ^^.
Reply With Quote
  #4  
Unread 30th July, 2012, 09:08 PM
rork's Avatar
rork rork is offline
Godlike
 
Join Date: Nov 2007
Posts: 265
Default

Updated the script, see text above for info.
__________________
Admin of XOL DOG CTF Fun server: 81.169.188.18 - Stats & dU Coop: 85.14.203.180:5555 - Forum
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:55 AM.


 

All pages are copyright The Unreal Admins Page.
You may not copy any pages without our express permission.