Spooky Posted September 10, 2003 Share Posted September 10, 2003 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 Happy Modding. Link to comment Share on other sites More sharing options...
DexX Posted September 10, 2003 Share Posted September 10, 2003 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. Link to comment Share on other sites More sharing options...
ZanderZ Posted September 10, 2003 Share Posted September 10, 2003 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 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 Link to comment Share on other sites More sharing options...
JernejL Posted September 10, 2003 Share Posted September 10, 2003 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... Currently working on Top Down City Game, a classics top down game similar to GTA1 & GTA2: Thread Info: https://gtaforums.com/topic/911312-new-game-top-down-city/ Youtube channel: https://www.youtube.com/channel/UCxGfOh3ld7Xm-ic3KEMB6iA Discord: https://discord.gg/UXmDPzS - join #bridge channel Link to comment Share on other sites More sharing options...
Spooky Posted September 10, 2003 Author Share Posted September 10, 2003 Ok. uncompressed 32-bit images aren't displayed correctly, as you can see in this screenshot:http://gregval.phpwebhosting.com/uploads/txderror.jpg Oops, it seems they're BGRA not RGBA, i'll sort that now. Link to comment Share on other sites More sharing options...
Spooky Posted September 10, 2003 Author Share Posted September 10, 2003 Sorted. Re-download it for the fix . Link to comment Share on other sites More sharing options...
REspawn Posted September 10, 2003 Share Posted September 10, 2003 Excellent work! Link to comment Share on other sites More sharing options...
MPD Posted September 10, 2003 Share Posted September 10, 2003 thats amazing the best texture editor Link to comment Share on other sites More sharing options...
DiCanio Posted September 10, 2003 Share Posted September 10, 2003 nice work Spooky ) Link to comment Share on other sites More sharing options...
Demarest Posted September 10, 2003 Share Posted September 10, 2003 I have to give Spooky props too. I'm a GTA3 guy, and with his tools, I need no others Link to comment Share on other sites More sharing options...
Spooky Posted September 11, 2003 Author Share Posted September 11, 2003 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 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. Link to comment Share on other sites More sharing options...
ZanderZ Posted September 11, 2003 Share Posted September 11, 2003 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. Link to comment Share on other sites More sharing options...
Spooky Posted September 11, 2003 Author Share Posted September 11, 2003 ViceTXD 1.4b is out! +1.4b (Beta) - Make new TXD's! - Proper support for 32bit textures - Few bugfixes etc... Download: Setup.exe (491kb) ...and I added what you suggested ZanderZ. Link to comment Share on other sites More sharing options...
ZanderZ Posted September 11, 2003 Share Posted September 11, 2003 (edited) ViceTXD 1.4b is out! 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 September 11, 2003 by ZanderZ Link to comment Share on other sites More sharing options...
Spooky Posted September 11, 2003 Author Share Posted September 11, 2003 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 Everyone please re-download if you plan on making new TXD's and got it before I posted this message. Download: Setup.exe (491kb) Link to comment Share on other sites More sharing options...
ZanderZ Posted September 11, 2003 Share Posted September 11, 2003 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 Link to comment Share on other sites More sharing options...
Spooky Posted September 11, 2003 Author Share Posted September 11, 2003 I'm a programmer, that has very little sleep, please excuse the spelling mistakes . 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 . Link to comment Share on other sites More sharing options...
MPD Posted September 11, 2003 Share Posted September 11, 2003 (edited) 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 September 11, 2003 by MPD Link to comment Share on other sites More sharing options...
Pagnell Posted September 11, 2003 Share Posted September 11, 2003 Yay! A find feature! Link to comment Share on other sites More sharing options...
Spooky Posted September 12, 2003 Author Share Posted September 12, 2003 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 . I had no 32bit textures in my default install of vice to test on, so it slipped through the net . I've fixed the bug and the fixed version is available at the same url... Download: Setup.exe (491kb) Link to comment Share on other sites More sharing options...
DexX Posted September 12, 2003 Share Posted September 12, 2003 (edited) 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 September 12, 2003 by ashdexx Link to comment Share on other sites More sharing options...
MPD Posted September 12, 2003 Share Posted September 12, 2003 @Spooky. thanks. i needed that. Link to comment Share on other sites More sharing options...
Spooky Posted September 12, 2003 Author Share Posted September 12, 2003 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 . Link to comment Share on other sites More sharing options...
DexX Posted September 12, 2003 Share Posted September 12, 2003 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. Link to comment Share on other sites More sharing options...
JernejL Posted September 12, 2003 Share Posted September 12, 2003 (edited) 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 September 12, 2003 by Delfi Currently working on Top Down City Game, a classics top down game similar to GTA1 & GTA2: Thread Info: https://gtaforums.com/topic/911312-new-game-top-down-city/ Youtube channel: https://www.youtube.com/channel/UCxGfOh3ld7Xm-ic3KEMB6iA Discord: https://discord.gg/UXmDPzS - join #bridge channel Link to comment Share on other sites More sharing options...
DexX Posted September 14, 2003 Share Posted September 14, 2003 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........ Link to comment Share on other sites More sharing options...
steve-m Posted September 14, 2003 Share Posted September 14, 2003 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... Steve Link to comment Share on other sites More sharing options...
JernejL Posted September 14, 2003 Share Posted September 14, 2003 gah! we need a special "TXD Tech" topic for this kind of stuff, talking here just scares people... Currently working on Top Down City Game, a classics top down game similar to GTA1 & GTA2: Thread Info: https://gtaforums.com/topic/911312-new-game-top-down-city/ Youtube channel: https://www.youtube.com/channel/UCxGfOh3ld7Xm-ic3KEMB6iA Discord: https://discord.gg/UXmDPzS - join #bridge channel Link to comment Share on other sites More sharing options...
steve-m Posted September 14, 2003 Share Posted September 14, 2003 (edited) gah! we need a special "TXD Tech" topic for this kind of stuff, talking here just scares people... hehe, true But can I still get answers? Edited September 14, 2003 by ST.MU Link to comment Share on other sites More sharing options...
Spooky Posted September 14, 2003 Author Share Posted September 14, 2003 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... 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 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 [/Edit] - Adding it now - The flags are in the dword right after the alpha name. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now