Sanny Builder/stripped.txt

From GTAMods Wiki
Revision as of 23:44, 14 January 2017 by Spaceeinstein (talk | contribs)
Jump to navigation Jump to search

This page contains stripped main scripts for the main.scm file using Seemann's Sanny Builder program. These scripts contain the near-minimum number of commands needed to make the game run without issues. To use these scripts:

  • Select File > New... to create an empty document
  • Copy and paste the code
  • Select File > Save
  • Save it as main.txt
  • Select Run > Compile to generate the main.scm file

GTA III

DEFINE MISSIONS 0
// additional missions go here, be sure to update the count for each mission you add

//-------------MAIN---------------
03A4: name_thread 'MAIN'
01F0: set_max_wanted_level_to 6
0111: set_wasted_busted_check_to 0
03F7: load_island_data 0
00C0: set_current_time 12 0
0053: $PLAYER_CHAR = create_player 0 at 811.875 -939.9375 35.75
01F5: $PLAYER_ACTOR = create_emulated_actor_from_player $PLAYER_CHAR
0363: toggle_model_render_at 1027.25 -933.75 15.0 radius 50.0 object #INDHELIX_BARRIER 0
03B6: replace_model_at 1027.25 -933.75 15.0 radius 50.0 from #INDHELIX_BARRIER to #LOD_LAND014
034B: staunton_complete
if
    8118:   not actor $PLAYER_ACTOR dead
then
    0352: set_actor $PLAYER_ACTOR skin_to 'PLAYER'
    038B: load_requested_models
    0353: refresh_actor $PLAYER_ACTOR
end
016A: fade 1 0 ms
if
    0256:   player $PLAYER_CHAR defined
then
    01B4: set_player $PLAYER_CHAR can_move 1
end
// create_thread commands go here

while true
    wait 0
end

// scripts go here

//-------------Mission 0---------------
// missions go here

Vice City

DEFINE MISSIONS 0
// additional missions go here, be sure to update the count for each mission you add

//-------------MAIN---------------
03A4: name_thread 'MAIN'
01F0: set_max_wanted_level_to 6
0111: set_wasted_busted_check_to 0
04E4: request_collision_at 83.0 -849.8
03CB: load_scene 83.0 -849.8 9.3
00C0: set_current_time 12 0
0053: $PLAYER_CHAR = create_player 0 at 83.0 -849.8 9.3
01F5: $PLAYER_ACTOR = create_emulated_actor_from_player $PLAYER_CHAR
wait 0 ms
0180: set_on_mission_flag_to $ONMISSION  // your missions should use the variable defined here ($ONMISSION)
if
    8118:   not actor $PLAYER_ACTOR dead
then
    0352: set_actor $PLAYER_ACTOR skin_to 'PLAYER'
    038B: load_requested_models
    0353: refresh_actor $PLAYER_ACTOR
end
016A: fade 1 0 ms
if
    0256:   player $PLAYER_CHAR defined
then
    01B4: set_player $PLAYER_CHAR can_move 1
end
// create_thread commands go here

while true
    wait 0
end

// scripts go here

//-------------Mission 0---------------
// missions go here

San Andreas