Results 1 to 15 of 15

Thread: Linux source?

  1. #1
    Skaarj
    Join Date
    Mar 2004
    Posts
    19

    Exclamation Linux source?

    Coming from quake3 modding, I am quite confused how to obtain the UT2004 source. I have searched the forums and turned up nothing. From what I have read it looks like there is some tool to extract the .u files from the game itself. Could someone help me out or throw me a link?

  2. #2
    MSgt. Shooter Person
    Join Date
    Nov 2002
    Posts
    308

    Default

    Linux source is the same as the windows source. Since the Linux UCC can't compile, you have to use the Window UCC. It will work under Wine.

    Boot into Windows, start UED, find the actor menu and click "Export All Script".



    Then look in your UT2004 folder.

  3. #3
    MSgt. Shooter Person
    Join Date
    Mar 2004
    Posts
    275

    Default

    also, you can use the program UnCodeX to browse the classes once you've exported them. although this still isnt a linux version (I think) it's definately less RAM hungry and instable as unreadl ed.

  4. #4
    Skaarj
    Join Date
    Mar 2004
    Posts
    19

    Default

    damnit, UnrealEd won't run under wine. Is there no other way to extract the scripts?

  5. #5
    MSgt. Shooter Person
    Join Date
    Nov 2002
    Posts
    308

    Default

    Originally posted by -GSF-JohnDoe
    also, you can use the program UnCodeX to browse the classes once you've exported them. although this still isnt a linux version (I think) it's definately less RAM hungry and instable as unreadl ed.
    Hehe, I'll put my "vim", "find", and "grep" against any editor you've got.

    $ find . -name \*.uc -exec grep -i -n Foo {} /dev/null \;

  6. #6
    Skaarj
    Join Date
    Mar 2004
    Posts
    19

    Lightbulb

    Nevermind, Unreal Ed crashed in WINE. Just my luck

  7. #7
    MSgt. Shooter Person
    Join Date
    Nov 2002
    Posts
    308

    Default

    Originally posted by muska
    Nevermind, Unreal Ed crashed in WINE. Just my luck
    UED won't run in Wine, but UCC.exe will. Now if you don't have Windows installed, there is another way ...

    Pretend you want the source code for Foo.u

    $ cd UT2004/System
    $ mkdir -p ../Foo/Classes
    $ wine ./UCC.exe batchexport Foo.u uc class ../Foo/Classes

  8. #8
    Skaarj
    Join Date
    Mar 2004
    Posts
    19

    Default

    Are all .u files essential to extract?

  9. #9
    Skaarj
    Join Date
    Mar 2004
    Posts
    19

    Default

    UCC is not complying. Failed loading package: Can't find file for package 'AS_FX_TX'

    History: UObject::SafeLoadError <- UObject::LoadPackage <- UBatchExportCommandlet::Main

  10. #10
    MSgt. Shooter Person
    Join Date
    Nov 2002
    Posts
    308

    Default

    Did you adjust your statement to export textures? I have to assume you are using what I posted on a texture since you didn't post what command you used.

    See Wiki for more information.

    Also if you are doing stuff only in Linux, you'll want to learn the #EXEC commands. Very handy when you can't use UED to package media.
    Last edited by legacy-supun; 03-24-2004 at 03:07 PM.

  11. #11
    Skaarj
    Join Date
    Mar 2004
    Posts
    19

    Default

    Originally posted by supun
    Did you adjust your statement to export textures? I have to assume you are using what I posted on a texture since you didn't post what command you used.

    See Wiki for more information.

    Also if you are doing stuff only in Linux, you'll want to learn the #EXEC commands. Very handy when you can't use UED to package media.
    bash-2.05b$ winex3 -use-pthreads no /mnt/cdrom/System/UCC.exe batchexport XWeapons.u class uc /home/muska/****/XGames/Classes/
    Loading package XWeapons.u...
    Failed loading package: Can't find file for package 'AS_FX_TX'

    History: UObject::SafeLoadError <- UObject::LoadPackage <- UBatchExportCommandlet::Main

    Exiting due to errror

  12. #12
    MSgt. Shooter Person
    Join Date
    Nov 2002
    Posts
    308

    Default

    I don't know what to say ...

    xxxxx@xxxx UT2004 $ cd System/
    xxxxx@xxxx System $ mkdir -p ../XWeapons/Classes
    xxxxx@xxxx System $ wine ./UCC.exe batchexport XWeapons class uc ../XWeapons/Classes
    Loading package XWeapons...
    Exported Class XWeapons.LinkGun to ../XWeapons/Classes\LinkGun.uc
    Exported Class XWeapons.SniperRifle to ../XWeapons/Classes\SniperRifle.uc
    Exported Class XWeapons.Painter to ../XWeapons/Classes\Painter.uc
    Exported Class XWeapons.ZoomSuperShockRifle to ../XWeapons/Classes\ZoomSuperShockRifle.uc
    Exported Class XWeapons.SuperShockRifle to ../XWeapons/Classes\SuperShockRifle.uc

    [bunch deleted]

    Exported Class XWeapons.LockerWeapon to ../XWeapons/Classes\LockerWeapon.uc
    Exported Class XWeapons.AssaultAmmo to ../XWeapons/Classes\AssaultAmmo.uc
    Exported Class XWeapons.FX_WeaponLocker to ../XWeapons/Classes\FX_WeaponLocker.uc
    Exported Class XWeapons.Transpickup to ../XWeapons/Classes\Transpickup.uc
    Success - 0 error(s), 0 warning(s)

  13. #13
    Skaarj
    Join Date
    Mar 2004
    Posts
    19

    Default

    supun, do you have AIM or are you on IRC? that would make this process alot easier

  14. #14
    Skaarj
    Join Date
    Mar 2004
    Posts
    1

    Default

    Originally posted by muska
    bash-2.05b$ winex3 -use-pthreads no /mnt/cdrom/System/UCC.exe batchexport XWeapons.u class uc /home/muska/****/XGames/Classes/
    Loading package XWeapons.u...
    Failed loading package: Can't find file for package 'AS_FX_TX'

    History: UObject::SafeLoadError <- UObject::LoadPackage <- UBatchExportCommandlet::Main

    Exiting due to errror
    I see you use winex, I was not able to run the editor in winex, but I was able to run under wine, at least enough to export the scripts.

    You might have better success with ucc using wine instead of winex.

  15. #15
    MSgt. Shooter Person
    Join Date
    Nov 2002
    Posts
    308

    Default

    Originally posted by muska
    supun, do you have AIM or are you on IRC? that would make this process alot easier
    The best would be to email me for that information at spoon@spoonware.org.


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.