Jump to content

Qazplm

Members
  • Posts

    71
  • Joined

  • Last visited

About Qazplm

  • Birthday 10/03/1980

Personal Information

  • Flight Simulators
    dcs world:fa18C ka50 fc3
  • Location
    china
  • Interests
    Flight simulation;Learn

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Since it's not recommended, then let's not do it. I think I can now meet my needs based on your suggestions. Thank you! You have been of great help to me. I can now smoothly export the data of the group and regenerate the group with them. There is just one problem: the newly generated group cannot perform the tasks of the original group. I think I completely copied the data of the group.
  2. I think I must have found a way to obtain the data of groups or units. But when I wanted to write to a new file, there was a problem. io.open() couldn't be used. I really don't understand. I won't do it anymore. This has already achieved my goal. Thank you for your help! Thank you!
  3. Thank you. Finally, I'd like to ask, what could be the reason for this? [string"..."] :5: stack overflow
  4. The parameter of the ne.dostring_in() function is a string, and the output is also a string. The parameter of the a_do_script() function is code and the output is a string. Is that what it means?
  5. ''' local GetMoban=[[ function New() local qpa={} for i,k in pairs(mission.coalition.red.country[1].plane.group[2]) do qpa[#qpa+1]=k end return qpa end function ToStringEx(value) if value~=nil then if type(value)=='table' then return TableToStr(value) elseif type(value)=='string' then return "\'"..value.."\'" elseif type(value)=="function" then return "\'这是一个函数\'" else return tostring(value) end end end function TableToStr(t) if t == nil then return "" end local retstr= "{" local i = 1 for key,value in pairs(t) do if type(value) == "function" then key=nil end local signal = "," if i==1 then signal = "" end if key == i then retstr = retstr..signal..ToStringEx(value) else if type(key)=='number' or type(key) == 'string' then retstr = retstr..signal..'['..ToStringEx(key).."]="..ToStringEx(value) else if type(key)=='userdata' then retstr = retstr..signal.."*s"..TableToStr(getmetatable(key)).."*e".."="..ToStringEx(value) else retstr = retstr..signal..key.."="..ToStringEx(value) end end end i = i+1 end retstr = retstr.."}" return retstr end ---- local Templates=New() local TemplateList=TableToStr(Templates) return TemplateList ]] local result, success = net.dostring_in('mission',GetMoban) local TemplateList=loadstring("return"..result)() ''' Is there anything wrong with my writing like this? Find the group list, convert it to a string output, and then convert it to code.
  6. 译文 I just want to obtain the data list or template of the group from mission. But it always fails. However, small lists can be output, such as the position of the target eye. Is it true that net.dostring_in() cannot output very large strings?
  7. Hey, guys, where can I find detailed descriptions of the a_do_script() and net.dostring_in() functions? I've been looking for a long time but still can't find it. Can someone tell me? Thank you!
  8. Hello, buddy. I want to obtain a template for a unit or group, then modify the name and activate it into a new unit. How should I do it?
  9. Is there a mandatory requirement for where this audio file should be placed?
  10. Yes, I think I must have confused "unit" with "group"
  11. Thank you! I want to obtain a data list of a unit or group, which includes its name, mount, task, coordinates, etc. How should it be done? Which function should be used? I didn't find the relevant function.
  12. Hey, guys! When I use this code to obtain the coordinates of a unit, it returns nil. What's the problem here? local tank = Unit.getByName('Tank') local coord= tank:getPoint() trigger.action.smoke(coord,trigger.smokeColor.Blue) The prompt "getPoint" is empty and getName() getLife() getPoint....... thank you,
  13. I don't understand either. It looks as if the function is set to trigger, once, continuously, with condition changes,...... Is it this function? I'm looking for a function that can determine the position after the player clicks the switch through the task script. Can it do it?
  14. Thank you. Is this function a function of DCS? Or is it from MIST or MOOSE?
×
×
  • Create New...