Jump to content

A question about stripped main.scm


Recommended Posts

Hi people. I wanna ask you something about stripped main.scm. After you install it, and start new game for first time, loading bar finishes ok, but the game starts immediately, not like original main.scm, you know, like fading out from black to game. Hope you understand me !

 

Anyway, Can you give me a code so the game will start like original main.scm?

 

EDIT: If you don't understand me what I'm talking about, then watch this video.

Edited by ilir
Link to comment
https://gtaforums.com/topic/458303-a-question-about-stripped-mainscm/
Share on other sites

Hi people. I wanna ask you something about stripped main.scm. After you install it, why when you start new game for first time, loading bar finishes ok, but the game starts immediately, not like original main.scm, you know, like fading out from black to game. Hope you understand me !

 

Can you give me a code so the game will start like original scripts?

have you deleted your script.img from the script folder?

 

also Sannybuilder comes with a stripped main:

 

 

{$VERSION 3.0.0000}var$PLAYER_CHAR: Playerend // var 03A4: name_thread 'MAIN' 01F0: set_max_wanted_level_to 6 0111: toggle_wasted_busted_check 0 00C0: set_current_time_hours_to 8 minutes_to 0 04E4: unknown_refresh_game_renderer_at 2488.56 -1666.84 03CB: set_rendering_origin_at 2488.56 -1666.84 13.38 0053: $PLAYER_CHAR = create_player #NULL at 2488.56 -1666.84 13.38 01F5: $PLAYER_ACTOR = create_player_actor $PLAYER_CHAR 07AF: $PLAYER_GROUP = player $PLAYER_CHAR group 0373: set_camera_directly_behind_player 01B6: set_weather 0 0001: wait 0 ms 087B: set_player $PLAYER_CHAR clothes_texture "PLAYER_FACE" model "HEAD" body_part 1 087B: set_player $PLAYER_CHAR clothes_texture "JEANSDENIM" model "JEANS" body_part 2 087B: set_player $PLAYER_CHAR clothes_texture "SNEAKERBINCBLK" model "SNEAKER" body_part 3 087B: set_player $PLAYER_CHAR clothes_texture "VEST" model "VEST" body_part 0 070D: rebuild_player $PLAYER_CHAR 01B4: toggle_player $PLAYER_CHAR can_move 1 016A: fade 1 time 0 04BB: select_interior 0 0629: change_integer_stat 181 to 4 016C: restart_if_wasted_at 2027.77 -1420.52 15.99 angle 137.0 town_number 0 016D: restart_if_busted_at 1550.68 -1675.49 14.51 angle 90.0 town_number 0 0180: set_on_mission_flag_to $ONMISSION // Note: your missions have to use the variable defined here 0004: $DEFAULT_WAIT_TIME = 25003E6: remove_text_box // put your create_thread commands here:MAIN_LOOP0001: wait $DEFAULT_WAIT_TIME ms00BF: $TIME_HOURS = current_time_hours, $TIME_MINS = current_time_minutes0002: jump @MAIN_LOOP // put your mods (threads) here//-------------Mission 0---------------// put your missions here//-------------External script 0---------------// put your external scripts here

 

 

have you deleted your script.img from the script folder?

 

also Sannybuilder comes with a stripped main

No I didn't deleted script.img. And yes, I know that SannyBuilder comes with a stripped main. I actually use that stripped main.scm

have you deleted your script.img from the script folder?

 

also Sannybuilder comes with a stripped main

No I didn't deleted script.img. And yes, I know that SannyBuilder comes with a stripped main. I actually use that stripped main.scm

and have you tried it after you deleted the script.img? confused.gif

This is not a problem, dude. I just wanna get the code so when you start new game (or load game), starting like fading out from black to the gameplay (like R* one), not like stripped one, starting immediately after loading bar finishes. Hope you understand me.

 

This is not a problem, dude. I just wanna get the code so when you start new game (or load game), starting like fading out from black to the gameplay (like R* one), not like stripped one, starting immediately after loading bar finishes. Hope you understand me.

using the template of sanny files or from TheSiggi above should start you're game in a proper way

if not, then you have added or changed something which let the code stuck or don't let do the fade out

so post you're script, then we can find you're mistake

 

 

the main.scm beginns regulary with a fade in, but it's not neccesary as you can see in TheSiggis template

 

fade in (screen will be black)

 

016A: fade  0 (in)  0 ms// with opcode and description in bracket016A: fade  0 ()  0 ms// with opcodefade 0 0// without opcode// each variation is valid

 

 

 

after the most important codes, when player is created, time, weather and interior is defined

it should fade out

but if you added a lot of codes there, before fading out, it can cause a disturbance

then you need to insert wait times to give the game the chance to apply the gamestart

a wait time of 250ms maybe or 1000ms should be enough

 

fade out (screen shows the gameworld)

 

016A: fade  1 (out)  1000 ms// with opcode and description in bracket016A: fade  1 ()  0 ms// with opcodefade 1 0// without opcode// each variation is valid

 

 

 

fade time is the duration of the fading, from black screen to show gameworld or reverse

 

 

Edited by ZAZ

With fade 1 time 500, the game only waits a little then starts immediately, not like fading out.

 

But I think the game have nothing to load with stripped main.scm, that's because the fading out effects don't work, I think. Or it doesn't matter?

 

Hi people. I wanna ask you something about stripped main.scm. After you install it, and start new game for first time, loading bar finishes ok, but the game starts immediately, not like original main.scm, you know, like fading out from black to game. Hope you understand me !

 

Anyway, Can you give me a code so the game will start like original main.scm?

 

EDIT: If you don't understand me what I'm talking about, then watch this video.

Tell me if this doesen't work:

at the top of your script, after

thread "MAIN"

 

add this:

 

 

thread "MAIN"// add: 016A: fade 1 time 100 here01F0: set_max_wanted_level_to 60111: toggle_wasted_busted_check 000C0: set_current_time_hours_to 8 minutes_to 004E4: unknown_refresh_game_renderer_at 2488.56 -1666.8403CB: set_rendering_origin_at 2488.56 -1666.84 13.380053: $PLAYER_CHAR = create_player #NULL at 2488.56 -1666.84 13.3801F5: $PLAYER_ACTOR = create_player_actor $PLAYER_CHAR07AF: $PLAYER_GROUP = player $PLAYER_CHAR group0373: set_camera_directly_behind_player01B6: set_weather 00001: wait 0 ms087B: set_player $PLAYER_CHAR clothes_texture "PLAYER_FACE" model "HEAD" body_part 1087B: set_player $PLAYER_CHAR clothes_texture "JEANSDENIM" model "JEANS" body_part 2087B: set_player $PLAYER_CHAR clothes_texture "SNEAKERBINCBLK" model "SNEAKER" body_part 3087B: set_player $PLAYER_CHAR clothes_texture "VEST" model "VEST" body_part 0070D: rebuild_player $PLAYER_CHAR01B4: toggle_player $PLAYER_CHAR can_move 1// add: wait 500 here016A: fade 1 time 0 // Change this to: fade 1 10004BB: select_interior 00629: change_integer_stat 181 to 4016C: restart_if_wasted_at 2027.77 -1420.52 15.99 angle 137.0 town_number 0016D: restart_if_busted_at 1550.68 -1675.49 14.51 angle 90.0 town_number 00180: set_on_mission_flag_to $ONMISSION // Note: your missions have to use the variable defined here0004: $DEFAULT_WAIT_TIME = 25003E6: remove_text_box// put your create_thread commands here:MAIN_LOOP0001: wait $DEFAULT_WAIT_TIME ms00BF: $TIME_HOURS = current_time_hours, $TIME_MINS = current_time_minutes0002: jump @MAIN_LOOP// put your mods (threads) here//-------------Mission 0---------------// put your missions here//-------------External script 0---------------// put your external scripts here

 

 

Here is what it looks like when you edited it:

 

 

thread "MAIN"016A: fade 0 time 100 // put 016A: fade 0 time 10001F0: set_max_wanted_level_to 60111: toggle_wasted_busted_check 000C0: set_current_time_hours_to 8 minutes_to 004E4: unknown_refresh_game_renderer_at 2488.56 -1666.8403CB: set_rendering_origin_at 2488.56 -1666.84 13.380053: $PLAYER_CHAR = create_player #NULL at 2488.56 -1666.84 13.3801F5: $PLAYER_ACTOR = create_player_actor $PLAYER_CHAR07AF: $PLAYER_GROUP = player $PLAYER_CHAR group0373: set_camera_directly_behind_player01B6: set_weather 00001: wait 0 ms087B: set_player $PLAYER_CHAR clothes_texture "PLAYER_FACE" model "HEAD" body_part 1087B: set_player $PLAYER_CHAR clothes_texture "JEANSDENIM" model "JEANS" body_part 2087B: set_player $PLAYER_CHAR clothes_texture "SNEAKERBINCBLK" model "SNEAKER" body_part 3087B: set_player $PLAYER_CHAR clothes_texture "VEST" model "VEST" body_part 0070D: rebuild_player $PLAYER_CHAR01B4: toggle_player $PLAYER_CHAR can_move 1wait 500 // add wait 500 herefade 1 100 // Change this to: fade 1 10004BB: select_interior 00629: change_integer_stat 181 to 4016C: restart_if_wasted_at 2027.77 -1420.52 15.99 angle 137.0 town_number 0016D: restart_if_busted_at 1550.68 -1675.49 14.51 angle 90.0 town_number 00180: set_on_mission_flag_to $ONMISSION // Note: your missions have to use the variable defined here0004: $DEFAULT_WAIT_TIME = 25003E6: remove_text_box// put your create_thread commands here:MAIN_LOOP0001: wait $DEFAULT_WAIT_TIME ms00BF: $TIME_HOURS = current_time_hours, $TIME_MINS = current_time_minutes0002: jump @MAIN_LOOP// put your mods (threads) here//-------------Mission 0---------------// put your missions here//-------------External script 0---------------// put your external scripts here

 

Edited by Pie015
{$VERSION 3.0.0000}var$PLAYER_CHAR: Playerend // var // PUT INSTANT FADE IN HEREfade 0 0 // fade (in) in 0 ms03A4: name_thread 'MAIN' 01F0: set_max_wanted_level_to 6 0111: toggle_wasted_busted_check 0 00C0: set_current_time_hours_to 8 minutes_to 0 04E4: unknown_refresh_game_renderer_at 2488.56 -1666.84 03CB: set_rendering_origin_at 2488.56 -1666.84 13.38 0053: $PLAYER_CHAR = create_player #NULL at 2488.56 -1666.84 13.38 01F5: $PLAYER_ACTOR = create_player_actor $PLAYER_CHAR 07AF: $PLAYER_GROUP = player $PLAYER_CHAR group 0373: set_camera_directly_behind_player 01B6: set_weather 0 0001: wait 0 ms 087B: set_player $PLAYER_CHAR clothes_texture "PLAYER_FACE" model "HEAD" body_part 1 087B: set_player $PLAYER_CHAR clothes_texture "JEANSDENIM" model "JEANS" body_part 2 087B: set_player $PLAYER_CHAR clothes_texture "SNEAKERBINCBLK" model "SNEAKER" body_part 3 087B: set_player $PLAYER_CHAR clothes_texture "VEST" model "VEST" body_part 0 070D: rebuild_player $PLAYER_CHAR 01B4: toggle_player $PLAYER_CHAR can_move 1 016A: fade 1 time 0 04BB: select_interior 0 0629: change_integer_stat 181 to 4 016C: restart_if_wasted_at 2027.77 -1420.52 15.99 angle 137.0 town_number 0 016D: restart_if_busted_at 1550.68 -1675.49 14.51 angle 90.0 town_number 0 0180: set_on_mission_flag_to $ONMISSION // Note: your missions have to use the variable defined here 0004: $DEFAULT_WAIT_TIME = 25003E6: remove_text_box // PUT FADE OU THEREfade 1 1500 // fade (out) in 1500 ms// put your create_thread commands here:MAIN_LOOP0001: wait $DEFAULT_WAIT_TIME ms00BF: $TIME_HOURS = current_time_hours, $TIME_MINS = current_time_minutes0002: jump @MAIN_LOOP // put your mods (threads) here//-------------Mission 0---------------// put your missions here//-------------External script 0---------------// put your external scripts here

 

Thanx people, I used gtasearcher's version with fade 1 3500 and it's close to the original one.

 

I'm sure why fading isn't working properly. The game have nothing to load with stripped main.scm and that's because the game starts immediately.

 

@ZAZ: 5000 is too much cry.gifcry.gif

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
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.