Technical support > Feature Requests
SVN 9088 Ship problem
kracken:
--- Quote from: "vvb" ---In SVN 9088 I can't just start ANY mission. My ship just CAN'T reach ufo.
I've place TWO fuel tanks, ship is refueled (100/100).
My base is in the Europe. UFO is near the Paris.
When I try to send it there, I get:
Your aircraft doesn't have enough fule to go there and then return come back to it's home base.
--- End quote ---
I fixed a bug in AIR_AircraftHasEnoughFuel(), and I hope that will solve your problem (I didn't manage to reproduce this bug on my computer, however, so I'm not sure).
I also fixed the bug that made the fuel pods useless (now, you should have +30 fuel per fuel pod).
Could you try latest release, please ?
If it still doesn't work, set developer to 1 and see what is written in console when it says that you don't have enough fuel. It should look like:
--- Code: ---
distance to go to destination: 63.181278
distance to go to destination and then come back to base: 116.836700
Your aircraft doesn't have enough fuel to go there and then come back to its home base. It can only fly on: 53.727778
--- End code ---
vvb:
--- Quote from: "kracken" ---
I fixed a bug in AIR_AircraftHasEnoughFuel(), and I hope that will solve your problem (I didn't manage to reproduce this bug on my computer, however, so I'm not sure).
I also fixed the bug that made the fuel pods useless (now, you should have +30 fuel per fuel pod).
Could you try latest release, please ?
If it still doesn't work, set developer to 1 and see what is written in console when it says that you don't have enough fuel. It should look like:
--- Code: ---
distance to go to destination: 63.181278
distance to go to destination and then come back to base: 116.836700
Your aircraft doesn't have enough fuel to go there and then come back to its home base. It can only fly on: 53.727778
--- End code ---
--- End quote ---
I've install two fuel tanks, refuel ship (160/160). When trying to send ship to UFO, I get:
--- Code: ---
distance to go to destination: 51.085617
distance to go to destination and then come back to base: 102.171234
Your aircraft doesn't have enough fuel to go there and then come back to its home base. It can only fly on: 0.000000
--- End code ---
kracken:
--- Quote from: "vvb" ---
I've install two fuel tanks, refuel ship (160/160). When trying to send ship to UFO, I get:
--- End quote ---
I didn't really understood if the problem is when you try to go to a mission (with battlescape), or when you try to intercept a flying UFO.
Could you also confirm me that you are using a Firebird ?
And that would be nice if you could do 2 other tests for me, please:
1. after you got the error message, enter the console and type 'debug_aircraftlist'
there is a rather long output, could you give me the lines begining with 'stats' and 'fuel', please (for the firebird if this is the aircraft you use). It should look like:
--- Code: ---...stats: 0 7 0 0 0 0 160000 0
...fuel 160000
--- End code ---
2. Could you see if the is a savegame problem by starting a new game (I guess you're loading a savegame at the moment), and see if this bug still exists.
Thank you
vvb:
--- Quote from: "kracken" ---I didn't really understood if the problem is when you try to go to a mission (with battlescape), or when you try to intercept a flying UFO.
--- End quote ---
Problem is occured when I try to go on mission with Firebird ship.
I have error message when I load savegame, and when I start new game.
--- Quote from: "kraken" ---
And that would be nice if you could do 2 other tests for me, please... Thank you
--- End quote ---
One strange thing.
When I add fuel tank to ship and return to 'Aicraft' menu, numbers 0/0 are displayed here. If I press 'Done' button, and again choose 'Aircraft' menu, numbers are now 0/100.
So here is output of command 'debug_aircraftlist' after error message.
--- Code: ---
ExecuteString: 'debug_aircraftlist'
Aircrafts in base PHALANX HQ: 2
Aircraft Firebird-class Dropship
...idx cur=base/global 0=0/0
...weapon slot 0 is empty
...shield slot is empty
...electronics slot 0 contains craft_el_fuelpod (functional)
...electronics slot 1 is empty
...stats: 0 0 0 0 0 0 130000 0
...name craft_drop_firebird
...speed 0
...type 0
...size 8
...status At homebase
...pos 85:55
...team: (8/8)
--- End code ---
Strange thing. I have line 'stats', but there is no 'fuel' line here... 8-/
I have SVN 9146.
kracken:
--- Quote from: "vvb" ---Strange thing. I have line 'stats', but there is no 'fuel' line here... 8-/
--- End quote ---
Oups, sorry, I forgot to commit the modification to display fuel. It is now in revision 9177.
Anyway, the speed of your aircraft is 0, and should be higher, this is why you can't move your aircraft. I don't now yet what causes this bug, I don't have this problem on my computer.
Could you check in your base/ufo/aircraftmanagement.ufo that you have a line speed 10 in the stats of your firebird ? (line 59 in current file)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version