File:Ufo weight.zip

From UFOpaedia
Revision as of 17:15, 29 March 2008 by Seb76 (talk | contribs) (uploaded a new version of "Image:Ufo weight.zip": Added strength of current unit)
Jump to navigation Jump to search

Ufo_weight.zip(file size: 248 KB, MIME type: application/zip)

Warning: This file type may contain malicious code. By executing it, your system may be compromised.

Hacked CE edition that displays encumbrance on equipment screen. It 'recycles' the 'GROUND' text on the inventory screen to display the encumberance of the unit. Tactical string files need to be updated too to change 'GROUND' into 'Weight>'.

Patch detail:

.text:0041947E E9 99 FA 04 00          jmp     loc_468F1C
.text:00468F1C                         loc_468F1C:                             ; CODE XREF: DrawInventoryItems+BE�j
.text:00468F1C 51                      push    ecx
.text:00468F1D 6A 01                   push    1                               ; useSmallFont
.text:00468F1F 8B 0D 6C 3F 4A 00       mov     ecx, lastCursorPosition
.text:00468F25 51                      push    ecx                             ; int
.text:00468F26 6A 20                   push    20h                             ; int
.text:00468F28 A1 88 3E 4A 00          mov     eax, currentUnit_unitref
.text:00468F2D 31 DB                   xor     ebx, ebx
.text:00468F2F 8A 58 28                mov     bl, [eax+28h]
.text:00468F32 53                      push    ebx                             ; unitIdx
.text:00468F33 E8 E8 A8 FA FF          call    GetUnitEncumberance
.text:00468F38 83 C4 04                add     esp, 4
.text:00468F3B 50                      push    eax                             ; number
.text:00468F3C E8 CF 7A FE FF          call    DrawNumber2
.text:00468F41 83 C4 10                add     esp, 10h
.text:00468F44 59                      pop     ecx
.text:00468F45 5F                      pop     edi
.text:00468F46 5E                      pop     esi
.text:00468F47 5D                      pop     ebp
.text:00468F48 5B                      pop     ebx
.text:00468F49 C3                      retn

Seb76 18:35, 28 March 2008 (PDT)

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeDimensionsUserComment
current09:38, 30 March 2008 (248 KB)Seb76 (talk | contribs)Fix wrong calculation of unitpos entry
17:15, 29 March 2008 (248 KB)Seb76 (talk | contribs)Added strength of current unit
01:06, 29 March 2008 (248 KB)Seb76 (talk | contribs)Hacked CE edition that displays encumbrance on equipment screen

The following 2 pages use this file: