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

Sign in to follow this  
Pie015

Menu

Recommended Posts

Pie015

Hey guys is there any tool too see the width and position, thanks in advance colgate.gif

Share this post


Link to post
Share on other sites
Bennington

Do you mean your coordinates? There´s an tool integrated in Sanny Builder. Go to Tools -> IDE Tools -> Coords Manager while your game is running, and it will show you the player´s current position.

Share this post


Link to post
Share on other sites
TheSiggi
Do you mean your coordinates? There´s an tool integrated in Sanny Builder. Go to Tools -> IDE Tools -> Coords Manager while your game is running, and it will show you the player´s current position.

Does that reflect anything he asked for?

 

@topic:

 

Just google around, I think I've seen something like this somewhere in MSDN but I can't remember where exactly

 

but just try it out tounge.gif

 

draw a texture at some coords

Share this post


Link to post
Share on other sites
Bennington
Do you mean your coordinates? There´s an tool integrated in Sanny Builder. Go to  Tools -> IDE Tools -> Coords Manager  while your game is running, and it will show you the player´s current position.

Does that reflect anything he asked for?

 

@topic:

 

Just google around, I think I've seen something like this somewhere in MSDN but I can't remember where exactly

 

but just try it out tounge.gif

 

draw a texture at some coords

Sorry man, I missed that he means the menu. When he said position I thought of coords... blush.gif

Share this post


Link to post
Share on other sites
TheSiggi
Do you mean your coordinates? There´s an tool integrated in Sanny Builder. Go to  Tools -> IDE Tools -> Coords Manager  while your game is running, and it will show you the player´s current position.

Does that reflect anything he asked for?

 

@topic:

 

Just google around, I think I've seen something like this somewhere in MSDN but I can't remember where exactly

 

but just try it out tounge.gif

 

draw a texture at some coords

Sorry man, I missed that he means the menu. When he said position I thought of coords... blush.gif

they're coords...screen coords biggrin.gif

 

 

Share this post


Link to post
Share on other sites
Pie015

@to siggi:

 

I saw your weapon menu mod, how did you get the coords for the screen??????? confused.gif

Share this post


Link to post
Share on other sites
fastman92

If you want to get good screen coords then run game, press PrintScreen and fetch coords in paint. After you do that and add cords to your script, texture will probably be near you want but in bad place yet. Then change X or Y around some points and test it

Share this post


Link to post
Share on other sites
TheSiggi

eemmm paint uses real desktop coords, while GTA uses a smaller gauge

Edited by The_Siggi

Share this post


Link to post
Share on other sites
Bennington

Or look in the .cs file of the Weapon menu mod and look for opcode 08D4, there are some parameter about the panel...

If The_Siggi don´t mind alien.gif

Share this post


Link to post
Share on other sites
TheSiggi

sure I don't.... the next version will be an opensource project tounge.gif

 

 

0512: show_permanent_text_box 'WARDH3' //---------------- may set this into Settings block08D4: [email protected] = create_panel_with_title 'PWMPH1' position 29.0 170.0 width 180.0 columns 1 interactive 1 background 1 alignment 1  08DB: set_panel [email protected] column 0 header 'PLA_19' data 'PWPMHM' 'GUN1' 'GUN2' 'PWMPHS' 'GUN5' 'GUN6' 'PWMPHH' 'GUN7' 'PWMPHE' 'PWMPHG' 'PWMPJE' 'PWPMX3'

 

 

just look into other scripts that use menus so you can think of the limits

 

Dejis Carmen mod creates a panel on the far right and it uses

 

 

08D4: [email protected] = create_panel_with_title '_SPNCR0' position 360.0 170.0 width 230.0 columns 1 interactive 1 background 1 alignment 0

 

 

 

So 360.0 seems to be a limit on the right while 29.0 is on the left

 

you can figure out the rest easily

Edited by The_Siggi

Share this post


Link to post
Share on other sites
Pie015

This mod isn't working, it says "excepting 15 parameters" at 08DB

 

 

{$VERSION 3.1.0027}{$CLEO .cs}//[email protected] = Pickup.Create(1239, 23, 765.9999, 14.2958, 1000.7009)0000: NOPwait 400jump @20662: NOP "BUILT BY PIE015":108DA: remove_panel [email protected] 08D4: [email protected] = create_panel_with_title 'WARDH3' position 29.0 140.0 width 102.0 columns 1 interactive 1 background 1 alignment 1 08DB: set_panel [email protected] column 0 header 'FGHT_00' data 'FUTT_1' 'FUTT_2' 'FUTT_3' 'ESC' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY'090E: set_panel [email protected] active_row 0jump @3                                                                                                                                                                       :2wait 0if and  Player.Defined($PLAYER_CHAR)00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 765.9999 14.2958 1000.7009 radius 1.0 1.0 1.0if and00BA: show_text_styled GXT 'TRAIN_19' time 3000 style 60AB0:  key_pressed 1910AB0:  key_pressed 840AB0:  key_pressed 820AB0:  key_pressed 650AB0:  key_pressed 730AB0:  key_pressed 78jf @208D4: [email protected] = create_panel_with_title 'WARDH3' position 29.0 140.0 width 102.0 columns 1 interactive 1 background 1 alignment 1 08DB: set_panel [email protected] column 0 header 'FGHT_00' data 'FUTT_1' 'FUTT_2' 'FUTT_3' 'ESC' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 090E: set_panel [email protected] active_row 0 03BF: set_player $PLAYER_CHAR ignored_by_everyone 1 Player.CanMove($PLAYER_CHAR) = False0662: NOP "-----------------------------------FIGHTING STYLES-------------------------------------":3wait 0 if 00E1:   player 0 pressed_key 16 jf @3 08D7: [email protected] = panel [email protected] active_row [email protected] += 1 jump @4:4wait 0if [email protected] == 1jf @507FE: set_actor $PLAYER_ACTOR fighting_style_to 5 1 00BA: show_text_styled GXT 'CHAN_1' time 3000 style 7wait 55jump @5:5if [email protected] == 2jf @607FE: set_actor $PLAYER_ACTOR fighting_style_to 5 200BA: show_text_styled GXT 'CHAN_1' time 3000 style 7wait 55jump @6:6if [email protected] == 3jf @707FE: set_actor $PLAYER_ACTOR fighting_style_to 5 300BA: show_text_styled GXT 'CHAN_1' time 3000 style 7wait 55jump @7:8if [email protected] == 4jf @9jump @1:903E6: remove_text_box 08DA: remove_panel [email protected] 08DA: remove_panel [email protected] 03BF: set_player $PLAYER_CHAR ignored_by_everyone 0 Player.CanMove($PLAYER_CHAR) = Truejump @1 

 

Share this post


Link to post
Share on other sites
TheSiggi
This mod isn't working, it says "excepting 15 parameters" at 08DB

 

 

{$VERSION 3.1.0027}{$CLEO .cs}//[email protected] = Pickup.Create(1239, 23, 765.9999, 14.2958, 1000.7009)0000: NOPwait 400jump @20662: NOP "BUILT BY PIE015":108DA: remove_panel [email protected] 08D4: [email protected] = create_panel_with_title 'WARDH3' position 29.0 140.0 width 102.0 columns 1 interactive 1 background 1 alignment 1 08DB: set_panel [email protected] column 0 header 'FGHT_00' data 'FUTT_1' 'FUTT_2' 'FUTT_3' 'ESC' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY'090E: set_panel [email protected] active_row 0jump @3                                                                                                                                                                       :2wait 0if and  Player.Defined($PLAYER_CHAR)00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 765.9999 14.2958 1000.7009 radius 1.0 1.0 1.0if and00BA: show_text_styled GXT 'TRAIN_19' time 3000 style 60AB0:  key_pressed 1910AB0:  key_pressed 840AB0:  key_pressed 820AB0:  key_pressed 650AB0:  key_pressed 730AB0:  key_pressed 78jf @208D4: [email protected] = create_panel_with_title 'WARDH3' position 29.0 140.0 width 102.0 columns 1 interactive 1 background 1 alignment 1 08DB: set_panel [email protected] column 0 header 'FGHT_00' data 'FUTT_1' 'FUTT_2' 'FUTT_3' 'ESC' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 090E: set_panel [email protected] active_row 0 03BF: set_player $PLAYER_CHAR ignored_by_everyone 1 Player.CanMove($PLAYER_CHAR) = False0662: NOP "-----------------------------------FIGHTING STYLES-------------------------------------":3wait 0 if 00E1:   player 0 pressed_key 16 jf @3 08D7: [email protected] = panel [email protected] active_row [email protected] += 1 jump @4:4wait 0if [email protected] == 1jf @507FE: set_actor $PLAYER_ACTOR fighting_style_to 5 1 00BA: show_text_styled GXT 'CHAN_1' time 3000 style 7wait 55jump @5:5if [email protected] == 2jf @607FE: set_actor $PLAYER_ACTOR fighting_style_to 5 200BA: show_text_styled GXT 'CHAN_1' time 3000 style 7wait 55jump @6:6if [email protected] == 3jf @707FE: set_actor $PLAYER_ACTOR fighting_style_to 5 300BA: show_text_styled GXT 'CHAN_1' time 3000 style 7wait 55jump @7:8if [email protected] == 4jf @9jump @1:903E6: remove_text_box 08DA: remove_panel [email protected] 08DA: remove_panel [email protected] 03BF: set_player $PLAYER_CHAR ignored_by_everyone 0 Player.CanMove($PLAYER_CHAR) = Truejump @1 

 

080B requires 15 parameters.... you forgot several 'DUMMY's

Share this post


Link to post
Share on other sites
fastman92

No, he didn't forget. He does not need so many rows in menu.

But this opcode needs 15 parameters.

Add empty string parameters such as ''

Game will ignore then (NULL) and won't make rows with empty strings.

You'll have 15 parameters, but only not null will create rows.

It's tested sollution.

Share this post


Link to post
Share on other sites
Bennington

By the way

@The_Siggi

I´ve a confession to make... for my All Mission Access Mod I checked your Weapon Menu Mod to understand how a menu works... I hope your not angry, feel honored please blush.gif

I already mentioned you!

Edited by Bennington

Share this post


Link to post
Share on other sites
TheSiggi

@fastman: Well, its all about the readability of your code confused.gif Its a golden rule, make your source as readable as possible for yourself

 

@Pie: there must be 12 strings after data always, you only got 11 so add 'DUMMY' to the end of the line

cheers

Share this post


Link to post
Share on other sites
fastman92

But if he'll add 12 DUMMY then menu will consist 12 rows available

Share this post


Link to post
Share on other sites
TheSiggi
But if he'll add 12 DUMMY then menu will consist 12 rows available

eeemm no? 'DUMMY' is a keyword and will not create a row confused.gif

 

openup main.scm and have a look on the panels used in there.... 'DUMMY' 'DUMMY' and I've never seen the word in game

my mod also uses 'DUMMY' a lot and it has no unused rows showing 'DUMMY' as text

Share this post


Link to post
Share on other sites
yair1221

'DUMMY' means not to show an option

if you use something like 'TESFFF'(doesnt exist in GXT file)

then you will see the option,just...no text

so use DUMMY if you dont want it to be seen

Share this post


Link to post
Share on other sites
fastman92

Sorry, I didn`t know that there are two ways ('DUMMY' or '') in order game ignores them and won`t create rows.

I thought that GTA SA would try to load such GXT entry, those name is 'DUMMY'

Share this post


Link to post
Share on other sites
yair1221

no...thats the point, when you used the amount of menu possibilities that you need, you start using DUMMY in order the tell the game that there should not be anymore options

i hope you understand what i just wrote

because i cant understand it myself

Share this post


Link to post
Share on other sites
BnB

'' and 'DUMMY' is the same

Share this post


Link to post
Share on other sites
yair1221

ill keep that in mind

offtopic:

if i use cleo opcode(0ab0) in a main.scm

could it fu*k things up?

Share this post


Link to post
Share on other sites
TheSiggi
ill keep that in mind

offtopic:

if i use cleo opcode(0ab0) in a main.scm

could it fu*k things up?

yep, it will mess up

Share this post


Link to post
Share on other sites
james227uk

What? Unless that was sarcastic

Share this post


Link to post
Share on other sites
TheSiggi
What? Unless that was sarcastic

for me CLEO opcodes never worked in threads.... not in SA and neither in VC

Share this post


Link to post
Share on other sites
Anurag_Anmol

-thread jack-

 

What if the player presses one of them? How do you make the game do something then?

Share this post


Link to post
Share on other sites
yair1221

 

:cwait 0if0ab0: WHATEVERKEYYOUWANTjf @c

 

 

but that only works with CLEO

 

 

:cwait 0if00e1: 0 WHATEVERKEYYOUWANTjf @c

 

 

that works with scm

Edited by yair1221

Share this post


Link to post
Share on other sites
TheSiggi
:c

wait 0

if

0ab0: WHATEVERKEYYOUWANT

jf @c

 

but that only works with CLEO

 

:c

wait 0

if

00e1: 0 WHATEVERKEYYOUWANT

jf @c

 

that works with scm

eeem no?

 

00e1: only works with GTA keys confused.gif

Share this post


Link to post
Share on other sites
yair1221

that was not the question, i just showed him how to use 0ab0:

and i just added a note, that it only works with CLEO...

Share this post


Link to post
Share on other sites
BnB

00E1 works in cleo too.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

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

×
×
  • Create New...

Important Information

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