[SCR] Memia AutoScan Freight (V1.11 - 02/07/2013)

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
memia
Posts: 54
Joined: Wed, 28. Jul 10, 22:19
x3tc

[SCR] Memia AutoScan Freight (V1.11 - 02/07/2013)

Post by memia » Sat, 7. Aug 10, 01:38

Memia AutoScan Freight
An AL Plugin for Terran Conflict and Albion Prelude that automatically scans freight in all ships within range.

Background
Tired of having to manually click that "Scan" button every time you want to scan a ship for freight? Well I am, hence the script :)

How to Use
Ensure you have a Frieght Scanner installed into your ship and that the plugin is turned on (see Installation below).
Simply pass within the range of the scanner (default 4km) and the ship will be automatically scanned on your behalf.

Note, if you are in a system where scanning is illegal then the scanner will not scan anything.
The plugin only works on the Player's current ship.

It works during freight scanning missions for law enforcement against illegal wares as well as pirate missions to scan for legal wares to plunder.

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 Freight).

Download
Download the SPK from here:
[ external image ]

Version History
Version 1.11 (02.07.2013)
A further update to correct scanning in Goner sectors.

Version 1.10 (25.06.2013)
Update to correct scanning in Goner sectors such that it no longer causes a loss of Argon reputation.
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 Tue, 2. Jul 13, 11:03, edited 8 times in total.
A security system is only as strong as its weakest link

Calgor Grim
Posts: 116
Joined: Thu, 8. Sep 11, 14:03
x4

Post by Calgor Grim » Tue, 20. Sep 11, 14:05

Is this still available from someone? I'd love to download this but I'm getting timeouts :(

User avatar
dreis
Posts: 45
Joined: Sat, 23. Jan 10, 00:56
x4

Post by dreis » Thu, 10. Nov 11, 15:32

I still have the script if anyone wants it.

But I'm having issues with the Goner Sector.
Even though scanning in there is illegal it still seems to be scanning and I'm losing Reputation.

I tried to disable it under the AL Settings but it didn't work.

I think this is a must script, and I hate having to disable it.

Calgor Grim
Posts: 116
Joined: Thu, 8. Sep 11, 14:03
x4

Post by Calgor Grim » Thu, 10. Nov 11, 16:53

Will this require permission to put up? I'd love to get this script myself.

Llama
Posts: 456
Joined: Tue, 21. Aug 07, 06:59
x3tc

Post by Llama » Mon, 23. Jan 12, 08:25

For those still wondering, you can get the script from here
I fly Terran for the accents

memia
Posts: 54
Joined: Wed, 28. Jul 10, 22:19
x3tc

Post by memia » Wed, 21. Nov 12, 13:10

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
A security system is only as strong as its weakest link

Huillam
Posts: 430
Joined: Fri, 16. Dec 11, 11:24
x4

Post by Huillam » Thu, 16. May 13, 02:56

It seems the script auto-scan freight in goner sectors (where it's illegal).
It may be a conflict with XRM; I can't remember if the argon police license allow to scan freight in goner sectors in vanilla.

Edit:
Even if turned off it still scans freight.

Miravlix
Posts: 242
Joined: Mon, 13. May 13, 01:14
x4

Post by Miravlix » Sun, 19. May 13, 10:41

I haven't checked the reason why it scans even while turned off, but I found the reason why it scans goner's.

The file mermia.asf.xml

if $race == stuff OR $race == [Goner]
$canScan = [TRUE]


For some reason the author thinks that a Goner sector is like a pirate sector where it's always legal to scan.

Simple solution is to remove the "$race == [Goner] OR" and then it won't scan in those two sectors.

I think a full fix would be to also change the else after it with:

if $race == [Goner]
$canScan = player has police license for race [Argon]
else
$canScan = player has police license for race $race
end

But I'm not a X scripter, so thats just an educated guess.

Huillam
Posts: 430
Joined: Fri, 16. Dec 11, 11:24
x4

Post by Huillam » Sun, 19. May 13, 11:59

I'll try that. Thank you Miravlix.

Miravlix
Posts: 242
Joined: Mon, 13. May 13, 01:14
x4

Post by Miravlix » Wed, 22. May 13, 11:45

I finally had the opportunity to test the code and it worked brilliantly of course, only a slight problem, having an Argon Police License doesn't make it legal to scan in Goner sectors. DOH

I don't know if it's a bug or what, but the current path level of AP does not allow freight scanning in Goner's two sectors.

So the "fix" is to remove the "$race == [Goner] OR" from the early line of mermia.asf.xml.

memia
Posts: 54
Joined: Wed, 28. Jul 10, 22:19
x3tc

Update to Version 1.10 [25.06.2013]

Post by memia » Wed, 26. Jun 13, 23:00

Update to Version 1.10
The new update includes a fix to no longer cause loss of Argon reputation when in Goner sectors.
Also allows disabling of the plugin through the AL plugin configuration menu.
A security system is only as strong as its weakest link

memia
Posts: 54
Joined: Wed, 28. Jul 10, 22:19
x3tc

Update to Version 1.11 [02.07.2013]

Post by memia » Tue, 2. Jul 13, 11:05

Update to Version 1.11
Further update to fix Goner sector scanning to prevent rep loss.
A security system is only as strong as its weakest link

KruniacZio
Posts: 14
Joined: Sat, 2. Jan 16, 12:32
x3ap

Post by KruniacZio » Fri, 10. Aug 18, 22:58

Doesn't seem to work. AL setting isn't even in the menu.

Installed ZIP, nothing.

Installed SPK after uninstalling ZIP. Nothing.

memia
Posts: 54
Joined: Wed, 28. Jul 10, 22:19
x3tc

Re: [SCR] Memia AutoScan Freight (V1.11 - 02/07/2013)

Post by memia » Thu, 2. Jan 20, 13:30

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.
A security system is only as strong as its weakest link

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”