AssumedPseudonym wrote: I can help with Question One.
Thank you AssumedPseudonym! That is exactly what I wanted!
PM wrote:#1. Add field maxReactorPower within your ship class. For example, maxReactorPower="1000" will prevent installation of reactors bigger than 100 MW.
Sorry but I need to limit reactor size based on weight. I really should have defined exactly
how I wanted to limit the reactor size
. But thank you for the simpler answer. What defines true genius is not if you can answer a question or not, but how simple the answer is.
pixelfck wrote: Assuming you refer here to the layout/drawing of the star-system map, you've touched what they call graph-theory in computer science. While the problem is not that difficult for a small set of nodes (star-system), the computational complexity rapidly increases: O(n^2) complexity.
If you are interested in it, I can send you two algorithms (one of which, in optimized form, is used in the mod) that both attempt to create a nice layout, each using a different theoretic approach.
That would be very helpful. So thank you!
pixelfck wrote: If you are not interested in the layout of the map, but just the connectivity of systems, you should be able to find most of what you are looking for in the source of the mod.
Cheers,
Pixelfck
I am actually interested in the layout of the map, but both are extremely important. Either way, I'll take a peek at your mod's source and at graph-theory. [notbeingserious] If I can learn Blender in a day, then I'm sure graph-theory can't be
that hard! [/notbeingserious]