The equipment is bought - this shows in the log - and the mission variable gets set - the bought station shows in the mission list where it should - but the text under "RockHermit_transaction" doesn't show and the model of the role "playerrockhermit" suddenly doesn't show either.
Cobble a test oxp together and look for yourself. It neither works in official 1.73 nor in the current trunk (SVN 2369 or somesuch)
L
Last edited by Lestradae on Wed Sep 02, 2009 10:01 pm, edited 1 time in total.
[self doScriptEvent:@"playerBoughtEquipment" withArgument:key];
[self setGuiToEquipShipScreen:0]; // show any change due to playerBoughtEquipment
It was never anticipated that a missionscreen was shown in the middle of buying things. And somewhere in the last 50 revisions the second line is added to make sure the equipment screen was correctly updated after this handler. It probably also needs a check to see if we are still on the equip screen
I would guess that's Kak's work on the equipment screen due to the bug I reported on Berlios about the screen not getting updated properly when you purchase weapon items that should only be available singly (the Captured Thargons in that case).
That also pops up a mission screen after you purchase it (to get around said bug by navigating away from the screen to force a refresh before next equipment can be bought), so I'll check that too.
[self doScriptEvent:@"playerBoughtEquipment" withArgument:key];
if (gui_screen == GUI_SCREEN_EQUIP_SHIP) [self setGuiToEquipShipScreen:0]; // show any change due to playerBoughtEquipment
should do the trick. At least normal buying is not hindered by it as I just tested.
But I one of the other members should do the update as my update would only go to trunk.
I'm afraid I got myself a huge dose of stupid when I was looking at that particular event. I did manage to correct the pre-existing bugs, but... well, the rest is history alredy.
I'm still kicking myself about crippling the laser purchases.
I'm still amazed and seriously impressed there's only one blooper... usually as soon as you announce anything close to a release, 20 new things come to light!
Will update my trunk test version now and look if it works again.
Thanks very much!
@Kaks: Come on, in the meantime even I can imagine how easy it is to overlook things like that - there must be trillions of ways to put an error into such a complex program as Oolite is and only a few options that work as intended ...
I tried everything with the newest trunk revision and A_C's fix has worked - very happy to report that now the buying and selling of player stations does work as intended again!
I hope this will make it into 1.73.1 as a bugfix, yes?
It's already in the 1.73.1 branch (aka 'maintenance'). That's why Eric said
But I one of the other members should do the update as my update would only go to trunk.
z & L: well, there's already 6 separate bugfixes ready for 1.73.1 - 4 other things that we didn't quite manage to sort out for 1.73, and maybe we'll be able to correct one or two more bugs. But I'm so not doing any last minute commit this time!