Jump to content


Photo

BG2 Improved GUI


  • Please log in to reply
308 replies to this topic

#301 Salk

Salk
  • Member
  • 1337 posts

Donator

Posted 03 May 2022 - 08:24 AM

Great!

Thanks, Insomniator!

Edited by Salk, 03 May 2022 - 08:25 AM.


#302 MikeX

MikeX
  • Member
  • 5 posts

Posted 03 May 2022 - 01:33 PM

Hi Insomniator.

 

just a short note:

 

The panel height and buttons are fixed, fantastic, thank you very much!

 

Also the new centering of the loot slot bar looks very nice.

 

'lootpanel.tph' has still an issue using the right mos for patching (at least for my resolution and 'Restored x2 Scaled GUI'), see attached ingame screenshot in Baldr005.bmp.

Debug:

Spoiler

 

I fixed it locally, but have to run more tests on different resolutions.

Basically, I read which mos is used in the chu and patch the expanded mos with the same name that your mod provides.

Your mod provides expanded mos for the base game and 2 GUI mods (TutuGUI and GUI_720).

I attached my current version (and an ingame screenhot in Baldr004.bmp), if you want to have a look.

 

I will be back with more test results and probably more questions.

 

Attached Files



#303 Insomniator

Insomniator
  • Member
  • 282 posts

Posted 04 May 2022 - 12:27 AM

Hi Salk

Great!


https://anonfiles.co...0c3ye/TobEx_zip

 

add new UI:Damage Info On Record Screen=1 to installed TobExTweak.ini

 

i have additional installer option to install only on record screen, but manualy editing TobExTweak.ini is enough



#304 Insomniator

Insomniator
  • Member
  • 282 posts

Posted 04 May 2022 - 01:15 AM

Hi MikeX
 

'lootpanel.tph' has still an issue using the right mos for patching (at least for my resolution and 'Restored x2 Scaled GUI'), see attached ingame screenshot in Baldr005.bmp.
I fixed it locally, but have to run more tests on different resolutions.
Basically, I read which mos is used in the chu and patch the expanded mos with the same name that your mod provides.
Your mod provides expanded mos for the base game and 2 GUI mods (TutuGUI and GUI_720).
I attached my current version (and an ingame screenhot in Baldr004.bmp), if you want to have a look.
I will be back with more test results and probably more questions.

To solve this issue, my installer must track how .MOS was enlarged by widescreen (H*** parameter) or how cells/gold was shifted.
Main problem - i think widescreen try to "center" right cells on some resolution conditions, for 940x540 it take 640x480 base image and enlarge it to 960x90 with inserting free space in CENTER, so inventory cells shifted to right border, then it shifts cells's X and Gold's coordinates by patching .CHU


If i set 940x600 resolution, it stops shifting and use 800x600 base image. It has complicated logic to when shifts and when not for same X Resolution
 
Also Widescreen's enlarging 640x90 ->960x90  has artifacts:
w960x540.JPG

 

Widescreen's enlarging 800x90 ->960x90 without shifting:

960x600.jpg

 


Edited by Insomniator, 04 May 2022 - 01:30 AM.


#305 Salk

Salk
  • Member
  • 1337 posts

Donator

Posted 04 May 2022 - 02:41 AM

Hello, my friend!

 

Hi Salk
Great!


https://anonfiles.co...0c3ye/TobEx_zip

 

add new UI:Damage Info On Record Screen=1 to installed TobExTweak.ini

 

i have additional installer option to install only on record screen, but manualy editing TobExTweak.ini is enough

 

Very much appreciated!  :cheers:



#306 Insomniator

Insomniator
  • Member
  • 282 posts

Posted 04 May 2022 - 05:39 AM

MikeX, fixed version:

  • .MOS renaming removed
  • tutugui enlarge position fixed

Attached Files


Edited by Insomniator, 04 May 2022 - 05:40 AM.


#307 MikeX

MikeX
  • Member
  • 5 posts

Posted 05 May 2022 - 08:50 AM

MikeX, fixed version:

  • .MOS renaming removed
  • tutugui enlarge position fixed


Hi Insomniator,

 

tested your 'lootpanel.tph' shortly only with my resolution and it seems to work now, thank's.

 

I still think the 'Hxxx' parameter could be fix (independent of the desired width), only dependent on which of the mod provided mos needs to be used and extended.

 

Do you have any insight about how 'Extend_Mos' works, especially the 'Hxxx' ('Vxxx') parameter?

The WeiDU readme says the command needs to be documented...

I know the number xxx is the position at which some area of the mos is duplicated.

The duplicated area is the one after the position, but to what widht/height?

Also the inserted duplicated area seems to be split in between.

 

With this:

COPY_EXISTING ~MAP.MOS~ ~override\MAP1.MOS~
    EXTEND_MOS "H100" 600
BUT_ONLY
COPY_EXISTING ~MAP.MOS~ ~override\MAP2.MOS~
    EXTEND_MOS "H100" 1200
BUT_ONLY

 

you get this (Source Map.mos, Map1.mos, Map2.mos):

Attached Images

  • Map.mos.jpg
  • Map1.mos.jpg
  • Map2.mos.jpg


#308 Insomniator

Insomniator
  • Member
  • 282 posts

Posted 05 May 2022 - 10:41 AM

Hi MikeX,

I still think the 'Hxxx' parameter could be fix (independent of the desired width), only dependent on which of the mod provided mos needs to be used and extended.
 
Do you have any insight about how 'Extend_Mos' works, especially the 'Hxxx' ('Vxxx') parameter?
The WeiDU readme says the command needs to be documented...
I know the number xxx is the position at which some area of the mos is duplicated.
The duplicated area is the one after the position, but to what widht/height?
Also the inserted duplicated area seems to be split in between.

I can not tell how Hxxx works, i just tried different numbers to see on what horizontal pixel doublicating was started.
Fortunately for contaner background one xxx parameter give proper start X coord and widht to shift
 
Weidu sources available, but OCAML is difficult to understand

Spoiler


Edited by Insomniator, 05 May 2022 - 10:43 AM.


#309 MikeX

MikeX
  • Member
  • 5 posts

Posted 08 May 2022 - 03:14 PM

Hi Insomniator,

 

that's what I figured out:

Hxxx parameter duplicates a maximum of 100 pixel starting from pixel xxx to the right and adds them at pixel xxx.

If less are needed to reach the desired width, it duplicated only the needed amount.

If more are needed than it adds the duplicated pixels again (or a fraction of it) until the desired width is reached.

 

So as I thought, Hxxx should only be dependent of the used mos and whether TutuGUI is used or not:

Spoiler

 

Tested the attached lootpanel.tph w/ and w/o TutuGUI and GUI_720 on many different resolutions, looked up the result in NI.

If the label for the available gold fits the place for it at the mos, everything should be fine.

Attached Files