Difference between revisions of "File:Ufo weight.zip"
Jump to navigation
Jump to search
(uploaded a new version of "Image:Ufo weight.zip": Added strength of current unit) |
(Update patch description) |
||
Line 1: | Line 1: | ||
Hacked CE edition that displays encumbrance on equipment screen. | 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>'. | + | It 'recycles' the 'GROUND' text on the inventory screen to display the encumberance and strength of the unit. Tactical string files need to be updated too to change 'GROUND' into 'Weight>'. |
Patch detail: | Patch detail: | ||
.text:0041947E E9 99 FA 04 00 jmp loc_468F1C | .text:0041947E E9 99 FA 04 00 jmp loc_468F1C | ||
− | .text:00468F1C loc_468F1C: | + | .text:00468F1C loc_468F1C: |
.text:00468F1C 51 push ecx | .text:00468F1C 51 push ecx | ||
− | .text:00468F1D 6A 01 push 1 | + | .text:00468F1D 6A 01 push 1 |
− | .text:00468F1F 8B 0D 6C 3F 4A 00 mov ecx, | + | .text:00468F1F 8B 0D 6C 3F 4A 00 mov ecx, cursorPosition |
− | .text:00468F25 51 push ecx | + | .text:00468F25 51 push ecx |
− | .text:00468F26 6A | + | .text:00468F26 6A 10 push 10h |
.text:00468F28 A1 88 3E 4A 00 mov eax, currentUnit_unitref | .text:00468F28 A1 88 3E 4A 00 mov eax, currentUnit_unitref | ||
.text:00468F2D 31 DB xor ebx, ebx | .text:00468F2D 31 DB xor ebx, ebx | ||
.text:00468F2F 8A 58 28 mov bl, [eax+28h] | .text:00468F2F 8A 58 28 mov bl, [eax+28h] | ||
− | .text:00468F32 53 push ebx | + | .text:00468F32 53 push ebx |
.text:00468F33 E8 E8 A8 FA FF call GetUnitEncumberance | .text:00468F33 E8 E8 A8 FA FF call GetUnitEncumberance | ||
.text:00468F38 83 C4 04 add esp, 4 | .text:00468F38 83 C4 04 add esp, 4 | ||
− | .text:00468F3B 50 push eax | + | .text:00468F3B 50 push eax |
.text:00468F3C E8 CF 7A FE FF call DrawNumber2 | .text:00468F3C E8 CF 7A FE FF call DrawNumber2 | ||
− | .text:00468F41 83 C4 | + | .text:00468F41 A1 6C 3F 4A 00 mov eax, cursorPosition |
− | .text: | + | .text:00468F46 50 push eax |
− | .text: | + | .text:00468F47 6A 40 push 40h |
− | .text: | + | .text:00468F49 6A 2F push '/' |
− | .text: | + | .text:00468F4B E8 10 77 FE FF call DrawSmallLetter |
− | .text: | + | .text:00468F50 6A 01 push 1 |
− | .text: | + | .text:00468F52 A1 6C 3F 4A 00 mov eax, cursorPosition |
− | [[User:Seb76|Seb76]] 18 | + | .text:00468F57 50 push eax |
+ | .text:00468F58 6A 30 push 30h | ||
+ | .text:00468F5A A1 88 3E 4A 00 mov eax, currentUnit_unitref | ||
+ | .text:00468F5F 31 DB xor ebx, ebx | ||
+ | .text:00468F61 8A 58 11 mov bl, [eax+11h] | ||
+ | .text:00468F64 53 push ebx | ||
+ | .text:00468F65 E8 A6 7A FE FF call DrawNumber2 | ||
+ | .text:00468F6A 83 C4 2C add esp, 2Ch | ||
+ | .text:00468F6D 59 pop ecx | ||
+ | .text:00468F6E 5F pop edi | ||
+ | .text:00468F6F 5E pop esi | ||
+ | .text:00468F70 5D pop ebp | ||
+ | .text:00468F71 5B pop ebx | ||
+ | .text:00468F72 C3 retn | ||
+ | |||
+ | [[User:Seb76|Seb76]] 10:18, 29 March 2008 (PDT) |
Revision as of 17:18, 29 March 2008
Hacked CE edition that displays encumbrance on equipment screen. It 'recycles' the 'GROUND' text on the inventory screen to display the encumberance and strength 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: .text:00468F1C 51 push ecx .text:00468F1D 6A 01 push 1 .text:00468F1F 8B 0D 6C 3F 4A 00 mov ecx, cursorPosition .text:00468F25 51 push ecx .text:00468F26 6A 10 push 10h .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 .text:00468F33 E8 E8 A8 FA FF call GetUnitEncumberance .text:00468F38 83 C4 04 add esp, 4 .text:00468F3B 50 push eax .text:00468F3C E8 CF 7A FE FF call DrawNumber2 .text:00468F41 A1 6C 3F 4A 00 mov eax, cursorPosition .text:00468F46 50 push eax .text:00468F47 6A 40 push 40h .text:00468F49 6A 2F push '/' .text:00468F4B E8 10 77 FE FF call DrawSmallLetter .text:00468F50 6A 01 push 1 .text:00468F52 A1 6C 3F 4A 00 mov eax, cursorPosition .text:00468F57 50 push eax .text:00468F58 6A 30 push 30h .text:00468F5A A1 88 3E 4A 00 mov eax, currentUnit_unitref .text:00468F5F 31 DB xor ebx, ebx .text:00468F61 8A 58 11 mov bl, [eax+11h] .text:00468F64 53 push ebx .text:00468F65 E8 A6 7A FE FF call DrawNumber2 .text:00468F6A 83 C4 2C add esp, 2Ch .text:00468F6D 59 pop ecx .text:00468F6E 5F pop edi .text:00468F6F 5E pop esi .text:00468F70 5D pop ebp .text:00468F71 5B pop ebx .text:00468F72 C3 retn
Seb76 10:18, 29 March 2008 (PDT)
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Dimensions | User | Comment | |
---|---|---|---|---|
current | 09: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 |
You cannot overwrite this file.
File usage
The following 2 pages use this file: