Jump to content
Sign in to follow this  
Fincuan

InstantViewDistance for Arma2

Recommended Posts

InstantViewDistance v2.1

Here you go, IVD for Arma2. The base, or more like 99.5% of the mod, is on IVD v2.0 for Arma1. The following changes were made vs. that version:

  • All .rpt errors that resulted from using that version in Arma2 are fixed
  • No more IVD in player vs. player gamemodes. The addon only works if gametype is coop, unspecified or an empty string(""). Gametype is read from description.ext.
  • German language was removed at least for now, otherwise languagemod users would get the addon in the wrong language.

All credit goes to the "fathers" of IVD, radical.ghost and i0n0s. As I said most of the code is theirs. I spoke with ION but haven't been able to reach radical yet, so radical when you read this hopefully you won't mind.

This addon requires CBA

http://dev-heaven.net/projects/list_files/cca

Download:

Armaholic.com

InstantViewDistance v2.1

HUT

InstantViewDistance v2.1

Readme:

Instant View Distance v2.1
initial release by radical.ghost,
complete overhauled version by i0n0s
modified by Fincuan for Arma2 and noPvP
=====================================

This Addon enables you to alter your viewDistance settings anywhere anytime.
Just use the "MouseWheel - Menu" to bring up a neat GUI dialog
and change your settings like you desire.


Installation:
-------------
Put the files
-> FNC_InstantViewDistance.pbo
-> FNC_InstantViewDistance.pbo.FNC.bisign
into your desired AddOn / Modfolder and there you go.

The file
-> FNC.bikey
is relevant to server administrators only.


Requirements:
-------------
This addon requires Extended Eventhandlers to work.
ExtendedEventhandlers for Arma2 is part of Community Base Addons(CBA).
You can download it here: http://dev-heaven.net/projects/list_files/cca


Usage:
------
Click on the left or right slider arrow to increase or decrease your VD at 500m
steps.

Click on the left or right side of the slider bar to increase or decrease
your VD at 1000m steps.

Drag the Arrow on the slider bar left or right to increase or decrease
your VD at 100m steps.

Use the buttons above the slider to set your VD directly to that value.

Use the buttons below the slider to switch your terrain detail level.


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Note:
-----
It is strictly advised to use this AddOn in COOP - type Missions only, as it could and
probably WILL be considered cheating using this in any PVP - type Missions. This version of the mod
will only work if the mission is a coop or if gametype is not specified.

Attention to mission makers:
----------------------------
Remember to set the gametype correctly in description.ext, as the script reads it from there.

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


Tested with ArmA2 v1.03
-> This Addon is client side only.

Known bugs:
None.


Changelog:
----------
v2.1 - by Fincuan
Fixed: .rpt errors in Arma2
Added: gameType check that allows IVD to work in coops only
Removed: German language, at least until language can be changed without mods in A2

v2.0 - thanks to i0n0s
Fixed: "Mousewheel - Menu" - entry now available from inside vehicles, too.
Added: GUI - Dialog with slider and buttons for quicker, more intuitive access
Added: Stringtable.csv for translation between english and german

v1.1
Fixed: "Mousewheel - Menu" - entry now available after respawn, too.

v1.0
Initial release


Credits:
--------
Crowe for helping me out with some scripting problems
i0n0s for his improvements and the new version 2.0 of this little helper
radical.ghost


BIS - Thread:
-------------
Version 2.1:
http://forums.bistudio.com/showthread.php?t=85282


Versions 2.0 and before:
http://forums.bistudio.com/showthread.php?t=64902

Forum thread for the Arma1-version

Edited by Fincuan

Share this post


Link to post
Share on other sites

Nevermind, was playing Warfare (TvT). Works OK in 1.04.

Edited by tcp

Share this post


Link to post
Share on other sites

Hey guys!

This mod is great, but I think it would be much more useful to be able to set the view distance automatically.

Usually I play Arma II with 3300 m view distance to get good frame rate at very high settings. The only problem when I should use any scope (rifle or binocular). In these cases the FoV is really small, so the frame rate can be pretty high even if I set the view distance to 10000 m.

So as a bottom line: is it possible to set the view distance automatically to 10000 m when switching to scopes, and change back to 3300 m when finished using the scopes?

I already tried the FPS Saver addon, but I thing that switching between two distinct view distance values in case of activating / deactivating the scope is much more simple then continuously monitoring the fps and dynamically changing the view distance.

Share this post


Link to post
Share on other sites

Hi there,

I have made some improvements to the Instant ViewDistance (v2.1), so we are at Instant Viewdistance version 2.2 now.

The Improvements:

Now we have an IVD_config.hpp - file, which belongs to the directory:

..\[ArmA2-InstallDir]\userconfig\IVD\

In this file you can define the ViewDistance values that are being switched to by the buttons in the GUI.

For Example, you can define 2000m for Button 1, 4000m for Button 2, and 8000m for Button 3.

In addition, you can define with what ViewDistance value you want to start by default, without having to start the GUI.

For this to work it is enough to have the IVD - addon loaded.

(Does not work with Missions that have their own ViewDistance - Scripts implemented)

So every COOP - Mission starts automatically with the VD - setting you favor without having to make any adjustments inside the IVD - GUI.

The same now applies to the Terraindetail - values.

You can define with what value you want to start by default and also the values for the Terraindetail buttons.

(Gave me some unexpected results by experimenting with values that are documented to be.. "out of range" ;))

 
Some Terraindetail - values:
100  extreme low detail, lowest detected working value by testing
50   very low detail, no grass, corresponds to "Very Low" setting
25   default in multiplayer, corresponds to "Low" setting
12.5  default in singleplayer, corresponds to "Normal" setting
6.25 corresponds to "high" setting
3.125 very high detail, corresponds to "very high" setting
0.1  ultra high detail, hardly noticeable difference to "very high" by eye, but high performance impact
0  0 is recognized as 6.25 "high" setting

Altering the values inside the IVD_config.hpp - file btw also works while you have ArmA2 / OA running:

Alt-Tab out of ArmA, alter values, save file, back to ArmA and restart the GUI, done.

IVD v2.2 readme:

[font=Courier New]Instant View Distance v2.2[/font]
[font=Courier New]--------------------------[/font]
[font=Courier New]initial release by radical.ghost, (v1.0, v1.1)[/font]
[font=Courier New]complete overhauled version by i0n0s (v2.0)[/font]
[font=Courier New]modified by Fincuan for Arma2 and noPvP (v2.1)[/font]
[font=Courier New]modified once again by radical.ghost (v2.2)[/font]
[font=Courier New]================================================[/font]


[font=Courier New]Description:[/font]
[font=Courier New]------------[/font]
[font=Courier New]This Addon enables you to alter your viewDistance settings anywhere anytime.[/font]
[font=Courier New]Just use the "MouseWheel - Menu" to bring up a neat GUI dialog[/font]
[font=Courier New]and change your settings like you desire.[/font]


[font=Courier New]Installation:[/font]
[font=Courier New]-------------[/font]
[font=Courier New]Put the files[/font]
[font=Courier New]-> InstantViewDistance_noPvP.pbo[/font]
[font=Courier New]-> InstantViewDistance_noPvP.pbo.IVD_RG.bisign[/font]
[font=Courier New]into your desired AddOn / Modfolder.[/font]

[font=Courier New]Put the file[/font]
[font=Courier New]-> IVD_config.hpp[/font]
[font=Courier New]into[/font]
[font=Courier New]...\[ArmA2 - Install - Directory]\userconfig\IVD\ [/font]
[font=Courier New](create "userconfig" and "IVD" folder if neccessary)[/font]

[font=Courier New]The file[/font]
[font=Courier New]-> IVD_RG.bikey[/font]
[font=Courier New]is relevant to server administrators only.[/font]


[font=Courier New]Requirements:[/font]
[font=Courier New]-------------[/font]
[font=Courier New]This addon requires Extended Eventhandlers to work.[/font]
[font=Courier New]ExtendedEventhandlers for Arma2 is part of Community Base Addons(CBA).[/font]

[font=Courier New]You can download it here: [/font]
[font=Courier New]http://dev-heaven.net/projects/list_files/cba[/font]


[font=Courier New]Usage:[/font]
[font=Courier New]------[/font]
[font=Courier New]Click on the left or right slider arrow to increase or decrease your VD [/font]
[font=Courier New]at 500m steps.[/font]

[font=Courier New]Click on the left or right side of the slider bar to increase or decrease your [/font]
[font=Courier New]VD at 1000m steps.[/font]

[font=Courier New]Drag the Arrow on the slider bar left or right to increase or decrease your [/font]
[font=Courier New]VD at 100m steps.[/font]

[font=Courier New]Use the buttons above the slider to set your VD directly to that value.[/font]

[font=Courier New]Use the buttons below the slider to switch your TerrainDetail level.[/font]

[font=Courier New]Push the [Esc] - Button to close the GUI[/font]


[font=Courier New]Usage userconfig File "IVD_config.hpp":[/font]
[font=Courier New]---------------------------------------[/font]
[font=Courier New]This file should be placed in [/font]
[font=Courier New]..\[ArmA2 - Install - Directory]\userconfig\IVD\[/font]
[font=Courier New]It is meant to be edited with a text editor so you can change the IVD Startup [/font]
[font=Courier New]and Preset Button values.[/font]

[font=Courier New]IVD_Startup_VD: [/font]
[font=Courier New]Your VD will be set directly to this value when you join or start [/font]
[font=Courier New]a mission. Without the need to bring up the IVD - GUI.[/font]

[font=Courier New]IVD_Startup_TD:[/font]
[font=Courier New]Your TD (TerrainDetail) will be set directly to this value when you join or [/font]
[font=Courier New]start a mission. Without the need to bring up the IVD - GUI.[/font]

[font=Courier New]IVD_ButtonX_value: [/font]
[font=Courier New]Set the values for Button1, Button2 and Button3 to your likings.[/font]
[font=Courier New]VD will be set to this value in Meters when you push Button X in the IVD GUI, [/font]
[font=Courier New]this value will also be shown on the button itself.[/font]

[font=Courier New]IVD_TerrainX_value:[/font]
[font=Courier New]Set the values for buttons "TerrainDetail Low", "TerrainDetail Middle" and [/font]
[font=Courier New]"Terraindetail High" to your likings.[/font]
[font=Courier New]TD will be set to these values when you push the corresponding buttons [/font]
[font=Courier New]in the IVD GUI.[/font]

[font=Courier New]"[Alt-Tab] - Support":[/font]
[font=Courier New]It is possible to change the button values on the fly while[/font]
[font=Courier New]ArmA2 is running by "alt-tabbing" out of ArmA2, changing the desired values in [/font]
[font=Courier New]the userconfig file, going back into ArmA2 and bringing up the GUI again.[/font]
[font=Courier New]This is useful for experimenting with "non standard" TerrainDetail values.[/font]
[font=Courier New](For example I was a bit surprised about finding out that the TerrainDetail can[/font]
[font=Courier New]be set down to 100 instead of just down to 50 and up to >0 (0.1) instead of [/font]
[font=Courier New]just 3.125. --r:g)[/font]

[font=Courier New]::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::[/font]
[font=Courier New]::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::[/font]

[font=Courier New]Note:[/font]
[font=Courier New]-----[/font]
[font=Courier New]It is strictly advised to use this AddOn in COOP - type Missions [/font]
[font=Courier New]only, as it could and probably WILL be considered cheating using [/font]
[font=Courier New]this in any PVP - type Missions. [/font]

[font=Courier New]!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!![/font]
[font=Courier New]This version of the mod will only work if the mission is a coop [/font]
[font=Courier New]or if gametype is not specified.[/font]

[font=Courier New]Attention to mission makers:[/font]
[font=Courier New]----------------------------[/font]
[font=Courier New]Remember to set the gametype correctly in description.ext, as [/font]
[font=Courier New]the script reads it from there.[/font]
[font=Courier New]!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!![/font]

[font=Courier New]::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::[/font]
[font=Courier New]::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::[/font]


[font=Courier New]Tested with ArmA2+OA Combined v1.07 and several betas[/font]
[font=Courier New]-> This Addon is client side only.[/font]

[font=Courier New]Known bugs:[/font]
[font=Courier New]None.[/font]


[font=Courier New]Changelog:[/font]
[font=Courier New]----------[/font]
[font=Courier New]v2.2 - by radical.ghost[/font]
[font=Courier New]Added: userconfig file "IVD_config.hpp" for changing the Preset Button values individually[/font]
[font=Courier New]Added: userconfig IVD VD and TD Startup value, your VD and TD will be set to this value as standard, no need to bring up the GUI, just have the addon loaded[/font]
[font=Courier New]Feature: "[Alt-Tab] - Support" for changing values in the userconfig file while ArmA2 is running, the values get read with every GUI - startup[/font]

[font=Courier New]v2.1 - by Fincuan[/font]
[font=Courier New]Fixed: .rpt errors in Arma2[/font]
[font=Courier New]Added: gameType check that allows IVD to work in coops only[/font]
[font=Courier New]Removed: German language, at least until language can be changed without mods in A2[/font]

[font=Courier New]v2.0 - thanks to i0n0s[/font]
[font=Courier New]Fixed: "Mousewheel - Menu" - entry now available from inside vehicles, too.[/font]
[font=Courier New]Added: GUI - Dialog with slider and buttons for quicker, more intuitive access[/font]
[font=Courier New]Added: Stringtable.csv for translation between english and german[/font]

[font=Courier New]v1.1 - by radical.ghost[/font]
[font=Courier New]Fixed: "Mousewheel - Menu" - entry now available after respawn, too.[/font]

[font=Courier New]v1.0 - by radical.ghost[/font]
[font=Courier New]Initial release[/font]


[font=Courier New]Credits:[/font]
[font=Courier New]--------[/font]
[font=Courier New]Crowe for helping me out with some scripting problems[/font]
[font=Courier New]i0n0s for his improvements and the version 2.0 of this little helper[/font]
[font=Courier New]Fincuan for porting this to ArmA II in version 2.1[/font]


[font=Courier New]BIS - Threads:[/font]
[font=Courier New]-------------[/font]
[font=Courier New]Version 2.1 and up:[/font]
[font=Courier New]http://forums.bistudio.com/showthread.php?t=85282[/font]


[font=Courier New]Versions 2.0 and before:[/font]
[font=Courier New]http://forums.bistudio.com/showthread.php?t=64902[/font]

Download:

FileFront

Many thanks for your attention,

r:g

P. S.:

@Fincuan, it would be nice if you could edit your first post in this thread so that it matches and points to the new current version of IVD, thanks in advance.

Share this post


Link to post
Share on other sites

Nice update.

All this needs now is support for mission designers to set a max vd and tg ;)

For example, take a bit like this into account (in description.ext):

class xyz_IVD { // settings for xyz_ivd

ok = 1; // set 0 to disable it

default = 2000; // default viewdistance (if user config is missing)

maxvd = 7500; // maximum viewdistance allowed (right limit for the slider GUI)

maxtg = 49; // prevent turning grass off completely

};

I am willing to contribute support for this feature if accepted by the authors.

Edited by Robalo_AS

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
Sign in to follow this  

×