Texture offset question
#1
Hello guys, long time I haven't posted here! Tongue

Are there some keys to adjust texture offsets x/y while the emu is rendering?
I'm trying to correct the halo/bloom effects position bug in 'Nightmare before Christmas' with the HW hack for texture offsets (500 500 is good but could be better for this game), and I found a good place to adjust it: in Jack's house, the fireplace's statues red eyes are perfect for fine tuning...

Sorry if this has been answered before but I searched and didn't find an answer...


Attached Files
.jpg   jackoffset.jpg (Size: 215,13 KB / Downloads: 613)
_____
Intel Core i7-5820K/16GB DDR4/GeForce RTX 2070 Super/MSI X99A Gaming 7 motherboard
...some of my PS2 games videos...
Reply

Sponsored links

#2
Unfortunately, as cool as this would be, this isn't a thing. All the GSdx settings are changed via the screens only, or the ini files.
Reply
#3
Yeah, it would be cool to be able to correct texture offset on the fly, in realtime...
Oh well, thanks for the answer... back to adjusting it step by step... ^^
_____
Intel Core i7-5820K/16GB DDR4/GeForce RTX 2070 Super/MSI X99A Gaming 7 motherboard
...some of my PS2 games videos...
Reply
#4
It's not exactly what you want but it's close
Autohotkey

Code:
#SingleInstance,Force
#Persistent
#NoEnv
SetWinDelay,0

GSdx = Set the full path of GSdx here(I don't know if it will work if the ini is some permission restricted location but it works here)

IniRead,X,% GSdx,UserHacks_TCOffsetX
IniRead,Y,% GSdx,UserHacks_TCOffsetY


#IfWinActive,GSdx AHK_class wxWindowNR
Numpad8::
Numpad2::
Keywait,% A_ThisHotkey
If A_ThisHotkey = Numpad8
Y := Y + 1
Else
Y := Y - 1
IniWrite,% Y,% GSdx,UserHacks_TCOffsetY
GoSub,Apply
Return

Numpad4::
Numpad6::
Keywait,% A_ThisHotkey
If A_ThisHotkey = Numpad6
X := X + 1
Else
X := X - 1
IniWrite,% X,% GSdx,UserHacks_TCOffsetX
GoSub,Apply
Return

Numpad5::
Keywait,Numpad5
IniWrite,0,% GSdx,UserHacks_TCOffsetX
IniWrite,0,% GSdx,UserHacks_TCOffsetY
X = 0
Y = 0
GoSub,Apply
Return

Apply:
WinMenuSelectItem,PCSX2 v1,,Config,Video (GS),Plugin Settings
WinWaitActive,GSdx Settings
ControlSend,OK,{Enter},GSdx Settings
WinWaitClose,GSdx Settings
Return

Numpad4\6 - decreases\increases X
Numpad2\8 - decreases\increases y
Numpad5 - reset to 0 both X and Y
Reply
#5
>vsub
I'm not familiar with Autohotkey but I'll get it... looks useful.
Thanks for the script!

EDIT:
Not changing anything for me atm...
I got a question about your script:
Code:
WinMenuSelectItem,PCSX2 v1,,Config,Video (GS),Plugin Settings

Is the double ',' normal?
Does 'PCSX2 v1' must be the name of the .exe?
_____
Intel Core i7-5820K/16GB DDR4/GeForce RTX 2070 Super/MSI X99A Gaming 7 motherboard
...some of my PS2 games videos...
Reply
#6
Yes the double "," is normal...there you are adding the window text which is not needed here
"PCSX2 v1" is part of the pcsx2 main window title(PCSX2 v1.5.....)

I didn't actually tried it(if GSdx accept this kind of changes)so can you test?

Run your game=>open GSdx.ini=>change the offsets and save=>open the GSdx settings window and just hit ok
See if there is a change in the offset in the game

If there is a change then,I have two questions
1.Are you running pcsx2 as admin or not(you are not supposed to because the script is running as normal user and can't execute hotkeys while "Admin" program is active
2.If you are not running it as admin,when you press a hotkey,do you see the GSdx window appearing for a split second and disappear.
3.If the answer is no,then are you using any other language for the interface(other than English or maybe using older version that uses different names)
4.And finally,did you set the GSdx.ini path correctly(without quotes)...is GSdx.ini in some permissions restricted location

Edit:Actually,I see what is happening,I will fix in few minutes(your GSdx.ini have two selections at the bottom)

Edit:Here(I forget to add the selection)

Code:
#SingleInstance,Force
#Persistent
#NoEnv
SetWinDelay,0

GSdx = D:\Games\PlayStation\PlayStation 2\inis\GSdx.ini

IniRead,X,% GSdx,Settings,UserHacks_TCOffsetX
IniRead,Y,% GSdx,Settings,UserHacks_TCOffsetY


#IfWinActive,GSdx AHK_class wxWindowNR
Numpad8::
Numpad2::
Keywait,% A_ThisHotkey
If A_ThisHotkey = Numpad8
Y := Y + 1
Else
Y := Y - 1
IniWrite,% Y,% GSdx,Settings,UserHacks_TCOffsetY
GoSub,Apply
Return

Numpad4::
Numpad6::
Keywait,% A_ThisHotkey
If A_ThisHotkey = Numpad6
X := X + 1
Else
X := X - 1
IniWrite,% X,% GSdx,Settings,UserHacks_TCOffsetX
GoSub,Apply
Return
Numpad5::
Keywait,Numpad5
IniWrite,0,% GSdx,Settings,UserHacks_TCOffsetX
IniWrite,0,% GSdx,Settings,UserHacks_TCOffsetY
X = 0
Y = 0
GoSub,Apply
Return

Apply:
WinMenuSelectItem,PCSX2 v1,,Config,Video (GS),Plugin Settings
WinWaitActive,GSdx Settings
ControlSend,OK,{Enter},GSdx Settings
WinWaitClose,GSdx Settings
Return

But you can still try manually editing GSdx.ini like I told you to see if this actually work
Reply
#7
Well, still not working here but here are the results of your questions:
- No, no change when I edit the GSdx.ini manually and save, while the emu is running... looks like I need to go up to the hack settings>change values manually>OK>OK for it to save it to the ini... opening the gsdx settings and validating doesn't seem to load the values...

BTW, is hotkeys supposed to modify and save when I press the keys?, because the ini doesn't change and the hotkeys log shows this :
Code:
Script lines most recently executed (oldest first).  Press [F5] to refresh.  The seconds elapsed between a line and the one after it is in parentheses to the right (if not 0).  The bottommost line's elapsed time is the number of seconds since it executed.

---- H:\LACIE-externe\Emulation\Ps2\PCSX2 1.0.0\aatextureoffsethack.ahk
004: SetWinDelay,0
006: GSdx = H:\LACIE-externe\Emulation\Ps2\PCSX2 1.0.0\inis\GSdx.ini
008: IniRead,X,GSdx,Settings,UserHacks_TCOffsetX
009: IniRead,Y,GSdx,Settings,UserHacks_TCOffsetY
013: Return (1288.94)
- I'm not running pcsx2 as an admin and nothing happens when I push the numerical keys.
- I'm using english in pcsx2 & I use the latest automated build.
- And yes, I changed the GSdx.ini path as you can see.

Btw I'm on Win7 64 and my keyboard is an azerty type.

Strange, isn't it? Huh
_____
Intel Core i7-5820K/16GB DDR4/GeForce RTX 2070 Super/MSI X99A Gaming 7 motherboard
...some of my PS2 games videos...
Reply
#8
Hmm, something's wrong,the hockeys are not executed at all
Pressing keys here saves the value in the ini
Can you show me a screenshot of when the main window and gsdx(not the settings are visible)

Even if the values are not applied when you manually edit the ini,there still might be a way but you have to try this too
Edit the values manually again but this time go all the way to the window from which you are changing them and just hit ok after that
Reply
#9
Actually,I know what's wrong(the same thing I get a bug report about my multi converter

The default "TitleTemplate" for the game window does not place GSdx in the beginning of the title,it places "Slot:"

Just replace
#IfWinActive,GSdx AHK_class wxWindowNR
with
#IfWinActive,Slot AHK_class wxWindowNR

And btw,I just tried the code in Tales of the Abyss that I know it has a visible effect when changing the offset
I set the values to 1000 and 500 the normal way and then I press Numpad5(to reset them to 0)the textures get centered which means the code is working
Reply
#10
Alright, now I got the config window flashing when I press the numpad keys... Thanks!

Now, I just have to find why it refuses to write values in my GSdx.ini file...
_____
Intel Core i7-5820K/16GB DDR4/GeForce RTX 2070 Super/MSI X99A Gaming 7 motherboard
...some of my PS2 games videos...
Reply




Users browsing this thread: 2 Guest(s)