Bones51

[RELEASE] Vehicle Ammo Save Script

48 posts in this topic

Advertisement

@Bones51 Opened an issue on your git where carefulcreatevehicle override appears to missing from the ammosave folder.

Share this post


Link to post
Share on other sites

Sorry, me again. Just opened up another issue about an undefined variable in server object vehicle db load.

 

EDIT: Found a few more errors. Have added them as comments to the new issue on your git.

Edited by BaroN

Share this post


Link to post
Share on other sites

Apologies, somehow an older version of a couple of files got in there. Repo all updated, and this time, tested on a clean server :)

If you do see any more probs just let me know.

Share this post


Link to post
Share on other sites

For those that already installed it, just replace the following files in your mission file from the github repo.

Custom\ammoSave\ExileServer_object_vehicle_database_update.sqf

Custom\ammoSave\ExileServer_object_vehicle_database_load.sqf

Custom\ammoSave\ExileServer_object_vehicle_database_insert.sqf 

Edited by Bones51

Share this post


Link to post
Share on other sites

Still getting

Spoiler

19:35:27 Error in expression <ield = _fields select _i;
if ((typeName _field) isEqualTo "SCALAR") then
{
_fie>
19:35:27   Error position: <_field) isEqualTo "SCALAR") then
{
_fie>
19:35:27   Error Undefined variable in expression: _field
19:35:27 File exile_server\code\ExileServer_util_extDB2_createMessage.sqf, line 19
19:35:27 Error in expression <

_currentLoadout = _vehicleObject call Bones_fnc_getVehicleLoadout;

_extDB2Mes>
19:35:27   Error position: <Bones_fnc_getVehicleLoadout;

_extDB2Mes>
19:35:27   Error Undefined variable in expression: bones_fnc_getvehicleloadout

And

Spoiler

19:35:46 Error in expression <ject setVehicleAmmoDef 0;

if (typeName _savedMagazines isEqualTo "ARRAY") then
>
19:35:46   Error position: <_savedMagazines isEqualTo "ARRAY") then
>
19:35:46   Error Undefined variable in expression: _savedmagazines
19:35:46 File mpmissions\__cur_mp.Chernarus\Custom\ammoSave\ExileServer_object_vehicle_database_load.sqf, line 112

p.s. running it on extdb3

Edited by dima054

Share this post


Link to post
Share on other sites

Ahh extdb3 will be your problem, runs fine on ExtDb2. If i get time i'll have a look at compatibility with extdb3. Both errors are on loading vehicle data from the database so almost definitely that.

Share this post


Link to post
Share on other sites

Init.sqf

add ";" to end

Bones_fnc_getVehicleLoadout = compileFinal (preprocessFileLineNumbers "Custom\ammoSave\Bones_fnc_getVehicleLoadout.sqf");

 

Edited by xDaVIRUS
1 person likes this

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.