Forum Mod Bakery Docs

Mysterious Crash in Mod

Posted in Support
Please login to contribute to the conversation.
I'm quite new to modding and I was just finishing up my 1st proper mission mod. I was trying to re-implement the unused sedan chases from the mission Clueless and fixing the broken location objectives. For ages I couldn't get a sedan chase to work at Burns's Casino but when I finally did the game started crashing when it is meant to tell you to drive to the springfield sign. I don't know why this has happened and I can't seem to see any obvious mistakes.

Link to edited files: drive.google.com/open?id=0BxWb3z6LB3c7dUVINjBVMklCNXc
I think that's them all...
[deleted user]
6 yrs ago (Statistics)
In mission's load file, cars should be loaded with "LoadDisposableCar", not with "LoadP3DFile".
Can't find errors in mission's info and P3D files.
I can advice you to change "LoadP3DFile" to "LoadDisposableCar", so Sedan will load into mission. Also, check if the names of locators from the P3D and info files are correct, without typos.
I tried doing what you said, the game just crashed as soon as the mission loaded. There shouldn't be any typos because it was a piece of code that worked before I added the sedan chase at Burns's Casino and I haven't edited it.
[deleted user]
6 yrs ago (Statistics)
In that case, check for round brackets with semicolon in the end of the each line. (should look like "();")
I've tried removing the lines that refer to the 5th sedan but the game still crashes. This keeps getting weirder and weirder...
I posted that before I refreshed so I didn't see you'd posted again. Ooops! Anyway, I've got round brackets and semicolons at the end of every line though...
[deleted user]
6 yrs ago (Statistics)
I remember there's some limits of stages and cars in Info file, limit of stages is 25, but I don't quite remember which is car limit.
For faster response, go to Discrod server, in the channel #shar-mod-help
Some documentation of how to use functions and limits is available here: github.com/donutteam/SHAR-Documentation

Your mission uses 30 stages, which is not ok. The game only allows up to 25 stages.

Currently known mission limits can be found here: github.com/donutteam/SHAR-Documentation/blob/master/Missions/Limits.md

At the end of your file you have this:
dialogue_hands_in_air
dialogue_hands_on_hips
dialogue_scratch_head
dialogue_shaking_fist
dialogue_thinking
dialogue_yes
dialogue_no
dialogue_cross_arms
dialogue_open_arm_hand_gesture
dialogue_shake_hand_in_air

I recommend removing it or adding // before each line.
Yeah, I thought there must have been some kind of limit. I'll try getting rid of as much unnecessary stuff as I can. Thanks for the answer!