I have been working on a new mod that makes use of the new SystemMap tag and the galactic map. Is there a way to set the node X and Y values in a script somewhere instead of hard-coding them?
I tried using OnGlobalTopologyCreated and looping through the nodes using sysGetNodes and objSetData and objSetGlobalData but my knowledge of how things work is limited.
Is this just not possible or is there some other way to do it?
My reason for asking is that my topology is fairly set, but I am trying out new things and adjusting the X and Y values so the systems display without names overlapping. It is a pain to have to go through all the nodes (I have around 50-60) and change the values each time. If I could just loop through them and use a formula to set the values it would make my life much simpler.
SystemMap Question
- alterecco
- Fleet Officer
- Posts: 1658
- Joined: Wed Jan 14, 2009 3:08 am
- Location: Previously enslaved by the Iocrym
I have not worked with the system map at all, but it sounds like something that is not possible. I suppose Drako would be the one who has most experience using the system map, so perhaps he has some comments?
-
- Fleet Officer
- Posts: 1036
- Joined: Wed Feb 03, 2010 4:28 am
- Location: Researching how to make St. Kats star go supernova.
- Contact:
I don't think there's a way to use script to set the map. I know that the nodes are set when the game is loaded. I think the map is the same way. You could probably do
But as far as I know you have to set it yourself. An easy way I found to do the map is to use a structured system, I.E.
I've found that you need at least 10 y difference for names not to overlap, 15-25 looks better. X is harder not to overlap, and short names can probably do about 35 difference, but most names need at least 50-60, and 70 would look better.
Code: Select all
x="10-20" y="100-120"
Code: Select all
<Node ID="1" x="-200" y="25">...
<Node ID="2" x="-175" y="-25">...
<Node ID="3" x="-150" y="25">...
<Node ID="4" x="-125" y="-25">...
...
Play in over 100 systems in a network. Play the 2011 Mod Of the Year
and the highest rated mod on Xelerus, The Network.
Play the July Mod of the Month, Fellow Pilgrims!
Play My other mods as well
(Drako Slyith)* I am a person
(Eliza chatbot)> Do you believe it is normal to be a person?
Thanks for the replies.
Regarding the "structured system" you talked about, how do you then set up the System information for those node tags? I tried to do something similar by putting all the node x and y values in a table but I couldn't get that to work. But I like the idea of at least having all the node tags together and then putting the system information for each node somewhere separate. Or by the "..." do you mean that all the node information is on one line?
Those numbers are pretty similar to what I have ended up with. I was initially just going left to right, but found that the names often overlapped and I would not have had enough space so I ended up staggering the Y values.Drako Slyith wrote:An easy way I found to do the map is to use a structured system, I.E.I've found that you need at least 10 y difference for names not to overlap, 15-25 looks better. X is harder not to overlap, and short names can probably do about 35 difference, but most names need at least 50-60, and 70 would look better.Code: Select all
<Node ID="1" x="-200" y="25">... <Node ID="2" x="-175" y="-25">... <Node ID="3" x="-150" y="25">... <Node ID="4" x="-125" y="-25">... ...
Regarding the "structured system" you talked about, how do you then set up the System information for those node tags? I tried to do something similar by putting all the node x and y values in a table but I couldn't get that to work. But I like the idea of at least having all the node tags together and then putting the system information for each node somewhere separate. Or by the "..." do you mean that all the node information is on one line?
-
- Fleet Officer
- Posts: 1036
- Joined: Wed Feb 03, 2010 4:28 am
- Location: Researching how to make St. Kats star go supernova.
- Contact:
I made a tutorial for making a topology here:http://www.neurohack.com/transcendence/ ... f=8&t=4007
Play in over 100 systems in a network. Play the 2011 Mod Of the Year
and the highest rated mod on Xelerus, The Network.
Play the July Mod of the Month, Fellow Pilgrims!
Play My other mods as well
(Drako Slyith)* I am a person
(Eliza chatbot)> Do you believe it is normal to be a person?
Yes, it was very helpful. There are only a few posts on the topic and I have referred to them many times while building my mod.Drako Slyith wrote:I made a tutorial for making a topology here:http://www.neurohack.com/transcendence/ ... f=8&t=4007
I also used your Network mod as a reference when trying to setup multiple stargates in systems, and in getting my code split up into separate modules. It saved me a lot of time being able to see those things already done.
-
- Fleet Officer
- Posts: 1036
- Joined: Wed Feb 03, 2010 4:28 am
- Location: Researching how to make St. Kats star go supernova.
- Contact:
Glad to hear that the code is helpful to someone. Feel free to use my code whenever it is helpful.
Play in over 100 systems in a network. Play the 2011 Mod Of the Year
and the highest rated mod on Xelerus, The Network.
Play the July Mod of the Month, Fellow Pilgrims!
Play My other mods as well
(Drako Slyith)* I am a person
(Eliza chatbot)> Do you believe it is normal to be a person?