Random Hits - abandon mission without leaving galaxy?
Moderators: winston, another_commander
-
- Average
- Posts: 15
- Joined: Sun Jun 13, 2010 2:54 pm
Random Hits - abandon mission without leaving galaxy?
As those of you who saw my first post will know, I'm pottering round G2 in a Cobra Mk I, and getting blown to bits fairly consistently.
I need cash to upgrade to a Mk III but the 400-500 credits per easy Random Hits mission (plus the travel time) was just going to take too long. So I thought I'd pick a slightly harder mission for 5k...
Bad idea.
I'm getting ripped apart every time by my target's escorts whose lasers just don't miss!
I tried accepting an easy mission but my mission list is still showing the harder one.
Is it possible to abandon a mission without leaving the galaxy? I'm trying to save money and don't want to cough up for a Galactic drive but at the same time I don't want to be stuck on a mission that I can't do in this ship (yeah yeah, workman blaming tools, I know I know...!)[/u]
I need cash to upgrade to a Mk III but the 400-500 credits per easy Random Hits mission (plus the travel time) was just going to take too long. So I thought I'd pick a slightly harder mission for 5k...
Bad idea.
I'm getting ripped apart every time by my target's escorts whose lasers just don't miss!
I tried accepting an easy mission but my mission list is still showing the harder one.
Is it possible to abandon a mission without leaving the galaxy? I'm trying to save money and don't want to cough up for a Galactic drive but at the same time I don't want to be stuck on a mission that I can't do in this ship (yeah yeah, workman blaming tools, I know I know...!)[/u]
Commander Flashheart, Cobra Mk 1. "I've got a plan, and it's as hot as my pants!"
- Smivs
- Retired Assassin
- Posts: 8408
- Joined: Tue Feb 09, 2010 11:31 am
- Location: Lost in space
- Contact:
I don't believe I'm suggesting this, but had you considered an Energy Bomb?
Commander Smivs, the friendliest Gourd this side of Riedquat.
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
I didn't thought at that. That will kill them. No reward, but at least the mission is finished.Smivs wrote:I don't believe I'm suggesting this, but had you considered an Energy Bomb?
The code itself gives no option for withdrawal of a mission. I don't know if this had a real reason, or that it was just difficult to implement (In legacy code does any addition influence the whole script so things become complex fast). In the current JS version there is already a special screen for docking while a mission is running. It would be simple to add a third choice: cancel the mission at 10% of the contract value
But that is to Little Bear to decide.
UPS-Courier & DeepSpacePirates & others at the box and some older versions
-
- Average
- Posts: 15
- Joined: Sun Jun 13, 2010 2:54 pm
Thanks guys. That would probably work.
However, it's a moot point now:
I went back to the planet for the 20th time, started getting ripped apart by acurate lasers. This time I managed to destroy the fleet by picking off one, zooming away to let shields recover and then re-engaging.
Didn't find the target though.
On pressing F5 I found out he'd had an unfortunate accident and I was compensated to the tune of 103 Cr.
Nice. So much for my easy money!!
However, it's a moot point now:
I went back to the planet for the 20th time, started getting ripped apart by acurate lasers. This time I managed to destroy the fleet by picking off one, zooming away to let shields recover and then re-engaging.
Didn't find the target though.
On pressing F5 I found out he'd had an unfortunate accident and I was compensated to the tune of 103 Cr.
Nice. So much for my easy money!!
Commander Flashheart, Cobra Mk 1. "I've got a plan, and it's as hot as my pants!"
- Poro
- Deadly
- Posts: 249
- Joined: Sun Jan 03, 2010 1:51 am
- Location: Don't look in your aft view...
- Contact:
I've yet to engage a mark that doesn't use fuel injectors to escape when you hit them a couple of times. Try to identify your target as quickly as possible, and hit 'em a couple of times. They will probably boost away and leave their friends behind - giving you ample chance to isolate them and gradually run down their shields.
The only thing to worry about is how long it will take their friends to catch up.
The only thing to worry about is how long it will take their friends to catch up.
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Re: Random Hits - abandon mission without leaving galaxy?
It was never thought of that someone would want to cancel a mission. But, if you want to be a coward: I added now a cancel option. It will cost you 10% of the contract fee and also your status it lowered. The cancel option will only be there if you have enough money to cancel....el_Paraguayo wrote:...I'm getting ripped apart every time by my target's escorts whose lasers just don't miss!
I tried accepting an easy mission but my mission list is still showing the harder one.
Is it possible to abandon a mission without leaving the galaxy?
Just uploaded it as version 1.4.1.
UPS-Courier & DeepSpacePirates & others at the box and some older versions
Re: Random Hits - abandon mission without leaving galaxy?
Nice one, Eric. I cannot imagine ever cancelling a mission, but it's nice to know the option is there.Eric Walch wrote:It was never thought of that someone would want to cancel a mission. But, if you want to be a coward: I added now a cancel option. It will cost you 10% of the contract fee and also your status it lowered. The cancel option will only be there if you have enough money to cancel....
Just uploaded it as version 1.4.1.
By the way, not that it's relevant, but in case nobody has reported it yet: Random Hits missions are a no-go in trunk. Script runs too long, gets the axe. The space bars are still there, though, and I still visit them for the visual enjoyment and occasional trading and even more occasional massive gun battles outside.
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Re: Random Hits - abandon mission without leaving galaxy?
Yes, currently trunk is not really suited for playing because of a lot of script cut-off code. (At least playing a mission would be not wise as an important piece of code for that mission might not run) The idea is to find bottlenecks in the code and see if such things can be optimised. Adding ships is the slowest code but that is already excluded from the timer. The second slowest code is probably scanning of entities. I already reduced the scanning around to bar by at least 90%. Instead of all individual ships doing the scan, its only the bar that does a full scan and send the other ships an attack message when needed.caracal wrote:By the way, not that it's relevant, but in case nobody has reported it yet: Random Hits missions are a no-go in trunk. Script runs too long, gets the axe. The space bars are still there, though, and I still visit them for the visual enjoyment and occasional trading and even more occasional massive gun battles outside.
Ahruman is working at this code. I assume that code that can't be optimised, just will get a longer allowed time in future.
UPS-Courier & DeepSpacePirates & others at the box and some older versions
Re: Random Hits - abandon mission without leaving galaxy?
Yes. I know this. You and a_c and Thargoid and Ahruman and anybody else who is within fifty light years has said this about seven hundred times since the 13th. Should I just keep quiet about any anomaly I see when running trunk, and let you discover it yourself in due time? Do bugs in trunk just magically run out into the light without benefit of playtesting? If so, let me know how you guys do that, because I have some code that could use the technique!Eric Walch wrote:Yes, currently trunk is not really suited for playing because of a lot of script cut-off code. (At least playing a mission would be not wise as an important piece of code for that mission might not run) The idea is to find bottlenecks in the code and see if such things can be optimised.
I'm sorry for being a bit testy about this subject, Eric, but it seems I have to wade past a lecture every time I try to help in this way. I've been a professional programmer for over thirty-five years, and have been following oolite (and building it from source) for two. Any way I could get, like, a badge or something, that says that you can assume I'm not a total idiot from square one?
Sure, it makes sense for rooting out bugs that might not be obvious any other way. And if any script is going to be hit by the timer check, it'll be Random Hits--of all the OXPs I have installed, oolite-randomHits.js is by far the largest, almost twice the size of its nearest competitor. I was just noting the behavior, not complaining about it.Eric Walch wrote:Adding ships is the slowest code but that is already excluded from the timer. The second slowest code is probably scanning of entities. I already reduced the scanning around to bar by at least 90%. Instead of all individual ships doing the scan, its only the bar that does a full scan and send the other ships an attack message when needed.
Ahruman is working at this code. I assume that code that can't be optimised, just will get a longer allowed time in future.
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Re: Random Hits - abandon mission without leaving galaxy?
Any bug report is welcome. However, as the code has just been implemented and is still strongly changing, I think a lot of the reports are false reports were Ahruman is still working on. I think it will take some time for cut-off are reliable.caracal wrote:Sure, it makes sense for rooting out bugs that might not be obvious any other way. And if any script is going to be hit by the timer check, it'll be Random Hits--of all the OXPs I have installed, oolite-randomHits.js is by far the largest, almost twice the size of its nearest competitor. I was just noting the behavior, not complaining about it.Eric Walch wrote:Adding ships is the slowest code but that is already excluded from the timer. The second slowest code is probably scanning of entities. I already reduced the scanning around to bar by at least 90%. Instead of all individual ships doing the scan, its only the bar that does a full scan and send the other ships an attack message when needed.
Ahruman is working at this code. I assume that code that can't be optimised, just will get a longer allowed time in future.
That said, their might be already bugs in the current code that are worth reporting.
For random hits, it is not the oxp itself that is shut off, but the scanning of the bar for offenders. And the cut-off seems to depend on the number of installed oxp's also. When playing with my full set of oxps I see cut-offs in the log that do work in my reduced oxp environment.
UPS-Courier & DeepSpacePirates & others at the box and some older versions
Re: Random Hits - abandon mission without leaving galaxy?
Hi caracal,caracal wrote:By the way, not that it's relevant, but in case nobody has reported it yet: Random Hits missions are a no-go in trunk. Script runs too long, gets the axe.
First off, and seriously: thanks for the report, always appreciated.
Hopefully we should be upgrading the js engine soon. By we I actually mean Ahruman, once he's back from his holidays: nobody is particularly keen on touching that part of Oolite, mainly because of the amount of potential breakages that could happen as a result, so by default the Supreme Grand Admiral found that unenviable task sitting on his lap.
Once that upgrade is made, all the code time-out problems will be worked on, hopefully in an orderly fashion, but before then it might not make too much sense to try and correct parts of the code that might be removed/modified beyond recognition in a couple of weeks time.
Probably the best thing to do - until the new!, improved! js engine is put in place - is to keep a unified list of what oxps (/ oxp combinations) are way too slow, so when we finally get round to working on it it's easy to find the information, rather than chase it down various seemingly unrelated threads...
PS: I don't think anybody thought you don't know what you're doing/talking about, it's just that we're trying to say we can't work on those specific problems just yet!
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
Or to put it another way, the reports are of great interest, but to the game trunk developers rather than the OXP makers themselves at this stage.
Our work will follow later once the engine has been changed, the turbo cleaned out and the nitrous injectors refitted and upgraded. Oh and the Stig has taken it around the track once or twice
And yes it is something of a mantra for many of us, simply because we get reports so often by people who are trying to use trunk for gaming and who don't know the "back history" nor have heard the warnings. Consider yourself the blessed exception to the rule
Our work will follow later once the engine has been changed, the turbo cleaned out and the nitrous injectors refitted and upgraded. Oh and the Stig has taken it around the track once or twice
And yes it is something of a mantra for many of us, simply because we get reports so often by people who are trying to use trunk for gaming and who don't know the "back history" nor have heard the warnings. Consider yourself the blessed exception to the rule
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
Re: Random Hits - abandon mission without leaving galaxy?
Too soon, huh?Eric Walch wrote:Any bug report is welcome. However, as the code has just been implemented and is still strongly changing, I think a lot of the reports are false reports were Ahruman is still working on.
Yeah, back when it first appeared, at 0.05 seconds, it was hitting a lot of scripts. Now at 0.25 just a rare few. The way Ahruman talked about it, some sort of script maximum time will probably be retained in the code, but setting it so low initially was more of a debugging tool, just to get an idea of the scope of the problem.Eric Walch wrote:I think it will take some time for cut-off are reliable.
This doesn't look like a bug to me, more an interesting fact to take note of. But it sounds like you have some ideas about why it's happening, and maybe you're waiting until a more "final" timeout value is chosen to see if any action is needed. I mean, we all like optimized code, but squeezing the last few nanoseconds out of code if unnecessary is a waste of time.Eric Walch wrote:That said, their might be already bugs in the current code that are worth reporting.
A-HA! So you do play the trunk version!Eric Walch wrote:For random hits, it is not the oxp itself that is shut off, but the scanning of the bar for offenders. And the cut-off seems to depend on the number of installed oxp's also. When playing with my full set of oxps I see cut-offs in the log that do work in my reduced oxp environment.
Interesting note about the number of OXPs affecting the run rate. Sounds like something I should try.
Re: Random Hits - abandon mission without leaving galaxy?
Yeah, sorry I got exercised over Eric's response. I know how it is on a support forum, and should have been more understanding.Kaks wrote:Hi caracal,
First off, and seriously: thanks for the report, always appreciated.
Oh? As in, moving to something other than SpiderMonkey, or actually tinkering with its internals? Or do you mean the way oolite uses SM?Kaks wrote:Hopefully we should be upgrading the js engine soon.
Poor man, and he's welcome to it. I know the JS engine itself is in C, but Ahruman wrestles daily with ObjectiveC as well. I've used some oddball languages in my time, but looking at ObjC makes my eyes burn. And my brain hurt. ("It will have to come out!")Kaks wrote:By we I actually mean Ahruman, once he's back from his holidays: nobody is particularly keen on touching that part of Oolite, mainly because of the amount of potential breakages that could happen as a result, so by default the Supreme Grand Admiral found that unenviable task sitting on his lap.
Right, hence my comment to Eric about unnecessary optimization. I just shouldn't have posted my initial comment, sigh.Kaks wrote:Once that upgrade is made, all the code time-out problems will be worked on, hopefully in an orderly fashion, but before then it might not make too much sense to try and correct parts of the code that might be removed/modified beyond recognition in a couple of weeks time.
Is there already such a thread, and I missed it? Anyway, the only timeout I've seen since the switch to 0.25 seconds is Random Hits.Kaks wrote:Probably the best thing to do - until the new!, improved! js engine is put in place - is to keep a unified list of what oxps (/ oxp combinations) are way too slow, so when we finally get round to working on it it's easy to find the information, rather than chase it down various seemingly unrelated threads...
Don't bullshit a bullshitter, my friend. After you've run a support forum for a while, you begin to assume that everybody is an idiot (especially when they approach a hot-button issue like I did), unless you know them personally. I just haven't been around long enough, I suppose. Anyway, I apologize for causing a ruckus, and will choose my words more carefully in the future.Kaks wrote:PS: I don't think anybody thought you don't know what you're doing/talking about, it's just that we're trying to say we can't work on those specific problems just yet!