Forum Mod Bakery Docs

Help with using custom locators in lua scripts

Posted in Support
Please login to contribute to the conversation.
[deleted user]
8 yrs ago (Statistics)
Hello, If anyone has time, I have some issues with my lack of expertise with using the P3D Editor in combination with mods.

mega.nz/#F!u9VF1YiJ!eqzd99w4xFkZ1laG6nCGHQ

(PROMISE TO KEEP QUIET ABOUT THE TITLE, I WANT THIS TO BE A SURPRISE TO SOME)

Whenever I load mission 1 of level 1, it says there is a syntax error on 1, which I can't seem to figure out what I'm doing wrong.

Thank you to whoever tries to help me,

hipporeno
LoadDisposableCar("VEHICLENAME","VEHICLELOCATOR","NULL", "Missions\level01\M1race.con", "DRIVER")
in your m1load file is supposed to be...
LoadDisposableCar("LINK_TO_VEHICLE_P3D_FILE","VEHICLE_NAME","AI")
The former is used for "AddStageVehicle" in your m1info file, which you already have in there.
[deleted user]
8 yrs ago (Statistics)
@SomeBot can't believe I missed that!

EDIT: Now the game just hangs on loading the first mission.
It also appears you forgot to re-add the semi-colons in your "SetDynaLoadData" lines in both your m1info and m1preload files.
("l1z1.p3dl1r1.p3dl1r7.p3d")
becomes...
("l1z1.p3d;l1r1.p3d;l1r7.p3d;")
[deleted user]
8 yrs ago (Statistics)
@SomeBot wow,I guess I shouldn't have deleted all the ;'s in the script!
Yeah the Dynaload Semicolons are really important. For reference ; means to load world while : means to unload world. These refer to the P3D file path before them.