ag_smith 0 Posted January 26, 2005 Just like they say, the need is the mother of invention. I had to repath textures in some MLOD models again and again. I was quite surprised that nobody made any utility to make it before, so I had to make one myself. So here it is, very crude one (no wonder, it's a result of 2 hours of work and testing), but it still can save you many hours of work. http://www.flashpoint.pl/om....en.zip Quote[/b] ]TexSwapper for MLOD models by Agent Smith----------------------------------------- This little program swaps texture paths in MLOD models (non-binarized ones). Java Virtual Machine is require for its operation. If you are not sure, whether you have it installed or not, you can check it by: "Start"->"Run..."-> type "cmd" -> in the new window type "java -version". If you get version information, you're ready to roll, otherwise you'll have to download Java VM from here: http://java.sun.com/j2se/1.4.2/download.html. Click "Download J2SE JRE" How to use it? -------------- Well, the program is very primitive. It's operated from the command prompt. ;) To run it use: "Start"->"Run..."-> type "cmd", then proceed to the folder that contains the program and your p3d files. You can run it using this command: ts FILENAME/S.p3d OLD_PATH NEW_PATH eg. ts soldier.p3d data\ my_soldier\ where: FILENAME/S.p3d is the name of your file to be processed. You can also use wildcards, eg. *.p3d to process all p3d files in given directory. OLD_PATH - current path to texture folder NEW_PATH - new path to texture folder OLD_PATH and NEW_PATH don't have to be of the same length. You just have to remember maximal texture path length including texture filename must not exceed 31 characters. Output files are placed in the same folder and named FILENAME.p3d.new. The program comes with no warranty so make sure you keep backup copies of your models just in case... ;) If somebody wants to improve it, feel free to do so, there are source files in src.zip ;) EDIT: If you don't need to repath a large number of files, you can use TxtPathSwap made by feersum.endjinn, it's much more user-friendly and doesn't require Java to work. EDIT2: There's a bug in the original version of my program that prevents using it for converting single p3d file. However, it works well for multipile files. Simply use TxtPathSwap for single files and my program for mass processing. Share this post Link to post Share on other sites
marco-polo-iv 0 Posted January 26, 2005 thx for this tool great work Share this post Link to post Share on other sites
Thunderbird 0 Posted January 26, 2005 Is it possible to convert the tga to paa with this tool ? Share this post Link to post Share on other sites
Locke@Germany 0 Posted January 26, 2005 There was already a program released by feersum.endjinn which has the same purpose. Â Look here or Download TxtPathSwap here. I didn't try yours but the older one is very userfriendly IMO. Share this post Link to post Share on other sites
miles teg 1 Posted January 26, 2005 There is another tool called TexView that converts from .tga to .paa/.pac formats (and vice versa) very nicely. Chris G. aka-Miles Teg<GD> Share this post Link to post Share on other sites
ag_smith 0 Posted January 26, 2005 there was already a program released by feersum.endjinn Look here ! which has the same purpose. Â I didn't try yours but the older one is very userfriendly IMO. I didn't know about it... probably it's much better than mine, unfortuntatelly download link is dead. Share this post Link to post Share on other sites
miles teg 1 Posted January 26, 2005 Question... in the readme, you don't put what folder you need to copy the files for this program into. A little help with that would be cool as I REALLY REALLY could use this tool. Thanks! Chris G. aka-Miles Teg<GD> Share this post Link to post Share on other sites
Thunderbird 0 Posted January 26, 2005 There is another tool called TexView that converts from .tga to .paa/.pac formats (and vice versa) very nicely.Chris G. aka-Miles Teg<GD> But texview doesn't convert correctly my tga to paa before I've 1mo and after 1 ko Share this post Link to post Share on other sites
ag_smith 0 Posted January 26, 2005 Question... in the readme, you don't put what folder you need to copy the files for this program into. Â A little help with that would be cool as I REALLY REALLY could use this tool. Thanks! Chris G. aka-Miles Teg<GD> Any folder. The only thing that matters is that the program and p3d files should be in the same folder. Share this post Link to post Share on other sites
Kaitnieks 0 Posted January 26, 2005 Nice and help-full program Btw: I don't know your intends with it but you should have obfucsated the source (Java) so that no one could deobfucate/decompile it and steal your sources. Furtermore nice job on the tool and it's really help full . Share this post Link to post Share on other sites
Locke@Germany 0 Posted January 26, 2005 I didn't know about it... probably it's much better than mine, unfortuntatelly download link is dead. Strange... the old link works fine for me. But just incase i've send it over to YouSendIt . TexPathSwap Download Share this post Link to post Share on other sites
ag_smith 0 Posted January 26, 2005 Nice and help-full program Btw: I don't know your intends with it but you should have obfucsated the source (Java) so that no one could deobfucate/decompile it and steal your sources. Furtermore nice job on the tool and it's really help full . Thanks. The program is so simple that I don't really care if somebody wants to steal the code. Like I said in the readme, you're welcome to use its source code for whatever you need. @Locke@Germany, thanks. Now I see my work is somewhat 'obsolete'. Or maybe it's not. If you have to repath large number of files, *.p3d will do it way faster with my prog. Share this post Link to post Share on other sites
Metalmalte 0 Posted January 26, 2005 hey agent smith! but thanks for this little tool! i think it wil be another help for coming and already beeing addon makers! im sure! Share this post Link to post Share on other sites