[SA] ObjectDatLoader
Enviado: 24 Fev 2021, 14:28
A simple script to load "object.dat" files into the game.
I know you can load it using modloader. But if you tried loading it using modloader you'll find out that it'll reset all previous data from "object.dat". So you must add an "object.dat" with the game lines included. But with this, you can just add the ones you want to add.
For example:
If you want to load using modloader,
With this, you can
This also makes it easier to combine various mods that might add their entries to "object.dat". Like ProjectProps.
TLDR: It's different from modloader, it doesn't reset the previous "object.dat" before loading.
Edit: If you're trying to load this plugin through modloader don't name your object.dat file "object.dat" use something else instead. Eg: "Obj2.dat"
Download Source
I know you can load it using modloader. But if you tried loading it using modloader you'll find out that it'll reset all previous data from "object.dat". So you must add an "object.dat" with the game lines included. But with this, you can just add the ones you want to add.
For example:
If you want to load using modloader,
SpoilerAbrir
Código: Selecionar tudo
<Everthing from data/object.dat goes here>
;************project props************
sign_2to1, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 150.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_carwash, 30.0, 50.0 0.99, 0.05, 50.0, 100.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 115.0, 0.0, 50.0, 0.1, 0.07, 1, 0
sign_crosswalk1, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 115.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_crosswalk2, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_crosswalk3, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_curve1, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_curve2, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_hospital, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_left1, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_left2, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_left3, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_litter1, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_litter2, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_noblock, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_noenter, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_nofeed, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_nopark, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_notrucks, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_park, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_pier, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_rail, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_right1, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_right2, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_right3, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_right4, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_speed15, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_speed25, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_speed35, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_speed55, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_speed75, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_speedbump, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_staylane, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_stop, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_tractor, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
rub_bike1, 30.0, 100.0 0.99, 0.05, 50.0, 1000.0, 2.0, 0, 0, 1, 0, 0, 0.0, 0.0, 0.0, none
rub_bike2, 30.0, 100.0 0.99, 0.05, 50.0, 1000.0, 2.0, 0, 0, 1, 0, 0, 0.0, 0.0, 0.0, none
rub_monitor, 40.0, 100.0 0.99, 0.05, 50.0, 1000.0, 2.0, 0, 0, 1, 0, 0, 0.0, 0.0, 0.0, none
* ;end of fileSpoilerAbrir
Código: Selecionar tudo
< Just the lines below, don't need to copy paste all the original game stuff >
;************project props************
sign_2to1, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 150.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_carwash, 30.0, 50.0 0.99, 0.05, 50.0, 100.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 115.0, 0.0, 50.0, 0.1, 0.07, 1, 0
sign_crosswalk1, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 115.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_crosswalk2, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_crosswalk3, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_curve1, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_curve2, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_hospital, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_left1, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_left2, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_left3, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_litter1, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_litter2, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_noblock, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_noenter, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_nofeed, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_nopark, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_notrucks, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_park, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_pier, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_rail, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_right1, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_right2, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_right3, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_right4, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_speed15, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_speed25, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_speed35, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_speed55, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_speed75, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_speedbump, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_staylane, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_stop, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
sign_tractor, 99999.0, 99999.0 0.99, 0.05, 50.0, 1000.0, 1.0, 200, 1, 1, 0, 0, 0.0, 0.0, 0.0, none 50.0, 0.0, 0.0, 0.1, 0.07, 1, 0
rub_bike1, 30.0, 100.0 0.99, 0.05, 50.0, 1000.0, 2.0, 0, 0, 1, 0, 0, 0.0, 0.0, 0.0, none
rub_bike2, 30.0, 100.0 0.99, 0.05, 50.0, 1000.0, 2.0, 0, 0, 1, 0, 0, 0.0, 0.0, 0.0, none
rub_monitor, 40.0, 100.0 0.99, 0.05, 50.0, 1000.0, 2.0, 0, 0, 1, 0, 0, 0.0, 0.0, 0.0, none
* ;end of fileThis also makes it easier to combine various mods that might add their entries to "object.dat". Like ProjectProps.
TLDR: It's different from modloader, it doesn't reset the previous "object.dat" before loading.
Edit: If you're trying to load this plugin through modloader don't name your object.dat file "object.dat" use something else instead. Eg: "Obj2.dat"
Download Source