project-navigation
Personal tools

Author Topic: SVN 9088 Ship problem  (Read 13560 times)

vvb

  • Guest
SVN 9088 Ship problem
« on: June 14, 2007, 08:36:15 pm »
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.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
SVN 9088 Ship problem
« Reply #1 on: June 14, 2007, 09:33:31 pm »
that's currently work in progress

vvb

  • Guest
SVN 9088 Ship problem
« Reply #2 on: June 15, 2007, 08:58:49 pm »
Quote from: "Mattn"
that's currently work in progress


Is it possible to erase checking of fuel level?
It is impossible to play game now becouse of it.
SVN 9088, SVN9133... How long is it takes to complete code?
Anyway, now game in SVN is unusable.... 8-(

Wanderer

  • Guest
SVN 9088 Ship problem
« Reply #3 on: June 15, 2007, 10:21:52 pm »
Quote from: "vvb"
Quote from: "Mattn"
that's currently work in progress


Is it possible to erase checking of fuel level?
It is impossible to play game now becouse of it.
SVN 9088, SVN9133... How long is it takes to complete code?
Anyway, now game in SVN is unusable.... 8-(


Grab the trunk until this is fixed?  Just an idea.  The SVN is never guarantee'd to be functioning.

[EDIT: Drrrr.... I meant the 2.1.1 stable version.  I don't know if this code is introduced to the svn trunk but I assume it is.]

Offline Zenerka

  • Sergeant
  • *****
  • Posts: 301
    • View Profile
SVN 9088 Ship problem
« Reply #4 on: June 16, 2007, 01:26:39 am »
Quote from: "vvb"
Is it possible to erase checking of fuel level?

src/client/cl_aircraft.c
function AIR_AircraftHasEnoughFuel()
make it return qtrue in every case (replace return qfalse with return qtrue in this function)

HTH

Offline kracken

  • Squad Leader
  • ****
  • Posts: 159
    • View Profile
Re: SVN 9088 Ship problem
« Reply #5 on: June 16, 2007, 07:05:59 pm »
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.


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: [Select]

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

vvb

  • Guest
Re: SVN 9088 Ship problem
« Reply #6 on: June 16, 2007, 08:14:49 pm »
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: [Select]

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


I've install two fuel tanks, refuel ship (160/160). When trying to send ship to UFO, I get:
Code: [Select]

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

Offline kracken

  • Squad Leader
  • ****
  • Posts: 159
    • View Profile
Re: SVN 9088 Ship problem
« Reply #7 on: June 17, 2007, 06:58:47 pm »
Quote from: "vvb"

I've install two fuel tanks, refuel ship (160/160). When trying to send ship to UFO, I get:


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: [Select]
...stats: 0 7 0 0 0 0 160000 0
...fuel 160000


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

  • Guest
Re: SVN 9088 Ship problem
« Reply #8 on: June 17, 2007, 07:51:51 pm »
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.


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


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: [Select]

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)


Strange thing. I have line 'stats', but there is no 'fuel' line here... 8-/
I have SVN 9146.

Offline kracken

  • Squad Leader
  • ****
  • Posts: 159
    • View Profile
Re: SVN 9088 Ship problem
« Reply #9 on: June 17, 2007, 11:12:07 pm »
Quote from: "vvb"
Strange thing. I have line 'stats', but there is no 'fuel' line here... 8-/


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)

vvb

  • Guest
Re: SVN 9088 Ship problem
« Reply #10 on: June 18, 2007, 09:03:27 pm »
Quote from: "kracken"
Oups, sorry, I forgot to commit the modification to display fuel. It is now in revision 9177.


 I've try revision 9190. Same old thing.

Quote from: "kracken"
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.


 I don't know... Today I look through the output of compiling... I don't found nothing suspicious... I'm using Fedora Core 6...
 So, here is full output of New Game created, base in North America (near first UFO). Two fuel tanks are added, refuel in process... Try to send Firebird on first mission.
Code: [Select]

]developer 1
ExecuteString: '+select 178 44746'
ExecuteString: 'multi_select_click'
ExecuteString: '-select 178 44812'
ExecuteString: '+select 178 45999'
ExecuteString: 'ships_click 0'
distance to go to destination: 17.658939
distance to go to destination and then come back to base: 35.317879
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
ExecuteString: '-select 178 46065'
ExecuteString: '-turnright 100 48771'
ExecuteString: '-turnup 114 49783'
]developer 0
ExecuteString: 'developer 0'
]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 contains craft_el_fuelpod (functional)
...stats: 0 0 0 0 0 0 160000 0
...name craft_drop_firebird
...type 0
...size 8
...fuel 119985
...status Refuel
...pos 88:51
...team: (8/8)
......idx (in global array): 7
.........name: Jana Zaharova
......idx (in global array): 6
.........name: Kyoko Saitou
......idx (in global array): 5
.........name: Luca Gonzalez
......idx (in global array): 4
.........name: Denise Mayer
......idx (in global array): 3
.........name: Andrew Furlong
......idx (in global array): 2
.........name: Adham Sulaiman
......idx (in global array): 1
.........name: Jaja Adedayo
......idx (in global array): 0
.........name: Natara Nasser
Aircraft Stiletto-class Interceptor
...idx cur=base/global 1=1/1
...weapon slot 0 contains craft_weapon_sparrowhawk (functional)
......this weapon is loaded with ammo craft_ammo_sparrowhawk
...weapon slot 1 is empty
...weapon slot 2 is empty
...shield slot contains craft_shield_polymer (24 hours before installation is finished)
...electronics slot 0 contains craft_el_fuelpod (functional)
...electronics slot 1 is empty
...stats: 0 16 0 0 0 0 0 50
...name craft_inter_stiletto
...type 1
...size 1
...fuel 0
...status At homebase
...pos 88:51
...team: (0/1)
]quit


Quote from: "kracken"
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)


 Here it is. Everthing is just fine.
Code: [Select]

aircraft craft_drop_firebird                                                
{                                                                            
        param {                                                              
                speed           10                                          
                range           0                                            
                shield          0                                            
                ecm                     0                                    
                damage          0                                            
                accuracy        0                                            
                fuelsize        100000                                      
        }


 Another strange here in 9190. Now in console there is another font for text. Before 9190 the letters was very small, now they a just HUGE... 8-/

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
SVN 9088 Ship problem
« Reply #11 on: June 18, 2007, 10:17:59 pm »
yeah - i implemented a new console font - i you wanna switch to the smaller one: open the console, type con_font 1

to switch back to big font type con_font 0

vvb

  • Guest
SVN 9088 Ship problem
« Reply #12 on: June 19, 2007, 04:45:17 pm »
Quote from: "Mattn"
if you wanna switch to the smaller one: open the console, type con_font 1
to switch back to big font type con_font 0


 Is it possible to create font, which size is between these two fonts? The one is too small to see, the other one is TOO BIG. 8)

Offline kracken

  • Squad Leader
  • ****
  • Posts: 159
    • View Profile
SVN 9088 Ship problem
« Reply #13 on: June 19, 2007, 06:47:11 pm »
I made a workaround for your problem of 0 speed. Last commit should allow you to move your aircraft.

Please try it and tell me if this is OK.
I must say that I didn't manage to solve the problem, however...

Seculor

  • Guest
SVN 9088 Ship problem
« Reply #14 on: June 19, 2007, 08:54:33 pm »
I dont know if this is the same bug, but in the old svn8889 after I remove the shield from an aircraft, it can no longer fly anywhere. Here is the debug_aircraftlist output before i remove the shield:
Code: [Select]

Aircraft Firebird-class Dropship
...idx cur=base/global 0=0/0
...weapon
...shield
...item
...name craft_drop_firebird
...speed 10
...type 0
...size 8
...status At homebase
...pos -31:57
...team: (8/8)


and here it is with shield removed:

Code: [Select]

Aircraft Firebird-class Dropship
...idx cur=base/global 0=0/0
...weapon
...shield
...item
...name craft_drop_firebird
...speed 0
...type 0
...size 8
...status At homebase
...pos -31:57
...team: (8/8)