Missile Options OXP
Moderators: winston, another_commander
- 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.
Missile Options OXP
Moderator: Split from here.
Nice Work! C&P it. they were there for sale in the ship yard. Bought a cheapo missile and fired it at the Nav Beachon, worked fine. I've zipped "MaegilsMissiles" here:- http://www.box.net/shared/rb3agzbksc.
Nice Work! C&P it. they were there for sale in the ship yard. Bought a cheapo missile and fired it at the Nav Beachon, worked fine. I've zipped "MaegilsMissiles" here:- http://www.box.net/shared/rb3agzbksc.
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.
- Cmdr. Maegil
- Sword-toting nut-job
- Posts: 1294
- Joined: Tue Feb 27, 2007 10:28 pm
- Location: On the mend in Western Africa
Thanks, but I was petty certain that it would work - I just C&P'd, then fiddled with the values... it still has to be cleaned up of several redundant keys on the shipdata.plist, though
What I meant was to playtest them to see if they (especially the LdF models) are behaving normally, of if the parameters need some tweaking to improve/degrade the performance.
(I was going to give it the less pretentious name of "missile_options.OXP"... once it's OK!)
What I meant was to playtest them to see if they (especially the LdF models) are behaving normally, of if the parameters need some tweaking to improve/degrade the performance.
(I was going to give it the less pretentious name of "missile_options.OXP"... once it's OK!)
You know those who, having been mugged and stabbed, fired, dog run over, house burned down, wife eloped with best friend, daughters becoming prostitutes and their countries invaded - still say that "all is well"?
I'm obviously not one of them.
I'm obviously not one of them.
- Cmdr. Maegil
- Sword-toting nut-job
- Posts: 1294
- Joined: Tue Feb 27, 2007 10:28 pm
- Location: On the mend in Western Africa
@Ahruman: Would you move this last posts to a new thread on the Expansion Pack forum?
You know those who, having been mugged and stabbed, fired, dog run over, house burned down, wife eloped with best friend, daughters becoming prostitutes and their countries invaded - still say that "all is well"?
I'm obviously not one of them.
I'm obviously not one of them.
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
This is great! I wanted to make a small OXP to test some modifications I am making, but this looks just about the right tool for the job. However, these missiles should behave mostly like the normal ones, because missile accuracy is not used for anything other than setting ptich tolerance at the moment. If what I am trying to do here works, then maybe I can put up for download a vanilla 1.70 executable with just this change applied for you to test.
- Cmdr James
- Commodore
- Posts: 1357
- Joined: Tue Jun 05, 2007 10:43 pm
- Location: Berlin
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
For anyone interested in testing the OXP to its fullest, please download this executable and place it in the oolite.app folder (back up your original file before doing so):
http://terrastorage.ath.cx/Marmagka/QGi ... oolite.exe
Before anything else, just a few things to note:
1. This is NOT a development (current SVN) build. This is just vanilla 1.70 with a bit of extra code to specifically test missile behavior with variable accuracy. Do not expect any bug fixes or additions to the original 1.70 and please do not report any bugs related to this particular build, other than ones related to missile behavior, of course.
2. The above link is valid for 15 days only.
3. There is a small mistake in the original shipdata.plist and equipment.plist with regards to the FdL HM3 entry. In shipdata.plist, the roles key must be defined. Add the following below the name key:Also, in equipment.plist, change the line that reads to
4. The above binary is for Windows. Mac/Linux users will have to build from the trunk source.
So , this is how it works: The valid accuracy values are fromhigher than 1.0 0.0 up to and including 10.0. The accuracy is divided by 10 and the result is passed to the code that adjusts missile course. Any values out of this range will result in course adjustment calculations being skipped and the missile will behave like the bog standard one. Any value higher than 10.0 will be clamped to 10.0 and any value lower than 0.0 will be clamped to 0.0. A value of 0.0 makes the missile behave like the standard type.
The reason accuracy has to be higher than 1.0 is that the game will set it by default to 1.0, if no accuracy value is specified in shipdata.plist or if the value is invalid for whatever reason. So, the default game missiles have an accuracy of 1.0. To keep the original behavior for the original missiles, I had to explicitly exclude the case of accuracy=1.0 from the course adjustment evaluation. It seems to be the best way to keep things simple. Nah, I think it's better the way it is now and it was not such a major change clamping missile accuracy in the range of 0.0-10.0 during entity initialization.
And finally, be aware that you can use decimal numbers for accuracy. If you want, you can specify an accuracy of 6.3, by using the key like this: Although the OXP is using integer keys, in reality the game defines accuracy as floating point, so the above
is perfectly valid.
Which leaves us with the biggest challenge of all: Who will take on the herculean task of making icons in descriptions.plist for all these types of missiles?
Edit: I did not like the fact that an accuracy value of 0.0 would be the same as a value of 1.0 (i.e. both ignored), so I changed a few things to make the valid accuracy range 0.0 to 10.0, as one would normally expect, at the same time not affecting default missile behavior. So, if for any strange reason one would like to use a missile accuracy of 0.5, it can now be done. However, this change is not reflected in the above linked binary. But the exe should still be good enough for testing.
http://terrastorage.ath.cx/Marmagka/QGi ... oolite.exe
Before anything else, just a few things to note:
1. This is NOT a development (current SVN) build. This is just vanilla 1.70 with a bit of extra code to specifically test missile behavior with variable accuracy. Do not expect any bug fixes or additions to the original 1.70 and please do not report any bugs related to this particular build, other than ones related to missile behavior, of course.
2. The above link is valid for 15 days only.
3. There is a small mistake in the original shipdata.plist and equipment.plist with regards to the FdL HM3 entry. In shipdata.plist, the roles key must be defined. Add the following below the name key:
Code: Select all
<key>roles</key>
<string>missile EQ_FDLHM3_MISSILE</string>
Code: Select all
EQ_MISSILE
Code: Select all
EQ_FDLHM3_MISSILE
So , this is how it works: The valid accuracy values are from
And finally, be aware that you can use decimal numbers for accuracy. If you want, you can specify an accuracy of 6.3, by using the key like this:
Code: Select all
<key>accuracy</key>
<real>6.3</real>
is perfectly valid.
Which leaves us with the biggest challenge of all: Who will take on the herculean task of making icons in descriptions.plist for all these types of missiles?
Edit: I did not like the fact that an accuracy value of 0.0 would be the same as a value of 1.0 (i.e. both ignored), so I changed a few things to make the valid accuracy range 0.0 to 10.0, as one would normally expect, at the same time not affecting default missile behavior. So, if for any strange reason one would like to use a missile accuracy of 0.5, it can now be done. However, this change is not reflected in the above linked binary. But the exe should still be good enough for testing.
Last edited by another_commander on Wed Jan 02, 2008 11:36 am, edited 1 time in total.
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Yes, you can use it, but be aware that, as it is, the FdL HM3 missile is practically ignored by the game and although you see it in the equipment list, if you buy it you just get a normal missile instead. Other than that it will work. Just install it as you normally would.
If you run the OXP with the normal 1.70 oolite.exe, the different accuracies of different missiles are not taken into account and all of theses missiles behave pretty much the same. To see different missiles behaving differently, you will need to use the executable I linked to in my previous post.
Hope this helps.
Edit: Oh, and one more thing: It may be quite tricky noticing a difference between a missile with accuracy 4 and one with accuracy 6, but you can definitely see it if you compare a normal game missile with, say, the Taranis super-duper one.
If you run the OXP with the normal 1.70 oolite.exe, the different accuracies of different missiles are not taken into account and all of theses missiles behave pretty much the same. To see different missiles behaving differently, you will need to use the executable I linked to in my previous post.
Hope this helps.
Edit: Oh, and one more thing: It may be quite tricky noticing a difference between a missile with accuracy 4 and one with accuracy 6, but you can definitely see it if you compare a normal game missile with, say, the Taranis super-duper one.
- Cmdr. Maegil
- Sword-toting nut-job
- Posts: 1294
- Joined: Tue Feb 27, 2007 10:28 pm
- Location: On the mend in Western Africa
The ideawas to have the same missile, just changing its name. The same should go for the FdL XHM5.another_commander wrote:Yes, you can use it, but be aware that, as it is, the FdL HM3 missile is practically ignored by the game and although you see it in the equipment list, if you buy it you just get a normal missile instead.
Again, that's the point - you can find several products of similar quality, but also top- and lower-end models.Edit: Oh, and one more thing: It may be quite tricky noticing a difference between a missile with accuracy 4 and one with accuracy 6, but you can definitely see it if you compare a normal game missile with, say, the Taranis super-duper one.
You know those who, having been mugged and stabbed, fired, dog run over, house burned down, wife eloped with best friend, daughters becoming prostitutes and their countries invaded - still say that "all is well"?
I'm obviously not one of them.
I'm obviously not one of them.
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
I may have been misunderstood. All I meant to say was that, if anyone tries the test executable, it would be much easier to notice differences between missiles if they compare the performance of the high end versus the low end models. Otherwise, we might have people saying "I tried it but I don't see any difference between the missiles". I was speaking more from a technical point of view, rather than commenting on the OXP itself.Cmdr. Maegil wrote:Again, that's the point - you can find several products of similar quality, but also top- and lower-end models.Edit: Oh, and one more thing: It may be quite tricky noticing a difference between a missile with accuracy 4 and one with accuracy 6, but you can definitely see it if you compare a normal game missile with, say, the Taranis super-duper one.
- Cholmondely
- Archivist
- Posts: 5368
- Joined: Tue Jul 07, 2020 11:00 am
- Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
- Contact:
Re: Missile Options OXP
Wiki page now up: Maegil's Missiles
Comments wanted:
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?