Jump to content

Erikson

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Erikson

  1. Hi I'm trying to learn how to use the MOOSE framework by creating a simple mission. I try to use the UNIT_ZONE function. I basicay copied reference mission ZON-300 So in the scrips I made a unit RedVehicle1 = SPAWN :New( "BMP3 1"):InitLimit( 1, 0) This works fine and the unit spawns and drives the planned route. I then use the following line : BMP3Zone = ZONE_UNIT:New( "BMP3 Zone", Redvehicle1, 5 ) (Basicaly coppied straight from ZON-300) The DCS.log now gives the following error : Mission script error (Path) Attempt to call method GetVec2() (a nil value) Stack traceback : In function GetVec2() string (path) in function new string (path) in main chunk. Source code shows part of the ZONE_UNIT function is the GetVec2() function (presumably getting the coordinate of the unit to create the zone) Thinking this was because of late activation : I removed late activation , no change, I wraped the function in a : RedVehicle1:IsAlive() check but also no change Further reading leads me to beleave this is a value that I do not need to declare before hand. I cant see what I did wrong here as I coppied the line almost literaly from the demo mission. Is there any thing I'm missing here or am I using an outdated template??
  2. Hi Hardcard. Thanks for the help. I didn't know the actual swapr script would get encoded into the mission file. I thought it would just refer to the script (location) so I left the script in SP mode on my play machine thinking it would work on the server in the same way. I have now updated my play machine to a MP setting so I can edit missions for the server. Thanks again.
  3. Hello Hardcard. First I would like to thank you for the work you put in this scripting. I have installed the script on my dedicated server , but I ran into a small problem : The SWAPR script starts normally and spawns all available aircraft as a static model. I (or another player) joins the server and selects a aircraft. The aircraft I (or any other player) spawn in spawns normally BUT the static aircraft does NOT despawn. For ease of log reading : First occurance : 2021-06-29 22:08:51.613 Second occurance : 2021-06-29 22:11:02.867 My testing : 2021-06-30 07:31:27.381 During testing I also noticed that sheltered clients are not replaced bij statics even though my lua settings should be correct for sheltered replacements I have tried to check the logs but could not find any obvious errors. SWAPR Report.zip
×
×
  • Create New...