Thanks. The ideas come from experience. I haven't written an X3 script yet, but I have written a lot of code. Every problem solved adds to the "library".
gnasirator wrote:Automatic numbering required too much additional code, so I skipped that. And honestly, if you have a swarm of explorers, it doesn't matter which one is which, as long as you can see, what they are doing.
OK. I don't mind that you skipped it, but just so that you know a different POV, the only reason that I would use automatic naming would be to help me to identify each explorer so that I can watch its progress. Specifically, I want to know which sector it started in. I can do that easily enough by manually naming the explorers. In other words, the numbering would be the main reason for using automatic naming (for me). (But it is OK the way it is... that is why you have a config screen!)
My relation check didn't work. don't know, why. I now use another that works.
OK, good.
Right now I am working on the Duke's plot. The greatest challenge is that Duke's Buccaneer's keep sending me to assassinate pirates and Paranids. But I had to be friends with the pirates in order to start the Duke's plot, and I did build a large space fuel/weed complex, which resulted in many pirates being spawned. So the net result is that I have a *lot* of pirates roaming my universe, who *should* be friendly, but who become angry every time I kill a pirate.
This environment is hazardous for my explorers! I don't want them killing pirates, but I also don't want them to be killed because they ignore threats. And I *do* want them to maintain satellites in pirate sectors.
I do not have a solution for that problem.
I am just pointing it out.
Here is the t file that I have been using:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<language id="44">
<!-- [grey][/grey] [blue][/blue] [cyan][/cyan] [green][/green] [magenta][/magenta] [red][/red] -->
<!-- [white][/white] [yellow][/yellow] -->
<!--Galaxy Explorer -->
<page id="2008" title="scipt objects commands" descr="0">
<t id="558">EXPLORE_GALAXY</t>
<t id="1260">EXPLORE_GALAXY_CONFIG</t>
</page>
<page id="2010" title="commands" descr="Long version of commands assigned to ships using the command console. Page 2010 and 2011 belong together and hold short and long versions of the same commands">
<t id="558">Galaxy Explorer</t>
<t id="1260">Galaxy Explorer Configuration...</t>
</page>
<page id="2011" title="commands" descr="Short version of commands. These are the commands assigned to ships using the commandconsole. Page 2010 and 2011 belong together and hold short and long versions of the same commands">
<t id="558">Gal.Exp</t>
<t id="1260">Gal.Exp.Cfg</t>
</page>
<page id="2022" title="command info" descr=" ">
<t id="558">This command makes the ship explore the whole x-universe. Can optionally drop satellites and scan asteroids.</t>
<t id="1260">Galaxy Explorer Settings Menu</t>
</page>
<page id="7600" title="Command Overview" descr=" ">
<!--Explorer Befehle -->
<t id="1000">Galaxy Explorer</t>
<!-- <t id="2000">Start Galaxy Explorer...</t> -->
<t id="3100">Galaxy Explorer Settings</t>
<t id="3150">Drop sat type</t>
<t id="3220">Drop navSats</t>
<t id="3230">Drop adv. navSats</t>
<t id="3235">Drop sats at gates of large sectors</t>
<!-- Is this still used? (Bullwinkle) =============================================== -->
<t id="3240">Autobuy satellites</t>
<!-- ================================================================= -->
<t id="3300">Scan asteroids</t>
<t id="3310">Error: Need mineral scanner to scan asteroids.</t>
<t id="3400">Scan sectors</t>
<t id="3520">Radius of sector to scan</t>
<t id="3600">Automatically rename Explorers</t>
<t id="3700">Explore hostile sectors</t>
<t id="3800">Explore unknown sectors</t>
<t id="4000">Save Setup as Default</t>
<t id="5000">Load Setup from Default</t>
<t id="8000">Yes</t>
<t id="8500">Adv.</t>
<t id="9000">No</t>
<t id="9500">Std.</t>
<t id="9600">None</t>
</page>
</language>
Notes:
- Do you still use id 3240?
- I see what you mean about the menu command being the same as the text shown in the Property view. However, for human users, a consistent name is quicker to scan. So "Galaxy Explorer" makes sense in both locations. This is consistent with Station Camper, for example, which shows "Station Camper" in the Property view when it is working. I like it that way... it is direct and easy to spot. (But you're the boss.)
- What does the "G" in "G ASAT ROID 120%" stand for?
- All caps is harder to read than mixed case. It takes longer for the eye to scan.
Overall, Galaxy Explorers is working well! You have a nice script in progress here, Gnasirator.