[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: 168
Joined: Thu, 18. Dec 03, 17:34
xr

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

Post by A dJ » Tue, 6. Dec 05, 10: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, 19:44, edited 27 times in total.

User avatar
DeltaWolf
Posts: 594
Joined: Tue, 6. Jul 04, 08:48
x3

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

Nice - very usefull :D

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

Post by 999-JAY-999 » Tue, 6. Dec 05, 11: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: 486
Joined: Wed, 6. Nov 02, 21:31
x3tc

Post by TycHouse » Tue, 6. Dec 05, 12: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: 168
Joined: Thu, 18. Dec 03, 17:34
xr

Post by A dJ » Tue, 6. Dec 05, 15: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: 610
Joined: Mon, 7. Apr 03, 16:29
x3tc

Post by 999-JAY-999 » Tue, 6. Dec 05, 17: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: 4152
Joined: Tue, 2. Dec 03, 23:28
x4

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

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

A dJ
Posts: 168
Joined: Thu, 18. Dec 03, 17:34
xr

Post by A dJ » Wed, 7. Dec 05, 16: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: 168
Joined: Thu, 18. Dec 03, 17:34
xr

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

New version for download :P

DemaeRamen
Posts: 408
Joined: Sat, 6. Mar 04, 10:32
x3

Post by DemaeRamen » Tue, 13. Dec 05, 00:42

This is a cracker!

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

User avatar
Sandalpocalypse
Posts: 4152
Joined: Tue, 2. Dec 03, 23:28
x4

Post by Sandalpocalypse » Wed, 14. Dec 05, 00: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: 168
Joined: Thu, 18. Dec 03, 17:34
xr

Post by A dJ » Wed, 14. Dec 05, 01: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: 168
Joined: Thu, 18. Dec 03, 17:34
xr

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

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

DemaeRamen
Posts: 408
Joined: Sat, 6. Mar 04, 10:32
x3

Post by DemaeRamen » Fri, 16. Dec 05, 23: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: 168
Joined: Thu, 18. Dec 03, 17:34
xr

Post by A dJ » Fri, 16. Dec 05, 23: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, 01:14, edited 2 times in total.

Post Reply

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