It looks like you're new here. If you want to get involved, click one of these buttons!
EDG wrote:Feature Requests:
- The ability to delete stars that do not have routes attached. This would make the 2D maps less cluttered (especially for situations where you can't go to the stars without routes anyway).
- And also, an option to label only the stars that have routes associated with them.
Comments
For #2, thats not something you'd do in script, but rather use a script to set the visibility of the bodies, and then set the filters to 'hide labels only'
e.g. I use "Proximity Routes" to connect stars together, but I don't want to see the routes that don't ultimately connect back to Sol (that are their own little route networks somewhere else).
I can't even find a property in there that allows me to check if the system is on a route (and therefore if it needs a visible label or not). There's an "OnRoute" method in there that says:
, which (like many of the entries in there) is pretty meaningless to me because there's no explanation of what that means or even does. I tried to modify the LabelDistance plugin so that if a system was on a route then its label would be shown in a different colour (just as a start), but I can't even figure out how to do that. I'd guess it may have something to do with the GetRoute method, and then somehow using OnRoute (if that does what it sounds like, which is to see if a system is on a route or not) but I have no idea.
There's also a RouteWaypoint class, but I have no idea what that does either because there's no explanation.
This is what i have so far (this is based on the Mass Label Distance change plugin at http://www.nbos.com/nox/index.php?action=1001&id=101 ):
Does anyone have any idea how to do this?
So, does anyone know what these functions do (preferably with examples)? Or how I can change route properties en masse with a plugin?
- Mark all systems on the map hidden (visible = false)
- Cycle through all the routes (use the Sector's RouteCount method to get the number of routes, and GetRoute to get the route object)
- For each route, Cycle through all the waypoints for that route (use the Route's WaypointCount and GetWaypoint methods)
- Set the visibility of the waypoint's body attribute to true
- Refresh the map
I'm doing a fair bit of in-system activity. Is it possible for AS to allow the creation of and perhaps display in-system trade routes?
Obviously the script to calculate them would have to differ because you'd have to use system bodies and their populations etc rather than using full system data and you'd want to see the route lines on your system diagram.
So my question is whether something like this is possible? There's a lot of interest can happen within a system with a lot of inhabited bodies and space stations particularly.
What it would show though is the relationship between populated bodies and perhaps which traded with which.
I guess visually it could get quite ugly and that in itself might be a reason to not do this. I suppose I just have a perl script or something figure out the appropriate trade volumes and dump it out as a matrix. I mostly want it as an automated way to suggest where the heavy trade flows would be.
Depending on your assumptions about costs of inter-system travel (can be quite expensive in delta V for hard sci universes/games versus the space opera ones), you might end up having routes that are/are not economically or practically viable at different times due to orbital mechanics and the amount of delta V involved. Getting from A to B when they are both near in a system might be hugely different than A to B when they are on opposite sides of the sun.
Similarly, if B has a very eccentric orbit and/or one heavily inclined to the principal plane of the system, A and B might be close on one part of B's eccentric orbit, but very far on the other.
So I have to agree with you. My intial idea was it would be nice to see the routes, but they could well be messy and somewhat periodic.
Sometimes something that seemed like a good idea on first glance gets the bin when further analysis is applied.
Toby
Long time getting back to this, but I'll look at that script.
I'd may also want a script like that which respects political boundaries as those would potentially limit or prohibit trade.
I'm not a perl pro, but I did overhaul a bunch of perl used to monitor and control an n-tier, distributed cell phone policy networked stack and I was told I did pretty well so I can take a crack at it.
It's funny how this is like 8 years old... and now I'm getting back to a variation of the original project. Life sure sidelines some plans for a long time...