Technical support > Feature Requests

SVN 9088 Ship problem

<< < (4/7) > >>

vvb:

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


Well, now it seems all ok. May be I can try more test to catch the bug?

kracken:
yes, this is the same bug, and it's interesting because the speed of your aircraft is 10 before  adding the shield and 0 afterwards.

So the problem is probably coming from function AII_UpdateAircraftStats, or while parsing the datas of items.

Could you please try to add in cl_aircraft.c, line 2327 (under item = &aircraftItems[aircraft->electronics.itemIdx]; ) :

--- Code: ---if (currentStat == AIR_STATS_SPEED)
Com_Printf("%i and %f gives ", aircraft->stats[AIR_STATS_SPEED],
item->stats[currentStat]);

--- End code ---


and line 2333 (under aircraft->stats[currentStat] *= item->stats[currentStat]; )

--- Code: ---if (currentStat == AIR_STATS_SPEED)
Com_Printf("%i\n", aircraft->stats[AIR_STATS_SPEED]);

--- End code ---


then start a new game, built a base, and look at the console. You should see something like :

--- Code: ---10 and 0.000000 gives 10
10 and 0.000000 gives 10
30 and 0.900000 gives 26
26 and 0.000000 gives 26
--- End code ---


Now install a new fuel pod to your aircraft, wait 2 hours, and tell me what is written in your console ;)

Seculor:
I can't test the latest svn right now, but after adding the Com_Printf to the old svn8888 version of the file, i'm not getting any additional console output after building a new base or adding a fuel tank:



--- Code: ---====== UFO Initialized ======

Com_ParseValue: a V_RELABS (relative) value should only be between 0.00..1 and 2.0
Com_ParseValue: a V_RELABS (relative) value should only be between 0.00..1 and 2.0
Com_ParseValue: a V_RELABS (relative) value should only be between 0.00..1 and 2.0
Com_ParseValue: a V_RELABS (relative) value should only be between 0.00..1 and 2.0
Com_ParseValue: a V_RELABS (relative) value should only be between 0.00..1 and 2.0
Com_GetItemByID: Item "craft_weapon_particle_beam" not found.
Global data loaded - size 4946440 bytes
...techs: 149
...buildings: 19
...ranks: 16
...nations: 8

Activate stage intro
Com_GetItemByID: Item "craft_weapon_particle_beam" not found.
Initializing aircrafts and aircraft-items ...
...aircraft and aircraft-items inited
Changing to Singleplayer
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
Save user settings to /home/iouri/.ufoai/2.2-dev/base/config.cfg
SDL audio device shut down.
recursive shutdown

--- End code ---


And the fuel tank doesn't get installed, it just always says "Will be installed in 2 hours"

Agrajag:
I have the same problem in 9189.

If I change any equipment on the firebird, then wait a few days till a mission shows up, the speed is changed to -3 (negative three).

If i start the craft from the Aircraft menu i appears on the geoscape but can't move anywhere but back to base. Leaving it until it runs out of fuel crashes the game.

Btw thanks for the tip about console fonts. I kept deleting the console file 'cos it bothered me. I'll try to do the bug again and give you a log (if needed?)

vvb:

--- Quote from: "kracken" --- ...start a new game, built a base, and look at the console.
--- End quote ---

 
 After starting new game I have:

--- Code: ---
Activate stage intro
Com_GetItemByID: Item "craft_weapon_particle_beam" not found.
Initializing aircrafts and aircraft-items ...
...aircraft and aircraft-items inited
Changing to Singleplayer
10 and 0.000000 gives 10
10 and 0.000000 gives 10
30 and 0.900000 gives 26
26 and 0.000000 gives 26
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ
CL_UpdateHireVar()... aircraft idx: 0, homebase: PHALANX HQ

--- End code ---



--- Quote from: "kracken" --- Now install a new fuel pod to your aircraft, wait 2 hours, and tell me what is written in your console ;)
--- End quote ---


 After installation and 2 hours of waiting:

--- Code: ---
10 and 0.000000 gives 0
10 and 0.900000 gives 8
8 and 0.000000 gives 0

--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version