Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. Gameplay
      2. Missions
      3. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Arena War
      2. After Hours
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA Next

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. News

    2. Forum Support

    3. Site Suggestions

Spooky

[REL] ViceTXD Update

Recommended Posts

Spooky

Hey people,

 

I've updated ViceTXD, i've added some things people requested like 8bit texture support and a find feature, and also added a few other features...

 

You can now add textures to a TXD, in any format (DXT1, DXT3, 32bit or 8bit) but you can't add textures to a TXD thats inside an img archive... I'll sort this out for the next release. Until then just extract the TXD out of the archive with IMGTool and add whatever textures to it, then re-insert it into the archive with IMGTool again.

 

I'm afraid the people having problems replacing textures are still going to have that problem... this is due to your graphics card not supporting compressed textures. Sorry, but this can't be avoided till I find some decent DXT compressing code thats hardware independant.

 

I've had literally no time to test some of the new features, so this is still beta. If you have any problems or find a bug, please post here with as much info as possible. Thanks.

 

Download: ViceTxd_15b.exe (491kb)

'dexx edit: for months this link has been wrong (it went to img tool), i fixed it since i guess you got lazy, or forgot tounge.gif

 

Happy Modding.

Share this post


Link to post
Share on other sites
ZanderZ
find feature

YEAH! Thank you Spooky!

Haven't tested the new program fully yet, but the Find option works fine, the new Replace option is good too smile.gif

Two questions though:

1. Can you make a checkbox for the alpha that's always visible? Now you would have to press the 'Draw alpha channel' button or view the ExInfo... I'd rather see it right away. Or perhaps you could make it like in GTA3 Resource Hacker, that you have an option to show both image and alpha at the same time...

2. Any chance you will release the source code at some point in your life? ;D tounge.gif

Share this post


Link to post
Share on other sites
JernejL
Ok. uncompressed 32-bit images aren't displayed correctly, as you can see in this screenshot:http://gregval.phpwebhosting.com/uploads/txderror.jpg

 

Btw, whats the difference between a DXT1 and DXT3 compressed texture? Like the new features man, good work.

i think that that the display is right, the importing is wrong...

 

the dxt3 textures have bit better smoother quality alphas and bigger than dxt1

but use them only if you intend to use the alpha channel... otherwise the file

is bigger and the normal image quality same...

 

Share this post


Link to post
Share on other sites
Spooky

Sorted. Re-download it for the fix smile.gif.

Share this post


Link to post
Share on other sites
REspawn

Excellent work! rah.gif

Share this post


Link to post
Share on other sites
MPD

thats amazing colgate.gif the best texture editor rah.gifcookie.gifcookie.gif

Share this post


Link to post
Share on other sites
DiCanio

nice work Spooky wow.gif)

Share this post


Link to post
Share on other sites
Demarest

I have to give Spooky props too. I'm a GTA3 guy, and with his tools, I need no others smile.gif

Share this post


Link to post
Share on other sites
Spooky
1. Can you make a checkbox for the alpha that's always visible? Now you would have to press the 'Draw alpha channel' button or view the ExInfo... I'd rather see it right away. Or perhaps you could make it like in GTA3 Resource Hacker, that you have an option to show both image and alpha at the same time...

2. Any chance you will release the source code at some point in your life? ;D tounge.gif

1. Theres one now? The "Draw Alpha Channel" checkbox is always visible below the texture listbox :s.

2. At some point maybe, but not till i've cleaned it up.. alot.

Share this post


Link to post
Share on other sites
ZanderZ
1. Theres one now? The "Draw Alpha Channel" checkbox is always visible below the texture listbox :s.

Okay, I should have put my question a little different... Right now, you can't see if an image has an alpha channel unless you have ExInfo enabled.

would like to see if an image has alpha right away. Perhaps you could disable the 'Draw Alpha Channel' when there's no alpha channel. This shouldn't be any problem I think...

 

Something like

 

if ImageHasAlpha then DrawAlphaCheckbox.Enabled:=True else DrawAlphaCheckBox:=False;

 

This way, if an image has no alpha, you can see it right away because the checkbox is disabled.

Share this post


Link to post
Share on other sites
Spooky

ViceTXD 1.4b is out! smile.gif

 

 

+1.4b (Beta)

- Make new TXD's! smile.gif

- Proper support for 32bit textures tounge.gif

- Few bugfixes etc...

 

Download: Setup.exe (491kb)

 

...and I added what you suggested ZanderZ.

Share this post


Link to post
Share on other sites
ZanderZ

 

ViceTXD 1.4b is out! smile.gif

 

Download: Setup.exe (491kb)

 

...and I added what you suggested ZanderZ.

Great! Thanks!

 

Hm... I just noticed something. It's probably not a bug but something with my pc, but I thought I'd let you know just to be sure.

When I maximize the ViceTXD window, the 'txd scrollbar' (the top one) almost disappears. This looks very strange. When I switch to another window and go back, it looks fine again...

 

There's also a small error in ReadMe.txt

At the section HELP, it says "This is only a breif help section"

Edited by ZanderZ

Share this post


Link to post
Share on other sites
Spooky

I've not noticed that ZanderZ, if anyone else mentions it, i'll look into it.

 

I've just fixed another bug thanks to illspirit smile.gif Everyone please re-download if you plan on making new TXD's and got it before I posted this message.

 

Download: Setup.exe (491kb)

Share this post


Link to post
Share on other sites
ZanderZ

I don't think it's a bug in your program though... But if anyone else notices it, then you should look at it.

I did find another small bug: when replacing a texture saved in Adobe Photoshop (24 bit bmp) I get the error 'Unable to relpace texture.'

Saving the image in Paint solves this first problem, but the spelling error remains wink.gif

Share this post


Link to post
Share on other sites
Spooky

I'm a programmer, that has very little sleep, please excuse the spelling mistakes smile.gif.

 

Also, as a note: When replacing 8bit textures, the texure + alpha bitmap cannot be more than 256 colours combined. Save as an 8bit bitmap and you can't go wrong smile.gif.

Share this post


Link to post
Share on other sites
MPD

i exported a 32 bit texture and alpha. i edited them in paint and saved it without changing the bit rate. when i replaced the same texture it said unable to replace texture. why does it do this. it worked on version 1.0b

 

also the pixels are the same size. its just the image thats different

Edited by MPD

Share this post


Link to post
Share on other sites
Pagnell

Yay! A find feature! biggrin.gifbiggrin.gifbiggrin.gif

Share this post


Link to post
Share on other sites
Spooky
i exported a 32 bit texture and alpha. i edited them in paint and saved it without changing the bit rate. when i replaced the same texture it said unable to replace texture. why does it do this. it worked on version 1.0b

 

also the pixels are the same size. its just the image thats different

Sorry about that, I totally missed out the code for replacing 32bit textures wow.gif. I had no 32bit textures in my default install of vice to test on, so it slipped through the net wow.gif.

 

I've fixed the bug and the fixed version is available at the same url...

 

Download: Setup.exe (491kb)

Share this post


Link to post
Share on other sites
DexX

heh, atleast you don't ignore the bugs. Do you (spooky) or anyone else know what the flags do? ive noticed texture with an alpha channel have flag 9 and 11 checked. "normal" textures, have flag 10 and 11. Some cutscene objects have flag 16 set and the txd's that contain tommy's extra skins also have flag 16 marked. Some of the 8-bit textures use flag 14.

Flag 10 is consistently checked off in all the ones ive checked, except those with an alpha channel.

Ive tested a few other combinations, some of which froze the game.

 

Speaking of which, spooky, i created an entirely new txd with your program, and when i tested it ingame, it froze the game on loading. it was a duplicate of a txd i knew worked, so something went wrong somewhere. I went to File > New and named it, then made 3 new textures, one with alpha channel support, and sized / named them appropriately. Are there any tips or suggestions you might have?

Edited by ashdexx

Share this post


Link to post
Share on other sites
MPD

@Spooky. thanks. i needed that. colgate.gif

Share this post


Link to post
Share on other sites
Spooky
Speaking of which, spooky, i created an entirely new txd with your program, and when i tested it ingame, it froze the game on loading. it was a duplicate of a txd i knew worked, so something went wrong somewhere. I went to File > New and named it, then made 3 new textures, one with alpha channel support, and sized / named them appropriately. Are there any tips or suggestions you might have?

Which TXD did you reproduce? I've remade quite a few TXDs from gta3.img: radars, skins, buildings etc, keeping the flags as they were and had no problems sad.gif.

Share this post


Link to post
Share on other sites
DexX

the txd i based it off was a custom txd that i had originally made with steve's txd builder. anyway, on seeing that the one i reproduced didnt work, i promptly deleted it and put the old one back in my game. however if it happens again, ill zip it and send it to you if ya want.

Share this post


Link to post
Share on other sites
JernejL

 

heh, atleast you don't ignore the bugs. Do you (spooky) or anyone else know what the flags do? ive noticed texture with an alpha channel have flag 9 and 11 checked. "normal" textures, have flag 10 and 11. Some cutscene objects have flag 16 set and the txd's that contain tommy's extra skins also have flag 16 marked. Some of the 8-bit textures use flag 14.

Flag 10 is consistently checked off in all the ones ive checked, except those with an alpha channel.

Ive tested a few other combinations, some of which froze the game.

 

Speaking of which, spooky, i created an entirely new txd with your program, and when i tested it ingame, it froze the game on loading. it was a duplicate of a txd i knew worked, so something went wrong somewhere. I went to File > New and named it, then made 3 new textures, one with alpha channel support, and sized / named them appropriately. Are there any tips or suggestions you might have?

"Some cutscene objects have flag 16 set and the txd's that contain tommy's extra skins also have flag 16 marked. "

 

i think you just found the "detail texturing" flag that would enable extremely quality

rendeering of textures in gtavc!

 

example: *can't find a example image of how this looks but was used in battlefield: 1741 game

the textures realy looked amazingly better!

 

 

if the flag is what i think it is then this is good news for car makers especialy!

 

maybe the flag can be chrome or differently shaded etc...

Edited by Delfi

Share this post


Link to post
Share on other sites
DexX

i tried flag 16 on a couple cars, and didnt notice any effect. whatever it does, IF it works on cars too, the effect is not obvious. maybe it only effects certain things...?

 

more testing is in order. Btw, what exactly do you mean by, "high quality rendering" ? if its cutscenes your talking about, i notice they do look better, but thats usually because of more detailed models, i didn't think the textures also had special attributes too.......hmm........

Share this post


Link to post
Share on other sites
steve-m

Great work Spooky, but:

 

- The second DWORD value in the TXD file is the size of the whole file minus 12, but in a test file I created it was a VERY huge number (wrong of course).

 

- The (empty) extension section (3) after the texture data section (1) is missing, but I guess it isn't needed anyway.

 

- When adding a new texture, could you make your tool automaticly get the dimensions of the texture and the texture/alpha name from the file name (without extension), so the user doesn't need to enter it everytime?

 

- What is that flag you are talking about? The DWORD before texture name? I just found three different values yet: 4353, 4354 and 4358. The hex look like this: 0x00001101, 0x00001102, 0x00001106. Only the first byte seems to change. Haven't done tests with that yet.

 

 

maybe the flag can be chrome or differently shaded etc...
Unlikely... dontgetit.gif

 

Steve

Share this post


Link to post
Share on other sites
JernejL

gah! we need a special "TXD Tech" topic for this kind of stuff,

talking here just scares people...

 

Share this post


Link to post
Share on other sites
steve-m

 

gah! we need a special "TXD Tech" topic for this kind of stuff,

talking here just scares people...

hehe, true biggrin.gif

 

But can I still get answers? tounge.gif

Edited by ST.MU

Share this post


Link to post
Share on other sites
Spooky

 

Great work Spooky, but:

 

- The second DWORD value in the TXD file is the size of the whole file minus 12, but in a test file I created it was a VERY huge number (wrong of course).

 

- The (empty) extension section (3) after the texture data section (1) is missing, but I guess it isn't needed anyway.

 

- When adding a new texture, could you make your tool automaticly get the dimensions of the texture and the texture/alpha name from the file name (without extension), so the user doesn't need to enter it everytime?

 

- What is that flag you are talking about? The DWORD before texture name? I just found three different values yet: 4353, 4354 and 4358. The hex look like this: 0x00001101, 0x00001102, 0x00001106. Only the first byte seems to change. Haven't done tests with that yet.

 

 

maybe the flag can be chrome or differently shaded etc...
Unlikely... dontgetit.gif

 

Steve

- I've just noticed a bug in my code there, the second dword is always 4, no matter what, but i guess Vice doesnt use it as the TXDs seem to work fine. I think you're refering to the 3rd dword, which Delfi informed me is the "gametype"... with "268697599" being ViceCity.

 

- I wasn't even aware of this extra data section wow.gif I've not come across a texture that doesn't start right after the texture before's data + mipmap data.

 

[Edit]

Oops, missed your third item smile.gif

[/Edit]

 

- Adding it now biggrin.gif

 

- The flags are in the dword right after the alpha name.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • 1 User Currently Viewing
    0 Members, 0 Anonymous, 1 Guest

×

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.