Community Forum

Adding scripts to original mods

Forum Overview >> Scripting

Created12.01.2016 23:44

Ed Vorrick (adas7250) 12.01.2016 23:49
Hello, I decided to add a script to mod I'm currently making, it's based on original car (PiQup). I changed vechicle type to 'pajero' so that new script I'm adding would work, but after adding script, original function (openable trunk with mouse) doesn't work. Where's the problem? Should I add something to moddesc.xml or car.xml? Thanks for replying.

Emil Drefers (Unknown) 13.01.2016 07:52

probably you are missing one or all of the following specializations:


Of course, you also need the entries in the vehicle.xml file to make the trunk move (but they should be there already, if you did not delete them)


Ed Vorrick (adas7250) 13.01.2016 09:38
Hello, Thank You Emil for replying. After adding 'cylindered' specialization it works perfectly.
Thanks again and have a nice day. :)

Дмитрий (Dmitriy) 16.03.2019 16:28
Здравствуйте,кто подскажет как исправить эту ошибку Error: Not all prerequisites of specialization sprayer are fulfilled.

Andrej Mazak (eLvisSK) 18.12.2019 20:32
Dimitri in .lua file check function prerequisitiesPresent(). There are specializations required for this specialization working

I think that here you could see

that you need specializations

SpecializationUtil.hasSpecialization(FillUnit, specializations) and
SpecializationUtil.hasSpecialization(WorkArea, specializations) and
SpecializationUtil.hasSpecialization(TurnOnVehicle, specializations)

Note: Log in to post. Create a new account here.