**Tutorial** - Make bases sell ENGINES
Here's how it works:
Archetypes: declarations of objects used in freelancer.
--Volume = Cargo space. This is how much room an item takes up in your cargo hold. Set it to 0.000000 for an engine or other internal piece of equipment.
Packages: marketable objects, sold by nickname reference in the market_??? ini files.
It seems like any base can sell any "Package" item. There aren't any packages for engines, so I decided to whip one up with an osiris engine. Here's what i added to misc_good.ini
[Good
nickname = uber_engine_01
equipment = uber_engine_01
category = equipment
price = 1
item_icon = equipment\models\commodities\nn_icons\EQUIPICON_nanobots.3db
combinable = false
ids_name = 263746
ids_info = 264746
shop_archetype = equipment\models\commodities\crates\crate_grey.3db
As you noticed, the item appears in the same vendor menu as the Nanobots and Shield Batteries. It also uses the icon for the bots, but you can always change this.
The uber_engine was just a osiris archetype that i cloned in the engine_equip.ini.
Create a package, add that pack to the base you want it to appear in under market_misc.ini.
You can't sell your engine. And i haven't yet tested this to see if u can buy other engines.
The EQUIP button appears on the object in your inventory. Since this is a breaking development, I'm adding support for engine-package creation into FSS next.
Enjoy.
Edited by - Stinger on 2/14/2004 7:45:19 AM