[SCR] Memia AutoScan Asteroids (V1.10 - 25/06/2013)
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
[SCR] Memia AutoScan Asteroids (V1.10 - 25/06/2013)
Memia AutoScan Asteroids
An AL Plugin for Terran Conflict and Albion Prelude that automatically scans asteroids within range.
Background
Tired of having to manually click that "Scan" button every time you want to scan an asteroid? Well I am, hence the script
How to Use
Ensure you have a Mineral Scanner installed into your ship and that the plugin is turned on (see Installation below).
Simply pass within the range of the scanner (default 10km) and the asteroid will be automatically scanned on your behalf.
The plugin only works on the Player's current ship.
Installation
To use, simply install the SPK and then ensure the plugin is switched on in the Artificial Life plugin section (Gameplay -> Artificial Life Settings -> Memia AutoScan Asteroids).
Download
Download the SPK from here:
[ external image ]
Version History
Version 1.10 (25.06.2013)
Allow the plugin to be disabled in AL settings.
Version 1 (06.08.2010)
Initial Release
Resources used
None
Compatibility
X3:TC - All versions
X3:AP - All versions
An AL Plugin for Terran Conflict and Albion Prelude that automatically scans asteroids within range.
Background
Tired of having to manually click that "Scan" button every time you want to scan an asteroid? Well I am, hence the script
How to Use
Ensure you have a Mineral Scanner installed into your ship and that the plugin is turned on (see Installation below).
Simply pass within the range of the scanner (default 10km) and the asteroid will be automatically scanned on your behalf.
The plugin only works on the Player's current ship.
Installation
To use, simply install the SPK and then ensure the plugin is switched on in the Artificial Life plugin section (Gameplay -> Artificial Life Settings -> Memia AutoScan Asteroids).
Download
Download the SPK from here:
[ external image ]
Version History
Version 1.10 (25.06.2013)
Allow the plugin to be disabled in AL settings.
Version 1 (06.08.2010)
Initial Release
Resources used
None
Compatibility
X3:TC - All versions
X3:AP - All versions
Last edited by memia on Wed, 26. Jun 13, 23:09, edited 3 times in total.
A security system is only as strong as its weakest link
niiiiice!
I just had to post to give my thanks for this one. I built large complex ever on Aldrin, using "all" asteroids (going by official sector specs that come with complex calculator). I carefully calculated what I needed to support 200 x CIG laser factories. The only problem was that although my calculations were correct, it kept running out of silicon. With Aldrin being as large as it is, it's pretty much impossible to do a full scan at various elevations, in my lifetime anyways. So as soon as I had this installed I went to Aldrin and seconds later, up turns a 50 yield Silicon asteroid. You lil bewdy
-
- Posts: 116
- Joined: Thu, 8. Sep 11, 14:03
Shame.. This were some of the best mods i had for TC if any1 have the files and can upload them i'd really appriciate it.
EDIT
Guess what! I found the .spk for all of them stashed waaay down in my garbage can.. (finally something good came from that i never empty it )
http://www.mediafire.com/?96n7fqnl7ptdcjx[/url]
EDIT
Guess what! I found the .spk for all of them stashed waaay down in my garbage can.. (finally something good came from that i never empty it )
http://www.mediafire.com/?96n7fqnl7ptdcjx[/url]
F signature
LOL my garbage can is about 7TB of HD spacePeanutcat wrote:Guess what! I found the .spk for all of them stashed waaay down in my garbage can.. (finally something good came from that i never empty it )
"If you’re not prepared to be wrong, you’ll never come up with anything original."
Sir Ken Robinson
Sir Ken Robinson
I'm using X3 AP, with a bunch of mods/scripts, and it does show up in the AL menu - but it doesn't work.
I think it is this part that has a problem.
If I run that script manually when an asteroid is in range (and with a Mineral Scanner installed in my ship) it _doesn't_ change the asteroid to scanned.
I wonder if the mineral scanner isn't being picked up somehow ...
Any suggestions?
[EDIT] Indeed if I remove the IF statement (Line 1 and Line 17) that checks for Mineral Scanner then the script DOES work. Perhaps it doesn't consider the Mineral Scanner as 'in the cargobay' as it is installed?
In the meantime, if people want to use this with AP they can just edit it in the script editor like I did.
Increasing the mineral scanner range would be nice too....
I think it is this part that has a problem.
Code: Select all
001 if [PLAYERSHIP] -> get volume of ware Mineral Scanner in cargo bay
002 |$sector = [PLAYERSHIP] -> get sector
003 |$asteroids = $sector -> get asteroid array from sector
004 |
005 |
006 |$numAsteroids = size of array $asteroids
007 |while $numAsteroids > -1
008 ||$theRoid = $asteroids[$numAsteroids]
009 ||if not $theRoid -> is asteroid scanned
010 |||if [PLAYERSHIP] -> is in mineral scanner range: asteroid=$theRoid
011 ||||$theRoid -> set asteroid scanned to [TRUE]
012 |||end
013 ||end
014 ||
015 ||$numAsteroids = $numAsteroids - 1
016 |end
017 end
018
019 return null
I wonder if the mineral scanner isn't being picked up somehow ...
Any suggestions?
[EDIT] Indeed if I remove the IF statement (Line 1 and Line 17) that checks for Mineral Scanner then the script DOES work. Perhaps it doesn't consider the Mineral Scanner as 'in the cargobay' as it is installed?
In the meantime, if people want to use this with AP they can just edit it in the script editor like I did.
Increasing the mineral scanner range would be nice too....
- DrBullwinkle
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
It works fine for me in AP.
Are you using a ship that has the mineral scanner as a built-in ware?
Are you using a ship that has the mineral scanner as a built-in ware?
Last edited by DrBullwinkle on Wed, 21. Nov 12, 13:20, edited 2 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)
Nope. I did create the Mineral Scanner using Cycrow's Cheat Collection - if that makes a difference.DrBullwinkle wrote:Are you using a ship that has the mineral scanner as a built-in ware?
[EDIT] Actually, cancel that 'Nope' and make it a 'Don't think so'. I was using a Terran Mobile Mining Base-Ship. I don't see anything about it having Mineral Scanner as a built-in ware. But if a ship was going to, I guess that would be the one.
Last edited by ptb_ptb on Wed, 14. Nov 12, 21:22, edited 1 time in total.
- DrBullwinkle
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
It should not matter how you got the mineral scanner.
I do not know why you had a problem with the ware, but your solution looks good.
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PS: Great script, Memia. Thanks!
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
I do not know why you had a problem with the ware, but your solution looks good.
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PS: Great script, Memia. Thanks!
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Last edited by DrBullwinkle on Wed, 21. Nov 12, 13:21, edited 1 time 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)
New Download Location
Hi All,
Apologies that the download links went offline. My old site got taken down by a DoS attack on the server it was hosted by.
I've got a new site online and have updated the original download links.
The new site is available at http://www.memiasx.com.
I would appreciate it if other links to my downloads are now removed (although I totally understand why people provided them).
Thanks,
M[/url]
Apologies that the download links went offline. My old site got taken down by a DoS attack on the server it was hosted by.
I've got a new site online and have updated the original download links.
The new site is available at http://www.memiasx.com.
I would appreciate it if other links to my downloads are now removed (although I totally understand why people provided them).
Thanks,
M[/url]
A security system is only as strong as its weakest link
Update to Version 1.10 [25.06.2013]
Update to Version 1.10
Also allows disabling of the plugin through the AL plugin configuration menu.
Also allows disabling of the plugin through the AL plugin configuration menu.
A security system is only as strong as its weakest link
Re: [SCR] Memia AutoScan Asteroids (V1.10 - 25/06/2013)
This plugin and the source code is now available on my GitHub at the following location:
https://github.com/memiamap/X3TCMods
The code is under the MIT license so you may copy and modify as required.
https://github.com/memiamap/X3TCMods
The code is under the MIT license so you may copy and modify as required.
A security system is only as strong as its weakest link