The 1024x768 Project

Increasing Game Resolution + patchtool; support/discussion/questions

Moderator: thunderchero

User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7848
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: The 1024x768 Project

Post by thunderchero »

Thanks SCT,

It worked, but I did not understand how to edit this one 004AA371 lea ebp, [edx-6] but so for no problems with out it.


Spocks-cuddly-tribble wrote:@ QD - Thank god he hasn't noticed yet all the other stuff to adjust (like the F1 task forces column), so I strongly recommend either not logging in anymore or buying shotguns...
lol I think I am done with this kind of editing.

thunderchero
User avatar
anjel
Past Administrator
Past Administrator
Posts: 666
Joined: Thu May 08, 2008 2:00 am
Location: Bs As - Argentina

Re: The 1024x768 Project

Post by anjel »

wow, looks perfect. Is it possible to make these icons more smaller ???, so it can fit twice the number ??
Live long and propser
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7848
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: The 1024x768 Project

Post by thunderchero »

anjel wrote:wow, looks perfect. Is it possible to make these icons more smaller ???, so it can fit twice the number ??
no 2 reasons 1 it scrolls so why, 2 that would mean making introducing a 6th tga image to ship files smaller than 30x30 lol. I am already thinking about introducing a larger image for build screen :wink:

thunderchero
User avatar
Peter1981
Rear-Admiral
Rear-Admiral
Posts: 1118
Joined: Tue May 06, 2008 2:00 am
Location: England

Re: The 1024x768 Project

Post by Peter1981 »

@Anjel (& TC) - I don't think it would be a good idea to have smaller icons on this screen (30x30) is already small enough. I play BotF on a 32" wide screen monitor and I can see the icons fine, but, i remember playing on a 12" screen on my old laptop and the icon were a little bit small IMHO.
User avatar
anjel
Past Administrator
Past Administrator
Posts: 666
Joined: Thu May 08, 2008 2:00 am
Location: Bs As - Argentina

Re: The 1024x768 Project

Post by anjel »

Peter1981 wrote:@Anjel (& TC) - I don't think it would be a good idea to have smaller icons on this screen (30x30) is already small enough. I play BotF on a 32" wide screen monitor and I can see the icons fine, but, i remember playing on a 12" screen on my old laptop and the icon were a little bit small IMHO.
yep, thinking all over again, i agree with you.
I have a monitor whose resolution reach the 1920x1080. But having a little chat with TC, i realized after, that in the future to come, the games would most be played on tablets, and why not these game. So it´s perfect to fit this game to 1024 resolution.... for now.... :wink:
Live long and propser
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7848
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: The 1024x768 Project

Post by thunderchero »

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, :evil: 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
User avatar
QuasarDonkey
Code Analyst
Code Analyst
Posts: 433
Joined: Tue Jul 26, 2011 8:29 pm
Location: Ireland

Re: The 1024x768 Project

Post by QuasarDonkey »

You could try patching these too:

Code: Select all

004AAF24    83 C7 30                  add     edi, 30h
004AADC9    83 C0 30                  add     eax, 30h
Set the 30h (i.e. 48) to 8 * num_ships. Maybe that will work.

There might be some more that we've missed. I'll keep tracing through the code.
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7848
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: The 1024x768 Project

Post by thunderchero »

there still must be more.

But after more testing I noticed I could hover over any ship until I hovered over a group with more than 6 then when I went back to the group with less than 6 it would crash.

thunderchero
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7848
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: The 1024x768 Project

Post by thunderchero »

QuasarDonkey wrote:
thunderchero wrote:3. *_load.tga when displayed image is cutoff at 800x600
Thanks for the info thunder.
3. I'll look at that. The load screen isn't really a regular screen tied to a WDF. At the moment, the patch tool adjusts the Trek.exe constants based mostly on what it finds in the WDFs. I'm not sure which WDF the load screen is associated with. I'll make some changes to the patch tool so some constants are maxed to the resolution, but others are based on the WDFs.
I found that the *_load.tga uses the winlose.wdf settings and since I was editing my wdf's as I go thats why it was cut off at 800x600.

thunderchero
User avatar
QuasarDonkey
Code Analyst
Code Analyst
Posts: 433
Joined: Tue Jul 26, 2011 8:29 pm
Location: Ireland

Re: The 1024x768 Project

Post by QuasarDonkey »

I think I have the tactical taskforce information fixed. It doesn't crash out for me anymore.

I've added it to the patchtool, which will be available real soon. Here are the locations to be patched, for reference:

Code: Select all

Address         Opcodes           Assembly
============    ==============    ==============
004AB0BB        83 C6 30          add esi, 30h
004AB1F9        83 C6 30          add esi, 30h
004AB377        BB 06 00 00 00    mov ebx, 6
004AAF24        83 C7 30          add edi, 30h
004AADC9        83 C0 30          add eax, 30h
004AA89F        83 C2 30          add edx, 30h
004AAA6E        83 C2 30          add edx, 30h
004AABB5        83 EE 06          sub esi, 6
004AAD13        BB 06 00 00 00    mov ebx, 6
004AA80B        83 FB 07          cmp ebx, 7
004AA4BC        B8 30 00 00 00    mov eax, 30h
004AA4E7        BB 06 00 00 00    mov ebx, 6
004AA552        83 FE 06          cmp esi, 6
004AA570        83 FE 06          cmp esi, 6
004AA441        83 C7 30          add edi, 30h
004AA474        BA 06 00 00 00    mov edx, 6
004AA366        8D 45 06          lea eax, [ebp+6]
004AA371        8D 6A FA          lea ebp, [edx-6]
004AA382        83 FB 06          cmp ebx, 6
004AA38B        B8 06 00 00 00    mov eax, 6
User avatar
QuasarDonkey
Code Analyst
Code Analyst
Posts: 433
Joined: Tue Jul 26, 2011 8:29 pm
Location: Ireland

Re: The 1024x768 Project

Post by QuasarDonkey »

New release of the Resolution Patchtool!
This version includes the patches for the ship deployment screen, tactical taskforce information, starfield density, and some other fixes.

Thunder, can you let me know if this fixes the movie screen?
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7848
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: The 1024x768 Project

Post by thunderchero »

QuasarDonkey wrote:Thunder, can you let me know if this fixes the movie screen?

It is correct left to right but still set to 00 00 at 0x110928 for top to bottom it should be EA 00 for 234 pixels down from top.

thunderchero
User avatar
QuasarDonkey
Code Analyst
Code Analyst
Posts: 433
Joined: Tue Jul 26, 2011 8:29 pm
Location: Ireland

Re: The 1024x768 Project

Post by QuasarDonkey »

Okay, the last release was a little premature. I think I've fixed everything now:
Let me know if you spot anything unusual.
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7848
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: The 1024x768 Project

Post by thunderchero »

QuasarDonkey wrote:Okay, the last release was a little premature. I think I've fixed everything now:
been there done that, too many time........ :wink:
QuasarDonkey wrote:Let me know if you spot anything unusual.
will do, but so far so good.

thunderchero
User avatar
QuasarDonkey
Code Analyst
Code Analyst
Posts: 433
Joined: Tue Jul 26, 2011 8:29 pm
Location: Ireland

Re: The 1024x768 Project

Post by QuasarDonkey »

There's also a minor update of the WDF Editor, available here:
This mainly just fixes a bug where it should ask you if you want to overwrite when saving over a WDF.
Post Reply

Return to “Increasing Game Resolution + patchtool”