The line marked indicates the tech level above which this equipment will be available at. Change it to something like 1, to have it available almost everywhere or to 8, to have it available at tech level 9 or above. Remember, the tech level at which the equipment starts becoming available is the number you put in plus 1. 99999 means it will never be available.
Problem 2: The schemata folder is not to be touched. It contains files that provide information for OXP verification only. Don't do anything with this.
Problem 3: It is Config/ equipment.plist, not Configs/equipment.plist.
I see another problem: How should this laser work? What are its specifications? I think all this would have to be hard-coded, wouldn't it?
So you can make your laser available, especially if you follow another_commander's third hint, but I doubt it would do anything.
And by the way, another_commander: Your first problem isn't any. The first line defines the techlevel, the second one is the price, so the TL is 0 and the laser should become available everywhere, as soon the Config-folder is renamed properly. Which is of course unrealistic for an ultimate laser. The Military Laser has a TL of 10, so this one should have at least 11, if not 13. But still I am quite sure it wouldn't do anything.
<array>
<array>
<integer>0</integer> <------- TL is here
<integer>99999</integer> <------- Price is here
<string>Ultimate Laser</string>
<string>EQ_WEAPON_ULTIMATE_LASER</string>
<string>THE Ultimate Laser weapon.</string>
<dict>
<key>available_to_all</key>
<true/>
</dict>
</array>
</array>
The line marked indicates the tech level above which this equipment will be available at. Change it to something like 1, to have it available almost everywhere or to 8, to have it available at tech level 9 or above. Remember, the tech level at which the equipment starts becoming available is the number you put in plus 1. 99999 means it will never be available.
Problem 2: The schemata folder is not to be touched. It contains files that provide information for OXP verification only. Don't do anything with this.
Problem 3: It is Config/ equipment.plist, not Configs/equipment.plist.
1) wrong. its the price. the first INT is the TL. (i looked at 1.WIki, 2. sources.)
2)i'll delete it from my oxp
3)ok
2)
When you write a new .plist or change an old one, the first time you load up Oolite you must hold down the SHIFT to to force Oolite to rebuild the Cashe and so include your new code. If you don't your additions are not read. That may be way its not working, even with the typo of Config fixed.
Last edited by LittleBear on Tue Jan 22, 2008 9:28 am, edited 1 time in total.
OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits, The Galactic Almanac, Renegade Pirates can be downloaded from the Elite Wiki here.
i can buy it now, but it's shown like i have no weapon (just 2 lines in the hud) and i cant fire.
but how is it possible to add new lasers?
if you say how much energy the laser has, costs and how fast it overheats, isnt that enough?
a ship/missile is more difficult to include than a laser!
I stand corrected about the 1st problem I mentioned. This is what happens when one tries to write from memory, esp. when memory is not what used to be... Sorry for the confusion I may have caused.
You can expand the Ooniverse with anything else (missiles, for instance, if you're in the weapons-category). Just not lasers. At least not to my knowledge (that's what the "I think" means). So I could be wrong on that. I guess one of the coders will know. You could even ask the Master and Commander himself, who happened to give us the honour of his presence just today.
I think the thing is that missiles are ships (I know it sounds odd) but they are entites that you can add to the ooniverse, and make new ones. Lasers are not entities, and are handled differently.
At the moment there are a few places where laser types are tested (hard coded) and having anything that isnt in the list will give weird, or no behavior. Some people may have tried fitting a thargoid laser and found that it didnt work.
If a new laser type is added, you will also have to revisit all the ships, and make them capable of mounting it -- at the moment you have to specify per ship, all the possible lasers.
All this could be changed, but it is not a simple thing that we can just add without thinking about.
There are of course other lasers in Frontier and FFE, so it is not completely without precedent