question: witchspace countdown....
Moderators: winston, another_commander
- nijineko
- ---- E L I T E ----
- Posts: 353
- Joined: Wed Jul 04, 2007 3:37 pm
- Location: two strange quarks short of a graviton....
- Contact:
question: witchspace countdown....
can this count-down be lengthened or shortened by any means? (short of recoding core stuff, that is....)
-
- Quite Grand Sub-Admiral
- Posts: 6682
- Joined: Wed Feb 28, 2007 7:54 am
Re: question: witchspace countdown....
Yes, and it does not seem to be such a big deal doing it either (btw, every single time I thought something would be easy to code, reality has proven me wrong).nijineko wrote:can this count-down be lengthened or shortened by any means? (short of recoding core stuff, that is....)
-
- Quite Grand Sub-Admiral
- Posts: 6682
- Joined: Wed Feb 28, 2007 7:54 am
... and done. A new key in shipdata.plist has been added, namely hyperspace_motor_spin_time. If not set, it defaults to 15.0 seconds countdown. If set, the countdown time will be whatever number you set it to. This way, different ships can have different hyperspace motors (i.e. motors that take a long time to spin or others that can spin up really fast).
Game tactics can be affected by this. Players intending to ramp up their kill count by deliberately getting into trouble may want to acquire a ship with a quick-spin motor, just to be able to get out of said trouble in a flash, if they have to. Obviously, at this time, all ships are the same, but this may be something to keep in mind for future designs.
One other thing to note is that, if you have any of the custom sounds OXPs that have a timed sound file for the countdown and you change the default HMST, the voice counting down will be completely out of sync with the actual countdown on screen. Also, ships with spin times longer than 15 to 20 seconds may not be capable of completing the Nova mission,
Game tactics can be affected by this. Players intending to ramp up their kill count by deliberately getting into trouble may want to acquire a ship with a quick-spin motor, just to be able to get out of said trouble in a flash, if they have to. Obviously, at this time, all ships are the same, but this may be something to keep in mind for future designs.
One other thing to note is that, if you have any of the custom sounds OXPs that have a timed sound file for the countdown and you change the default HMST, the voice counting down will be completely out of sync with the actual countdown on screen. Also, ships with spin times longer than 15 to 20 seconds may not be capable of completing the Nova mission,
read/write or read-only ?.. i suggest making it read/write...another_commander wrote:... and done. A new key in shipdata.plist has been added, namely hyperspace_motor_spin_time. If not set, it defaults to 15.0 seconds countdown. If set, the countdown time will be whatever number you set it to. This way, different ships can have different hyperspace motors (i.e. motors that take a long time to spin or others that can spin up really fast).
Game tactics can be affected by this. Players intending to ramp up their kill count by deliberately getting into trouble may want to acquire a ship with a quick-spin motor, just to be able to get out of said trouble in a flash, if they have to. Obviously, at this time, all ships are the same, but this may be something to keep in mind for future designs.
One other thing to note is that, if you have any of the custom sounds OXPs that have a timed sound file for the countdown and you change the default HMST, the voice counting down will be completely out of sync with the actual countdown on screen. Also, ships with spin times longer than 15 to 20 seconds may not be capable of completing the Nova mission,
Since i then can make Equipment that Jumps you out, in a jiffy, at a cost ofcourse... ;-P
Bounty Scanner
Number 935
Number 935
-
- Quite Grand Sub-Admiral
- Posts: 6682
- Joined: Wed Feb 28, 2007 7:54 am
Actually, it is just a key in shipdata.plist, like fuel, max_energy, etc. It is not under JavaScript control yet, but once a ship has been set up from shipdata, the value remains fixed. May add JS visibility if I manage to find the time to do it.Frame wrote:read/write or read-only ?.. i suggest making it read/write...
- Disembodied
- Jedi Spam Assassin
- Posts: 6885
- Joined: Thu Jul 12, 2007 10:54 pm
- Location: Carter's Snort
- Amen Brick
- Deadly
- Posts: 187
- Joined: Sat May 10, 2008 5:22 pm
- Location: Bolton!
That would be a wormhole.Amen Brick wrote:How's about an 'emergency' witchspace jump that takes no time, but you have no control over which nearby system you land in, which could put you in deeper doodoo or safe?
The Grey Haired Commander has spoken!
OK so I'm a PC user - "you know whats scary? Out of billions of sperm I was the fastest"
OK so I'm a PC user - "you know whats scary? Out of billions of sperm I was the fastest"
- pagroove
- ---- E L I T E ----
- Posts: 3035
- Joined: Wed Feb 21, 2007 11:52 pm
- Location: On a famous planet
What about being able to install different hyperdrives in your ships. Better engines take more room or are more expensive.
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
https://bb.oolite.space/viewtopic.php?f=4&t=13709
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
https://bb.oolite.space/viewtopic.php?f=4&t=13709
Can we have a little bit more info - I like the idea of smaller ships having faster witchspace countdownanother_commander wrote:... and done. A new key in shipdata.plist has been added, namely hyperspace_motor_spin_time. If not set, it defaults to 15.0 seconds countdown. If set, the countdown time will be whatever number you set it to.
The only 'Shipdata.plist' I can find is in '\oolite.app\Resources\Config' so I guess this is it (I'm running Oolite off a USB Flashdrive)
I also assume that you place 'hyperspace_motor_spin_time' in one of the 'player' groups (I've got a cobra mk 3 so it'll be in '"cobra3-player" =' section for example)
I've tried this hyperspace_motor_spin_time = 5; (placed it just after 'thrust = 32'), but countdown stays at 15secs
Am I putting it in the wrong place ??
I'm using WindowsXP with Oolite v1.71.2 (OXP = fighterHud/SystemRedux)
-
- Quite Grand Sub-Admiral
- Posts: 6682
- Joined: Wed Feb 28, 2007 7:54 am
Awww shame - I was looking forward to shorter Witchspace countdowns, but now I have to wait for v1.72 - dam
But what's this about 'holding shift' when restarting Oolite ??
What is it/will it suppose to do ?
When do we hold shift down ?
> When we double-click 'RunOolite.bat'
> When Oolite main [black] screen pops up
> When asked 'Load New Commander ?'
But what's this about 'holding shift' when restarting Oolite ??
What is it/will it suppose to do ?
When do we hold shift down ?
> When we double-click 'RunOolite.bat'
> When Oolite main [black] screen pops up
> When asked 'Load New Commander ?'
-
- Quite Grand Sub-Admiral
- Posts: 6682
- Joined: Wed Feb 28, 2007 7:54 am
I'll try to explain it as simply as I can: Oolite creates a cache file the first time it runs, which consists of almost all information read from all the Resources and OXP folders that it can locate. It does that in order to avoid having to look up this information during game time, thus improving performance. This cache file under Windows is located in [GameDir]\oolite.app\GNUstep\Library\Caches and is completely rebuilt every time you add or remove an OXP folder, since the game info changes. You may have noticed that the first startup - and any startup after removing or adding an OXP - takes considerably longer than normal to complete.
The catch is that if you just edit .plist files within a folder, the game information still changes, but Oolite cannot see the modifications. It has to see a folder removal or addition to rebuild its cache file. So, if you edit plists and start Oolite, it will still be reading information from its cache file, which does not contain your edits.
In order to get the game to see the modifications, you must hold Shift while doubleclikcikng the RunOolite.bat file. This instructs Oolite that it must unconditionally rebuild the cache file. This way, your changes are read in and incorporated for future use. How long you must hold Shift is something that cannot be determined exactly, but it is safe to say that if you keep it pressed until the spinning Cobra appears you can be sure that the cache has been rebuilt successfully.
This is why it is important to hold Shift when you edit shipdata.plist in your case. You are editing a file inside a game folder, so you must inform the game yourself of the change.
I hope this is clear enough and helps a bit.
The catch is that if you just edit .plist files within a folder, the game information still changes, but Oolite cannot see the modifications. It has to see a folder removal or addition to rebuild its cache file. So, if you edit plists and start Oolite, it will still be reading information from its cache file, which does not contain your edits.
In order to get the game to see the modifications, you must hold Shift while doubleclikcikng the RunOolite.bat file. This instructs Oolite that it must unconditionally rebuild the cache file. This way, your changes are read in and incorporated for future use. How long you must hold Shift is something that cannot be determined exactly, but it is safe to say that if you keep it pressed until the spinning Cobra appears you can be sure that the cache has been rebuilt successfully.
This is why it is important to hold Shift when you edit shipdata.plist in your case. You are editing a file inside a game folder, so you must inform the game yourself of the change.
I hope this is clear enough and helps a bit.