[S] Autoscan for Smugglers v1.0 21/1/2009

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

Yargol
Posts: 4
Joined: Sat, 21. Mar 09, 04:14

Post by Yargol »

Great script thank you, i love it! :)

Just one question. Is it intentional that - according to my experiences - the autoscan happens only when you are about 2.5km distance from the /any/ ship, while with the old "manual" method you can scan them under 4km?
Weresmilodon
Posts: 18
Joined: Thu, 3. Dec 09, 01:04

Post by Weresmilodon »

I don't have any experience with scripting, but a quick look in autoscan.scancargo.xml shows these lines

Code: Select all

014   ||$scan.range =  get freight scanner range
015   ||$ships =  find ship: sector=$sec class or type=null race=null flags=$flag refobj=[THIS] maxdist=$scan.range maxnum=20 refpos=null
Does this mean it gets the scanner range from the game? Max range is the same as in the game? If so, then what does the maxnum=20 mean?

A way to extend the range would be nice. I've used this for hour, and done five missions to look for smugglers, and I've yet to find even one.
superbun
Posts: 146
Joined: Sat, 1. Dec 07, 10:09
x3tc

Post by superbun »

nice idea,

an idea for futer development would be to command a ship to patroll a sector and attemt to scan every ship and automaticly attack smugglers.

or give the order to an M5 and have it mark smuglers as hostile for other ships to destroy.

also, does the smuggler detection check if the ware is illiegal in the current sector?
Last transmission of split military python AE-316:
"Split say...ARRRGG!"
-------------------------------------------------------
X3:TC Soundtracks Tutoral
Yargol
Posts: 4
Joined: Sat, 21. Mar 09, 04:14

Post by Yargol »

Indeed, after a bit of more testing it seems i was wrong. The scan seems to happen at scanner range /4km/, it's just the menu update that is lagging a bit i presume, and this confused me a little. :)
lordmuck
Posts: 1793
Joined: Sun, 1. Mar 09, 12:25
x4

Post by lordmuck »

I would like to increase the scan range please, could you tell us how?

I did try to increase 20 to 40 in your script but i think the range is being taken from some place else
User avatar
Argonaught.
Posts: 1827
Joined: Wed, 6. Nov 02, 20:31
x4

Post by Argonaught. »

Manual scan ranges can be changed in Globals in the types folder.
not sure if the script uses that but you could try changing it and see.

These are the ones you need in Globals to alter for manual scanning:

Code: Select all

SG_SCANNER_RANGE_SHIP;5000000;     <-- no scanner on ship
SG_SCANNER_RANGE_SHIP_UPGRADE2;10000000;     <-- Duplex scanner on ship
SG_SCANNER_RANGE_SHIP_UPGRADE3;15000000;     <-- Triplex Scanner on ship
SG_SCANNER_RANGE_SATELLITE;11000000;     <-- Normal Nav satellite
SG_SCANNER_RANGE_SATELLITE2;17500000;     <-- Advanced Satellite
SG_SCANNER_RANGE_STATION;5000000;     <-- Scanner on Stations you own
SG_SCANNER_RANGE_ORBITALLASER;1250000;     <-- Laser Tower scanner?
SG_SCANNER_RANGE_FREIGHTSCANNER;2000000;     <-- Freight scanner, Increase this to expand manual scan ranges
SG_SCANNER_RANGE_SO_NEBULA;750000;     <-- Probably used when in Nebula, haven't a clue

Edit:

1km = 500000 game units
So 4km = 4*500000 = 2000000, which is freight scan range


HTH,

Argo.
[MOD]X3TC No Fog / [MOD]X3AP No Fog / [MD]X3TC Menagerie Shipyard / [MD]X3AP Menagerie Shipyard
<==<<Argonaught>>==>

XBTF>XT>X2TT>X3R>X3TC>X3AP>X4F

I lurk alot for the most part now
:thumb_up:
lordmuck
Posts: 1793
Joined: Sun, 1. Mar 09, 12:25
x4

Post by lordmuck »

thank you for pointing me there, I will try this out :)
lordmuck
Posts: 1793
Joined: Sun, 1. Mar 09, 12:25
x4

Post by lordmuck »

i dont have this folder you told me about
User avatar
Argonaught.
Posts: 1827
Joined: Wed, 6. Nov 02, 20:31
x4

Post by Argonaught. »

You'll need to unpack you game to find the types folder.

Info and program for doing that is here: X3 ModManager by doubleshadow

HTH

Argo
[MOD]X3TC No Fog / [MOD]X3AP No Fog / [MD]X3TC Menagerie Shipyard / [MD]X3AP Menagerie Shipyard
<==<<Argonaught>>==>

XBTF>XT>X2TT>X3R>X3TC>X3AP>X4F

I lurk alot for the most part now
:thumb_up:
CrossBo
Posts: 1
Joined: Sun, 28. Sep 08, 19:17
x4

Post by CrossBo »

Download links don't work.
Pyure
Posts: 135
Joined: Thu, 15. Jul 10, 16:39
x3tc

Post by Pyure »

Agreed; I wanted to download this script as well, but links are bad. Even TSM's link doesn't work when you try to download the specific file.

:( :(
What's a battle?
xfir01
Posts: 433
Joined: Sun, 13. May 07, 17:28
x3tc

Post by xfir01 »

Cheers, guys.


[ external image ]
Pyure
Posts: 135
Joined: Thu, 15. Jul 10, 16:39
x3tc

Post by Pyure »

xfir01: You're a champ, this link is gold.

Addendum to my last post: I think something's wrong with x3terranconflict.filefront.com in general, not that specific file. I certainly can't download anything at any rate.
What's a battle?
narhiril
Posts: 50
Joined: Fri, 11. Jun 10, 12:39
x3tc

Post by narhiril »

Pyure wrote:xfir01: You're a champ, this link is gold.

Addendum to my last post: I think something's wrong with x3terranconflict.filefront.com in general, not that specific file. I certainly can't download anything at any rate.
I am having this same problem with that site.

Fortunately, xfir01's link works.
Anna Marie

CEO of Miron Corporation, Kingdom End
User avatar
Sniper101
Posts: 11
Joined: Tue, 25. Aug 09, 06:30
x3tc

Post by Sniper101 »

link is on the blink again,.zip is faulty

nvm just change the .man to .spk :lol:
thx
Khaak_Slayer
Posts: 403
Joined: Sun, 18. Apr 04, 17:04
x4

Post by Khaak_Slayer »

Thanks, xfir01
Rawr.
User avatar
Peanutcat
Posts: 297
Joined: Fri, 8. Jul 11, 23:56
x4

Post by Peanutcat »

None of the links work.. I'd love to have this mod.. Please fix them :)


EDIT

Thanks exfir!
Last edited by Peanutcat on Fri, 23. Dec 11, 20:28, edited 1 time in total.
F signature
User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 25130
Joined: Sun, 2. Apr 06, 16:38
x4

Post by X2-Illuminatus »

Have a look at the post 5 above yours.
Nun verfügbar! X3: Farnham's Legacy - Ein neues Kapitel für einen alten Favoriten

Die komplette X-Roman-Reihe jetzt als Kindle E-Books! (Farnhams Legende, Nopileos, X3: Yoshiko, X3: Hüter der Tore, X3: Wächter der Erde)

Neuauflage der fünf X-Romane als Taschenbuch

The official X-novels Farnham's Legend, Nopileos, X3: Yoshiko as Kindle e-books!
User avatar
Peanutcat
Posts: 297
Joined: Fri, 8. Jul 11, 23:56
x4

Post by Peanutcat »

Yeah just noticed.. Silly me :P
F signature
Retiredman
Posts: 795
Joined: Fri, 4. Sep 09, 02:35
x3ap

Post by Retiredman »

xfir01: You're a champ, this link is gold.


Again
You think a hero is some weird sandwitch and not a guy attacking a Xeno J with a kestrel.

Sir.. I said .. A guy attacking a J with a kestrel is the sandwitch.

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