Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (91,658 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

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

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

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

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

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

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

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. 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

    2. Red Dead Redemption

    3. 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. Forum Support

    2. Site Suggestions

Sign in to follow this  
ThirteenAG

[III|VC] 038D Alpha Fix

Recommended Posts

ThirteenAG

As you may know, in GTA 3 and Vice City opcode

038D: draw_texture 17 position $TEMPVAR_FLOAT_1 $TEMPVAR_FLOAT_2 size [email protected] [email protected] RGBA 128 128 128 255

doesn't support transparency(latest parameter). With this plugin you'll be able to set it. Demo scripts(Resident Evil Revelations on-screen blood) included to archive.

user posted image user posted image user posted image

 

 

 

Supported executables: gta3.exe - 1.0/1.1; gta-vc.exe - 1.0;

 

As a bonus i added the same cleo script for SA(Wesser's Script Dependent Drawings plugin is required).

Edited by ThirteenAG

Share this post


Link to post
Share on other sites
Frank.s

Great fix and demo script. icon14.gif

 

Edit, would it be possible to do it for the 1.3 executable? Combine it with a new version of your VC Mobile exe fix maybe?

Edited by Frank.s

Share this post


Link to post
Share on other sites
ThirteenAG
Great fix and demo script. icon14.gif

 

Edit, would it be possible to do it for the 1.3 executable? Combine it with a new version of your VC Mobile exe fix maybe?

Thanks. What the 1.3 executable? steam? I doubt cleo supports it.

As for VC mobile, too much restrictions, not worth it.

Share this post


Link to post
Share on other sites
Frank.s

Ah ok. (I meant VC Mobile = 1.3 btw)

Share this post


Link to post
Share on other sites
fabio3

Good work icon14.gif

Share this post


Link to post
Share on other sites
acid96

Sometimes my screen shows the blood, and sometimes my screen gets white.

Share this post


Link to post
Share on other sites
ThirteenAG

Download latest v1.2, with it you will never see white screen again, because i put txd loading and releasing in a loop.

Share this post


Link to post
Share on other sites
simkas

What mod are you using that lets you run and shoot at the same time? I've been looking all over for something like that for VC but I never found anything.

 

 

 

Nevermind, found it on your gtagarage page.

Edited by simkas

Share this post


Link to post
Share on other sites
acid96

 

Download latest v1.2, with it you will never see white screen again, because i put txd loading and releasing in a loop.

I keep getting the same thing.

 

I don't know, maybe it's because I'm using it on SAMP or maybe it has conflicts with other CLEO scripts.

 

EDIT: I have feelings that it has conflicts with interface editor from Alexander Blade...

Is there anyway to fix it confused.gif ?

Edited by acid96

Share this post


Link to post
Share on other sites
ThirteenAG
Is there anyway to fix it confused.gif ?

Ah, you mean SA version, i assumed that everybody have Wesser's Script Dependent Drawings plugin, so script is not designed for usage without it.

Share this post


Link to post
Share on other sites
acid96

 

Is there anyway to fix it confused.gif ?

Ah, you mean SA version, i assumed that everybody have Wesser's Script Dependent Drawings plugin, so script is not designed for usage without it.

Thanks a bunch icon14.gif

 

 

EDIT: Works in Single Player, but at SAMP the Wesser's Plugin crashes...

Edited by acid96

Share this post


Link to post
Share on other sites
ThirteenAG

EDIT: Works in Single Player, but at SAMP the Wesser's Plugin crashes...

You can try to change textures IDs to something else, they probably is not compatible with some of other your mods.

 

 

 

v1.3 changelog:

VC: Script texture destroying excluded from mission cleanup function and opcode 0391, to prevent white squares bug. Once texture was loaded with opcode 038F, nothing can release it, except save loading or starting new game. Default script texture limit(16) for opcodes 038D, 038F was increased to 121.

III, SA: none

 

v1.4 changelog:

III: Script texture destroying excluded from opcode 0391, to prevent white squares bug. Once texture was loaded with opcode 038F, nothing can release it, except save loading or starting new game. Default script texture limit(16) for opcodes 038D, 038F was increased to 121.

SA: Blood visibility depends on bodyarmor, with bodyarmor - half visible, without - full.

VC: none

 

Example of usage(VC):

 

	{$CLEO}0000:0390: load_txd_dictionary 'hud'for [email protected] = 1 to 121038F: load_texture 'arrow' as [email protected] true   wait [email protected] = 1.0for [email protected] = 1 to 12105F5: call_scm_func @draw_texture params 9 _and it is - position [email protected] 224.0 size 20.0 20.0 RGBA 255 255 255 255 texture_id [email protected]@ += 1.0wait 0endend:draw_texture{example:05F5: call_scm_func @draw_texture params 9 _and it is - position 220.0 170.0 size 191.25 170.0 RGBA 255 255 255 255 texture_id 1}05E0: [email protected] = read_memory 0xA0FD04 size 4 virtual_protect 1  //X 192005E0: [email protected] = read_memory 0xA0FD08 size 4 virtual_protect 1  //Y 10800093: [email protected] = integer [email protected] to_float0093: [email protected] = integer [email protected] to_float//coordX = sa_coordX*(currentResX/640.0)0015: [email protected] /= 640.0 //  currentResX/640.00069: [email protected] *= [email protected] // floating-point values0015: [email protected] /= 448.0 //  currentResY/448.00069: [email protected] *= [email protected] // floating-point values0069: [email protected] *= [email protected] // floating-point values0069: [email protected] *= [email protected] // floating-point values03F0: enable_text_draw 1038D: draw_texture [email protected] position [email protected] [email protected] size [email protected] [email protected] RGBA [email protected] [email protected] [email protected] [email protected]: ret 0			Example of usage(III):					{$CLEO}0000:0390: load_txd_dictionary 'hud'for [email protected] = 1 to 121038F: load_texture 'pager' as [email protected] true   wait [email protected] = 1.0for [email protected] = 1 to 12105F5: call_scm_func @draw_texture params 9 _and it is - position [email protected] 170.0 size 191.25 170.0 RGBA 255 255 255 255 texture_id [email protected]: release_textures //not really needed, just to show it doesn't affect loaded [email protected] += 1.0wait 0endend:draw_texture{example:05F5: call_scm_func @draw_texture params 9 _and it is - position 220.0 170.0 size 191.25 170.0 RGBA 255 255 255 255 texture_id 1}05E5: [email protected] = [email protected] == 0then05E0: [email protected] = read_memory 0x943010 size 4 virtual_protect 1  //X 192005E0: [email protected] = read_memory 0x943014 size 4 virtual_protect 1  //Y 1080else05E0: [email protected] = read_memory 0x9431C8 size 4 virtual_protect 1  //X 192005E0: [email protected] = read_memory 0x9431CC size 4 virtual_protect 1  //Y 1080end0093: [email protected] = integer [email protected] to_float0093: [email protected] = integer [email protected] to_float//coordX = sa_coordX*(currentResX/640.0)0015: [email protected] /= 640.0 //  currentResX/640.00069: [email protected] *= [email protected] // floating-point values0015: [email protected] /= 448.0 //  currentResY/448.00069: [email protected] *= [email protected] // floating-point values0069: [email protected] *= [email protected] // floating-point values0069: [email protected] *= [email protected] // floating-point values03F0: enable_text_draw 1038D: draw_texture [email protected] position [email protected] [email protected] size [email protected] [email protected] RGBA [email protected] [email protected] [email protected] [email protected]: ret 0
Edited by ThirteenAG

Share this post


Link to post
Share on other sites
Rizqan7

ThirteenAG, Please answer me, why you not reply me at Girlfriend Take Tour in Street topic, whats wrong with you? cryani.gifcryani.gif

Share this post


Link to post
Share on other sites
ThirteenAG

Another small cleo script for this plugin, hit indicator:

user posted imageuser posted image

 

 

 

user posted image user posted image

 

Available on gtagarage.

Edited by ThirteenAG

Share this post


Link to post
Share on other sites
X3MProductions

I know this topic is very old and maybe no one might answer me now but I'd like to know; does this works for San Andreas? My game doesn't runs the alpha textures correctly. :/

Share this post


Link to post
Share on other sites
ThirteenAG

In SA this bug/feature was fixed, so 038D works exactly as it should.

Share this post


Link to post
Share on other sites
Yorpie

The download link doesn't work anymore.

Share this post


Link to post
Share on other sites
China·XMDS

Can you provide a new download address?

Share this post


Link to post
Share on other sites
Oakxs

Link! Link! Link! Link! Link!

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
Sign in to follow this  

  • 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.