UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Closed Bug report #297 After bad hit:294 TUs for a soldier but no movement possible
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "Not determined".
Issue basics
  • Type of issue
    Bug report
  • Category
    Battlescape
  • Targetted for
    Not determined
  • Status
    Closed
  • Priority
    2. Low
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    Not estimated
Issue details
  • Resolution
    Not determined
  • Reproducability
    Not determined
  • Severity
    Not determined
  • Complexity
    Not determined
  • Platform
    Not determined
  • Architecture
    Not determined
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
[http://sourceforge.net/p/ufoai/bugs/297 Item 297] imported from sourceforge.net tracker on 2013-01-28 18:15:21

SVN:3303
Map:japan06n

System:
SuSE 10.1
xorg-x11-server-6.9.0-50.20
fglrx_6_9_0_SUSE101-8.27.10-1 (ATI Saphire RV350)

See attached screenshots(ufo08.jpg),the TU calculation
get wrong.First there are too many(>200),but there are
not enough time units to move(even not 1m),and
afterwards the bar for movement is scaled wrong(ufo09.jpg)

console.log:
===========================================
New morale is 2 - entity morale is 2
New morale is 201 - entity morale is 201
ExecuteString: 'deselpr'
ExecuteString: 'deselsr'
ExecuteString: 'deselpl'
ExecuteString: 'deselsl'
MSG_WriteByte: range error -7 ('game/g_client.c', line 90)
Jenniver Gibson ist verwirrt
ExecuteString: 'dispr'
ExecuteString: 'dissr'
ExecuteString: 'displ'
ExecuteString: 'dissl'
ExecuteString: 'deselfloor0'
ExecuteString: 'deselfloor1'
ExecuteString: 'deselfloor2'
ExecuteString: 'disfloor3'
ExecuteString: 'disfloor4'
ExecuteString: 'disfloor5'
ExecuteString: 'disfloor6'
ExecuteString: 'disfloor7'
ExecuteString: 'selfloor0'
CL_PlaceItem: shared container: '0x19b51f18'
Team 7 ended round, team 0's round started!
Team 0 ended round, team 1's round started!
ExecuteString: 'startround'
ExecuteString: 'levelup'
ExecuteString: 'deselfloor0'
ExecuteString: 'deselfloor1'
ExecuteString: 'deselfloor2'
ExecuteString: 'disfloor3'
ExecuteString: 'disfloor4'
ExecuteString: 'disfloor5'
ExecuteString: 'disfloor6'
ExecuteString: 'disfloor7'
ExecuteString: 'selfloor1'
ExecuteString: '+select 178 2335997'
ExecuteString: 'deselpr'
ExecuteString: 'deselsr'
ExecuteString: 'deselpl'
ExecuteString: 'deselsl'
ExecuteString: 'tostand'
ExecuteString: 'startreaction'
ExecuteString: 'hudselect0'
ExecuteString: 'huddeselect1'
ExecuteString: 'huddeselect2'
ExecuteString: 'huddeselect3'
ExecuteString: 'huddeselect4'
ExecuteString: 'huddeselect5'
ExecuteString: 'huddeselect6'
ExecuteString: 'huddeselect7'
ExecuteString: 'tostands'
ExecuteString: 'tostanda'
ExecuteString: ''
ExecuteString: 'startreactions'
ExecuteString: 'startreactiona'
ExecuteString: ''
ExecuteString: 'hudselects0'
ExecuteString: 'hudselecta0'
ExecuteString: ''
ExecuteString: '-select 178 2336105'
ExecuteString: 'screenshot'
ExecuteString: '+select 178 2347282'
MSG_WriteFormat: bbs
MSG_WriteFormat: g
Nicht genug Zeiteinheiten
ExecuteString: '-select 178 2347379'
ExecuteString: '+select 178 2353167'
MSG_WriteFormat: bbs
MSG_WriteFormat: g
Nicht genug Zeiteinheiten
ExecuteString: '-select 178 2353308'
ExecuteString: 'screenshot'
=======================================
===== Comments Ported from Sourceforge =====

====== kerner_debug (2006-09-04 14:22:39) ======

TUs wrong
====== kerner_debug (2006-09-04 14:23:22) ======

Wrong scaled TU-Bar
====== cassiterite (2006-09-04 15:56:06) ======

Logged In: YES
user_id=1171370

I've applied a patch that should fix this (applied to SVN
trunk as rev 3310).

The error I believe is in the server, possibly in the morale
adjustment function (which can reduce time-units and lacked
a check on if this made them negative). A negative time-unit
is likely to cause this error:
MSG_WriteByte: range error -7 ('game/g_client.c', line 90)

and alias the timeunits when received by the client
(essentially to be 255 units too high).

The check I implemented ensures negative time-units are
never sent to the client which should fix this issue.
====== rechner-tester (2006-09-07 13:17:13) ======

Logged In: YES
user_id=1363849

Wouldn't it be better to avoid negative TU on the server
instead of not sending them to the clients?
I'm quite sure this bug will be seen in the future again,
also when your fix maybe okay for the moment.
Steps to reproduce this issue
Nothing entered.
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif