Here is the simple way to add the normal and deep scanners as sellable items. For the sake of this example I will add them to Manhattan.
FILE: DATA\EQUIPMENT\market_misc.ini
Planet Manhattan is located here:
[BaseGood
base = Li01_01_base
After this line:
<pre><font size=1 face=Courier><font size=1 face=Courier>
MarketGood = ge_s_thruster_01, 0, -1, 10, 10, 0, 1
</font> </font></pre>
Add the following:
MarketGood = ge_s_scanner_01, 0, -1, 10, 10, 0, 1
MarketGood = ge_s_scanner_02, 0, -1, 10, 10, 0, 1
SAVE AND EXIT FILE
====================
FILE: DATA\EQUIPMENT\engine_good.ini
(This file is currently empty, that is why it is a great file to use for adding things. It is easy to keep track of what you have aded).
Add the following:
[Good
nickname = ge_s_scanner_01
equipment = ge_s_scanner_01
category = equipment
price = 200
item_icon = equipment\models\commodities\nn_icons\equipicon_radarjammer.3db
combinable = false
ids_name = 263750
ids_info = 264750
shop_archetype = equipment\models\commodities\crates\crate_grey.3db
[Good
nickname = ge_s_scanner_02
equipment = ge_s_scanner_02
category = equipment
price = 2000
item_icon = equipment\models\commodities\nn_icons\equipicon_radarjammer.3db
combinable = false
ids_name = 263751
ids_info = 264751
shop_archetype = equipment\models\commodities\crates\crate_grey.3db
SAVE AND EXIT FILE
====================
Enter the game, go to Manhattan, and you will note the following:
1) If you click on your internal equipment, it now lists your scanner.
2) You can buy a normal or deep scanner.
====================
You might be asking: "Where are the stats located for the scanners?"
They are located in: DATA\EQUIPMENT\misc_equip.ini
Starting at approximately line 449:
<pre><font size=1 face=Courier><font size=1 face=Courier>
[Scanner
nickname = ge_s_scanner_01
ids_name = 263750
ids_info = 264750
volume = 0.000000
mass = 10
range = 2500
cargo_scan_range = 2000
lootable = false
[Scanner
nickname = ge_s_scanner_02
ids_name = 263751
ids_info = 264751
volume = 0.000000
mass = 10
range = 5000
cargo_scan_range = 5000
lootable = false
</font> </font></pre>
====================
There is only one thing about this that isn't so peachy. As far as I can tell, the deep scanner does not actually WORK.
I tried the deep scanner, and I could not see ships beyond 2.5k.
So then I tried cranking up the ranges for the DEEP SCANNER, but it does not seem to have any effect either.
I worry that something is hardcoded somewhere regarding scanner ranges.
Edited by - ThresholdRPG on 10-03-2003 10:28:40