

A101Wayz
Members-
Posts
151 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by A101Wayz
-
Looking for a way to tally scores in a PvP multiplayer match. I don't know if my problem is with my understanding of sets, or my understanding of event handling. But, here's my issue: Add 1 point to red team for every blue missile fired. Add 5 points to red team for every blue client shot down. (and vice-versa) the following script results in adding points to both teams every time... Where am I going wrong? SCORE_RED=0 SCORE_BLUE=0 SCORE_MAX=1000 SCORE_SHOT=1 SCORE_KILL=5 --PvP Scoring --Add 1 point to Opposing Team score for every missile fired --Add 5 points to Team score for every kill SetRedClients = SET_CLIENT:New() SetRedClients:FilterCoalitions( "red" ) :FilterCategories( "plane" ) :FilterPrefixes( "Red") SetRedClients:FilterStart() SetRedClients:HandleEvent( EVENTS.Shot ) function SetRedClients:OnEventShot( EventData ) self:E( "I just fired a missile and I am part of " .. EventData.IniGroupName ) EventData.IniUnit:MessageToAll( "I just fired a missile and I am part of " .. EventData.IniGroupName, 15, "Alert!" ) SCORE_BLUE=SCORE_BLUE + SCORE_SHOT EventData.IniUnit:MessageToAll( "Red: " .. SCORE_RED .. " Blue: " .. SCORE_BLUE, 15 ) end SetRedClients:HandleEvent( EVENTS.Dead ) function SetRedClients:OnEventDead( EventData ) self:E( "I just got dead and I am part of " .. EventData.IniGroupName ) EventData.IniUnit:MessageToAll( "I just got dead and I am part of " .. EventData.IniGroupName, 15, "Alert!" ) SCORE_BLUE=SCORE_BLUE + SCORE_KILL EventData.IniUnit:MessageToAll( "Red: " .. SCORE_RED .. " Blue: " .. SCORE_BLUE, 15 ) end SetBlueClients = SET_CLIENT:New() SetBlueClients:FilterCoalitions( "blue" ) :FilterCategories( "plane" ) :FilterPrefixes( "Blue") SetBlueClients:FilterStart() SetBlueClients:HandleEvent( EVENTS.Shot ) function SetBlueClients:OnEventShot( EventData ) self:E( "I just fired a missile and I am part of " .. EventData.IniGroupName ) EventData.IniUnit:MessageToAll( "I just fired a missile and I am part of " .. EventData.IniGroupName, 15, "Alert!" ) SCORE_RED=SCORE_RED + SCORE_SHOT EventData.IniUnit:MessageToAll( "Red: " .. SCORE_RED .. " Blue: " .. SCORE_BLUE, 15 ) end SetBlueClients:HandleEvent( EVENTS.Dead ) function SetBlueClients:OnEventDead( EventData ) self:E( "I just got dead and I am part of " .. EventData.IniGroupName ) EventData.IniUnit:MessageToAll( "I just got dead and I am part of " .. EventData.IniGroupName, 15, "Alert!" ) SCORE_RED=SCORE_RED + SCORE_KILL EventData.IniUnit:MessageToAll( "Red: " .. SCORE_RED .. " Blue: " .. SCORE_BLUE, 15 ) end
-
This should tell you everything you need to know: The actual "where" to put the Moose files isn't really important. You just need to remember where you put them when you set up your Lua editor. You will link to the files in the Lua editor, just once, and you should be good to go. The MOOSE runtime (moose.lua) will have to be imported into each mission you create using a "On Mission Start" trigger and a "Do Script File" action.
-
Rather than unzipping the file, just open the file in 7zip. Then you can edit the mission file while still inside the zip file by selecting "edit", or by clicking on the file to be edited and hitting "F4". That will keep the file structure intact.
-
Have you imported the "VIACOM PRO for DCS World" profile, yet?
-
Don't know what it was that broke. My guess is a corrupted file somewhere in those 3 folders. Had to do a clean install of VA and Viacom. So, before you go this route, export your profile so you can get your added commands back.
-
UPDATE: The problem was definitely on the Viacom side, as VA worked but nothing attached to Viacom was working... After a lot of troubleshooting, and several uninstall/reinstalls later, it turns out that after uninstall, the folders with "Voice Attack" in their names in the following locations needed to be deleted before re-install: C:\Users\<UserName>\AppData\Local C:\Users\<UserName>\AppData\Roaming C:\Program Files(x86)
-
I had the same warning for about a month with Nahimic (another sound processing app that was installed with the Realtek audio drivers that came with my mobo). Everything on the VA and Viacom end still worked. However, I did manage to rid my computer of the Nahimic software by removing all drivers and apps associated with the sound card, and D/Ling a driver only installation from Realtek.
-
Same here. I tune to the correct channel/freq and try to contact Tanker/AWACS/Carrier/Airfield/Flight/Wingman and... nothing happens. The command is recognized, but I don't hear my "Player Voice" repeat the command on the radio, and I get no response from the intended party. But it seems to only occur in MultiPlayer. In SinglePlayer, all seems to be well. I stand corrected. It is NOT working in SP. Tested in Hornet, Tomcat and Warthog.
-
I think I got lucky with the lens/adapter/headset combo... All I needed to do was to put my original config into the web based "Distortion Buddy" tool, Set the sliders to +.02, +.01, and 0 respectively. http://distortionbuddy.s3-website-us-west-2.amazonaws.com/ The preset configs were ok, but only to varying degrees. The distortion I was getting was the edges were bent AWAY from me...
-
It worked fine for me as well, and I copied and pasted the script. But the error stated that InitSkill() was a nil value, therefore InitSkill() isn't getting called. The error has to precede that call. As you stated, the InitLimit(1,1) is valid... But, it's unnecessary. And that's the first thing I look at when debugging - taking out the unnecessary code/calls. I think that's a holdover from learning to program on 1Mhz CPUs with 4K of RAM. :-) Without the mission file and full script to look at, that's all there is to go on ATM.
-
Hope this tech is on the fast track! https://uploadvr.com/htc-vive-finger-tracking/
-
Awesome! I've had AIRIO turned off due to the disabling of Jester's menu and I can never remember the correct phrases. Allowing an option to leave the RIO wheel enabled would be the best option. But, this is a great workaround.
-
[FIXED INTERNALLY] 2.5.3.21444 Mouse cursor graphical glitch
A101Wayz replied to backspace340's topic in VR Bugs
I've experienced similar graphic anomalies. The tennis ball cursor, along with what appears to be a patch of grass in a square sprite, right in the center of my field of view. Both disappear when the mouse sleeps, but as soon as the mouse is touched, both reappear. Annoying as hell. Only way to "fix" it is to restart game. Of note: While it doesn't happen often enough to nail this down, I do think that it happens when ALT-Tab to desktop. -
I just swapped out my lenses today. Picked up a GearVR for about $30USD on amazon. I gotta say... I'm AMAZED at the difference in clarity! The only thing affected negatively was the center of view was slightly out of scale. (I think that's called "Barrel effect". But after making the config changes, it became imperceptible. Now, for the first time I can see the gauges without moving my head. I can read the panels without zooming in. This is a fantastic mod that really improves the immersion. My only question is: What the heck was HTC thinking when they decided to go with fresnel lenses???
-
Couple things... I'm using airliners as targets for this test, so the target is not out-flying the missile. I've launched at every target aspect angle and range, in every mode where it's possible to launch. I'm not losing radar lock. The result is almost always the same. Missile flies out to less than 5nm and looks like it slows down to sub-sonic speeds. It doesn't appear to be circling, looking for a target. It actually appears to be just hanging in space. Guess I'll try re-installing the game and see if that produces different results...
-
Happens at all altitudes and attitudes. Only way I can get a sparrow to hit the target is to be within 5nm when firing.
-
Do you have MOOSE loading with a Mission Start trigger? Is MOOSE being load before your script? If yes to both: Open the file that it's referencing and check line 5... it appears that you're referencing an out-of-scope or undeclared variable.
-
If the AIM-7M is considered a mach 4 medium range missile, why do they usually fly less than 5NM miles in front of me, only to have me passing them 30 secs after launch, when I'm only doing 550knts? Is this a bug?
-
Gotta make sure you get the line "They're... They're shooting at us!"
-
I'm interested in how your project will turn out. With that in mind, I'd be willing to do one voice for you. PM me a script and I'll go to work on it.
-
You could write a script to set the actions of the carrier... activating TACAN and such, and then just import the script into each mission. And yes, statics appearing on a carrier seem to be hit or miss at the moment. Sometimes some do show up, other times nothing shows up.
-
Correct syntax? Question: What is the correct syntax for using a function as a parameter to a function call... i.e. EVENTHANDLER:HandleEvent(EventData, function) How would one go about placing a function in that parameter list? EDIT: I think I have it sorted out... the function does not require a name. i.e. EVENTHANDLER:HandleEvent(EventData, function (EventData) ... end ) would that be the correct syntax?