Skip to content
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

Elden Ring Trainer Not Finding Patterns #1

Closed
Larsenist opened this issue Mar 30, 2022 · 5 comments
Closed

Elden Ring Trainer Not Finding Patterns #1

Larsenist opened this issue Mar 30, 2022 · 5 comments

Comments

@Larsenist
Copy link

Running tuxtrain after launching Elden Ring or as a daemon prior, either as my user or root results in:

==> Elden Ring Trainer 0.0.2
FPS Unlock
- Error: Unable to find pattern.
Hz Unlock
- Error: Unable to find pattern.
Custom Resolution
- Error: Unable to find pattern.
Aspect Ratio Unlock
- Error: Unable to find pattern.

@leaty
Copy link
Owner

leaty commented Mar 30, 2022

Could be a different or an updated version, is this on steam?

In any case, remove the region lines e.g. region = [5383384927, 5383384935] from each feature and run it again (as root). This should both find and apply the features correctly as long as the pattern locations were simply moved in your version, it will also output the correct regions for your version.

Basically the memory regions (where it looks for the patterns) are fully tightened in the trainer to be as fast as possible, by removing them it will search through the whole process memory instead, this can be a bit slow but can be remedied by inputting the correct regions. There is also a faster way than searching the whole process memory mentioned in the top of eldenring.toml if you're curious.

Let me know how it goes, also let me know which version this is to see if I can reproduce it and if it's worth updating it in the repo. Thanks for the issue!

@Larsenist
Copy link
Author

It worked! My game is smooth with no bars on either side!
Here's my values, in case they're useful to other machines;
==> Elden Ring Trainer 0.0.2
FPS Unlock
- Location: 5383421775
- Found: C743208988883CEB
- Wrote: C74320600B363BEB
- Consider tightening region: [5383421775, 5383421783].
Hz Unlock
- Location: 5395332341
- Found: EB0EC745EF3C000000C745F301000000
- Wrote: EB0EC745EF00000000C745F300000000
- Consider tightening region: [5395332341, 5395332357].
Custom Resolution
- Location: 5429915896
- Found: 80070000380400000008000080040000
- Wrote: 700D0000A00500000008000080040000
- Consider tightening region: [5429915896, 5429915912].
Aspect Ratio Unlock
- Location: 5395324739
- Found: 8B0185C07442448B59044585DB7439418B
- Wrote: 8B0185C0EB42448B59044585DB7439418B
- Consider tightening region: [5395324739, 5395324756].

tuxtrain --version
tuxtrain 0.0.3

@leaty
Copy link
Owner

leaty commented Mar 30, 2022

Awesome! Have fun playing the game as it should've been from the get-go.

You can now use the values after "Consider tightening region" to replace the region lines you removed, if you want it to apply faster next time.

I think I'll add a switch to ignore preset regions to force-read the full process memory, so that one doesn't have to remove the region lines manually.

@Larsenist
Copy link
Author

I was surprised that it didn't take long at all to pull the regions. I didn't even notice the difference in load time.
I am using NVMe gen4 and DDR4-3600 though
I did enter the new regions and it was still working

@leaty
Copy link
Owner

leaty commented Mar 30, 2022

Well, it is rust and the actual memory read and pattern search in tuxtrain is pretty optimized. But really the speed without a set region varies depending on the location as the memory is read from start to end.

If the pattern is located at the end, of say a process that's using 2 GB of memory, then it would have to read through 2 GB of data (although in 1024 byte chunks), which can be slow, while if it's at the beginning it might be instant.

Also if it's a slow HDD or a fast NVMe doesn't matter as it's reading directly from RAM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants