Kuribo64
Views: 19,853,539 Home | Forums | Uploader | Wiki | Object databases | IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search
03-29-24 02:22 AM
Guest:

0 users reading help with pytex1 | 1 bot

Main - Archived forums - SMG hacking tools development - help with pytex1 Hide post layouts | New reply


chaoscollector
Posted on 07-25-13 11:52 AM Link | #28926
Could anybody help me out with how to use this? I've been trying for a good few hours but honestly don't really know where to go or what to do with it! any help would be greatly appreciated!:) thanks!

Marionumber1
Posted on 07-25-13 02:21 PM Link | #28933
NWPlayer123 or I can help you with it. Come on the IRC.

shibboleet
Posted on 07-26-13 12:21 AM Link | #28980
It's pretty simple
Just extract it to your main user name folder.
So, this is how it works.
Usage: python pytex1.py <flag> <inbdl> <inbti> <btinum> <outbdl>
<flag> is -r for replace texture, -l for list textures, or -h for help
<inbdl> is the BDL to texture hack
<inbti> is the BTI containing the new texture
<btinum> is the number texture you want to replace
<outbdl> is the filename of the edited BDL to be written out

Now, let's say I have a BDL file called Trains.bdl.
So would be Trains.bdl.

Let's say I want to list the textures to find the I want to replace. (Like, 0 is the grass, 1 is the wood, etc)
So, I open up Command Prompt.
And I type this in;
pytex1.exe -l Trains.bdl
This displays the texture numbers inside of the bdl.
You should get something like this:

C:\Users\Joshua A>pytex1.exe -l Trains.bdl
0: StrongBlockMesh
1: StrongBlockE3
2: Hilight
These are the 3 textures inside of the bdl file.

Let's say I want to replace StrongBlockE3 in that file.
So I put the bti file of the new texture in the SAME folder directory as pytex and the bdl.

My bti name is TrainsNewTexture.bti, and it I want the new file name to be TrainsNewTexture.bdl
So I go to command prompt, and type this in:
pytex1.exe -r Trains.bdl TrainsNewTexture.bti 1 TrainsNewTexture.bdl
What this will do is replace texture number 1 and print out a bdl called TrainsNewTexture and it will contain the bti texture replaced.


____________________
a

chaoscollector
Posted on 08-06-13 11:08 AM Link | #29637
but my problem is the bti. How do I get a bti file containing a texture? I opened luigi's model and extracted all his textures, I can only extract in tga or dss, so once ive edited a texture, how do I get a bti to put back into the bdl?

Marionumber1
Posted on 08-06-13 01:41 PM Link | #29640
For creating BTI files from an image, I use SZS Explorer: http://chadderz.is-a-geek.com/ctools/setup/ctoolssetup.msi

Export the textures as TGA files, then use an image editor to convert them to PNG. Then follow these steps to create a BTI file from them:

1. Open SZS Explorer and create a new archive.
2. In the new archive, right click in the big white box in the center and choose New->File.
3. Select the red Image File and click OK.
4. Double click on Untitled.bti.
5. Choose the folder icon and pick the PNG file.
6. Save and close the BTI Editor.
7. Right click Untitled.bti and choose Export. That will allow you to export the BTI you made.

chaoscollector
Posted on 08-06-13 08:43 PM Link | #29653
i cant download that programme, it says the signature is corrupt or invalid


Main - Archived forums - SMG hacking tools development - help with pytex1 Hide post layouts | New reply

Page rendered in 0.017 seconds. (2048KB of memory used)
MySQL - queries: 28, rows: 204/204, time: 0.009 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.