Comments (4)
getGroupRoute returns the route table as defined in the editor. There is no scripting function that returns a route currently assigned to a group. Thus it checks the ME DB to verify the group exists in the miz file. Currently mist doesn't save the route pushed with mist.goRoute or if you spawn a group with a route table. If you create your own route there is nothing stopping you from saving that somewhere to access at a later point similar to getGroupRoute.
from missionscriptingtools.
ME databases are specifically there as copy of the databases as the mission was saved in the editor. They aren't supposed to be used with dynamically added groups. Think of it like this, you have a group you placed in the editor, a few units die, and for whatever reason you decide to despawn the group. If you spawn the group later, keep the group name/id the same, but don't spawn the dead units in it, then updateDBTables and consequently mist.DBs.groupsByName, etc will be updated to reflect the new group contents. If you wanted to "repair" the group by respawning it in its entirety you could use a reference from mist.DBs.MEgroupsByName.
Basically had to choose between keeping an original copy or making a function that returned the same or similar format on request.
from missionscriptingtools.
Roger that. Makes sense. Some functions use ME DBs to find groups though. Like getGroupRoute for example. Is that intentional? I tried to use those with dynamically spawned groups and they just return alert that group is not found in ME database.
Original groups in ME DBs also have original routes? Perhaps there should be another set of functions to work with the living DB... dunno... I think I will just try that for now as a workaround.
from missionscriptingtools.
Then it seems this is not an issue. Closing.
Thanks for helping me understand this stuff.
from missionscriptingtools.
Related Issues (20)
- mist.getUnitsInPolygon errors v4.3.74 HOT 1
- playerCanDrive is being overridden to true.
- please add neutral group HOT 1
- Aircraft groups "go dumb" after respawnInZone() or teleportInZone() HOT 1
- mist.flagFunc.mapobjs_dead_zones not working in later DCS HOT 2
- getUnitsInZones return value seems incorrect? HOT 2
- Line 5291 compares string with number HOT 1
- Issue with teleport functions or documentation HOT 1
- Cannot spawn vehicles on runway HOT 2
- Potential Typo issue - line 3610 of v4_5_99 HOT 1
- Advanced Waypoint actions are not by teleportToPoint HOT 1
- Invisible FARPs render getUnitsInZones non working HOT 1
- Message.add is spamming DCS's message history HOT 3
- Part of MIST interfering with password-protected Game Master slots, leading to mission script errors HOT 3
- Specifying string name does not work after latest DCS update HOT 6
- marker.pos cannot receive position unit:getPoint() HOT 2
- typo
- Object.getPosition() calls generating errors with some statics HOT 1
- dynAddStatic should set heading to radians
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from missionscriptingtools.