Jump to content


Photo

(Newest) Version 2.2 is out !


  • Please log in to reply
9 replies to this topic

#1 ghostdog

ghostdog
  • Modder
  • 556 posts

Posted 02 January 2012 - 06:07 AM

Happy new Year to everyone ! Yep, a new version has been released. All movies are now stretching to full-screen and also the mod now supports the... Chinese version !

I was oblivious to the fact that the Chinese version has some differences from the usual 4CD,2CD versions and that, thus, my mod was incompatible with it. Mephisto Devil Satan was kind enough point this to me and he even gave me the correct offsets which were found by kind sirs : a9214, yyfeng and maoliyuanjiu. Due to increased work load (and extreme laziness) I postponed dealing with this for some time. Eventually, they were fed up with my constant delays and did the whole work themselves. They have my gratitude.
So, hopefully, downloads will now shoot through the roof :P

As for the stretching of the movies, many thanks go to aqrit for providing the offsets. I'll have to say that they look pretty good full-screen, even in 1920x1080 resolution :

Posted Image
(Well, anyway, it looks better in motion :))


Finally, I've tweaked the Celestial gate BAM to back to it's original size, removed the black borders and centered it, because the big edited BAM I previously included, caused slow-downs and displacement problems at high resolutions.


That's all folks. Have fun with the mod !

:cheers:

#2 -Felipe-

-Felipe-
  • Guest

Posted 03 January 2012 - 07:05 AM

congrats ghostdog, thanks for all your work and let's see the new bugs that come. :P

#3 aqrit

aqrit
  • Member
  • 132 posts

Posted 04 January 2012 - 12:33 AM

ttt

when the TSR logo plays full-screen it has a mystical effect

:vbat:

#4 -bVork-

-bVork-
  • Guest

Posted 15 January 2012 - 08:34 PM

Can you make the video stretching optional in a future release? In 16:10 resolutions, the videos are all distorted.

#5 ghostdog

ghostdog
  • Modder
  • 556 posts

Posted 17 January 2012 - 04:28 AM

Can you make the video stretching optional in a future release? In 16:10 resolutions, the videos are all distorted.

I'll probably do it if I find some time. For the time being if you want to change this manually you can do the following:

-Go to Torment\GhostDog's-PST-UI\TPH

-Open exe_patch.tph with a text editor (ex: notepad)

-Find all 3 instances where "Stretch movies" exists and put two brackets infront of the code directly below them. It should look like this :
// Stretch Movies :

//  WRITE_LONG 0x0003F522 0x9090006A
(Double brackets negate all code.)

-Save the file (as .tph, not .txt) and re-install the mod.

#6 aqrit

aqrit
  • Member
  • 132 posts

Posted 20 January 2012 - 03:53 PM

the movies look fine to me at 16:10 (1440x900)
however it is possible to preserve the 4:3 aspect ratio
I was avoiding doing that because I didn't want to make room for the code in the exe
I just realized (I'm slow okay?) that since the game doesn't resize on the fly
all the calculations can be done in the weidu script

so I'll do it when I get bored...

#7 Gr3y

Gr3y
  • Member
  • 7 posts

Posted 30 January 2012 - 05:25 PM

Thanks Ghostdog, appreciate the mod
Planescape Torment is my favorite game of all time.
I'd like to thank all the modders who made an already great game even better
.

#8 aqrit

aqrit
  • Member
  • 132 posts

Posted 20 February 2012 - 05:37 PM

// 4CD
// Stretch Movies :

	SET Movie_dx = (((Ynew * 8) + 3) / 6)
	SET Movie_dy = (((Xnew * 3) + 2) >> 2)
	PATCH_IF( Movie_dy < Ynew ) BEGIN
		SET Movie_left = 0
		SET Movie_top = ((Ynew - Movie_dy) >> 1)
		SET Movie_right = Xnew
		SET Movie_bottom = (Movie_top + Movie_dy)
	END
	ELSE BEGIN
		SET Movie_left = ((Xnew - Movie_dx) >> 1)
		SET Movie_top = 0
		SET Movie_right = Movie_left + Movie_dx
		SET Movie_bottom = Ynew
	END

	WRITE_LONG 0x0003F4FA 0x00DC45C7
	WRITE_LONG 0x0003F4FD Movie_left 
	WRITE_LONG 0x0003F501 0x00E045C7
	WRITE_LONG 0x0003F504 Movie_top
	WRITE_LONG 0x0003F508 0x00E445C7
	WRITE_LONG 0x0003F50B Movie_right
	WRITE_LONG 0x0003F50F 0x00E845C7 
	WRITE_LONG 0x0003F512 Movie_bottom
edit: cleaned formatting

Edited by aqrit, 12 July 2013 - 07:38 PM.


#9 aqrit

aqrit
  • Member
  • 132 posts

Posted 12 July 2013 - 07:31 PM

add black edges to title screen so there are no atrifacts from the stretched intro movies
// chu_patch.tph //

COPY_EXISTING ~start.chu~ ~override~
//IDMOS.MOS
WRITE_SHORT "0x00000018" 0
WRITE_SHORT "0x0000001A" 0
WRITE_SHORT "0x0000001C" Xnew
WRITE_SHORT "0x0000001E" Ynew
// SPNEWGM
WRITE_SHORT "0x000000D0" Xnew / 2 - 74
WRITE_SHORT "0x000000D2" Ynew / 2 - 90
// IDQUIT
WRITE_SHORT "0x000000F0" Xnew / 2 - 117
WRITE_SHORT "0x000000F2" Ynew / 2 - 2
// SPLOAD
WRITE_SHORT "0x00000110" Xnew / 2 + 29
WRITE_SHORT "0x00000112" Ynew / 2 - 1
//GPMOS8.MOS:
WRITE_SHORT "0x00000034" (Xnew - 640) / 2 + 196
WRITE_SHORT "0x00000036" (Ynew - 480) / 2 + 11
//GPMOS8.MOS:
WRITE_SHORT "0x00000050" (Xnew - 640) / 2 + 196
WRITE_SHORT "0x00000052" (Ynew - 480) / 2 + 11
//GPMOS8.MOS:
WRITE_SHORT "0x0000006C" (Xnew - 640) / 2 + 196
WRITE_SHORT "0x0000006E" (Ynew - 480) / 2 + 11
// extend_mos.tph //

COPY_EXISTING ~IDMOS.MOS~ ~override~
EXTEND_MOS ~HCENT~ ~Xnew~
EXTEND_MOS ~VCENT~ ~Ynew~
 

Tried to figure out how to keep the background drawing with the info windows open... I'm getting nowhere fast.
4CDv1.1
s_pause_inv = 00620F91
s_pause_wheel = 007CABD3
s_pause_spacebar = 007D4254

#10 -Felipe-

-Felipe-
  • Guest

Posted 16 January 2014 - 05:40 AM

Hi, it's been more than 2 years without an update, several bug reports were made, weidu got 5 new versions and aqrit made several nice fixes, when the new version will come?