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

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "This page contains '''stripped''' main scripts for the <code>main.scm</code> file using Seemann's Sanny Builder program. These scripts contain the near-m...")
 
Line 7: Line 7:
  
 
== GTA III ==
 
== GTA III ==
 +
{{Pre|class=sb-code|1=
 +
DEFINE MISSIONS <span class="m">0</span>
 +
<span class="c1">// additional missions go here, be sure to update the count for each mission you add</span>
 +
 +
<span class="c1">//-------------MAIN---------------</span>
 +
[[03A4]]: name_thread <span class="s1">'MAIN'</span>
 +
[[01F0]]: set_max_wanted_level_to <span class="m">6</span>
 +
[[0111]]: set_wasted_busted_check_to <span class="m">0</span>
 +
03F7: load_island_data <span class="m">0</span>
 +
[[00C0]]: set_current_time <span class="m">12</span> <span class="m">0</span>
 +
[[0053]]: <span class="nv">$PLAYER_CHAR</span> = create_player <span class="m">0</span> at <span class="m">811.875</span> -<span class="m">939.9375</span> <span class="m">35.75</span>
 +
01F5: <span class="nv">$PLAYER_ACTOR</span> = create_emulated_actor_from_player <span class="nv">$PLAYER_CHAR</span>
 +
0363: toggle_model_render_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> object <span class="nt">#INDHELIX_BARRIER</span> <span class="m">0</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
 +
<span class="k">if</span>
 +
    [[0118|8118]]:  <span class="k">not</span> actor <span class="nv">$PLAYER_ACTOR</span> dead
 +
<span class="k">then</span>
 +
    0352: set_actor <span class="nv">$PLAYER_ACTOR</span> skin_to <span class="s1">'PLAYER'</span>
 +
    [[038B]]: load_requested_models
 +
    0353: refresh_actor <span class="nv">$PLAYER_ACTOR</span>
 +
<span class="k">end</span>
 +
[[016A]]: <span class="k">fade</span> <span class="m">1</span> <span class="m">0</span> ms
 +
<span class="k">if</span>
 +
    [[0256]]:  player <span class="nv">$PLAYER_CHAR</span> defined
 +
<span class="k">then</span>
 +
    [[01B4]]: set_player <span class="nv">$PLAYER_CHAR</span> can_move <span class="m">1</span>
 +
<span class="k">end</span>
 +
<span class="c1">// create_thread commands go here</span>
 +
 +
<span class="k">while</span> <span class="k">true</span>
 +
    <span class="k">wait</span> <span class="m">0</span>
 +
<span class="k">end</span>
 +
 +
<span class="c1">// scripts go here</span>
 +
 +
<span class="c1">//-------------Mission 0---------------</span>
 +
<span class="c1">// missions go here</span>
 +
}}
 +
 
== Vice City ==
 
== Vice City ==
 
{{Pre|class=sb-code|1=
 
{{Pre|class=sb-code|1=

Revision as of 23:44, 14 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
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