-
Posts
205 -
Joined
-
Last visited
-
DML - Mission Creation Toolbox [no Lua required]
ChuckIV replied to cfrag's topic in Scripting Tips, Tricks & Issues
Thank you cfrag for helping with this. I'll overwrite the 5.3.1 with this 5.3.2 and get back to you if there's another error. Thanks again so much! ChucKIV -
DML - Mission Creation Toolbox [no Lua required]
ChuckIV replied to cfrag's topic in Scripting Tips, Tricks & Issues
Hey cfrag, Tonight, we got this error when rocketing a Third Reich ship. The only scoring I have set right now for ships is playerScoreConfig (ships set to 1000 pts.) Here's the error code... Mission script error: [string "cfxPlayerScore = {}..."]:1073: Unit doesn't exist stack traceback: [C]: ? [C]: in function 'getPlayerName' [string "cfxPlayerScore = {}..."]:1073: in function 'isScoreEvent' [string "cfxPlayerScore = {}..."]:1218: in function 'onEvent' [string "Scripts/World/EventHandlers.lua"]:13: in function <[string "Scripts/World/EventHandlers.lua"]:11> Let me know what I can do next and thank you so much! ChuckIV -
DML - Mission Creation Toolbox [no Lua required]
ChuckIV replied to cfrag's topic in Scripting Tips, Tricks & Issues
I'll overwrite the playerScore.lua and let you know if that happens again - thank you cfrag! ChuckIV -
DML - Mission Creation Toolbox [no Lua required]
ChuckIV replied to cfrag's topic in Scripting Tips, Tricks & Issues
Hey cfrag, Got this error in our server today. I'm using the most up to date playerScore and playerScoreUI (3.10 and 5.30) Any ideas what might cause this?? Mission script error: [string "cfxPlayerScore = {}..."]:1134: Unit doesn't exist stack traceback: [C]: ? [C]: in function 'getPlayerName' [string "cfxPlayerScore = {}..."]:1134: in function 'isScoreEvent' [string "cfxPlayerScore = {}..."]:1216: in function 'onEvent' [string "Scripts/World/EventHandlers.lua"]:13: in function <[string "Scripts/World/EventHandlers.lua"]:11> ChuckIV -
Is there any way I can put ALLIED search lights in my missions? I know the Third Riech has them of course. ChuckIV
-
DML - Mission Creation Toolbox [no Lua required]
ChuckIV replied to cfrag's topic in Scripting Tips, Tricks & Issues
cfrag, I did have an older version of playerScore - Now I have the 5.30 version installed. Thanks for the help. ChuckIV -
DML - Mission Creation Toolbox [no Lua required]
ChuckIV replied to cfrag's topic in Scripting Tips, Tricks & Issues
Hey cfrag, Got this error in our server tonight. Any ideas of what might be causing this error?? Mission script error: [string "cfxPlayerScore = {}..."]:1031: Unit doesn't exist stack traceback: [C]: ? [C]: in function 'getPlayerName' [string "cfxPlayerScore = {}..."]:1031: in function 'isScoreEvent' [string "cfxPlayerScore = {}..."]:1175: in function 'onEvent' [string "Scripts/World/EventHandlers.lua"]:13: in function <[string "Scripts/World/EventHandlers.lua"]:11> Any help would be appreciated thanks! ChuckIV -
DML - Mission Creation Toolbox [no Lua required]
ChuckIV replied to cfrag's topic in Scripting Tips, Tricks & Issues
cfrag, I'm playing around with the moving flare zone module. Is it possible to enter code in the table's Value instead of a number for altitude in the flare module? Something like <alt: ChuckIV 41st> ?? Can a lua code work here to return an altitude?? ChuckIV -
DML - Mission Creation Toolbox [no Lua required]
ChuckIV replied to cfrag's topic in Scripting Tips, Tricks & Issues
bump Here's the idea I'm working on now... A simulated "flare gun" shot from client aircraft... I've attached moving zones to client aircraft. Inside these zones I've placed flareZones controlled by radioMenu. Clients can now pull up an individual menu to fire their "gun". The problem, as you've probably guessed, is that if fires the flare UNDER the client aircraft at ground level. I need the flare to originate from the aircraft center of mass (not from the ground). Any thoughts how I can make this happen? In ME, you can do this easily "SEND FLARE FROM UNIT" but I was hoping to use DML. ChuckIV -
DML - Mission Creation Toolbox [no Lua required]
ChuckIV replied to cfrag's topic in Scripting Tips, Tricks & Issues
cfrag, Hope my post finds you and yours all happy and healthy. I was able to get SPAWNED fuel tanks to keep their unique names by placing all the tanks on the map as individual cloner templates. This allows playerScore to have unique point values for these tanks all across the map. However, I've lost the ability to make them delicate and attach smoke/fire to them. Here's the idea I'm working on now... A simulated "flare gun" shot from client aircraft... I've attached moving zones to client aircraft. Inside these zones I've placed flareZones controlled by radioMenu. Clients can now pull up an individual menu to fire their "gun". The problem, as you've probably guessed, is that if fires the flare UNDER the client aircraft at ground level. I need the flare to originate from the aircraft center of mass (not from the ground). Any thoughts how I can make this happen? In ME, you can do this easily "SEND FLARE FROM UNIT" but I was hoping to use DML. ChuckIV -
DML - Mission Creation Toolbox [no Lua required]
ChuckIV replied to cfrag's topic in Scripting Tips, Tricks & Issues
cfrag, Thank you for getting back to me on the "front line" idea and resetting the playerScore to zero. Right now, I'm working on a way to get points for shooting enemy fuel tanks (DCS name is "Tank 1") I can place these "Tank 1" static objects on the map with the ME and get points for shooting them in playerScore. I can also make them "delicate". I can also have them catch on fire using fireFX. Placing STATICS using the ME works great!!! However, I'm trying to SPAWN them in using a cloner template first. When I do this, spawning them in adds numbers to their names, and so I can't seem to add them to the playerScoreTable. Can you help me figure out a way to get points for shooting/bombing SPAWNED "Tank 1" static objects? ChuckIV -
DML - Mission Creation Toolbox [no Lua required]
ChuckIV replied to cfrag's topic in Scripting Tips, Tricks & Issues
Here is the post from above... See my replies in BLUE.... Huh. Full wipe on die, that's harsh. Certainly not difficult to implement. As @DD_Friar already asked, you want this ON TOP of deferred scoring, right? Yes, correct. I want ALL points earned to be set to ZERO if someone DIES regardless of how/where they die. Death means death. You don't even get negative points - you start all over. Although interesting as a concept, there are multiple questions that we need to resolve first: - How do we handle Helicopters that land in "enemy territory" to rescue someone or to insert troops? We only do WW2 scenarios; we don't use helicopters. This option or parameter would not be used in helicopter-based sorties. - What is enemy territory, and how would silly me discern that from neutral and friendly territory? "Enemy territory" is defined as any land across a front line. I have our front line defined by smoke columns across the countryside. In WW2, you had an advancing army that defined the "front line". I can create poly zones that define the "front line". So, I need a way to delete all playerScore points (multiply by zero) if someone dies, or by a 50% probability. Could this be done using DML, or by code and tapping into the playerScore somehow??? (multiply by zero) ChuckIV -
DML - Mission Creation Toolbox [no Lua required]
ChuckIV replied to cfrag's topic in Scripting Tips, Tricks & Issues
cfrag, I hope my post finds you happy and healthy! I read WAY BACK in a post you made in November, 2021 that stated that .miz files that have .lua files at MISSION START are "read" by ALL client machines... and, if you are a using a dedicated server, it would be much better if placed/read from the /HOOKS folder of the dedicated server itself. I've taken your advice and placed all 111 .lua (that's one-hundred eleven) files you've created over the years and put them ALL in my dedicated server's /HOOKS folder. My question now is this... In my .miz files that I've created for my server, how do I properly access your modules now? Instead of using MISSION START and DO SCRIPT, do I now use DO SCRIPT FILE and point them to the /HOOKS folder? I'm wanting to lessen the "load" on clients' computers as much as possible. Can you please advise me with how to properly use our dedicated server's /HOOKS folder? I, along with MANY others thank you very, very much with all the hard work you've done for the DCS community, and I await your humble reply. ChuckIV -
DML - Mission Creation Toolbox [no Lua required]
ChuckIV replied to cfrag's topic in Scripting Tips, Tricks & Issues
cfrag, or anyone that has suggestions... Here's what I would like to do and need some advice... 1. If a player dies, I would like their playerScore to be reset to zero regardless of what side of the front line they are on (you die - lose all points) 2. If a player lands in ENEMY territory across the front line, I would like there to be a 50% chance that they would either... Get "captured" and lose all player points, OR they "escape" back across the front line (back to safety) and lose no player points. Either way, a message will go out to both red and blue to show the "results" How would you guys go about setting this up?? I can create zones that define the "front line" sure enough but need help beyond that. Any help would be SUPER appreciated! ChuckIV -
DML - Mission Creation Toolbox [no Lua required]
ChuckIV replied to cfrag's topic in Scripting Tips, Tricks & Issues
You are THE MAN! cfrag!!! The sortie now works! Thank you so much for the very quick response! ChuckIV