Spocks-cuddly-tribble wrote:thunderchero wrote:this one it would be nice to increase from 6 to 9 maybe 10 depending on space. the *bshpinf.wdf is the wdf used.
Try this:
if more ships than
004AABB5 sub esi, 6
then -> sub_5445B0 edx0_show_scrollbar
and
004AAD13 mov ebx, 6
-> sub_544780 show_max_items_ebx
sub_4AA430 shipInfoListSize
004AA441 add edi, 30h // 48 = 8 * 6 items
004AA474 mov edx, 6
sub_4AA350 shipInfoItem
004AA366 lea eax, [ebp+6]
004AA371 lea ebp, [edx-6]
004AA382 cmp ebx, 6
004AA38B mov eax, 6
-> +8* new objects each ?
004AB03C mov eax, 38h
004AB0BB add esi, 30h
004AB1F9 add esi, 30h
004AB377 mov ebx, 6
004AA4BC mov eax, 30h +8* new objects
004AA4E7 mov ebx, 6
004AA552 cmp esi, 6
004AA570 cmp esi, 6
It looks like I was a little premature saying this was working,
I had no problems when 18 scouts were in battle, but when it had 17 scouts and 1 battleship when hovering over battleship CTD. here is crash log if it helps.
Btw I did finally edit "004AA371 lea ebp, [edx-6]" correctly after understanding hex code. so all changes were made as above 6 -9.
ST:BOF Tue Nov 8 13:02:13 2011
Version Under Test: 72
File: ..\..\source\ui\tactical\tacttfi.c, Line: 595, shipInfoId<_taskForceInfo.shipInfoListSize
Initialize State: 31
Player Empire: 0 Starting Seed: 1320271826
Galaxy shape: 0 Galaxy Size: 2
Turn State: 20
Turn Number: 47
thunderchero