[SCRIPT] Advanced Mineral Scanner v1.31 09/12/06

The place to discuss scripting and game modifications for X³: Reunion.

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

A dJ
Posts: 236
Joined: Thu, 18. Dec 03, 16:34
x4

[SCRIPT] Advanced Mineral Scanner v1.31 09/12/06

Post by A dJ » Tue, 6. Dec 05, 09:12

English | Deutsch

Allows you to scan Asteroids quickly without the necessity of targeting them first as is with the standard mineral scanner.

Update v1.31
  • - Quick Fix
Update v1.30
  • - Added ability to set BBS priority.
    - Added ability to set the type of BBS messages that are displayed or none at all.
    - Added ability to uninstall the script with the click of a button.
    - Added option to show scanning results.
Download
Readme

: Plugin Name :
  • Advanced Mineral Scanner

: Author :
  • A dJ

: Translated by :
  • X-Freak Cartman [KBG]: Deutsch, German.

: Version :
  • 1.31

: Description :
  • Features:
    • Advanced Mineral Scanning device
      • Available for purchase at a few Teladi Space Equipment Docks.
        Added specially designed heavy-duty power switch. (Artificial Life setting)
    • BBS Items
      • 1x Advertisement (Entire X-Universe)
        2x Tech-news (Teladi/Paranid sectors)
        3x Different offers for selling the device (2x Entire X-Universe/1x for you to find)

    Operating Instructions:
    • Scan: Get within range of the asteroids to scan then slow your ship to a crawl.
      Switch on/off: press Escape, click Gameplay, click Artificial Life settings & select mode.
      Show menu: Switch off and you'll receive an incoming question. Switch back on if you'd like to keep the scanner running.

    Detailed Specifications:
    • Max Operating Speed: 34km/h
      Max Scanning Range : Currently installed scanning equipment (none/duplex/triplex).
      Scanning Interval : 2s
      Scanning Delay : 100ms
      Current Price : 158.204 credits.

: Change Log :

  • v1.31
    • - Fix.
    v1.30
    • - Added ability to set BBS priority.
      - Added ability to set the type of BBS messages that are displayed or none at all.
      - Added ability to uninstall the script with the click of a button.
      - Added option to show scanning results.
    v1.22
    • - BBS Fixes. (Text & Code)
      • - Messages should display less often.
    v1.21
    • - Fixed Ware Placement for good ( + ware is always in the universe).
      - Lots of minor code changes & improvements.
    v1.20
    • - Ware removal script added (for uninstallation purposes)
      - Improved the Scanning Script
      • - Rewritten & optimized hopefully (again).
        - Added a few checks.
      - Fixed an error where every savegame load would add more scanners for sale (I think it did).
    v1.19
    • - Increased Scanning Delay.
      - Added Maximum Operating Speed.
      - Added 6 BBS Items.
    v1.11
    • - Optimized code for a possible 0.001 FPS increase.
      - Minor AL text change.
    v1.10
    • - Scanning function relocated from Special Commands Menu to Artificial Life settings.
      - Rewritten entirely and some minor changes.
    v1.01
    • - Set scanning range to be the same as the currently installed scanner. (None/
      Duplex/Triplex that would be 10/20/30 Km)
    v1.00
    • - Initial release

: Installation Instructions :
  • 1) Uninstall any version prior to v1.10
    2) Install the script package (.spk) with the plugin manager by cycrow.
    3) Start the game.
    4) Start a new game or load a savegame.

: Uninstall Instructions :
  • *tip: Sell all your advanced mineral scanners to dock mechanics first.
  • 1) Load a savegame and open the advanced mineral scanner config menu, select the uninstall now button.
    2) Save & repeat step 1 for all your savegames (just to be safe).
    3) Quit the game.
    4) Start the plugin manager, select advanced mineral scanner and then remove script files.

: Technical Data :
  • Text File Used
    • 447770

    Text Page Used

    • 7770

    Command Extension Ware Used

    • 28;0;0;0;0;69;5853;0;5635;1;1;0;5635;-100000;0;0;SS_WARE_SW_NEW11; 158,203


*note 1) You'll need to activate the script editor before this will work.

*note 2) I've made this script with some help of LV's scripts, thank you for sharing them LV.
Last edited by A dJ on Tue, 12. Dec 06, 18:44, edited 27 times in total.

User avatar
DeltaWolf
Posts: 597
Joined: Tue, 6. Jul 04, 08:48
x4

Post by DeltaWolf » Tue, 6. Dec 05, 09:50

Nice - very usefull :D

999-JAY-999
Posts: 622
Joined: Mon, 7. Apr 03, 16:29
x3tc

Post by 999-JAY-999 » Tue, 6. Dec 05, 10:02

Top notch...... :)
System Spec :-

AMD Athlon(tm) 64 Duel 6000+ (3.01GHz)
Windows XP Home Ed. SP 3
ATI Radeon HD 4850 (512)
Creative X-FI Soundard
2.00 GB of RAM
G9 RAZOR Mouse

TycHouse
Posts: 488
Joined: Wed, 6. Nov 02, 20:31
x3tc

Post by TycHouse » Tue, 6. Dec 05, 11:32

Neat idea, just a suggestion though.

Could you make it *scanner_range* instead of a fixed 25km ??

That would seem more logical to me. I used the following in an X2 script:

Code: Select all

$range = 20000
skip if not [This] -> get amount of ware Duplex Scanner in cargo bay
    $range = 40000
skip if not [This] -> get amount of ware Triplex Scanner in cargo bay
    $range = 60000
I've not tried scripting in X3 yet, but i guess the scan ranges would be similar.

TycHouse
AMD FX-8350 Eight-Core 4.0GHz Processor
ASrock Extreme 3 R2.0 Motherboard
8Gb memory
2 x AMD HD7770 Graphics (Crossfire not enabled)
Windows Vista Ultimate 64bit SP2

A dJ
Posts: 236
Joined: Thu, 18. Dec 03, 16:34
x4

Post by A dJ » Tue, 6. Dec 05, 14:14

Myself wrote:
TycHouse wrote:Neat idea, just a suggestion though.

Could you make it *scanner_range* instead of a fixed 25km ??

TycHouse
Should be possible, I'll look into it.
Done !

999-JAY-999
Posts: 622
Joined: Mon, 7. Apr 03, 16:29
x3tc

Post by 999-JAY-999 » Tue, 6. Dec 05, 16:55

wow speedy gonzarlis !....

what service!..

:wink:

This will come into its own more so I feel once the mining module part is fixed in the game....
System Spec :-

AMD Athlon(tm) 64 Duel 6000+ (3.01GHz)
Windows XP Home Ed. SP 3
ATI Radeon HD 4850 (512)
Creative X-FI Soundard
2.00 GB of RAM
G9 RAZOR Mouse

User avatar
Sandalpocalypse
Posts: 4447
Joined: Tue, 2. Dec 03, 22:28
x4

Post by Sandalpocalypse » Wed, 7. Dec 05, 04:02

Hey, pretty nifty. Although mining seems more the Paranid thing.

A dJ
Posts: 236
Joined: Thu, 18. Dec 03, 16:34
x4

Post by A dJ » Wed, 7. Dec 05, 15:59

Sandalpocalypse wrote:Hey, pretty nifty. Although mining seems more the Paranid thing.
Well I thought, since the Teladi are the moneygrubbers and the time being saved by this scanner counts for money, they'd be the ones developing such things.
But If anyone else disagrees I suppose I could change it as well as more/less/fixed stations which sell the device.

Any other suggestions are of course welcome, and if my skills allow it, I'll add some things I have in mind also and update the script.

A dJ
Posts: 236
Joined: Thu, 18. Dec 03, 16:34
x4

Post by A dJ » Mon, 12. Dec 05, 21:31

New version for download :P

DemaeRamen
Posts: 414
Joined: Sat, 6. Mar 04, 09:32
x3

Post by DemaeRamen » Mon, 12. Dec 05, 23:42

This is a cracker!

Thank you very much!
Always welcome! Cheap and filling!

User avatar
Sandalpocalypse
Posts: 4447
Joined: Tue, 2. Dec 03, 22:28
x4

Post by Sandalpocalypse » Tue, 13. Dec 05, 23:56

after using it a couple times it is too powerful i think.

it needs to take a long time to run, or be hard to get, or cost a lot, or something.

A dJ
Posts: 236
Joined: Thu, 18. Dec 03, 16:34
x4

Post by A dJ » Wed, 14. Dec 05, 00:50

@sandalpocalypse
True, I had some similar thoughts. But should it have a higher delay between each scan and/or the scanning itself? And if so, how much? It's currently set to run at a 2 second interval & 10ms between each single scan. I do not know how to alter prices yet so it has to be timing for now.


But...I'm currently trying to script some BBS occurances, it's almost done and only needs some better texts.
My idea was to have 1 advertisement thru Galnet News and a few seperate occurances here and there. Plus having a Dock Mechanic or such buy the Scanner of your hands.

A dJ
Posts: 236
Joined: Thu, 18. Dec 03, 16:34
x4

Post by A dJ » Fri, 16. Dec 05, 20:59

A dJ wrote:New version for download :P
:roll:

DemaeRamen
Posts: 414
Joined: Sat, 6. Mar 04, 09:32
x3

Post by DemaeRamen » Fri, 16. Dec 05, 22:43

I see what you guys mean about it being too powerful but I personally like how the previous version makes it nearly automated.

I'd be happy to have the ship need to slow down like that if I could get the AI to do the scans.

I doubt it's possible but it might be more acceptible left as in 1.10 (?) but made into an XL or ST ware so you have to use a large-ish vessel to do that kind of scanning.

Just my tup'north.
Always welcome! Cheap and filling!

A dJ
Posts: 236
Joined: Thu, 18. Dec 03, 16:34
x4

Post by A dJ » Fri, 16. Dec 05, 22:55

A dJ wrote:Well you can put back 1 file from the v1.10 or v1.11 archive to change it back like it was, just overwrite the newer one.

The file you need is --> scripts\adj.advminscan.scan.xml

You can also try and edit the file using the Script Editor, not that hard really. Look for the line --- 003 $maxspeed = 34. Change 34 to whatever you like and save.
EDIT: this no longer works with v1.20 or above.

Edit the file scripts\al.adj.advminscan.main.xml

On line 024 to the right enter Maximum Speed, Delay, Player & Ship. Save & re-activate the AL-Option.
Last edited by A dJ on Thu, 5. Jan 06, 00:14, edited 2 times in total.

DaveyP
Posts: 986
Joined: Mon, 7. Nov 05, 19:06
x3tc

Post by DaveyP » Thu, 22. Dec 05, 17:30

OK, I copied all the files to all the right places, I bought it at a Teladi trading station, I checked in the arificial life settings, and made sure it was enabled, and........ nothing.

What am I doing wrong?

I cruise past asteroids at about 10ms, and they still don't show up as scanned. I've probably done something very stupid, but what?

Ta.

A dJ
Posts: 236
Joined: Thu, 18. Dec 03, 16:34
x4

Post by A dJ » Thu, 22. Dec 05, 18:53

DaveyP wrote:OK, I copied all the files to all the right places, I bought it at a Teladi trading station, I checked in the arificial life settings, and made sure it was enabled, and........ nothing.

What am I doing wrong?

I cruise past asteroids at about 10ms, and they still don't show up as scanned. I've probably done something very stupid, but what?

Ta.
I have no idea to be honest.
If you've done everything as described in the readme then it should work perfectly.

Otherwise you're the first to report a problem.

You sure you got everything right?

DaveyP
Posts: 986
Joined: Mon, 7. Nov 05, 19:06
x3tc

Post by DaveyP » Thu, 22. Dec 05, 21:53

If I bring up the sector map, I take it the asteroids should show up as scanned?

Should it work if I just get near an asteroid, set speed to 10, and wait?

Since nobody else has had a problem, it *must* be me

A dJ
Posts: 236
Joined: Thu, 18. Dec 03, 16:34
x4

Post by A dJ » Thu, 22. Dec 05, 22:01

DaveyP wrote:If I bring up the sector map, I take it the asteroids should show up as scanned?

Should it work if I just get near an asteroid, set speed to 10, and wait?

Since nobody else has had a problem, it *must* be me
1)No, not immediatly, takes a sec or so.
2)Yes
3)Probably yes.

Have you enabled the script editor?
What scanners do you have installed?

DaveyP
Posts: 986
Joined: Mon, 7. Nov 05, 19:06
x3tc

Post by DaveyP » Fri, 23. Dec 05, 19:24

Yup, script editor is enabled.

I have a Nova with triplex scanner

Post Reply

Return to “X³: Reunion - Scripts and Modding”