Announcement

Collapse
No announcement yet.

Easy question for experienced coders

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Easy question for experienced coders

    What is the easiest way to export all the files within a .u?

    I made a batch file below:

    Code:
    UCC BatchExport %1 class uc c:\ut2004\%1\Classes
    UCC BatchExport %1 texture tga c:\ut2004\%1\Textures
    UCC BatchExport %1 sound wav c:\ut2004\%1\Sounds
    UCC BatchExport %1 model t3d c:\ut2004\%1\Models
    UCC BatchExport %1 textbuffer txt c:\ut2004\%1\Text
    But there has to be a more turn-key way of exporting everything. I'm screwing around with "object" which wiki says can export everything, but I cant get it right. Anyone wilingl to jot down real quick what I/we should be doing?

    Thank you for your time.

    #2
    That looks about right!

    Comment


      #3
      Ok..i went a little nuts and started looking around editor.dll and found everythingt hat can be exported. I'm gonna start making a *ahem* super batch file, heh.

      Comment


        #4
        Ok this is what I got so far:

        Code:
        UCC BatchExport %1 class h c:\ut2004\%1\h
        UCC BatchExport %1 class uc c:\ut2004\%1\Classes
        UCC BatchExport %1 level obj c:\ut2004\%1\Levels
        UCC BatchExport %1 level stl c:\ut2004\%1\Levels
        UCC BatchExport %1 level t3d c:\ut2004\%1\Levels
        UCC BatchExport %1 model t3d c:\ut2004\%1\Models
        UCC BatchExport %1 polys obj c:\ut2004\%1\polys
        UCC BatchExport %1 polys t3d c:\ut2004\%1\polys
        UCC BatchExport %1 prefab t3d c:\ut2004\%1\prefab
        UCC BatchExport %1 sound wav c:\ut2004\%1\Sounds
        UCC BatchExport %1 staticmesh t3d c:\ut2004\%1\StaticMesh
        UCC BatchExport %1 textbuffer txt c:\ut2004\%1\Text
        UCC BatchExport %1 texture bmp c:\ut2004\%1\Textures
        UCC BatchExport %1 texture dds c:\ut2004\%1\Textures
        UCC BatchExport %1 texture pcx c:\ut2004\%1\Textures
        UCC BatchExport %1 texture tga c:\ut2004\%1\Textures
        UCC BatchExport %1 texture upt c:\ut2004\%1\Textures
        The class h files are all the same thing. The textbuffer txt files are basically uc files without the defaultproperties. You'll end up with a few empty directorys depending on the .u file, but all in all it's not to bad.

        Tough luck to the guy looking to export .psa files. I still have figure out how to get that done.

        Comment


          #5
          http://wiki.beyondunreal.com/wiki/BatchExportCommandlet :up:

          .. I've been using this for quite awhile

          Code:
          @echo off
          mkdir %1
          UCC BatchExport %1 Class h %1\h
          UCC BatchExport %1 Class uc %1\Classes
          UCC BatchExport %1 Level obj %1\Levels
          UCC BatchExport %1 Level stl %1\Levels
          UCC BatchExport %1 Level t3d %1\Levels
          UCC BatchExport %1 Model t3d %1\Models
          UCC BatchExport %1 Object t3d %1\Objects
          UCC BatchExport %1 Polys obj %1\Polys
          UCC BatchExport %1 Polys t3d %1\Polys
          UCC BatchExport %1 Prefab t3d %1\Prefabs
          UCC BatchExport %1 Sound wav %1\Sounds
          UCC BatchExport %1 StaticMesh t3d %1\StaticMeshes
          UCC BatchExport %1 TextBuffer txt %1\TextBuffers
          UCC BatchExport %1 Texture dds %1\Textures
          UCC BatchExport %1 Texture bmp %1\Textures
          UCC BatchExport %1 Texture dds %1\Textures
          UCC BatchExport %1 Texture pcx %1\Textures
          UCC BatchExport %1 Texture tga %1\Textures
          UCC BatchExport %1 Texture upt %1\Textures
          I wish there was an easier (or more productive) way to do it. if there is, somebody speak up!

          Comment


            #6
            So will this export the .u file AND any textures or models contained within?

            How are you guys making it recognize whatever file as %1? I know they way the vtm's tell you to setup context has something like that to nuke whatever file your working on, are you guys just using context or..?

            Comment


              #7
              Im using COntext to code in with, but I use the commandline to run my batch file.

              In the case of our batch files, the %1 would be the .u name. So if the .u is Firestarter.u, Id go to the c:\ut2004\system directory and do:

              uccbatch firestarter

              Comment


                #8
                Originally posted by kisk
                :up:

                Code:
                @echo off
                mkdir %1
                UCC BatchExport %1 Class h %1\h
                UCC BatchExport %1 Class uc %1\Classes
                UCC BatchExport %1 Level obj %1\Levels
                UCC BatchExport %1 Level stl %1\Levels
                UCC BatchExport %1 Level t3d %1\Levels
                UCC BatchExport %1 Model t3d %1\Models
                UCC BatchExport %1 Object t3d %1\Objects
                UCC BatchExport %1 Polys obj %1\Polys
                UCC BatchExport %1 Polys t3d %1\Polys
                UCC BatchExport %1 Prefab t3d %1\Prefabs
                UCC BatchExport %1 Sound wav %1\Sounds
                UCC BatchExport %1 StaticMesh t3d %1\StaticMeshes
                UCC BatchExport %1 TextBuffer txt %1\TextBuffers
                UCC BatchExport %1 Texture dds %1\Textures
                UCC BatchExport %1 Texture bmp %1\Textures
                UCC BatchExport %1 Texture dds %1\Textures
                UCC BatchExport %1 Texture pcx %1\Textures
                UCC BatchExport %1 Texture tga %1\Textures
                UCC BatchExport %1 Texture upt %1\Textures
                I wish there was an easier (or more productive) way to do it. if there is, somebody speak up!
                Just pointing out you have a copy of dds. Thanx for pasting that, I forgot to do the object,

                And I was thinking...maybe I'll try my hand at a batch file that I can run that dynamically enters the %1 value....this would work in Context then, i think.

                Comment


                  #9
                  Ahh thanks :P

                  Comment


                    #10
                    y not just use wotgreal for exporting? www.wotgreal.com

                    Comment


                      #11
                      ...because I dont use WOTgreal

                      Comment

                      Working...
                      X