Page 1 of 1

change .utx name

Posted: Tue Dec 12, 2017 6:05 pm
by Tater
Is there a way to change the name of a texture package after the map is built. Somehow a space got into the name and I didn't notice it until I loaded it to the server. It can't be played as is but the map is dependent on that package with that name. If I change the name and try to open and rebuild it the editor crashes because it can't find the original package. I'm just trying to avoid having to "re-texture" all over again.

Re: change .utx name

Posted: Tue Dec 12, 2017 7:45 pm
by Higor
Upload both map and UTX file

Re: change .utx name

Posted: Tue Dec 12, 2017 8:14 pm
by Barbie
What also works within 15 minutes (but only if you don't have MyLevel stuff):
1) Export the map as T3D
2) Memorize all used resources: Music, Textures, Sounds
3) Close UnrealEd
4) Rename the UTX file
5) Open UnrealEd and load all resources from step 2, but load the renamed UTX file instead of the original
6) Import the T3D file of step 1 in UnrealEd and rebuild map
-----------
PS: This hack may be also worth a try: Make a copy of the map, use a binary editor and replace all occurrences of the texture name, but don't change the length of the string (eg replace space with underscore).

Re: change .utx name

Posted: Tue Dec 12, 2017 8:14 pm
by nogardilaref
Well, the simplest way is to just replace the space by an underscore in the texture package name itself, and then hex-edit the map file itself, and search for the texture package old name in there and do the same (replace the space by an underscore), and save it.
Not sure if this is what Higor is going to do for you though.

Unless you want to remove or add characters from the name though, at which point something like what Barbie suggested might be a way.

Re: change .utx name

Posted: Tue Dec 12, 2017 8:25 pm
by Tater
The package in question is -=SoP=-pizza v2.utx This is a variation of the DM-AMLPPizzaShop. I'll upload the whole zip package.

If I was to "clone" the package in question and then just "select matching textures" and replace from the cloned package would it still depend on the wrongfully named package?

Re: change .utx name

Posted: Tue Dec 12, 2017 8:34 pm
by Higor
Barbie wrote:What also works within 15 minutes (but only if you don't have MyLevel stuff):
1) Export the map as T3D
2) Memorize all used resources: Music, Textures, Sounds
3) Close UnrealEd
4) Rename the UTX file
5) Open UnrealEd and load all resources from step 2, but load the renamed UTX file instead of the original
6) Import the T3D file of step 1 in UnrealEd and rebuild map
-----------
PS: This hack may be also worth a try: Make a copy of the map, use a binary editor and replace all occurrences of the texture name, but don't change the length of the string (eg replace space with underscore).
About 120 seconds on a HEX editor will do.


===================

Code: Select all

Rename:
-=SoP=-pizza v2.utx
To
-=SoP=-pizza_v2.utx

Code: Select all

Open with hex editor (XVI32 if you don't have any):
-=SoP=-pizza_v2.utx
Go to offset 0x1E7 (487 dec)
Replace the space char with a underscore char [0x20 with 0x5F]
Save 

Code: Select all

Open with hex editor:
DM--=SoP=-DylansPizzaShop_v2.unr
Go to offset 0x34CB (13515 dec)
Replace the space char with a underscore char [0x20 with 0x5F]
Save 

Re: change .utx name

Posted: Tue Dec 12, 2017 8:47 pm
by Barbie
Not to forget to mention @Tater: If you already have released the map to public, please us another name for the fixed map to avoid file mismatches.

Re: change .utx name

Posted: Tue Dec 12, 2017 8:58 pm
by nogardilaref
Barbie wrote:Not to forget to mention @Tater: If you already have released the map to public, please us another name for the fixed map to avoid file mismatches.
It's also best for the map and texture files to be opened and saved again from UEd, to generate a new GUID.

Re: change .utx name

Posted: Tue Dec 12, 2017 9:09 pm
by Tater
I just tried it on my server last night with only a few people on but I'll definitely rename it. Luckily the utx package will already have a different name.

Higor it seems like your solution might have worked, thanks

Re: change .utx name

Posted: Wed Dec 13, 2017 2:24 pm
by Chamberly
Dang it, a solution was already posted before I get to do this one! :loool:

I do my way a little bit different, just open the map in notepad and rename all texture as needed, set up a new copy of the .utx with a different name and it should be good to go.

Good to hear another map getting released though! :rock:

Re: change .utx name

Posted: Wed Dec 13, 2017 2:45 pm
by Leo(T.C.K.)
Yea this is simple. However, what kind of...oh nevermind, the space was accident. Was about to rant about never put spaces in filenames(even though I often see it in case of maps alone where it's not as critical but it's still a wrong thing to do) Yea well..:/