IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 VC texture draw

 ?
 
Ify24  
Posted: Tuesday, Aug 7 2012, 14:10
Quote Post


0x00000000 --> invisible
Group Icon
Group: Members
Joined: Aug 17, 2011

yu.gif

XXXXX



Hy guys.
So my question is... how to draw textures in VC?
I searched in opcode search:
''txd''---> 0 opcodes
"texture" ---> 0 opcodes
PM
  Top
 

 
Ashwin the new boy  
Posted: Tuesday, Aug 7 2012, 14:38
Quote Post


I am The Most Confused Person
Group Icon
Group: Members
Joined: Nov 14, 2010

ia.gif

XXXXX



CODE

{$CLEO}
thread 'BR_CON'
0390: load_txd_dictionary 'MY_HUD' // name of TXD file (without extension)

038F: load_texture 'BR_Con' as 2 // Texture name, if 2 then it Should't be used for another texture even in different Script

03F0: enable_text_draw 1 // if 0, then no need to Loop the Texture draw

:0
wait 0
if
0256:   player $PLAYER_CHAR defined // if you draw texture when player is dead, U'll get a crash
jf @0
038D: draw_texture 2 position 128.0 128.0 size 256.0 256.0 RGBA 255 255 255 255
jump @0


I have made it easy for you,

This post has been edited by Ashwin the new boy on Tuesday, Aug 7 2012, 14:46
Users WebsitePM
  Top
 

 
Ify24  
Posted: Tuesday, Aug 7 2012, 14:42
Quote Post


0x00000000 --> invisible
Group Icon
Group: Members
Joined: Aug 17, 2011

yu.gif

XXXXX



QUOTE (Ashwin the new boy @ Tuesday, Aug 7 2012, 14:38)
CODE

{$CLEO}
thread 'BR_CON'
0390: load_txd_dictionary 'MY_HUD'
038F: load_texture 'BR_Con' as 2 // Load dictionary with 0390 first
05E0: 1@ = read_memory 0xA0FD04 size 4 virtual_protect 0
0093: 1@ = integer 1@ to_float
0087: 3@ = 1@  
1@ *= 97.0
1@ /= 100.0
05E0: 2@ = read_memory 0xA0FD08 size 4 virtual_protect 0
0093: 2@ = integer 2@ to_float  
0087: 4@ = 2@
2@ *= 8.0
2@ /= 100.0
///////////////////////////////////  
3@ *= 6.0
3@ /= 100.0  
4@ *= 11.0
4@ /= 100.0


:0
wait 0
if
0256:   player $PLAYER_CHAR defined
jf @0
03F0: enable_text_draw 1
038D: draw_texture 2 position 1@ 2@ size 3@ 4@ RGBA 255 255 255 255
jump @0


This is my Script, use it for Example only wink.gif

but there is no 0390 opcode for VC
PM
  Top
 

 
Ashwin the new boy  
Posted: Tuesday, Aug 7 2012, 14:46
Quote Post


I am The Most Confused Person
Group Icon
Group: Members
Joined: Nov 14, 2010

ia.gif

XXXXX



It is not written in Opcodes.txt file, but present in VC.INI

Sb show only those opcodes which are written in opcodes.txt file,
SB\data\vc\opcodes.txt

You can find them all in here
SB\data\vc\VICESCM.INI

This post has been edited by Ashwin the new boy on Tuesday, Aug 7 2012, 14:49
Users WebsitePM
  Top
 

 
Ify24  
Posted: Tuesday, Aug 7 2012, 16:49
Quote Post


0x00000000 --> invisible
Group Icon
Group: Members
Joined: Aug 17, 2011

yu.gif

XXXXX



thanks
PM
  Top
 

 
HackMan128  
Posted: Friday, Feb 8 2013, 10:47
Quote Post


no title
Group Icon
Group: Members
Joined: Jul 9, 2006

Member Award




I have question, is there a limit, that there can be drawn only 16 textures? If I load more, the game has an error.
PMMSN
  Top
 

 
SilentPL  
Posted: Friday, Feb 8 2013, 11:17
Quote Post


Senior File Manager
Group Icon
Group: Members
Joined: Feb 1, 2010

pl.gif

Member Award




Yep. The script textures array has 16 entries.
Users WebsitePMMSNXbox Live
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG