PDA

View Full Version : Help with ucc batchexport


Volt9000
08-28-2002, 05:24 PM
I've already read the UnrealScript docs and am becoming quite well-versed in the ways of UnrealScript. I've already batchexported all the UC source scripts. Now, however, I would like to export all the textures. So I'm trying to export like this, which is the correct syntax as specified in the UScript docs:

ucc batchexport botpack.u texture pcx c:\wherever

Well, it works for 4 files, but then I get a General Protection Fault! What could cause this GPF? It's not like I'm low on hard drive space or anything like that. I've tried recopying the Botpack.u file from the CD in case mine was corrupt for some reason, but I still get the same thing.

I get the error in the UTextureExporterPCX method, like so:

</font><blockquote><font size="1" face="Verdana, Arial">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">History: UTextureExporterPCX::ExportBinary <- UExporter::ExportToArchive <- UExporter::ExportToFile <- UBatchExportCommandlet::Main[/code]</blockquote><font size="2" face="Verdana, Arial">I tried exporting all the BMPs and I get the exact same thing: the same 4 bitmaps get extracted then I get the GPF. So I know the command is fine, what could be causing the GPF?

smattbac
08-30-2002, 08:19 AM
I tried what you had, and it just extracted four images and the closed.

I don't really know what the problem could be.

You could try UClasses (http://www.unrealtower.org/). It can export textures and other contents from packages. Altough it uses ucc too if I remember correctly.

Daedalus
08-30-2002, 09:02 AM
What could cause this GPF?<font size="2" face="Verdana, Arial">An invalid parameter inside the botpack.u, set intentionally perhaps by Epic to protect the textures (what I don't believe, because I've tried to extract textures from other *.u packages and I experienced no errors).

I will check the botpack.u with my hex editor. Hang on, the botpack.u is about 37 MB!! It will take some time until I found that invalid parameter........ graemlins/dopefish.gif

P.S. I have tons of special Unreal/UT package tools + documentation of *.u files and I understand hex code a bit, so don't worry.

[ 08-30-2002, 09:17 AM: Message edited by: Daedalus ]

Daedalus
08-30-2002, 09:08 AM
Uhhhm, before I forget: have you tried to install the latest patch for Unreal Tournament?????!!

(I'm asking, because I currently don't have UT installed on my system, so I don't have the files from the latest patch. I'm using the botpack.u which can be found on the retail UT cd! And this botpack.u may be not up to date).

Maybe Epic already have fixed that error with the botpack.u and I can save myself all that work mentioned above. Just download and try the latest UT patch. It should include a newer (smarter) version of UCC, too.

[ 08-30-2002, 09:14 AM: Message edited by: Daedalus ]

NutWrench
08-30-2002, 03:30 PM
I get the same results here: 4 files extracted, then it dies. I also fiddled with the stack size for the DOS shell but it didn't make any difference.

Unreal Package Explorer (http://www.planetunreal.com/unrealservices/) will let you browse through and extract files from any Unreal-engine game. Might be worth a try. images/icons/smile.gif

Daedalus
08-30-2002, 04:01 PM
Originally posted by Volt9000:
I managed to bypass it by using a different program to extract the textures, one called WOTgreal (http://www.wotgreal.com/download.cfm).<font size="2" face="Verdana, Arial">Oh, WOTgreal, I know this tool. It's a nice UnrealScript editor, but it sucks when it comes to exporting packages, because it just extracts about 10-20 textures, then stops and messes up with Windows (as you've already experienced).

I do not recommend WOTgreal. It's too "hairy" and buggy imo. And I don't like its zillions of menus and whatnot which the author has included.

Originally posted by NutWrench:
Unreal Package Explorer (http://www.planetunreal.com/unrealservices/) will let you browse through and extract files from any Unreal-engine game. Might be worth a try. images/icons/smile.gif <font size="2" face="Verdana, Arial">I haven't heard about this tool so far, must be new.

[EDIT]
Ehhhw, you have to download it from fileplanet?! OMG, fileplanet sucks, the download for this 1MB-only tool is awful. graemlins/mryuck.gif
Hang on, I will check if there's another download location....

[ 08-30-2002, 04:10 PM: Message edited by: Daedalus ]

Daedalus
08-30-2002, 04:27 PM
Oh yeah, this tool rocks!!!!!!!!!!!!!!!!!
I have tried it and you can export ALL textures form the botpack.u with that tool!!!!!! images/icons/smile.gif

I found its origin. It's a russian site and the donwload server is fast. Go check it out and don't mind about the russian font:

http://services.unreal.ru/

There's a bunch of tools there for download. But if you just want to download the Package Explorer directly then click:

Unreal Services // Package Explorer 1.1 (http://services.unreal.ru/cgi-bin/dl/dl.cgi?uspe_setup.exe)

Nice hint, NutWrench. You made us all happy now! images/icons/rolleyes.gif images/icons/cool.gif

Daedalus
08-31-2002, 12:31 AM
Ok, 3rd post in a row. I've tried it myself to extract the textures with UCC. Below is a cut from my UCC.log ... I will explain some things afterwards...

Init: Command line: BotPack.u Texture bmp C:\UT_Tex
Log: Loading package BotPack.u...
Log: Exported Texture BotPack.Icons.HudElements1 to C:\UT_Tex\HudElements1.bmp
Log: Exported Texture BotPack.Skins.StudMap to C:\UT_Tex\StudMap.bmp
Log: Exported Texture BotPack.LadrStatic.Static.Static_A00 to C:\UT_Tex\Static_A00.bmp
Log: Exported Texture BotPack.RipperPulse.HEexpl1_a00 to C:\UT_Tex\HEexpl1_a00.bmp
Critical: UTextureExporterBMP::ExportBinary
Critical: UExporter::ExportToArchive
Critical: UExporter::ExportToFile
Critical: UBatchExportCommandlet::Main
Exit: Executing UObject::StaticShutdownAfterError
Exit: Exiting.<font size="2" face="Verdana, Arial">As you can see UCC exits due to a critical error which occurs after the 4th texture Botpack.RipperPulse.HEexpl1_a00 is being extracted. What I know (because I looked it up) is that the next (5th) texture should be Botpack.Blood.BD6.

So I checked the pointer and data of that blood texture inside the botpack.u file and I found nothing suspicious, i.e. that texture is not the reason for the error.

Well, in short, I also don't really know why UCC exits after the 4th texture. However, the Critical: UTextureExporterBMP::ExportBinary error message in the log may give a hint that there's an invalid byte, parameter or whatever data which causes a GPF and can't be handled by UCC.

But I don't really know what that Critical error messages above mean. images/icons/confused.gif
I think the best is when you email my log to Epic and report this bug. The developers should know best what that error messages mean. Maybe you even found an unknown bug! Who knows.

That's all I can help you with.

[ 08-30-2002, 12:34 PM: Message edited by: Daedalus ]

Volt9000
08-31-2002, 12:37 AM
Well, apparently it's a bug.
But I managed to bypass it by using a different program to extract the textures, one called WOTgreal (http://www.wotgreal.com/download.cfm).

Someone in the BeyondUnreal forums was kind enough to explain it to me here:
http://forums.beyondunreal.com/showthread.php?s=&threadid=129216

[edit]
A word of warning, that WOTgreal program made windows go totally fubar, as I explained in the thread above.

[ 08-30-2002, 12:45 PM: Message edited by: Volt9000 ]