Jump to content
tryteyker

[Script] Advanced Artillery Support System V1

Recommended Posts

Advanced Artillery Support System



Version 1.1

tryteyker

What is the Advanced Artillery Support System (A-A-S-S)?

Essentially, the AASS is somewhat of a hybrid between the groundwork for a much more complex artillery system and an already functional artillery system that can be used by mission makers on the go. It offers basic functionality that you'd expect from a support system, aswell as a Graphical User Interface that provides necessary information to the user when they need it. It is also, however, a base script that can be expanded upon. The main function of this support system can be edited by any mission maker and tweaked, allowing them to adjust the A-A-S-S to suit their missions needs. To guide mission makers through tweaking the function, there are plenty of comments on what every single line of code does.

How do I implement the Advanced Artillery Support System (A-A-S-S) into my mission?

A basicfile structure has already been set up for the mission maker. This file structure should be left untouched, as it is crucial to have the A-A-S-S function properly. The only file that the mission maker needs to worry about is the init.sqf. In there is a single line implemented which executes the A-A-S-S (it is an addAction). Commented lines have also been added to allow seperation from the rest of your init.sqf. In the init.sqf, you only need to add the unit, or units, that is/are supposed to receive the action to access the A-A-S-S. Nothing else needs to be done and you will be able to use it afterwards.

What if I want to adjust the A-A-S-S to suit my mission better?

Before you adjust the A-A-S-S for your needs, take a quick look at the Rights section below. It will explain what you are allowed to modify and use in your (publicly) released missions and what you aren't. Once you've done so, here's how to modify the function: Navigate to YourMissionFolder\TRT_AASS\functions\fn_fireMission.sqf. This function is the core of the A-A-S-S. Practically all lines of code are commented and explained to allow even those who are fairly new to scripting to understand what is happening. For those who wish to extensively modify this file, I've included a few notes below.

Notes about the modification of fn_fireMission.sqf

This file currently does not include the following things:

- Advanced trajectory calculation

- Extensive support for artillery units that come with an addon.

This file currently does include:

- Support for all of the artillery units currently in the game (exception: MLRS, read Issues section for further info)

- Ability to directly call this function (it is not dependant on any GUI elements, read notes inside the function for further info)

- Basic trajectory calculation (It is calculated by the engine, basic velocity effects etc)

Keep the above things in mind when modifying this file. You may want to, at first, look at trajectory calculation as it is not custom-made but instead relies on engine calculations.

Issues

- The MLRS Artillery Unit is not currently supported as it does not react to Fired Eventhandlers properly.

- If the user closes the map too quickly after placing a marker, the function will not fire.

- There is no ingame documentation for end-users.

- No explanation on pre-set markers for end-users. (Preset marker requirements are: Type DESTROY, Color RED, text FIRE MISSION)

- Preset markers may not be deleted after fire mission is done.

- Only the basic ammunition types (Sh_xmm_AMOS,R_230mm_HE) are supported. Edit x\selection\typsel.sqf to add more ammunition types.

Rights

You may not modify any Graphical User Interface (GUI) elements provided to you with this script/function. You are not allowed to re-use these GUI elements to their full extent and outside their intended purpose (ie with this function/script).

You are allowed to modify the main function/script (fn_fireMission.sqf) to suit your missions needs. You are also allowed to re-use this script directly and without GUI elements.

Appendix

The purpose of this appendix is to inform the mission maker of variables used in mission namespace as to not conflict with any missions that also use these variables (although highly unlikely). All of these are only defined when the main function is used with provided GUI elements. You'll find it within the spoiler.

ArtilleryUsed - Defines which Artillery is selected by end-user.

RoundsUsed - Defines amount of rounds which are selected by end-user.

SetDelay - Delay selected by end-user. (THIS DELAY IS ADDED ONTOP OF A 10 SECOND DELAY!!)

ShellUsed - The type of ammunition selected by end-user.

MarkerPositionUsed - The position of the marker set by end-user.

MarkerSetByClick - Variable defined by function.

MarkerUsed - Marker name is stored in this variable, used by function.

UnitsWithArtComp - Variable which stores all units that have access to Artillery Computer. Defined by function (defined by mission maker through init.sqf)

Changelog

v1.1 (Hotfix)

- Tweaked: Increased time it takes for artillery to aim and fire at target. (fn_fireMission.sqf)

- Fixed: MAP button now properly opening map (dialogs.hpp, file structure not setup properly)

v1.0

- Initial Release



DOWNLOAD

MEDIAFIRE ^ (VERSION 1.1)

Edited by tryteyker

Share this post


Link to post
Share on other sites

There's a trillion of these scripts out there that are all based on the same concept.

Share this post


Link to post
Share on other sites
Not to be a dick or anything, but I kinda have the same concept and all :/ http://forums.bistudio.com/showthread.php?169954-Release-Advanced-Artillery-Support

and so what? The more scripts the better!

You haven't been around long enough to know that this is also how people learn to become better scripters.

So yeah, don't be a dick, and keep it constructive. Nothing good to say, don't say it!

Share this post


Link to post
Share on other sites
Guest

Release frontpaged on the Armaholic homepage.

================================================

We have also "connected" these pages to your account on Armaholic.

This means in the future you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have.

When you have any questions already feel free to PM or email me!

Share this post


Link to post
Share on other sites
this is also how people learn to become better scripters.

Can't agree more with that.

As someone who has no scripting knowledge outside of SQF it's always a fun challenge to brainstorm about things that might be useful for mission makers

and then create a script that does what I wanted to add. It can be a nightmare sometimes and looking at scripts made by others certainly helps a ton

but it can also be very intimidating to see scripts that seem to be carved out of solid rock in terms of readability, file structure etc.

Getting stuff to work can be rewarding, putting it out to the public so others may use it should be a given, especially in this community.

Cheers

Share this post


Link to post
Share on other sites

Have have just tried this and I like it.

Several comments for the next version.... There is a problem when getting artillery to aim (now this maybe a BIS fault not yours) as they flick the barrel roughly in the right direction then fire before steadying!

If you do not select an arty piece but press MAP it gives a lb/map not present error (even though it is)

Hope that helps.

Share this post


Link to post
Share on other sites

Thanks Kremator, just released a hotifx adressing both issues.

Share this post


Link to post
Share on other sites
On 1/2/2014 at 9:49 PM, tryteyker said:

 

Advanced Artillery Support System



Version 1.1

tryteyker
 

 

 

What is the Advanced Artillery Support System (A-A-S-S)?

Essentially, the AASS is somewhat of a hybrid between the groundwork for a much more complex artillery system and an already functional artillery system that can be used by mission makers on the go. It offers basic functionality that you'd expect from a support system, aswell as a Graphical User Interface that provides necessary information to the user when they need it. It is also, however, a base script that can be expanded upon. The main function of this support system can be edited by any mission maker and tweaked, allowing them to adjust the A-A-S-S to suit their missions needs. To guide mission makers through tweaking the function, there are plenty of comments on what every single line of code does.

How do I implement the Advanced Artillery Support System (A-A-S-S) into my mission?

A basicfile structure has already been set up for the mission maker. This file structure should be left untouched, as it is crucial to have the A-A-S-S function properly. The only file that the mission maker needs to worry about is the init.sqf. In there is a single line implemented which executes the A-A-S-S (it is an addAction). Commented lines have also been added to allow seperation from the rest of your init.sqf. In the init.sqf, you only need to add the unit, or units, that is/are supposed to receive the action to access the A-A-S-S. Nothing else needs to be done and you will be able to use it afterwards.

What if I want to adjust the A-A-S-S to suit my mission better?

Before you adjust the A-A-S-S for your needs, take a quick look at the Rights section below. It will explain what you are allowed to modify and use in your (publicly) released missions and what you aren't. Once you've done so, here's how to modify the function: Navigate to YourMissionFolder\TRT_AASS\functions\fn_fireMission.sqf. This function is the core of the A-A-S-S. Practically all lines of code are commented and explained to allow even those who are fairly new to scripting to understand what is happening. For those who wish to extensively modify this file, I've included a few notes below.

Notes about the modification of fn_fireMission.sqf

This file currently does not include the following things:

- Advanced trajectory calculation

- Extensive support for artillery units that come with an addon.

This file currently does include:

- Support for all of the artillery units currently in the game (exception: MLRS, read Issues section for further info)

- Ability to directly call this function (it is not dependant on any GUI elements, read notes inside the function for further info)

- Basic trajectory calculation (It is calculated by the engine, basic velocity effects etc)

Keep the above things in mind when modifying this file. You may want to, at first, look at trajectory calculation as it is not custom-made but instead relies on engine calculations.

Issues

- The MLRS Artillery Unit is not currently supported as it does not react to Fired Eventhandlers properly.

- If the user closes the map too quickly after placing a marker, the function will not fire.

- There is no ingame documentation for end-users.

- No explanation on pre-set markers for end-users. (Preset marker requirements are: Type DESTROY, Color RED, text FIRE MISSION)

- Preset markers may not be deleted after fire mission is done.

- Only the basic ammunition types (Sh_xmm_AMOS,R_230mm_HE) are supported. Edit x\selection\typsel.sqf to add more ammunition types.

Rights

You may not modify any Graphical User Interface (GUI) elements provided to you with this script/function. You are not allowed to re-use these GUI elements to their full extent and outside their intended purpose (ie with this function/script).

You are allowed to modify the main function/script (fn_fireMission.sqf) to suit your missions needs. You are also allowed to re-use this script directly and without GUI elements.

Appendix

The purpose of this appendix is to inform the mission maker of variables used in mission namespace as to not conflict with any missions that also use these variables (although highly unlikely). All of these are only defined when the main function is used with provided GUI elements. You'll find it within the spoiler.

  Reveal hidden contents

ArtilleryUsed - Defines which Artillery is selected by end-user.

RoundsUsed - Defines amount of rounds which are selected by end-user.

SetDelay - Delay selected by end-user. (THIS DELAY IS ADDED ONTOP OF A 10 SECOND DELAY!!)

ShellUsed - The type of ammunition selected by end-user.

MarkerPositionUsed - The position of the marker set by end-user.

MarkerSetByClick - Variable defined by function.

MarkerUsed - Marker name is stored in this variable, used by function.

UnitsWithArtComp - Variable which stores all units that have access to Artillery Computer. Defined by function (defined by mission maker through init.sqf)

Changelog

v1.1 (Hotfix)

- Tweaked: Increased time it takes for artillery to aim and fire at target. (fn_fireMission.sqf)

- Fixed: MAP button now properly opening map (dialogs.hpp, file structure not setup properly)

v1.0

- Initial Release

 



DOWNLOAD

MEDIAFIRE ^ (VERSION 1.1)
 

 

 


Do you by chance have an updated version of this that works... when i load this into my mission it gives a few errors 
this is exactly what i have been trying to find for my mission for weeks. 
w1wIgJT.png
and 
AKfgK1h.png

 


 

Share this post


Link to post
Share on other sites

@Bad_Dad I know it can be very frustrating when you find a scripture mod that fits your needs perfectly but the script or mod is no longer working correctly. Welcome to the wonderful world of Arma. With that said the last reply on this thread was jan 3 2014 almost 9 years ago SMH and the creator of this script tryteyker has not been on the forum since 2017. I can safely assume there hasn't been no update on this. You can easily check if somebody's been on by clicking on their name and it will tell you when the last time they were active on the forums. What exactly are you looking for ? Avibird 

Share this post


Link to post
Share on other sites
16 hours ago, avibird 1 said:

@Bad_Dad I know it can be very frustrating when you find a scripture mod that fits your needs perfectly but the script or mod is no longer working correctly. Welcome to the wonderful world of Arma. With that said the last reply on this thread was jan 3 2014 almost 9 years ago SMH and the creator of this script tryteyker has not been on the forum since 2017. I can safely assume there hasn't been no update on this. You can easily check if somebody's been on by clicking on their name and it will tell you when the last time they were active on the forums. What exactly are you looking for ? Avibird 

Ya i just posted on the thread in the slight chance the op would see it and reply... Anyways... this script if it worked was pretty much exactly what i was looking for...  GUI interface for artillery for an insurgency mission i am working on.  the interface for this is simple and if it worked would have been great. 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×