Difference between revisions of "Sanny Builder/stripped.txt"

From GTAMods Wiki
Jump to navigation Jump to search
 
Line 22: Line 22:
 
[[03B6]]: replace_model_at <span class="m">1027.25</span> -<span class="m">933.75</span> <span class="m">15.0</span> radius <span class="m">50.0</span> from <span class="nt">#INDHELIX_BARRIER</span> <span class="k">to</span> <span class="nt">#LOD_LAND014</span>
 
[[03B6]]: replace_model_at <span class="m">1027.25</span> -<span class="m">933.75</span> <span class="m">15.0</span> radius <span class="m">50.0</span> from <span class="nt">#INDHELIX_BARRIER</span> <span class="k">to</span> <span class="nt">#LOD_LAND014</span>
 
[[034B]]: staunton_complete
 
[[034B]]: staunton_complete
 +
<span class="k">wait</span> <span class="m">0</span> ms
 +
[[044D]]: load_splash <span class="s1">'SPLASH1'</span>
 +
[[0180]]: set_on_mission_flag_to <span class="nv">$ONMISSION</span>  <span class="c1">// your missions should use the variable defined here ($ONMISSION)</span>
 
<span class="k">if</span>
 
<span class="k">if</span>
 
     [[0118|8118]]:  <span class="k">not</span> actor <span class="nv">$PLAYER_ACTOR</span> dead
 
     [[0118|8118]]:  <span class="k">not</span> actor <span class="nv">$PLAYER_ACTOR</span> dead
Line 62: Line 65:
 
01F5: <span class="nv">$PLAYER_ACTOR</span> = create_emulated_actor_from_player <span class="nv">$PLAYER_CHAR</span>
 
01F5: <span class="nv">$PLAYER_ACTOR</span> = create_emulated_actor_from_player <span class="nv">$PLAYER_CHAR</span>
 
<span class="k">wait</span> <span class="m">0</span> ms
 
<span class="k">wait</span> <span class="m">0</span> ms
 +
[[044D]]: load_splash <span class="s1">'SPLASH1'</span>
 
[[0180]]: set_on_mission_flag_to <span class="nv">$ONMISSION</span>  <span class="c1">// your missions should use the variable defined here ($ONMISSION)</span>
 
[[0180]]: set_on_mission_flag_to <span class="nv">$ONMISSION</span>  <span class="c1">// your missions should use the variable defined here ($ONMISSION)</span>
 
<span class="k">if</span>
 
<span class="k">if</span>

Latest revision as of 00:11, 15 January 2017

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
wait 0 ms
044D: load_splash 'SPLASH1'
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

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
044D: load_splash 'SPLASH1'
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