Jump to content

[UPGRADED DEC2017][scarCODE] Virtual Garage System by IT07


IT07

Recommended Posts

my player reported, sometimes the vehicle spawn with colliding objects around so it's damaged or destroyed.

            _veh = createVehicle [_vehClass, _pos select 0, [], 0, "CAN_COLLIDE"];

might be
            _veh = _vehClass createVehicle (_pos select 0);

 

If you want vehicle to spawn around player, it will be

            _veh = _vehClass createVehicle (getPos _playerObj);
 

Link to comment
Share on other sites

  • 6 months later...

@DirtySanchez Hey man, seem to be having a problem with the server side file fn_vgsReadFromGarage.sqf not being read correctly. I'm not sure whether this started happening from the 1.3 epoch update or whether it was happening before but, now when you put vehicles in and take them out, they come out rearmed, removed weapons and magazines added back and repaired. 

I can see the file reads the epochserverconfig and I've checked my config and it's correctly set up to remove dagr and dar from hellcats, orcas and pawnees. Also, those vehicles when they spawn, spawn correctly with those removed so, I know that config is working....

So, I'm not sure why that file isn't reading the epochserverconfig any more. Any ideas?

Link to comment
Share on other sites

Just as an update to the post above, sometimes it works and others it doesn't. In my most recent test, one vehicle out of 4 came out of the garage with the correct weapons enabled and rockets disabled, correct ammo count and damage level. The other 3 vehicles came out repaired, full ammo and rockets that are not allowed in the epochserverconfig working...

Any ideas anyone?

Link to comment
Share on other sites

  • 8 months later...

I got these errors and not working at all.

Spoiler


17:44:35 String STR_EPOCH_CopperBar10oz not found
17:44:35 String STR_EPOCH_CopperBar10oz not found
17:45:52 Error in expression <hen
{
if not isNull _dsp then
{
_vehs = EPOCH_vgsMyGarage;
if not isNil"_vehs" t>
17:45:52   Error position: <EPOCH_vgsMyGarage;
if not isNil"_vehs" t>
17:45:52   Error Undefined variable in expression: epoch_vgsmygarage
17:45:52 File scarCODE\VGS\functions_VGS\fn_vgsTrash.sqf [SC_fnc_vgsTrash]..., line 20
17:46:02 Error in expression <hen
{
if not isNull _dsp then
{
_vehs = EPOCH_vgsMyGarage;
if not isNil"_vehs" t>
17:46:02   Error position: <EPOCH_vgsMyGarage;
if not isNil"_vehs" t>
17:46:02   Error Undefined variable in expression: epoch_vgsmygarage
17:46:02 File scarCODE\VGS\functions_VGS\fn_vgsTrash.sqf [SC_fnc_vgsTrash]..., line 20
17:46:11 Error in expression <1002;
if (_index > -1) then
{
_garage = EPOCH_vgsMyGarage;
_ctrlFeedback ctrlSet>
17:46:11   Error position: <EPOCH_vgsMyGarage;
_ctrlFeedback ctrlSet>
17:46:11   Error Undefined variable in expression: epoch_vgsmygarage
17:46:11 File scarCODE\VGS\functions_VGS\fn_vgsMoveIn.sqf [SC_fnc_vgsMoveIn]..., line 28
17:46:42 Error in expression <hen
{
if not isNull _dsp then
{
_vehs = EPOCH_vgsMyGarage;
if not isNil"_vehs" t>
17:46:42   Error position: <EPOCH_vgsMyGarage;
if not isNil"_vehs" t>
17:46:42   Error Undefined variable in expression: epoch_vgsmygarage
17:46:42 File scarCODE\VGS\functions_VGS\fn_vgsTrash.sqf [SC_fnc_vgsTrash]..., line 20
17:46:46 Error in expression <1002;
if (_index > -1) then
{
_garage = EPOCH_vgsMyGarage;
_ctrlFeedback ctrlSet>
17:46:46   Error position: <EPOCH_vgsMyGarage;
_ctrlFeedback ctrlSet>
17:46:46   Error Undefined variable in expression: epoch_vgsmygarage
17:46:46 File scarCODE\VGS\functions_VGS\fn_vgsMoveIn.sqf [SC_fnc_vgsMoveIn]..., line 28
17:47:13 Error in expression <hen
{
if not isNull _dsp then
{
_vehs = EPOCH_vgsMyGarage;
if not isNil"_vehs" t>
17:47:13   Error position: <EPOCH_vgsMyGarage;
if not isNil"_vehs" t>
17:47:13   Error Undefined variable in expression: epoch_vgsmygarage
17:47:13 File scarCODE\VGS\functions_VGS\fn_vgsTrash.sqf [SC_fnc_vgsTrash]..., line 20
17:47:15 Error in expression <1002;
if (_index > -1) then
{
_garage = EPOCH_vgsMyGarage;
_ctrlFeedback ctrlSet>
17:47:15   Error position: <EPOCH_vgsMyGarage;
_ctrlFeedback ctrlSet>
17:47:15   Error Undefined variable in expression: epoch_vgsmygarage
17:47:15 File scarCODE\VGS\functions_VGS\fn_vgsMoveIn.sqf [SC_fnc_vgsMoveIn]..., line 28
17:47:26 Error in expression <hen
{
if not isNull _dsp then
{
_vehs = EPOCH_vgsMyGarage;
if not isNil"_vehs" t>
17:47:26   Error position: <EPOCH_vgsMyGarage;
if not isNil"_vehs" t>
17:47:26   Error Undefined variable in expression: epoch_vgsmygarage
17:47:26 File scarCODE\VGS\functions_VGS\fn_vgsTrash.sqf [SC_fnc_vgsTrash]..., line 20
17:47:30 Error in expression <1002;
if (_index > -1) then
{
_garage = EPOCH_vgsMyGarage;
_ctrlFeedback ctrlSet>
17:47:30   Error position: <EPOCH_vgsMyGarage;
_ctrlFeedback ctrlSet>
17:47:30   Error Undefined variable in expression: epoch_vgsmygarage
17:47:30 File scarCODE\VGS\functions_VGS\fn_vgsMoveIn.sqf [SC_fnc_vgsMoveIn]..., line 28
17:48:03 EPE manager release (0|201|0)

maybe fn_vgsInitClient.sqf isn't loaded.
cfgFunctions.hpp's ```postInit = 1;``` seems not working in current version.

one more suspicious malfunction is that VGS menu can't be opened when I'm not getting in the vehicle.

Both problem seem to be solved by adding 

Quote

[] execVM "scarCODE\VGS\functions_VGS\fn_vgsInitClient.sqf";

in init.sqf of mission file.

Link to comment
Share on other sites

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
×
×
  • Create New...