Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

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

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

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

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

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

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

    2. Support

    3. Suggestions

[REL] Sanny Builder


Seemann
 Share

Recommended Posts

@Seemann: Two opcodes that would be very interesting in my opinion (pseudo code):

 

????: v$Anim = get_actor $PLAYER_ACTOR current_animation

Get the current animation and allocate into a variable.

 

 

????: $Target = get_actor $PLAYER_ACTOR current_target

Get the current target of a actor and put in a variable. Similar to the opcode 0457.

Link to comment
Share on other sites

  • 2 months later...
spaceeinstein

This is odd. When "Custom variable names" is disabled, decompiling Rockstar's file is fine, custom variable names weren't there. But decompiling this acts if the option was enabled, the custom variables are still there when the option is unchecked. But my other computer doesn't experience this problem even though the settings are exactly the same. Why does that happen?

Edited by spaceeinstein
Link to comment
Share on other sites

  • 3 weeks later...
spaceeinstein

Ok, I figured out my problem. When disabling "Custom variable names", I have to also disable "Add extra info to SCM" to completely disable custom variable names when decompiling. Somehow I didn't need to do that on original SCM. My other computer's settings weren't the same apparently, Vista is weird.

Link to comment
Share on other sites

I see version 3.03 has been removed because your making a new version. Any release date seemann?

Link to comment
Share on other sites

Alexander Blade

at the sunday

Link to comment
Share on other sites

 

And wich new Features will this version have?

Not so much, just minor ones.

 

As for the release date - my home PC doesn't work, so the release is delayed untill I fix my PC or buy a new one. Sorry.

Link to comment
Share on other sites

I am disppointed...

 

I installed 3.04 and it looks nothing like the screens on the website... why? do you have a special theme on your computer or something?

Link to comment
Share on other sites

 

I am disppointed...

 

I installed 3.04 and it looks nothing like the screens on the website... why? do you have a special theme on your computer or something?

Of course its designe is based on windows theme.

 

The updates are nice, not much but the display of cleo on loadscreen is very helpful

Maybe its a bit late to give suggestions:

 

I am still missing a list for possible Classes

 

Sanny Builder allows you to use classes in the code.  Class is a group of opcodes applied to in-game objects: player, actor, object, etc.

Would be nice if you create one and add it to your sanny site

 

Opcode description:

With all newer sascm.ini we can find the 2 codes of carmod script:

06EC: get_car $CARMOD_Car number_of_color_indices_to $10446

097D: get_car $CARMOD_Car number_of_possible_paintjobs_to $10084

 

but the meaning of these codes are invers. It should be:

 

 

06EC: get_car [email protected] number_of_possible_paintjobs_to [email protected]: get_car [email protected] number_of_color_indices_to [email protected]

 

 

the opcode description

096B: set_present_mod_apply

is not informativ enough

its used in carmod script to save the present tuningparts and allows to reset to the saved state by using 096C

more informations here

Link to comment
Share on other sites

I am disppointed...

 

I installed 3.04 and it looks nothing like the screens on the website... why? do you have a special theme on your computer or something?

Of course its designe is based on windows theme.

 

The updates are nice, not much but the display of cleo on loadscreen is very helpful

Maybe its a bit late to give suggestions:

 

I am still missing a list for possible Classes

 

Sanny Builder allows you to use classes in the code.  Class is a group of opcodes applied to in-game objects: player, actor, object, etc.

Would be nice if you create one and add it to your sanny site

 

Opcode description:

With all newer sascm.nin we can find the 2 codes of carmod script:

06EC: get_car $CARMOD_Car number_of_color_indices_to $10446

097D: get_car $CARMOD_Car number_of_possible_paintjobs_to $10084

 

but the meaning of these codes are invers. It should be:

 

 

06EC: get_car [email protected] number_of_possible_paintjobs_to [email protected]: get_car [email protected] number_of_color_indices_to [email protected]

 

 

the opcode description

096B: set_present_mod_apply

is not informativ enough

its used in carmod script to save the present tuningparts and allows to reset to the saved state by using 096C

more informations here

Yeah, but I get the old look of 3.03. In the screens of 3.04, it has a nice new look. I don't get the new look sad.gif

Link to comment
Share on other sites

Those screens were made a year ago using SB v3.00 that actually had such interface, they aren't screens of v3.04.

Link to comment
Share on other sites

Those screens were made a year ago using SB v3.00 that actually had such interface, they aren't screens of v3.04.

Oh ok.

Link to comment
Share on other sites

  • 1 month later...

I think I've found a minor mistake in the Sanny Help.

 

Sanny Builder v3.04

Help - SCM Documentation - GTA SA - Player body parts

 

reads

4 Lower left arm

5 Upper left arm

 

should be

4 Upper left arm

5 Lower left arm

 

Here's a screenshot which shows that

4weed 4WEED is the upper one and

5cross 5CROSS is the lower one (http://www.isarapix.org/pix75/1222943532.jpg)

 

Great program, by the way, fantastic job. icon14.gif

 

Link to comment
Share on other sites

Seemann, icon14.gif on the new version. *downloading now* Sorry to hear about your PC crapping out. Hope all is well now. wink.gif

 

I've been absent (first post back) but quietly working on my TC. A bug I was experiencing is now resolved...

Remember This Mystery? (http://www.gtaforums.com/index.php?showtopic=352116&st=0entry1058192738)

It was caused by this:

 

0A95: enable_thread_saving

 

 

I thought it was my error because I hadn't put the opcode to use yet (it was just hanging out temporarily in a CLEO thread) but on a hunch (because "something" was interrupting the player), I tried removing that line and the bug disappeared. Even if I use the thread saving opcodes properly, the bug can be duplicated.

 

I don't know if this is a known bug, undiscovered bug or a bug that only I have experienced based on my setup but if you need add'l info to ascertain the cause, drop me a PM. wink.gif

 

All the best,

-Midnightz

Link to comment
Share on other sites

0A95 makes the script to save its data in a separate CLEO save file (located in the CLEO_SAVES directory). Saved data includes local variables values, thread data (timers, if condition result, latest opcode executed, etc). That's all. I'm really doubt that this bug or whatever was caused by this opcode itself. It looks like if it was the script problem, after loading a save file the script restores all its data, and if some variables or conditions were used incorrectly, it may cause the bug. If you don't use 0A95 the script each time starts from the beginning with all local variables reset. So, you need to re-check your codes once more, I guess.

Link to comment
Share on other sites

I established a definitive pattern. I mentioned this to you awhile ago, remember? --> My temporary solution was to start a new game, wait until CJ spawned THEN start a new game AGAIN and THAT would fix the bug. Something "seemed" to be interrupting the initial load but spontaneously resolving itself on second load.

 

I only recently discovered the permanent fix = remove 0A95.

 

 

It looks like if it was the script problem, after loading a save file the script restores all its data...

The bug happens only when:

 

- 0A95 exists in a CLEO thread (even in "test" threads that do nothing) AND when starting a NEW game (no saves exist)

 

-OR-

 

- if I load a saved game that does not include my "temporary solution" as described above^

 

Feel free to toss me a CLEO thread (using 0A95) that you trust/know works properly and I will test it on my SA. (If the bug recurs, then you'll know it's not my code, right? wink.gif)

 

Just trying to help,

-Midnightz

Link to comment
Share on other sites

  • 2 weeks later...
[MenaceMovies]

When I downloaded the .exe from the official site my KAV went haywire saying that the file contained a trogan and emediately deleted the .exe... wtf.

Link to comment
Share on other sites

[MenaceMovies]
I've checked with KIS 2009 and latest bases and no virus it says.

I don't know whats with my KAV, it's settings are messed up I think.

 

It wouldn't let me use my old GIF avatar anymore (which I've used for months) and it says its got a virus. It's scaring me now.

Link to comment
Share on other sites

  • 2 weeks later...
Can anyone say me wich data type type this opcode gives back? float or int?

 

0AAF: [email protected] = get_mp3_length [email protected]

int, in seconds (for 3 mins mp3 result is 180).

Link to comment
Share on other sites

 

Can anyone say me wich data type type this opcode gives back? float or int?

 

0AAF: [email protected] = get_mp3_length [email protected]

int, in seconds (for 3 mins mp3 result is 180).

Thanks that works biggrin.gif

 

Can you can create an Opcode like this?

 

XXXX: set_mp3 [email protected] position to 60

 

Is that possible?

No. I'm not willing to add/change anything that is mp3 related at the moment.

Link to comment
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
 Share

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