2️⃣ Migration from v1 to v2
What changed in Version 2?
- New Folder Structure: Easier configuration with a
corefolder containing all mechanics and amodulesfolder with files you might want to configure based on your framework. - Sound System Customization: Added the option to change the sound system.
- Vehicle Keys System Auto-Detection: The system now automatically detects the vehicle keys system, and allows modification in a easier way.
- Vehicle Fuel System Auto-Detection: The system now automatically detects the vehicle fuel system, and allows modification in a easier way..
- Easier UI Changes: UI customization has been simplified.
How to migrate from v1 to v2
Most users will not need to modify their code for this update; simply plug and play.
Download the latest version from GitHub.
If you have modified any files, you can edit them based on the file map below.
File and Folder Mappings
| v1 Location | v2 Location | Notes |
|---|---|---|
frameworks/ | modules/frameworks/ | No major changes in code. |
c.clothing.lua, s.sql.lua | modules/systems/ | No changes in code. |
s.logs.lua | modules/systems/ | Changed displayed name from in-game to Steam name. |
/targets | modules/systems/ | Minor changes in c.custom.lua |
c.ui.lua | modules/systems/ | Added a few new options. |
/client, /server, /shared, /tests, c.main.lua, s.main.lua, sh.autoDetect.lua, shared.lua | /core/ | Use the latest files. |
Vehicle keys and fuel
You no longer have to edit the Core.SpawnVehicle function to add your keys or fuel system. The system now detects them automatically.