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. After Hours
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. 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  
Davve95

Mission objects? [SA]

Recommended Posts

Davve95

[SA]

 

Where are the mission objects located? (objects, that's only placed during mission/s)

I checked in the main.scm but I didn't find all of them, maybe I have to look more careful?

(coords and object id's)

 

I found alot of objects though, but not the coords for them.

Thank you!

 

Edit: Or is it hardcoded? :(

 

Edit2: Why can't I open scm files from script.img in Sanny Builder?
I tried to extract the ones I wanted to open, but didn't work. Error code:
Incorrect jump instruction 1162690886 found at 12.

Edited by Davve95

Share this post


Link to post
Share on other sites
ZAZ
3 hours ago, Davve95 said:

[SA]

 

Where are the mission objects located? (objects, that's only placed during mission/s)

I checked in the main.scm but I didn't find all of them, maybe I have to look more careful?

(coords and object id's)

Special objects are defined in counxref.ide, LAxref.ide, levelxre.ide, SFxref.ide, vegaxref.ide

simple objects and cranes in dynamic2.ide and in multiobj.ide, gates and barriers in barriers.ide

the coords in main.scm of course

 

Quote

Edit2: Why can't I open scm files from script.img in Sanny Builder?
I tried to extract the ones I wanted to open

You need to use decompile function and open main.scm

script.img must be in same folder as associated main.scm

Sannybuilder loads than everything into one source text

read more here

Share this post


Link to post
Share on other sites
Davve95

Thanks alot!

 

Edit: Are there any easier way to find objects and their coordinates?

Example by searching on mission name.

 

Because, when I search for some objects in main.scm that I know are used in missions, I can't find the coordinates!

Edited by Davve95

Share this post


Link to post
Share on other sites
Davve95

I edited my post, because idk if it gonna be seen or not, I guess not. So sorry for bumping

Share this post


Link to post
Share on other sites
ZAZ

Install Mapeditor, it's very usefull for working with objects

 

To find objects in main.scm: have look to the object table

Share this post


Link to post
Share on other sites
Davve95

Thanks alot for your replies! Btw, I don't think you know what I mean.
I'll explain better. When you're in missions game spawns objects that's only in the missions.

And when you end the mission, the object/s will not be there.

 

Example: https://imgur.com/a/t8E5FJy

 

It's only there when you play that mission.
So my question is: Where can I find information such as the coordinates where the object spawns in the mission?

 

(And I don't know all object's name/ids that's used in the missions, I wanna see the code for their spawning. So I can use the coordinates etc)

 

 

 

Edited by Davve95

Share this post


Link to post
Share on other sites
deltaCJ

Okay, so mission objects are spawned using object.init and opcodes of those sorts.

In main.scm look for Object.Init as the main SCM uses classes instead of actual opcodes.

 

EDIT: if you wish for the scm to give you the actual opcodes theres a setting for it in the options.

Edited by deltaCJ
Forgot to add something.

Share this post


Link to post
Share on other sites
ZAZ

It's placed while Wuzi mission

DEFINE MISSION 53 AT @WUZI1            // Mountain Cloud Boys
:WUZI1_1529
029B: $2666 = init_object #CT_GATEXR at -2179.353 661.232 50.214 
07F7: set_object $2666 indestructible 0 
0249: release_model #CT_GATEXR 
029B: 68@ = init_object #CT_STALL1 at -2213.413 640.908 48.43 
0177: set_object 68@ Z_angle_to 90.0 
029B: 58@ = init_object #CT_TABLE at -2201.436 647.109 48.413 
029B: 49@ = init_object #CHINATGARAGEDOOR at -2184.415 711.556 54.523 
029B: 50@ = init_object #CHINATGARAGEDOOR at -2178.87 711.556 54.523 
029B: 45@ = init_object #TMP_BIN at -2183.968 647.055 49.185 
029B: 46@ = init_object #TMP_BIN at -2172.813 654.019 49.185 
029B: 47@ = init_object #TMP_BIN at -2172.813 649.293 49.185 
0177: set_object 46@ Z_angle_to 270.0 
0177: set_object 47@ Z_angle_to 270.0 
0177: set_object $2666 Z_angle_to 0.0

 

 

levelxre.ide

3039, ct_stall1, ct_salx, 100, 0
3040, ct_stall2, ct_stabx, 100, 0
3041, ct_table, ct_stabx, 100, 0

 

 

Share this post


Link to post
Share on other sites
Davve95

Thanks guys, but sorry, I can't find any other missions. I'd like to check out the others aswell.

I have been trying to search for Objects.Init but I did just find:

 



 

:IMPND_1570
[email protected] = Object.Init([email protected], $10638($IMPOUND_TOWN_NUMBER,4f), $10642($IMPOUND_TOWN_NUMBER,4f), $10646($IMPOUND_TOWN_NUMBER,4f))
0453: set_object [email protected] XYZ_rotation 0.0 0.0 $10650($IMPOUND_TOWN_NUMBER,4f)
if
   not $10654($IMPOUND_TOWN_NUMBER,4f) == 0.0
else_jump @IMPND_1697
[email protected] = Object.Init([email protected], $10654($IMPOUND_TOWN_NUMBER,4f), $10658($IMPOUND_TOWN_NUMBER,4f), $10662($IMPOUND_TOWN_NUMBER,4f))
0453: set_object [email protected] XYZ_rotation 0.0 0.0 $10666($IMPOUND_TOWN_NUMBER,4f)

 

And some similar line.

 

Maybe I coulden't find it because I need the SCM opocodes? I coulden't find that setting, and I'm not 100% to find objects yet

Share this post


Link to post
Share on other sites
ZAZ

Depending to your settings in sannybuilder options

 

SannyED2engb.jpg

 

you will get by decompiling different kind of source text

With opcodes

029B: $2727 = init_object #MAGNOCRANE_01 at -1547.978 123.9883 26.9332


Without opcodes, classes instead

$2727 = Object.Init(#MAGNOCRANE_01, -1547.978, 123.9883, 26.9332)


Also, there's another opcode

With opcodes

0107: $2706 = create_object #AD_FLATDOOR at 1833.36 -1995.45 12.5

Without opcodes, classes instead

$2706 = Object.Create(#AD_FLATDOOR, 1833.36, -1995.45, 12.5)

 

Read about classes in sannybuilder HELP > Coding > Classes
I prefer "With opcodes" because classes needs to make comma between coords

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.