Monkeynutz

Fix combat storing for Virtual Garage.

6 posts in this topic

The script: ExileClient_gui_virtualGarageDialog_event_onConfirmButtonClicked.sqf is broken and also has backwards config in the config.cpp of the mission file. And since it won't be fixed any time soon, I am here to help!

Basically the variable name is wrong and the 1 or 0 is the wrong way around according to the instructions, should the name be right.

Quickest fix is the following:

Change 'canAccessGarageInCombat' to 'canUseGarageInCombat' in your config.cpp of your mission file and also do the opposite of what it tells you. E.g. it says 0 means you cannot store in combat, set it to 1 instead. And set it to 0 if you wish to allow storing in combat.

Enjoy.

  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites
Advertisement
On 4/14/2019 at 2:49 AM, Monkeynutz said:

The script: ExileClient_gui_virtualGarageDialog_event_onConfirmButtonClicked.sqf is broken and also has backwards config in the config.cpp of the mission file. And since it won't be fixed any time soon, I am here to help!

Basically the variable name is wrong and the 1 or 0 is the wrong way around according to the instructions, should the name be right.

Quickest fix is the following:

Change 'canAccessGarageInCombat' to 'canUseGarageInCombat' in your config.cpp of your mission file and also do the opposite of what it tells you. E.g. it says 0 means you cannot store in combat, set it to 1 instead. And set it to 0 if you wish to allow storing in combat.

Enjoy.

Nice find. An alternative fix would be to correct the behaviour in the function: https://pastebin.com/csFJ7XFs

  • Like 1

Share this post


Link to post
Share on other sites
4 hours ago, Monkeynutz said:

Indeed but changing a variable file already in the mission pbo rather than adding a new file to then add more code to override it, is much more lightweight and quicker ;)

Lightweight, maybe. But definitely not the proper way to do it.

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.