Forum Jump :

Author Message

Tonic  



Posts: 72
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name: Tonic

 
#1 Posted at 2013-03-10 12:28        
     
Virtual Ammobox System
Version: 2.95
By Tonic


Usage:
Place a ammo box down on the map and in initialization field put:
this addAction["<t color='#ff1111'>Virtual Ammobox</t>", "VAS\open.sqf"];

In your description.ext put:
#include "VAS\menu.hpp"

class CfgFunctions
{
	#include "VAS\cfgfunctions.hpp"
};

You will also need to drag the stringtable.xml in the root part of your mission where mission.sqm & init.sqf are located.

Notes:
If you want to help translate VAS into your language take a look at the stringtable.xml and contact me with a translation of the strings and it will be included in the next update of VAS.

Even though VAS is being localized for various other languages it doesn't mean that VAS will show in your language because the game engine currently doesn't enable the use of selecting your language and is English by default. This will fix its self when BIS finishes their own localization (hopefully during beta but probably after release). In the mean time if you want VAS to show in your language then edit the <Original> fields of the stringtable.xml and it will work.

Virtual Ammobox System (VAS) is permitted to be used in any mission so there is no need to ask for my permission. If you are modify VAS and have changes that you feel should be included in the release version then shoot me the changes and i'll take a look.

VASP:
The Virtual Ammobox System Preloader (VASP) is a simple mission / utility for those that are having long load times while using addons such as ACRE. All you need to do is drag the
VAS_Preloader.Stratis.pbo to either your missions directory or MPMissions directory and whenever you are fixing to get into a large Co-Op mission or whatever with ACRE/Other large
addons just play the VAS_Preloader mission first and let it preload information for VAS, once it's completed you will have a hint and you're ready to go. Long load times should
no longer be a problem.

It is a simplistic concept and it's the best work-around that I can provide.

Known Issue(s)/Bug(s):
None that I know of.

Change log:
v2.95:
Changed: UI ihas been made larger.
Changed: Transfer Loadout has been shifted from BIS_fnc_MP to remoteExec.
Changed: General code optimizations.
Added: "Remove All" button now hides when not on Items or Magazines tab to avoid confusion on what it does.
Added: Main interface now refreshes when closing out of the Load Manager window

v2.92:
m0nkey on armaholic made fixes for something I don't know but thanks.
v2.6
Changed: forceAddUniform now added in so you can freely wear any uniform without being 'naked'.
Changed: TFAR radio patch from Robalo to properly remove TFAR radios from being added.
Changed: Exit condition for VAS preloading in the config builder.

v2.5
Added: VAS can now display specific items/weapons/magazines for each ammobox placed (more indept configuration).
Added: Version number in right side of title bar.
Added: New Russian localizations.
Added: Alphabetical sorting.
Changed: The quick magazines box now checks against the config for restricted / magazines.
Changed: Default save slots bumped from 10 to 15.
Changed: VASP now ends when it completes it's preloading process.
Fixed: Attachments restricted were showing in the quick attachments section.
Fixed: Error in expression < _this call VAS_fnc_quickAddDrag; > Error Type Script, expected Bool

v2.4
Added: The new attachment list box checks against the config for restricted attachments.
Added: French Translations for new prompts & Other localizations added in earlier builds (need more).
Changed: Listbox scrollbar resources changed (looks slightly different).
Fixed: Auto-scroll issue with scrollbars (Related to above change).

v2.3
Added: Ability to add items to specific containers (Drag from Virtual ammobox to the container icon).
Added: Listbox of compatible attachments.
Changed: Updated various resources for the new A3 1.10 patch (I think it's 1.10?)
Fixed: Couldn't remove a weapon that was stored in the backpack.
Fixed: Missing semicolon (;) error.

Legacy Change log:

Credits & Thanks:
Kronzky - For his string function library
SaMatra - For help with UI Resources and Russian Translation
Dslyecxi - For his Paper doll giving insight on how to detect item types.
Tyrghen on Armaholic - For giving me the tip about CfgFunctions
naong - For his code tweaks to the Load / Save display.
Coding from armaholic - Translation of VAS from English->German
El nabot from Armaholic - Translation of VAS from English->French
czesiek77 from Armaholic - Translation of VAS from English->Polish
Ficc from BIS Forums - Translation of VAS from English->Portuguese
ramius86 on BIS Forums - Translation of VAS from English->Italian
RabsRincon on Armaholic - Translation of VAS from English->Spanish
Bakarda on BIS/Armaholic - Translation of VAS from English->Czech
MemphisBelle on BIS Forums - Translation Tweaks for German to fit.
Robalo on BIS Forums - Giving code changes to help support new compatibleItems class structure.

Download:
https://github.com/Tonnilson/Virtual-Ammobox-System/releases

This post was edited by Tonic (2019-05-31 20:18, 109 days ago)


Author Message

DarkXess  

Modsaholic Founder


Posts: 2878
Rank:


Level: Member

Country: cn
Location: PRC
Occupation:
Age: 38
In-game name: DarkXess

 
#2 Posted at 2013-03-10 12:45        
     
This is Operation Arrowhead right? because you posted in the ArmA 3 section...

1st - Check The Rules! 2nd - Use The Search!

Advertisement


Author Message

Tonic  



Posts: 72
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name: Tonic

 
#3 Posted at 2013-03-10 13:03        
     
# DarkXess : This is Operation Arrowhead right? because you posted in the ArmA 3 section...

Lol no, if you read the notes, it's A3 but I was to lazy to create a custom dialog from complete scratch (i.e figuring out image paths, redoing buttons, etc. Eventually planning to update it to look like A3 UI but this was a dirty 2-3 hour job for a mission me and a friend were working on.


Author Message

DarkXess  

Modsaholic Founder


Posts: 2878
Rank:


Level: Member

Country: cn
Location: PRC
Occupation:
Age: 38
In-game name: DarkXess

 
#4 Posted at 2013-03-10 13:17        
     
Oooo sorry, I didnt download it so didnt see the readme! I was just checking to see if you wanted the
thread moved to the right section if it was a mistake. Anyways if you want the comments above removed
let me know, instead of cluttering up your thread :-)

1st - Check The Rules! 2nd - Use The Search!

Author Message

Tonic  



Posts: 72
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name: Tonic

 
#5 Posted at 2013-03-10 19:16        
     
UPDATE: V0.3

New UI

Changelog:
Fixed: Ammo dupe in the player gear display.
Changed: Entire UI from OA->A3! Thanks SaMatra!

Credits & Thanks:
Kronzky - For his string function library
SaMatra - For helping convert the UI from OA -> A3!

Download:
Armafiles.info (My Server)

This post was edited by Tonic (2013-03-10 19:22, ago)


Author Message


Posts: 20624
Rank:


Level: Super Admin

Country: nl
Location: The Netherlands
Occupation:
Age: 43
In-game name: Foxhound

 
#6 Posted at 2013-03-10 19:52        
     
Thanks for posting yet again a very nice script on our forums. This looks (sadly atm all I can do is look at screens) very cool :-)
I wrote some news about it and you can find our mirror here:




** please be so kind to review the description I gave it. I had to make up something by just viewing the image (I do not have A3 installed, but I do have it now finally :-) ).

Visit my family webshop desteigerhoutshop.nl.

Author Message

SavageCDN  

Armaholics priest


Posts: 475
Rank:


Country: ca
Location: Ottawa
Occupation: Fighting with Exchange
Age: 46
In-game name: =VG= SavageCDN

 
#7 Posted at 2013-03-10 21:20        
     
If your MP mission uses an ammo crate fill script remove it now and use this instead.

Dynamic War Sandbox mission using fill scripts on ammo box = avg 15-20 server FPS

Dynamic War Sandbox mission using VAS on ammo box = avg 40-45 server FPS


Thank you Tonic! 8-)

Bless you my son.

Author Message


Posts: 3
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#8 Posted at 2013-03-10 22:22        
     
thank you!


Author Message


Posts: 14
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#9 Posted at 2013-03-11 20:54        
     
This works really well except for the fact you cant save the load-out for a re-spawn. That would be an ultimate addition for this script...please


Author Message


Posts: 1
Rank:


Level: Member

Country: ca
Location:
Occupation:
Age:
In-game name:

 
#10 Posted at 2013-03-11 23:00        
     
Im new to the whole scripting aspect of arma and I tried to insert this script it worked before I applied it as the document description.ext it keeps giving me the error Include file C:\user\Documents\Arma 3 Alpha - Other Profiles\Orvoldskinov\missions\test%20ammobox.Stratis\gear\common.hpp not found. Any ideas as if what im doing wrong or how to fix this?


Author Message


Posts: 27
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#11 Posted at 2013-03-12 02:03        
     
Hey Tonic. Thanks for releasing this. Great tool.

Questions.

How would I go about limiting weapon access to Blufor and Opfor?
How would I also limit the amount of mags and weapons available. For example, limiting 50 guns total to be taken out of the menu? Maybe even a refresher so the crate fills with maybe 5 or 10 guns every 30 mins.

There are other scripts that use the gear box method and just refresh but like someone stated, this method allows for more FPS while playing and I would like to explore and edit it if I can.

Thanks


Author Message

Tonic  



Posts: 72
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name: Tonic

 
#12 Posted at 2013-03-12 02:58        
     
# BloodxGusher : Hey Tonic. Thanks for releasing this. Great tool.

Questions.

How would I go about limiting weapon access to Blufor and Opfor?
How would I also limit the amount of mags and weapons available. For example, limiting 50 guns total to be taken out of the menu? Maybe even a refresher so the crate fills with maybe 5 or 10 guns every 30 mins.

There are other scripts that use the gear box method and just refresh but like someone stated, this method allows for more FPS while playing and I would like to explore and edit it if I can.

Thanks

Those suggestions are future options I am looking into but thanks for the suggestion!

Added 7 hours 41 minutes later:

UPDATE: v0.4

Notes:
New options for configuring VAS are available in gear\open.sqf, comments on what each variable does are in the file as well.

Known Issue(s)/Bug(s):
Some errors show up about No Entry CfgWeapons (ignore it). It's related to BIS's Alpha configs (Bit messy).

Changelog:
Fixed: Small errors
Changed: Cleaned up the players magazines and it now displays number of magazines a player has.
Added: Save & load Gear Option (Supports up to 10 loadouts persistent throughout game restart)
Added: Option to respawn with a specific gear loadout
Changed: Made the text a bit bigger so it is easier to read at higher resolutions.
Added: Ability to limit VAS to only specific Weapons,Magazines,Items,Backpacks and goggles.

Download:
Armafiles.info v0.4

This post was edited by Tonic (2013-03-12 10:39, ago)


Author Message


Posts: 20624
Rank:


Level: Super Admin

Country: nl
Location: The Netherlands
Occupation:
Age: 43
In-game name: Foxhound

 
#13 Posted at 2013-03-12 12:13        
     
Thanks for keeping us up to date with your releases, we appreciate it a lot :-)
News about the new version is on the frontpage and you can find our mirror here:



Visit my family webshop desteigerhoutshop.nl.

Author Message


Posts: 2
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#14 Posted at 2013-03-12 13:30        
     
Tried to use script in the init field of ammo box, and it says "invalid number expression". It also crashes if i try to put in ext and sqf files first, and gives back error saying "commonfiles.hpp" not found


Author Message

Tonic  



Posts: 72
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name: Tonic

 
#15 Posted at 2013-03-12 14:23        
     
# AlltimeHIGH : Tried to use script in the init field of ammo box, and it says "invalid number expression". It also crashes if i try to put in ext and sqf files first, and gives back error saying "commonfiles.hpp" not found

Hi, first you need to open description.ext and down near the bottom add:
#include "gear\common.hpp"
#include "gear\menu.hpp"
And then save the description.ext
After you do that you need to move the gear folder into the main directory of your mission you are using this with. After that is all done you load into the mission editor and place your ammo box down on the map and within the initialization field simply just put:

this addAction["<t color='#ff1111'>Virtual Ammobox</t>", "gear\open.sqf"];

All of those must be done, attempting to modify file paths with minimal knowledge (i.e moving the gear folder and its contents) into another folder for example scripts will cause issues. It's best to apply it in the context I listed above.

If you continue to get issues try loading the gear_test.Stratis mission in the editor and testing it out.