Question on equivalent_tech_level
Moderators: winston, another_commander, Getafix
- LittleBear
- ---- E L I T E ----
- Posts: 2882
- Joined: Tue Apr 04, 2006 7:02 pm
- Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.
Question on equivalent_tech_level
I have set the available tech level for a missile to 18, in order that it is only offered for sale at a speacial OXP station (which has equivalent_tech_level of 18 ). However its not comming up for sale on 1.69.1. I am right in thinking that if equivalent_tech_level is set to a normally impossibly high level Oolite is resetting it to 15?
Could I use conditions eg a docked at stationname=special station in equipment .plist to get the same result? If so where in equipment .plist do I put the condition?
Could I use conditions eg a docked at stationname=special station in equipment .plist to get the same result? If so where in equipment .plist do I put the condition?
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.
- JensAyton
- Grand Admiral Emeritus
- Posts: 6657
- Joined: Sat Apr 02, 2005 2:43 pm
- Location: Sweden
- Contact:
The sixth element of an equipment.plist entry (if present) is a “miscellaneous stuff” dictionary, which may contain a conditions entry.
Additionally, if the tech level of equipment item EQ_FOO is 99, and there is a mission variable mission_TL_FOR_EQ_FOO, the value of the mission variable will be used. This doesn’t seem helpful in your case, though.
Additionally, if the tech level of equipment item EQ_FOO is 99, and there is a mission variable mission_TL_FOR_EQ_FOO, the value of the mission variable will be used. This doesn’t seem helpful in your case, though.
E-mail: [email protected]
- LittleBear
- ---- E L I T E ----
- Posts: 2882
- Joined: Tue Apr 04, 2006 7:02 pm
- Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.
Thanks for that. I coudn't get the conditions working, but I set the "mission_TL_FOR_EQ_GRAV_MISSILE 1" when the player docks at the Special Station and then when the player launches from the special station set it back to 99. That worked and means the player can only buy the missile at the station.
One odd thing though, I think equivilant_tech_level is broken on 1.69.1. I've placed the Special Station in a Tech 14 system. Although I've set the equivilant tech level to 3, it still has Tech 14 stuff available for sale.
One odd thing though, I think equivilant_tech_level is broken on 1.69.1. I've placed the Special Station in a Tech 14 system. Although I've set the equivilant tech level to 3, it still has Tech 14 stuff available for sale.
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.
- JensAyton
- Grand Admiral Emeritus
- Posts: 6657
- Joined: Sat Apr 02, 2005 2:43 pm
- Location: Sweden
- Contact:
Try a spell checker. :-)LittleBear wrote:One odd thing though, I think equivilant_tech_level is broken on 1.69.1. I've placed the Special Station in a Tech 14 system. Although I've set the equivilant tech level to 3, it still has Tech 14 stuff available for sale.
E-mail: [email protected]
- LittleBear
- ---- E L I T E ----
- Posts: 2882
- Joined: Tue Apr 04, 2006 7:02 pm
- Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.
Nah, is spelt right in the shipdata.plist (albiet not in the post)!
Code: Select all
<key>equivalent_tech_level</key>
<integer>3</integer>
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.
- JensAyton
- Grand Admiral Emeritus
- Posts: 6657
- Joined: Sat Apr 02, 2005 2:43 pm
- Location: Sweden
- Contact:
Important rule there: do not paraphrase error messages or code, always copy and paste. :-) I’ll look into it.
E-mail: [email protected]
- Commander McLane
- ---- E L I T E ----
- Posts: 9520
- Joined: Thu Dec 14, 2006 9:08 am
- Location: a Hacker Outpost in a moderately remote area
- Contact:
As I reported a long time ago here on the board and Ahruman then put on the BerliOS bug reporter, both equivalent_tech_level as well as equipment_price_factor are not working. (Sometimes it can be worthwhile to have a look through older posts ).
On the BerliOS bug reporter this hasn't got a very high priority, however. Anyway, it doesn't seem necessary to me to have the same bug again in another topic of the bug reporter.
On the BerliOS bug reporter this hasn't got a very high priority, however. Anyway, it doesn't seem necessary to me to have the same bug again in another topic of the bug reporter.
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
LB wrote:
So for special equipment it is better to use this level 99 and set it temporarily at the desired lower level. But from a later message in this list I understand you are doing this and there is a bug introduced in the newer test-versions.
This was not part of your problem, but last week I browsed a little bit through the source-code of version 1.65. There I noticed that there is a chance that on docking certain items are temporarily lowered 3 tech levels. This means that you could occasionally buy level 18 stuff on a level 15 planet. So just setting the technical level a little bit to high could be not enough. Further I saw that the code explicitly checks the techlevel 99.I have set the available tech level for a missile to 18, in order that it is only offered for sale at a speacial OXP station (which has equivalent_tech_level of 18 ).
So for special equipment it is better to use this level 99 and set it temporarily at the desired lower level. But from a later message in this list I understand you are doing this and there is a bug introduced in the newer test-versions.
- LittleBear
- ---- E L I T E ----
- Posts: 2882
- Joined: Tue Apr 04, 2006 7:02 pm
- Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.
Got that. My special equipment is now set at tech_level 99 in equipment.plist and I'm using the "mission_TL_FOR_" to set this to a buyable tech_level when the player is docked at the special station selling this stuff and then settimg it back to 99 when he leaves. Seems to work. This method should also be OK on 1.65 as Giles uses this method to make the Naval Engery Unit buyable at high tech systems, once you have completed the native Thargoid Plans mission.
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.