[SCR] [X3:TC/AP] [v1.9.8.12] [03/23/14] Galaxy Explorer
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
-
- Posts: 1114
- Joined: Mon, 13. Dec 04, 16:15
- DrBullwinkle
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
It is only a problem if two or more Explorers scan the same sector, then choose the same next sector and repeat. In that case, you could have multiple Explorers mapping the entire galaxy together.gnasirator wrote:It doesn't matter if two are working simultaneously in one sector. they might even work on different tasks.
In absolute worst case, the sector is scanned twice. but that's no problem.
However, I would be happy with ONE Explorer that does the job well!
Thanks... downloading now...
Peace through superior firepower
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
-
- Posts: 1114
- Joined: Mon, 13. Dec 04, 16:15
the odds for that are (1/amount of gates)^jumps.
soooo that's a VERY small chance for them to discover the whole universe together. And therefore I don't think it's absolutely necessary to implement a check.
that check would be VERY much work ... no thanks. the lord of randomness will do that for me just fine
soooo that's a VERY small chance for them to discover the whole universe together. And therefore I don't think it's absolutely necessary to implement a check.
that check would be VERY much work ... no thanks. the lord of randomness will do that for me just fine
Last edited by gnasirator on Thu, 26. Jan 12, 00:14, edited 1 time in total.
Skripte:
- DrBullwinkle
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
Sounds good. The important thing is that they should not all make the same decision of which sector to explore next.
In the Maintain case, how do your Explorers detect when a satellite has been destroyed? Do they have to randomly stumble upon the affected sector? Or can they do a higher-priority galaxy-wide scan for missing satellites?
You should get some sleep... I can wait until tomorrow!
In the Maintain case, how do your Explorers detect when a satellite has been destroyed? Do they have to randomly stumble upon the affected sector? Or can they do a higher-priority galaxy-wide scan for missing satellites?
You should get some sleep... I can wait until tomorrow!
Peace through superior firepower
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
-
- Posts: 1114
- Joined: Mon, 13. Dec 04, 16:15
they stumble through every sector. that's their basic principle of working their way through the universe.
so it's a good idea to have 10+ of them flying around.
you can see the explorers as some kind of 'fire and forget' missiles. set them to work and hide them in your assets view
they check for missing sats inside of sectors only. just as you said -> keep it simple.
of course I could build some script, analysing every sector in the universe and send out maintenance bots for exactly that sector. but that's a totally different approach and would require lots of work for this script.
good night
so it's a good idea to have 10+ of them flying around.
you can see the explorers as some kind of 'fire and forget' missiles. set them to work and hide them in your assets view
they check for missing sats inside of sectors only. just as you said -> keep it simple.
of course I could build some script, analysing every sector in the universe and send out maintenance bots for exactly that sector. but that's a totally different approach and would require lots of work for this script.
good night
Skripte:
- DrBullwinkle
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
No, no! Your approach is perfect!gnasirator wrote:they stumble through every sector. ,,, so it's a good idea to have 10+ of them flying around...
...of course I could build some script, analysing every sector in the universe and send out maintenance bots for exactly that sector. but that's a totally different approach and would require lots of work for this script.
If I have to have 10 Explorers, that is another reason why it is not important to charge a fee for dropping a satellite (but I don't mind if you do charge a fee. I don't care on that point ).
Peace through superior firepower
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
-
- Posts: 1114
- Joined: Mon, 13. Dec 04, 16:15
- DrBullwinkle
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
One should be fine for the first pass.
However, for maintaining destroyed satellites, a single Explorer cannot possibly keep up with enemy destruction of satellites. Not in my game, anyway.
Especially in Terran space.
So 10 Explorers is the solution, and it is a good one, IMHO.
However, for maintaining destroyed satellites, a single Explorer cannot possibly keep up with enemy destruction of satellites. Not in my game, anyway.
Especially in Terran space.
So 10 Explorers is the solution, and it is a good one, IMHO.
Peace through superior firepower
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
-
- Posts: 1114
- Joined: Mon, 13. Dec 04, 16:15
- DrBullwinkle
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
The plan seems good.
Here is some feedback on the current version:
EDIT: I have updated the following list based on later discussions. I wanted to keep the list current so that you can work from it.
- Change text in your Original Post from "advanced ship commands" to "Additional Ship Commands".
- Change text in your OP from 'This script adds a command called "Explore Galaxy".' to 'This script adds a command called "Explore Galaxy" to the Custom menu. Also, there is a "Configure Galaxy Explorers" option on the Additional Ship Commands menu.'
- If I run the Config menu on the Player ship (which seemed the most obvious thing to do the first time), it does not seem to work (as intended, probably) although it *does* change the name of my ship! Maybe the simplest solution is to make the default for renaming "Off".
- Change "Automatic naming" to "Automatically rename Explorers".
- The menu choice "Drop Sats at Gates" should tell the user that it only affects large sectors. Maybe "Drop Sats at Gates of large sectors"?
- What is "Range of inner sector scan"? Is that a way to control whether the Explorer scans outside of the gates? That would be a nice feature! The text does not explain the function (not for me, anyway). Also, I think the default should be to scan slightly outside the gates, because pirate bases are usually slightly outside the gates. How about making the default 110-120%?
- A nice-to-have feature would be a way to remember default settings for other Explorers. Perhaps an option to "Make these the default settings"?
- OR put the default values in your t file. That way a user can change them semi-easily.
- Speaking of the t file, you have yours packed with encryption, which I do not think is correct for TC. I suggest that you simply distribute the xml file without making it a .pck. (Or pack it without encryption so that users can open it with ordinary archival tools.)
- Consider combining the start command ("Explore Galaxy") and the Config menu into a single sub-menu on the Custom menu. It is a bad habit to make the user look in two different places for one feature. Alternatively, tell the user about the other location (with a msg).
- Oh, one more thing... I see that you have named your scripts "plugin.explorer...". While that is an obvious name, it would be far too easy for someone else to choose the same name, thereby causing a conflict with your script. A more unique name would be better. Some possible naming choices:
- plugin.gnas.galaxyexplorer...
- plugin.gnas.explorer...
- plugin.galaxyexplorer...
- plugin.gnasirator.galaxyexplorer...
- plugin.gnasirator.explorer...
Here is some feedback on the current version:
EDIT: I have updated the following list based on later discussions. I wanted to keep the list current so that you can work from it.
- Change text in your Original Post from "advanced ship commands" to "Additional Ship Commands".
- Change text in your OP from 'This script adds a command called "Explore Galaxy".' to 'This script adds a command called "Explore Galaxy" to the Custom menu. Also, there is a "Configure Galaxy Explorers" option on the Additional Ship Commands menu.'
- If I run the Config menu on the Player ship (which seemed the most obvious thing to do the first time), it does not seem to work (as intended, probably) although it *does* change the name of my ship! Maybe the simplest solution is to make the default for renaming "Off".
- Change "Automatic naming" to "Automatically rename Explorers".
- The menu choice "Drop Sats at Gates" should tell the user that it only affects large sectors. Maybe "Drop Sats at Gates of large sectors"?
- What is "Range of inner sector scan"? Is that a way to control whether the Explorer scans outside of the gates? That would be a nice feature! The text does not explain the function (not for me, anyway). Also, I think the default should be to scan slightly outside the gates, because pirate bases are usually slightly outside the gates. How about making the default 110-120%?
- A nice-to-have feature would be a way to remember default settings for other Explorers. Perhaps an option to "Make these the default settings"?
- OR put the default values in your t file. That way a user can change them semi-easily.
- Speaking of the t file, you have yours packed with encryption, which I do not think is correct for TC. I suggest that you simply distribute the xml file without making it a .pck. (Or pack it without encryption so that users can open it with ordinary archival tools.)
- Consider combining the start command ("Explore Galaxy") and the Config menu into a single sub-menu on the Custom menu. It is a bad habit to make the user look in two different places for one feature. Alternatively, tell the user about the other location (with a msg).
- Oh, one more thing... I see that you have named your scripts "plugin.explorer...". While that is an obvious name, it would be far too easy for someone else to choose the same name, thereby causing a conflict with your script. A more unique name would be better. Some possible naming choices:
- plugin.gnas.galaxyexplorer...
- plugin.gnas.explorer...
- plugin.galaxyexplorer...
- plugin.gnasirator.galaxyexplorer...
- plugin.gnasirator.explorer...
Last edited by DrBullwinkle on Thu, 26. Jan 12, 18:56, edited 4 times in total.
Peace through superior firepower
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
-
- Posts: 1114
- Joined: Mon, 13. Dec 04, 16:15
Yes, exactly that. 100% scans the sector until the gates. 200% twice the radius and so on.DrBullwinkle wrote:What is "Range of inner sector scan"? Is that a way to control whether the Explorer scans outside of the gates? That would be a nice feature! The text does not explain the function (not for me, anyway). Also, I think the default should be to scan slightly outside the gates, because pirate bases are usually slightly outside the gates.
Got to go, will answer the rest later.
AND you sure, that after closing the config menu, the explorers start to work? They do rename, yes, but they shouldn't (CAN'T) start their job.
Renaming is therefore switchable...
Skripte:
- DrBullwinkle
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
OK, good. That is a nice feature! I cannot think of a better name for it right now. Perhaps we can think about it for the future. What do you think of making the default 110-120%?gnasirator wrote:100% scans the sector until the gates. 200% twice the radius and so on.
OK. So:AND you sure, that after closing the config menu, the explorers start to work? They do rename, yes, but they shouldn't (CAN'T) start their job.
Renaming is therefore switchable...
1) I suggest that the default for Automatic naming should be "No".
2) Maybe better text would be "Automatically rename Explorers".
EDIT: Aha! I found the "Explore Galaxy" command on the Custom menu! I missed that the first three or four times that I tried it.
So that changes my suggestion for renaming the configuration menu. Let me ask this... can you replace the "Explore Galaxy" command on the Custom menu with your configuration menu? Then add an On/Off switch? I think it is a bad habit to make the user look in two entirely different places to control a single function. (Yes, I know that EgoSoft does that commonly, but that is one of the things that makes X3 difficult to play.)
Also, I updated my previous message so that you can work from that list.
Peace through superior firepower
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
-
- Posts: 1114
- Joined: Mon, 13. Dec 04, 16:15
jep you're right. usability could be improved in my script
Soo, I would do it like lucike in his commercial agent script. only ONE command, which opens the menu and in there is the command to start the explorer. good idea.
and if you know a way to rename the ships back to normal after their job is cancelled, let me know pls. I can't think of a way right now. but it exists. lucike is doing exactly that with his commercial agents.
and thanks for the list. I will work through it, next time I have some spare time for programming. I'm visiting my girlfriend over the weekend, so no time.
But as always, I like you ideas. thanks
Soo, I would do it like lucike in his commercial agent script. only ONE command, which opens the menu and in there is the command to start the explorer. good idea.
and if you know a way to rename the ships back to normal after their job is cancelled, let me know pls. I can't think of a way right now. but it exists. lucike is doing exactly that with his commercial agents.
and thanks for the list. I will work through it, next time I have some spare time for programming. I'm visiting my girlfriend over the weekend, so no time.
But as always, I like you ideas. thanks
Skripte:
- DrBullwinkle
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
Yes, Lucike does many things very well. His scripts are organized, rugged, and well-documented. Most of them serve useful purposes, and some of them are the best at what they do.gnasirator wrote:Soo, I would do it like lucike in his commercial agent script. only ONE command, which opens the menu and in there is the command to start the explorer. good idea.
The only thing that I do not like about Lucike's scripts is that he does not stop when the job is done. Most of his scripts are designed to simplify an overly complicated manual process (which he does well). HOWEVER he then goes too far, by adding overly complicated stuff that makes his scripts more difficult to learn than the vanilla commands that they are meant to simplify! (And don't get me started on pilots, which are unrealistic in an AI-centric game, don't work with some vanilla scripts, and add complication to an already too-complicated task.)
So mimic Lucike's best habits and avoid his tendency to complicate things; then your code will be perfect.
Store the original name of the ship in an array that is saved with the game save?if you know a way to rename the ships back to normal after their job is cancelled, let me know pls. I can't think of a way right now. but it exists. lucike is doing exactly that with his commercial agents.
As for girlfriends, they come first. Have a great weekend!
Peace through superior firepower
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
-
- Posts: 1114
- Joined: Mon, 13. Dec 04, 16:15
- DrBullwinkle
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
If I read this correctly, it goes something like this:gnasirator wrote:the problem is ... how to catch the moment when the player orders the ship to stop, or gives the ship a new command.
Code: Select all
While [CAG main script] is on the stack
loop
When [no longer on the stack]
Rename
Peace through superior firepower
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
-
- Posts: 1114
- Joined: Mon, 13. Dec 04, 16:15
- DrBullwinkle
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
I am happy to help!
By the way, I found some interesting links at the bottom of Gazz's page:
By the way, I found some interesting links at the bottom of Gazz's page:
- (TUTORIAL) Creating good-looking menus + two library scripts
Menu format library and Expand/Collapse Menu lib.scrat.format
[Scr/Exe] Text To Speech (Don't know how well this works but it sounds fun)
Peace through superior firepower
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
-
- Posts: 1114
- Joined: Mon, 13. Dec 04, 16:15
jep I was reading that menu tutorial while I tried to figure out how to do menus. sadly the link is down. file not available. so I had to grab a menu tutorial from somewhere else. add some tries & errors and voila, menu worked.
it's only basic but more than enough for me.
the format menu lib sounds interesting but I don't think I need it. It's enough to set up the basic parameters right now and I don't really want to make the menus too complicated.
it's only basic but more than enough for me.
the format menu lib sounds interesting but I don't think I need it. It's enough to set up the basic parameters right now and I don't really want to make the menus too complicated.
Skripte:
-
- Posts: 40
- Joined: Mon, 18. Jul 11, 04:59
Yeah it appears I mixed your two scripts up. They're listed with the same name in the script index. Sorry!gnasirator wrote:That's strange, as my script doesn't use pilots at all. Do you mean the OTHER Universe ExplorerS script?Firepower01 wrote:A small fee sounds fair to me.
I also picked up an explorer that was sending me distress calls about being low on oxygen. I think he ejected from his ship when he was getting killed. He's also seemed to have disappear from my cargo bay, and I do have a cargo life support system. Odd
I'd also like to figure out a way to get those pirates to stop killing my satellites :/
@Malakie:
Okay I will think about a new Name.
The sector black list sounds doable but who should enemy sectors be blacklisted for? For the other explorers? But what if behind that enemy sector is another unknown one? Explorers would want to discover that.
I spontaneously can think of an option "Avoid enemy sectors". If switched on, the explorers would leave a sector immediately if the newly disocvered one turns out to be hostile. And they would not fly into sectors with enemy owner races at all (as soon as they are discovered, though. They won't be able to predict if unknown sectors are enemy).
Would that be okay?