Advertisement

Author Topic: a better view  (Read 2054 times)

0 Members and 1 Guest are viewing this topic.

Offline loki72

  • Former Staff
  • ****
    • Loki's Nightmare
a better view
« on: 15 Jun 2008, 00: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.







« Last Edit: 27 Jul 2008, 07:46:28 by loki72 »

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: a better view
« Reply #1 on: 15 Jun 2008, 00: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.

Offline loki72

  • Former Staff
  • ****
    • Loki's Nightmare
Re: a better view
« Reply #2 on: 15 Jun 2008, 00:50:31 »
rgr that.. it gave me fits for a sec.. but this seems to do the trick...

config.cpp

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

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

though i don't understand the reason for it... :P

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, 01:06:38 by loki72 »

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: a better view
« Reply #3 on: 15 Jun 2008, 01:56:44 »
Something like this:
Code: [Select]
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;
};

Offline loki72

  • Former Staff
  • ****
    • Loki's Nightmare
Re: a better view
« Reply #4 on: 15 Jun 2008, 03:11:38 »
i get this when i run it  ???




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, 03:17:17 by loki72 »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: a better view
« Reply #5 on: 15 Jun 2008, 03:16:52 »
Probably should read:

_veh = vehicle player;


Planck
I know a little about a lot, and a lot about a little.

Offline loki72

  • Former Staff
  • ****
    • Loki's Nightmare
Re: a better view
« Reply #6 on: 15 Jun 2008, 03: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: [Select]
_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....




Offline Trash Can Man

  • Members
  • *
  • We are no longer the knights who say "Ni!"
Re: a better view
« Reply #7 on: 22 Jun 2008, 06:34:00 »
I was wondering anyone picked up on that!   ;)

Offline loki72

  • Former Staff
  • ****
    • Loki's Nightmare
Re: a better view
« Reply #8 on: 27 Jul 2008, 07: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...


Offline Wolfrug

  • Addons Depot
  • Administrator
  • *****
  • Official OFPEC Old Timer
Re: a better view
« Reply #9 on: 27 Jul 2008, 09: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 :(

Wolfrug out.
"When 900 years YOU reach, look as good you will not!"

Offline loki72

  • Former Staff
  • ****
    • Loki's Nightmare
Re: a better view
« Reply #10 on: 27 Jul 2008, 09:32:27 »
greetings,

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

init.sqf
Code: [Select]
_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.



Offline savedbygrace

  • Mission Depot
  • Administrator
  • *****
  • Be swift to hear...slow to speak...slow to wrath.
Re: a better view
« Reply #11 on: 27 Jul 2008, 14: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?

Offline loki72

  • Former Staff
  • ****
    • Loki's Nightmare
Re: a better view
« Reply #12 on: 28 Jul 2008, 01:14:14 »
greetings,

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

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: a better view
« Reply #13 on: 06 Aug 2008, 11: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: [Select]
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.
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline loki72

  • Former Staff
  • ****
    • Loki's Nightmare
Re: a better view
« Reply #14 on: 07 Aug 2008, 11: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, 11:09:50 by loki72 »