galevsky06 Posted April 24, 2013 Posted April 24, 2013 Hello, I am creating a mission editor for specific purposes and I wonder how to randomize unit locations: how to validate the GPS coordinates ? How to be sure that you don't place units into buildings ? Any solution ?
mjeh Posted April 24, 2013 Posted April 24, 2013 Unless you're a real lua-wizard, you're pretty much going to have to use preset locations
RagnarDa Posted April 24, 2013 Posted April 24, 2013 Its not even possible in Lua-code to place units at a random location, right? DCS AJS37 HACKERMAN There will always be bugs. If everything is a priority nothing is.
ED Team NineLine Posted April 24, 2013 ED Team Posted April 24, 2013 You can place units, set them to late activation, then with a random trigger haven them appear or not based on a certain percentage. If thats what you mean... Forum Rules • My YouTube • My Discord - NineLine#0440• **How to Report a Bug**
galevsky06 Posted April 24, 2013 Author Posted April 24, 2013 (edited) [...]If thats what you mean... Absolutely not. I was thinking about generating random GPS coordinates to locate ground units randomly. Avoiding bugs (e.g. T-80 inside map building), if possible. And my question let me think about the current ED mission generator.... how does it generate ground units ? Predefined locations list ? Map info computing ? That is the question. PS: my tool writes down the mission file in its own, you see ? I can write whatever GPS location to any ground unit..... Edited April 24, 2013 by galevsky06
mjeh Posted April 24, 2013 Posted April 24, 2013 And my question let me think about the current ED mission generator.... how does it generate ground units ? Predefined locations list ? Predefined locations and force templates, yes
galevsky06 Posted April 24, 2013 Author Posted April 24, 2013 Predefined locations and force templates, yes Ok, thanks a lot :smilewink:
Grimes Posted April 24, 2013 Posted April 24, 2013 Somewhere in the files is probably a database of all of the building/object locations so that the editor can render them or give an error if the object is placed in a bad location. IE placing vehicles on water or a FARP on terrain that is to steep. I have no clue where that information would be. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
galevsky06 Posted April 25, 2013 Author Posted April 25, 2013 Yes, I don't know if I should read .ind map files or not, anyway, I don't know how to do it.
HiJack Posted April 25, 2013 Posted April 25, 2013 Group spawn sectors, the group can spawn somewhere inside the square sector. The waypoint assigmnments can be the same. And a function for automatic hiding among buildings in a willage if the willage is close.
xentxo Posted April 26, 2013 Posted April 26, 2013 PS: my tool writes down the mission file in its own, you see ? I can write whatever GPS location to any ground unit..... Can be usefull to create a dynamic campaign if you keep the results & vehicle locations of the last mission and feed these data with a new/next mission. Any details?
galevsky06 Posted April 26, 2013 Author Posted April 26, 2013 (edited) Can be usefull to create a dynamic campaign if you keep the results & vehicle locations of the last mission and feed these data with a new/next mission. Any details? I am working on DCS Lobby, kind of Hyperlobby dedicated to DCS, chat with different rooms (Dogfight, A/A, TeamvTeam, for both normal business and ladders/Cups). That is the reason why I am working on 3 modules: Mission generator: (Air units are easy to handle, ground units more difficult.) One interesting feature: generating 2 files (one-coalition POV mission) with trigger zones and list of units to locate/use with restrictions, then creation of the final mission file (the sum of the two files prepared by both teams). Mission integrity check: lua code is calling binary file to encrypt and send to remote server the missions files sha1, just to be sure that the mission played is the one that have been generated without modifications. Result computing: a file is built during the flight, and will be sent by lua at the end of the mission through secured and encrypted channel to remote server (kind of ACMI, but very light, I don't need details but only a few events for scoring matter) With these modules, I will be able to make people meet each other, and also organize matches into a secured environment (I am also interested into sa-sim.com work) via the lobby. I am currently looking for a solution to launch MP client from the lobby with the server IP to connect as parameter. Further details and screenshots later. Edited April 26, 2013 by galevsky06
Recommended Posts