Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

Can't script


BEGINit
 Share

Recommended Posts

Hi, I have a problem. When I try to script the main part of the scm on gta3 the game always crashes and it doesnt matter weather I make a new thread or just put one new weapon pickup or parked car... Any extra code line in the main part crashes the game. Mission part works fine, I can edit it as much as I want. I tried to fix that by incresing the defined memmory at the top of the script, but didnt help. Any ideas? Cuz I have none sad.gif

Link to comment
Share on other sites

sorry, you made me laugh biggrin.gif I know that, I've been coding... for about 5 years or smth...

Link to comment
Share on other sites

You should have said it before!

Try to put a 0001: wait 0 ms somewhere in the main thread and test if crashes!

Start a new game!

Link to comment
Share on other sites

No sh*t...I've interpreted the tile wrong then confused.gif

And how about posting some code? The part "When I try to script the main part of the scm on gta3 the game always crashes and it doesnt matter weather I make a new thread or just put one new weapon pickup or parked car..." can be answered like this: "You built in a mistake" lol.gif

 

We can't tell anything about fixxing your mistakes if you don't even give us an example

Edited by The_Siggi
Link to comment
Share on other sites

ok, here some examples:

 

normal part:

 

014B: $1EC = init_parked_car_generator #SECURICA -1 -1  0 alarm  50 door_lock  50  0  10000 at  442.6875 -1465.688  18.375 angle  180.0014C: set_parked_car_generator $1EC cars_to_generate_to  0014B: $1ED = init_parked_car_generator #TRASH -1 -1  0 alarm  0 door_lock  0  0  10000 at  1140.0  27.0  0.0 angle  0.0014C: set_parked_car_generator $1ED cars_to_generate_to  101

 

 

modified:

 

014B: $1EC = init_parked_car_generator #SECURICA -1 -1  0 alarm  50 door_lock  50  0  10000 at  442.6875 -1465.688  18.375 angle  180.0014C: set_parked_car_generator $1EC cars_to_generate_to  0014B: $1ED = init_parked_car_generator #TRASH -1 -1  0 alarm  0 door_lock  0  0  10000 at  1140.0  27.0  0.0 angle  0.0014C: set_parked_car_generator $1ED cars_to_generate_to  101014B: $car = init_parked_car_generator #COACH -1 -1  0 alarm  0 door_lock  30  0  10000 at  1282.880 -980.477 13.488 angle  0.0014C: set_parked_car_generator $car cars_to_generate_to  101

 

 

CRASH

 

normal part:

 

032B: $205 = create_weapon_pickup #UZI  14 ammo  25 at  177.0 -360.375  16.0032B: $206 = create_weapon_pickup #COLT45  14 ammo  12 at  99.4375 -478.8125  15.5625032B: $207 = create_weapon_pickup #SHOTGUN  14 ammo  20 at  80.5625 -1436.375  26.0032B: $208 = create_weapon_pickup #AK47  14 ammo  30 at -242.9375 -181.25  12.5032B: $209 = create_weapon_pickup #FLAME  14 ammo  300 at  108.625 -1223.625  25.875

 

 

modified:

 

032B: $205 = create_weapon_pickup #UZI  14 ammo  25 at  177.0 -360.375  16.0032B: $206 = create_weapon_pickup #COLT45  14 ammo  12 at  99.4375 -478.8125  15.5625032B: $207 = create_weapon_pickup #SHOTGUN  14 ammo  20 at  80.5625 -1436.375  26.0032B: $208 = create_weapon_pickup #AK47  14 ammo  30 at -242.9375 -181.25  12.5032B: $209 = create_weapon_pickup #FLAME  14 ammo  300 at  108.625 -1223.625  25.875032B: $mygun = create_weapon_pickup #SHOTGUN  14 ammo  20 at  1156.0 -646.5  18.625

 

 

CRASH

 

normal:

 

0001: wait  0 ms00D6: if  00256:   player $PLAYER_CHAR defined004D: jump_if_false ££Label00EF380008: $184 +=  1 ;; integer values01E3: text_1number_styled "CRED039" $184  6000 ms  6 ;; ~g~Radai ~1~ is 12 gipsu. 0109: player $PLAYER_CHAR money +=  50000002: jump ££Label00EED4

 

 

modified:

 

0001: wait  0 ms00D6: if  00256:   player $PLAYER_CHAR defined004D: jump_if_false ££Label00EF380008: $184 +=  1 ;; integer values01E3: text_1number_styled "CRED039" $184  6000 ms  6 ;; ~g~Radai ~1~ is 12 gipsu. 0109: player $PLAYER_CHAR money +=  5000  00D6: if  00038:   $184 ==  12 ;; integer values  004D: jump if false ££Label00EED40109: player $PLAYER_CHAR money +=  100000004E: end_thread

 

 

CRASH

 

So as I was trying to explain, even basic changes in the script makes the game crash instantly. BUT, when I added wait command in a random place of script the game worked fine.

Link to comment
Share on other sites

well, im talking about the ORIGINAL post

[yair]you built a mistake[/yair]

 

to the topic: maybe the limits are exact match for the main.scm, and when you modified it, you crossed the limits

Link to comment
Share on other sites

arent the limits defined by a DEFINE MEMMORY code in the begining of the script? which I tried to increase

Link to comment
Share on other sites

no, there are set limits:

 

 

GTA III

main size 131072

mission size 32768

num missions 120

Mission Cleanup List 50

model names (2nd segment) 200

running threads 128 128 96

local variables 16 + 2 timers

1024 total in missions

gosub levels 4

Text_Draw 2

car generators 160

radar blips 32

pickups 336

last opcode 0481

spheres 16

car saving garagetypes 16..18 16..18

 

search for a limit adjuster for GTAIII

i dont know if there is one

Link to comment
Share on other sites

Im sure I didnt cross the limits...

Link to comment
Share on other sites

Use Sanny Builder, looks like it's MB syntax smile.gif

 

Edit: You haven't crossed any limits, I'm sure.

Edited by SilentPL
Link to comment
Share on other sites

I've never used sanny builder. Just downloaded. Defined missions are having all the same name. Cant compile. Do I have to rename the all the labels of missions? Lots of renaming. Dont want sanny, want BW... cant I fix the problem with BW? damn, sounds like random thougths...

Link to comment
Share on other sites

DEFINE MISSION 0 AT @INTRO // Intro Movie

DEFINE MISSION 1 AT @HEALTH // Hospital Info Scene

DEFINE MISSION 2 AT @WANTED // Police Station Info Scene

DEFINE MISSION 3 AT @RC1 // RC Diablo Destruction

DEFINE MISSION 4 AT @RC2 // RC Mafia Massacre

DEFINE MISSION 5 AT @RC3 // RC Rumpo Rampage

DEFINE MISSION 6 AT @RC4 // RC Casino Calamity

DEFINE MISSION 7 AT @T4X4_1 // Patriot Playground

DEFINE MISSION 8 AT @T4X4_2 // A Ride In The Park

DEFINE MISSION 9 AT @T4X4_3 // Gripped!

DEFINE MISSION 10 AT @MAYHEM // Multistorey Mayhem

DEFINE MISSION 11 AT @AMBULAN // Paramedic

DEFINE MISSION 12 AT @FIRETRU // Firefighter

DEFINE MISSION 13 AT @COPCAR // Vigilante

DEFINE MISSION 14 AT @TAXI // Taxi Driver

DEFINE MISSION 15 AT @MEAT1 // The Crook

DEFINE MISSION 16 AT @MEAT2 // The Thieves

DEFINE MISSION 17 AT @MEAT3 // The Wife

DEFINE MISSION 18 AT @MEAT4 // Her Lover

DEFINE MISSION 19 AT @EIGHT // Give Me Liberty and Luigi's Girls

DEFINE MISSION 20 AT @LUIGI2 // Don't Spank My Bitch Up

DEFINE MISSION 21 AT @LUIGI3 // Drive Misty For Me

DEFINE MISSION 22 AT @LUIGI4 // Pump-Action Pimp

DEFINE MISSION 23 AT @LUIGI5 // The Fuzz Ball

DEFINE MISSION 24 AT @JOEY1 // Mike Lips Last Lunch

DEFINE MISSION 25 AT @JOEY2 // Farewell 'Chunky' Lee Chong

DEFINE MISSION 26 AT @JOEY3 // Van Heist

DEFINE MISSION 27 AT @JOEY4 // Cipriani's Chauffeur

DEFINE MISSION 28 AT @JOEY5 // Dead Skunk In The Trunk

DEFINE MISSION 29 AT @JOEY6 // The Getaway

DEFINE MISSION 30 AT @TONI1 // Taking Out The Laundry

DEFINE MISSION 31 AT @TONI2 // The Pick-Up

DEFINE MISSION 32 AT @TONI3 // Salvatore's Called A Meeting

DEFINE MISSION 33 AT @TONI4 // Triads And Tribulations

DEFINE MISSION 34 AT @TONI5 // Blow Fish

DEFINE MISSION 35 AT @FRANK1 // Chaperone

DEFINE MISSION 36 AT @FRANK2 // Cutting The Grass

DEFINE MISSION 37 AT @FRANK21 // Bomb Da Base: Act I

DEFINE MISSION 38 AT @FRANK3 // Bomb Da Base: Act II

DEFINE MISSION 39 AT @FRANK4 // Last Requests

DEFINE MISSION 40 AT @DIABLO1 // Turismo

DEFINE MISSION 41 AT @DIABLO2 // I Scream, You Scream

DEFINE MISSION 42 AT @DIABLO3 // Trial By Fire

DEFINE MISSION 43 AT @DIABLO4 // Big'N'Veiny

DEFINE MISSION 44 AT @ASUKA1 // Sayonara Salvatore

DEFINE MISSION 45 AT @ASUKA2 // Under Surveillance

DEFINE MISSION 46 AT @ASUKA3 // Paparazzi Purge

DEFINE MISSION 47 AT @ASUKA4 // Payday For Ray

DEFINE MISSION 48 AT @ASUKA5 // Two-Faced Tanner

DEFINE MISSION 49 AT @KENJI1 // Kanbu Bust-Out

DEFINE MISSION 50 AT @KENJI2 // Grand Theft Auto

DEFINE MISSION 51 AT @KENJI3 // Deal Steal

DEFINE MISSION 52 AT @KENJI4 // Shima

DEFINE MISSION 53 AT @KENJI5 // Smack Down

DEFINE MISSION 54 AT @RAY1 // Silence The Sneak

DEFINE MISSION 55 AT @RAY2 // Arms Shortage

DEFINE MISSION 56 AT @RAY3 // Evidence Dash

DEFINE MISSION 57 AT @RAY4 // Gone Fishing

DEFINE MISSION 58 AT @RAY5 // Plaster Blaster

DEFINE MISSION 59 AT @RAY6 // Marked Man

DEFINE MISSION 60 AT @LOVE1 // Liberator

DEFINE MISSION 61 AT @LOVE2 // Waka-Gashira Wipeout!

DEFINE MISSION 62 AT @LOVE3 // A Drop In The Ocean

DEFINE MISSION 63 AT @YARD1 // Bling-Bling Scramble

DEFINE MISSION 64 AT @YARD2 // Uzi Rider

DEFINE MISSION 65 AT @YARD3 // Gangcar Round-Up

DEFINE MISSION 66 AT @YARD4 // Kingdom Come

DEFINE MISSION 67 AT @LOVE4 // Grand Theft Aero

DEFINE MISSION 68 AT @LOVE5 // Escort Service

DEFINE MISSION 69 AT @LOVE6 // Decoy

DEFINE MISSION 70 AT @LOVE7 // Love's Disappearance

DEFINE MISSION 71 AT @ASUSB1 // Bait

DEFINE MISSION 72 AT @ASUSB2 // Espresso-2-Go!

DEFINE MISSION 73 AT @ASUSB3 // S.A.M.

DEFINE MISSION 74 AT @HOOD1 // Uzi Money

DEFINE MISSION 75 AT @HOOD2 // Toyminator

DEFINE MISSION 76 AT @HOOD3 // Rigged To Blow

DEFINE MISSION 77 AT @HOOD4 // Bullion Run

DEFINE MISSION 78 AT @HOOD5 // Rumble

DEFINE MISSION 79 AT @CAT1 // The Exchange

 

no they dont...

 

what do you mean?

are you sure it is set on GTAIII?

Link to comment
Share on other sites

Use SB, MB isn't supported smile.gif

 

SB can also convert source from MB format - "Tools -> Code Converter -> MB->SB".

Link to comment
Share on other sites

SB main.scm Compile Time: 4 seconds

MB main.scm Compile Time: Forever

Link to comment
Share on other sites

DEFINE MISSION 0 AT @INTRO // Intro Movie

DEFINE MISSION 1 AT @HEALTH // Hospital Info Scene

DEFINE MISSION 2 AT @WANTED // Police Station Info Scene

DEFINE MISSION 3 AT @RC1 // RC Diablo Destruction

DEFINE MISSION 4 AT @RC2 // RC Mafia Massacre

DEFINE MISSION 5 AT @RC3 // RC Rumpo Rampage

DEFINE MISSION 6 AT @RC4 // RC Casino Calamity

DEFINE MISSION 7 AT @T4X4_1 // Patriot Playground

DEFINE MISSION 8 AT @T4X4_2 // A Ride In The Park

DEFINE MISSION 9 AT @T4X4_3 // Gripped!

DEFINE MISSION 10 AT @MAYHEM // Multistorey Mayhem

DEFINE MISSION 11 AT @AMBULAN // Paramedic

DEFINE MISSION 12 AT @FIRETRU // Firefighter

DEFINE MISSION 13 AT @COPCAR // Vigilante

DEFINE MISSION 14 AT @TAXI // Taxi Driver

DEFINE MISSION 15 AT @MEAT1 // The Crook

DEFINE MISSION 16 AT @MEAT2 // The Thieves

DEFINE MISSION 17 AT @MEAT3 // The Wife

DEFINE MISSION 18 AT @MEAT4 // Her Lover

DEFINE MISSION 19 AT @EIGHT // Give Me Liberty and Luigi's Girls

DEFINE MISSION 20 AT @LUIGI2 // Don't Spank My Bitch Up

DEFINE MISSION 21 AT @LUIGI3 // Drive Misty For Me

DEFINE MISSION 22 AT @LUIGI4 // Pump-Action Pimp

DEFINE MISSION 23 AT @LUIGI5 // The Fuzz Ball

DEFINE MISSION 24 AT @JOEY1 // Mike Lips Last Lunch

DEFINE MISSION 25 AT @JOEY2 // Farewell 'Chunky' Lee Chong

DEFINE MISSION 26 AT @JOEY3 // Van Heist

DEFINE MISSION 27 AT @JOEY4 // Cipriani's Chauffeur

DEFINE MISSION 28 AT @JOEY5 // Dead Skunk In The Trunk

DEFINE MISSION 29 AT @JOEY6 // The Getaway

DEFINE MISSION 30 AT @TONI1 // Taking Out The Laundry

DEFINE MISSION 31 AT @TONI2 // The Pick-Up

DEFINE MISSION 32 AT @TONI3 // Salvatore's Called A Meeting

DEFINE MISSION 33 AT @TONI4 // Triads And Tribulations

DEFINE MISSION 34 AT @TONI5 // Blow Fish

DEFINE MISSION 35 AT @FRANK1 // Chaperone

DEFINE MISSION 36 AT @FRANK2 // Cutting The Grass

DEFINE MISSION 37 AT @FRANK21 // Bomb Da Base: Act I

DEFINE MISSION 38 AT @FRANK3 // Bomb Da Base: Act II

DEFINE MISSION 39 AT @FRANK4 // Last Requests

DEFINE MISSION 40 AT @DIABLO1 // Turismo

DEFINE MISSION 41 AT @DIABLO2 // I Scream, You Scream

DEFINE MISSION 42 AT @DIABLO3 // Trial By Fire

DEFINE MISSION 43 AT @DIABLO4 // Big'N'Veiny

DEFINE MISSION 44 AT @ASUKA1 // Sayonara Salvatore

DEFINE MISSION 45 AT @ASUKA2 // Under Surveillance

DEFINE MISSION 46 AT @ASUKA3 // Paparazzi Purge

DEFINE MISSION 47 AT @ASUKA4 // Payday For Ray

DEFINE MISSION 48 AT @ASUKA5 // Two-Faced Tanner

DEFINE MISSION 49 AT @KENJI1 // Kanbu Bust-Out

DEFINE MISSION 50 AT @KENJI2 // Grand Theft Auto

DEFINE MISSION 51 AT @KENJI3 // Deal Steal

DEFINE MISSION 52 AT @KENJI4 // Shima

DEFINE MISSION 53 AT @KENJI5 // Smack Down

DEFINE MISSION 54 AT @RAY1 // Silence The Sneak

DEFINE MISSION 55 AT @RAY2 // Arms Shortage

DEFINE MISSION 56 AT @RAY3 // Evidence Dash

DEFINE MISSION 57 AT @RAY4 // Gone Fishing

DEFINE MISSION 58 AT @RAY5 // Plaster Blaster

DEFINE MISSION 59 AT @RAY6 // Marked Man

DEFINE MISSION 60 AT @LOVE1 // Liberator

DEFINE MISSION 61 AT @LOVE2 // Waka-Gashira Wipeout!

DEFINE MISSION 62 AT @LOVE3 // A Drop In The Ocean

DEFINE MISSION 63 AT @YARD1 // Bling-Bling Scramble

DEFINE MISSION 64 AT @YARD2 // Uzi Rider

DEFINE MISSION 65 AT @YARD3 // Gangcar Round-Up

DEFINE MISSION 66 AT @YARD4 // Kingdom Come

DEFINE MISSION 67 AT @LOVE4 // Grand Theft Aero

DEFINE MISSION 68 AT @LOVE5 // Escort Service

DEFINE MISSION 69 AT @LOVE6 // Decoy

DEFINE MISSION 70 AT @LOVE7 // Love's Disappearance

DEFINE MISSION 71 AT @ASUSB1 // Bait

DEFINE MISSION 72 AT @ASUSB2 // Espresso-2-Go!

DEFINE MISSION 73 AT @ASUSB3 // S.A.M.

DEFINE MISSION 74 AT @HOOD1 // Uzi Money

DEFINE MISSION 75 AT @HOOD2 // Toyminator

DEFINE MISSION 76 AT @HOOD3 // Rigged To Blow

DEFINE MISSION 77 AT @HOOD4 // Bullion Run

DEFINE MISSION 78 AT @HOOD5 // Rumble

DEFINE MISSION 79 AT @CAT1 // The Exchange

 

no they dont...

 

what do you mean?

are you sure it is set on GTAIII?

Im not using original script, there are 80 missions made by me and while in MB there were called Labelblahblah, in SB theyre all MAYHEM MAYHEM MAYHEM MAYHEM... probably because I just copied the same line lots of times and changed Label names.

Link to comment
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
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

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