Welcome, Guest Sunday 20th April 2014, 19:26:14
   Home   Help Search Login Register  

OFPEC Forum

Author Topic: a better view  (Read 2000 times)
0 Members and 1 Guest are viewing this topic.
loki72
Intel Depot Staff
*****
Offline Offline



WWW
« on: 14 Jun 2008, 23:33:20 »

greetings,

version 1.1 is out.

the ability to pick any number view distance and it is so.
the ability to pick the terrain detail level.








* loki_dlg.rar (7.4 KB - downloaded 69 times.)
« Last Edit: 27 Jul 2008, 06:46:28 by loki72 » Logged
Mandoble
Editors Depot
Administrator
*****
Offline Offline



WWW
« Reply #1 on: 14 Jun 2008, 23:43:11 »

Not sure if you already had it covered, else you may check player vehicle changes to ensure the action is present there where the player is, outside or inside vehicles.
Logged

loki72
Intel Depot Staff
*****
Offline Offline



WWW
« Reply #2 on: 14 Jun 2008, 23:50:31 »

rgr that.. it gave me fits for a sec.. but this seems to do the trick...

config.cpp

Code:
class RscDisplayEmpty;
class RscDisplayMission : RscDisplayEmpty {
access = ReadAndWrite;
  idd=46;

onLoad="execVM ""\loki_dlg\init.sqf"";";
};

though i don't understand the reason for it... Tongue

edit: hmmm.. i never cared about the use in a vehicle... however.. if i wanted to have the action at all times... what would that code look like?
« Last Edit: 15 Jun 2008, 00:06:38 by loki72 » Logged
Mandoble
Editors Depot
Administrator
*****
Offline Offline



WWW
« Reply #3 on: 15 Jun 2008, 00:56:44 »

Something like this:
Code:
private["_veh", "_idx"];
_idx = -1;
while {true} do
{
   if (_idx == -1) then
   {
      _idx = (vehicle player) addAction ["action", "script.sqf"];
      _veh = vehiche player;
   };

   if (_veh != vehicle player) then
   {
      _veh removeAction _idx;
      _idx = -1;     
   };
   Sleep 1;
};
Logged

loki72
Intel Depot Staff
*****
Offline Offline



WWW
« Reply #4 on: 15 Jun 2008, 02:11:38 »

i get this when i run it  Huh?




edit: on a side note... have you ever thought about taking all the (solved) scripts, codes, and snippets.. along with your understanding of scripting and put together a scripting pdf manual thingy..?







« Last Edit: 15 Jun 2008, 02:17:17 by loki72 » Logged
Planck
Honoured
Former Staff
****
Offline Offline


I'm never wrong ....I'm just not always right !


« Reply #5 on: 15 Jun 2008, 02:16:52 »

Probably should read:

_veh = vehicle player;


Planck
Logged

I know a little about a lot, and a lot about a little.
loki72
Intel Depot Staff
*****
Offline Offline



WWW
« Reply #6 on: 15 Jun 2008, 02:26:16 »

lol.. stoopid arma..

thx for the tip planck.. when it gave me the same error in another spot.. i went back and looked...

Code:
_veh = vehiche player;

vehicle

had nothing to do with a " ; "... ?!

wonder how many times i've ended in defeat looking for a ; and not a misspelled word... Cool2

works great mando...

really hope you're on the arma 2 team....



Logged
Trash Can Man
*
Offline Offline

We are no longer the knights who say "Ni!"


« Reply #7 on: 22 Jun 2008, 05:34:00 »

I was wondering anyone picked up on that!   Wink
Logged
loki72
Intel Depot Staff
*****
Offline Offline



WWW
« Reply #8 on: 27 Jul 2008, 06:47:46 »

greetings,

2 things:

the above download link is updated to v1.1

also.. how can i make sure the addaction is always there? it works good as is.. but in the warfare maps its doesn't show up.. and i have to call it via radio...

Logged
Wolfrug
Addons Depot
Administrator
*****
Offline Offline


Official OFPEC Old Timer


« Reply #9 on: 27 Jul 2008, 08:17:52 »

Spooner had the same problem, and posted about it in the Warfare forums: LINK. No replies, but there's the reason. Hardcoded removeActions. SO no good Sad

Wolfrug out.
Logged

"When 900 years YOU reach, look as good you will not!"
loki72
Intel Depot Staff
*****
Offline Offline



WWW
« Reply #10 on: 27 Jul 2008, 08:32:27 »

greetings,

geeze... thx wolfrug... and spooner.. i thought as much. that's why the radio command works around it....

init.sqf
Code:
_trgobjA = createTrigger ["EmptyDetector", position player ];
_trgobjA setTriggerText "ABV";
_trgobjA setTriggerActivation ["India", "PRESENT", true];
_trgobjA setTriggerStatements ["this", "nul = [] execVM ""\loki_dlg\Scripts\ABV_Settings.sqf""", ""];



i'll keep this one open as before... thanks again.


Logged
savedbygrace
Intel Depot
Administrator
*****
Offline Offline


Be swift to hear...slow to speak...slow to wrath.


« Reply #11 on: 27 Jul 2008, 13:30:33 »

This project would be more helpful if you could print the current viewdistance and terrain settings as well as provide seperate boxes for entering the data to change the settings, this way players can recall their mistakes. Or perhaps an undo button that would restore settings back to a default that was present before the ABV was opened. Can the info to accomplish this not be found within the files of the arma game? How does BIS retain those settings in the player profiles?
Logged
loki72
Intel Depot Staff
*****
Offline Offline



WWW
« Reply #12 on: 28 Jul 2008, 00:14:14 »

greetings,

yup... no.. i dunno.. maybe?!  lol.. version 1.2 will have that if i can figure out how to do it.
Logged
Spooner
*
Offline Offline


Mostly useless


WWW
« Reply #13 on: 06 Aug 2008, 10:39:29 »

You can't ask for the current view settings, unless you use ArmALib. Your script could remember which setting it last used though and assume that nothing external has changed the setting.

Code:
class RscDisplayEmpty;
class RscDisplayMission : RscDisplayEmpty {
access = ReadAndWrite;
  idd=46;

onLoad="execVM ""\loki_dlg\init.sqf"";";
};
What you are doing is using the OnLoad event handler on the standard BIS Mission selection dialog. Whenever that display is loaded, then your script is run. Please, please, please don't use this method to start up your script. By using a BIS event handler like this, you are running the risk of overwriting someone else's use of it (perhaps BIS in the future?), or they could overwrite your use of it (e.g. since you presumably got this method from another addon, you are already incompatible with that addon!). Just use the de facto method, XEH, like everyone else should be doing, for 100% compatibility.

On another note, I think you should make clear that using this addon in MP games would be considered cheating, unless everyone agreed to use it. In COOP, you'd be able to see further than the opposing AI, since you aren't changing the server view distance; in PVP, you'd be able to see further than players on the other side.
Logged

[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)
loki72
Intel Depot Staff
*****
Offline Offline



WWW
« Reply #14 on: 07 Aug 2008, 10:01:02 »

greetings,

thanks spooner...

i still wasn't 'seeing' the anything with 'Rsc" is BiS stuff.

also i agree that a 'warning' should go along with this.

1.2 should be coming soon.
« Last Edit: 07 Aug 2008, 10:09:50 by loki72 » Logged
Pages: [1] 2  All   Go Up
  Send this topicPrint  
 
Jump to: