Renaming files quickly?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
fiddler_on_the_roof
1st Lieutenant
1st Lieutenant
Posts: 460
Joined: Wed Nov 12, 2008 5:28 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Renaming files quickly?

Post by fiddler_on_the_roof »

so when I went to rename a msh and tga files and all those sort of files, when I tried to load it, it didn't work. Is there a way to rename these files, and preferably quickly?

thanks
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: renaming

Post by Deviss »

fiddler_on_the_roof wrote:so when I went to rename a msh and tga files and all those sort of files, when I tried to load it, it didn't work. Is there a way to rename these files, and preferably quickly?

thanks
yes, use the pspad 4.5 for open the .msh file and into this change the .tga name to your new .tga name for example:
lala.msh
lala2.tga

into on lala.msh and change the tga name into this to lala2.tga
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: renaming

Post by Fiodis »

I've never heard of pspad 4.5. Would you be able to use normal notepad, or must you use a hex editor?
ckmcruel

Re: renaming

Post by ckmcruel »

renaming the actual file?

Leftclick/rename

:D
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: renaming

Post by DarthD.U.C.K. »

you have to use a hexeditor, because the mesh is in hexformat
look into the "how to use the same unit with different skins" topic linked in the everythingyouneedthread
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: renaming

Post by FragMe! »

It depends on what you are trying to do. If you are trying to rename thistexture.tga to thattexture.tga or thismodel.msh to thatmodel,msh then it is as ckmcruel said. But you can't just rename a tga that a msh is looking for cause it won't find it and you'll just get a bunch of white objects.

To change the tga name a msh that is looking for then you would have to hex edit the msh file as deviss-rex mentioned with one change to what he said the file name has to have the same amount of letters so if it was looking for lala.tga you could use lal2 as a new name for the tga. You can use anything actually just as long as it has the same amount of letters.
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: renaming

Post by Deviss »

FragMe! wrote:It depends on what you are trying to do. If you are trying to rename thistexture.tga to thattexture.tga or thismodel.msh to thatmodel,msh then it is as ckmcruel said. But you can't just rename a tga that a msh is looking for cause it won't find it and you'll just get a bunch of white objects.

To change the tga name a msh that is looking for then you would have to hex edit the msh file as deviss-rex mentioned with one change to what he said the file name has to have the same amount of letters so if it was looking for lala.tga you could use lal2 as a new name for the tga. You can use anything actually just as long as it has the same amount of letters.
oops you have reason i forgot, than the new name into of msh file must have the same number of letters than the old name for example how you said:
old name into msh is lala.tga so the new name must be 4 letters lal2.tga, new2.tga etc o can be less lala.tga to lal.tga and the rest hex edit it
Post Reply