-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sekiro trainer FPS and aspect ratio features #4
Comments
Thanks for the writeup.
Partially untested, I had not tested the Sekiro trainer personally except looking at the original source patterns (I assumed the contributor got it working). But after testing, the issue becomes apparent. After fiddling slightly with the patterns it successfully finds them, unfortunately I reach the same
This causes In any case I might push a PR soon with the changes if you'd like to test it that way. |
Update: As far as I can deduce, EDIT: Actually I think I'll add ptrace as an option for each feature, where you'd enable it if the pattern exists within a protected map. This seems like the best option. |
After making a couple of patches it should work now, I'd be thankful if you could confirm. Also, I chose to use ptrace as an automatic fallback instead. Note that I moved "Fix game speed for framelock" to the bottom of the trainer because it seems to be broken (wrong), see: Lines 45 to 49 in cfbf5ca
|
I made it work with your new changes, was pretty easy now as I only had to change the region a bit. There is a pull request now for the change, however I am not sure how to link it to this issue. In a short test it enabled 165hz and widescreen succesfully. Needed to change the region for FPS slightly to make that work. |
Do you want to try getting |
For now there is no benefit to it, as in fullscreen it is there (in fullscreen mode) with no fix at all. I think the other mod used it to add it to window mode, as they used that mode for the FPS fix (in the past). |
Sounds good, I'll give it a shot just in case it can solve it for windowed mode. But thanks for the contrib! It really helped in finding some flaws in the code (and me learning I should probably test trainers from a PR, although to be fair to the contributor it probably did work back then on an older version). |
I kept the issue name a bit generic, as I found something in the existing trainer, as well as my new one. This is just some first playing around with the sekiro trainer and my own additions.
Since both features did not match patterns, I was wondering whether this is due to my setup or whether they were untested anyway.
Just an FYI: I found this sekirofpsunlock tool, which looks like an adapted copy of FPSUnlockAnd More for linux. Could be handy for some sekiro-specific stuff.
Edit: This mod works perfectly for me, setting ultrawide and FPS, so the memory pattern replacement of this one is correct.
Current output
With the current
sekiro.toml
, see attached, I get the following output. The code mentioned in the other sections are examples from this file. I was too lazy today to already make a branch or fork, can create this later.Changes done
Feature "Set FPS Framelock (to 165)"
At first this raised a bad address error. I noticed in SekiroFpsUnlockAndMore line 26 that they mention the 88 (index 5) could be an 89 (due to rounding of floating point?). This does fix the bad address error, but since it is not matching anything, I am not sure this is correct.
Feature "Fix game speed for framelock (to 84)"
No change made. I just noticed that this is again not finding any matches. I checked the other mods, and they only verified that this pattern is correct (as far as I could tell).
Feature "Disable 16:9 aspect ratio lock."
So, I drafted this based on the source code of SekiroFpsUnlockAndMore. I think this should be simple enough, first three bytes change, but I get the Bad address error which I do not know what to do with. I have no clue how a correct address looks like, so I cannot debug this reliably.
(I did already notice I could have the replace pattern have underscore-only after the first three bytes, but it is for now not yet relevant I think anyway.)
Feature "Add ultrawide resolution entry 3440x1440 in place of 720p."
I am not sure whether this is needed, as my native resolution (3440x1440) is present in the list when running in fullscreen. However, as I already made this, I thought it couldn't hurt including this. I remember this needed to be added specifically when playing Sekiro on windows with FPS unlocked and widescreen patched, but that can of course have changed in the mean time.
sekiro.zip
The text was updated successfully, but these errors were encountered: