Emulation [CHEAT] CE Table for Twilight Princess HD

  • Thread starter Thread starter toto621
  • Start date Start date
  • Views Views 70,925
  • Replies Replies 97
  • Likes Likes 4
Hallo pal do you have an cheat table for Breath of the Wild on Cemu v2.0 ?


I have not, and I don't really plan to. There is a trainer tool for CEMU floating around still, which still works if you disable the "Extended Memory Layout" graphics pack. There is also Drivium/Postposterous Cheat Engine Table for the game that is pretty comprehensive.
 
Thank you for the info but Postposterous Cheat table is outdated. It does not work on Cemu v2.0 and above. i saw many request on his page for update but he never replies.
Maybe he stop working on it.
 
Sorry to bump, though is there any chance you could make a timer code for the STAR minigame please? I sometimes find it difficult to win at this minigame.
 
Sorry to bump, though is there any chance you could make a timer code for the STAR minigame please? I sometimes find it difficult to win at this minigame.
https://gbatemp.net/threads/cheat-ce-table-for-twilight-princess-hd.573717/page-2#post-9669590

version 4.2 of this table now has the functionality for this in the script section. It is titled Freeze Minigame Timer. From the small testing I did, it has some issues, but none that would affect you from achieving your goal. I made a minor change in this one with how it hooks to the game. Hopefully it will still work for you.
 
https://gbatemp.net/threads/cheat-ce-table-for-twilight-princess-hd.573717/page-2#post-9669590

version 4.2 of this table now has the functionality for this in the script section. It is titled Freeze Minigame Timer. From the small testing I did, it has some issues, but none that would affect you from achieving your goal. I made a minor change in this one with how it hooks to the game. Hopefully it will still work for you.
Thanks! The Freeze Minigame Timer script works like a charm!
 
I don't really like to double post here, however I found an oddity with the Invincibility script; you can't be pulled toward magnets in Goron Mines even if you have the Iron Boots on (but you can still walk on magnetic surfaces while the Iron Boots are equipped). Can that be fixed, or would it be better not to use that script in Goron Mines?
 
I don't really like to double post here, however I found an oddity with the Invincibility script; you can't be pulled toward magnets in Goron Mines even if you have the Iron Boots on (but you can still walk on magnetic surfaces while the Iron Boots are equipped). Can that be fixed, or would it be better not to use that script in Goron Mines?
Interesting... Granted, even though I made these cheats, I don't really use many of them too often. And even if I do they are in extremely specific scenarios.

I will not end up fixing this so it would be best to only use it in places where you don't need to be pulled to a magnet. The way I achieve the invincibility is by tricking the game and setting/freezing the game's invincibility timer (the one that takes effect after Link takes damage). To put it simply it's an issue with the game's invincibility, unless this was intended by the devs.
 
Tried running it on 2.0 (experimental builds) and up to the 2.4 build but nothing happens after clicking activate. Has anyone fixed that issue? I had no problems running other CE tables for other games, any help would be appreciated!
 
Tried running it on 2.0 (experimental builds) and up to the 2.4 build but nothing happens after clicking activate. Has anyone fixed that issue? I had no problems running other CE tables for other games, any help would be appreciated!
Which table are you using?
Also, if you right click on the Activate script after it fails, it should tell you what the error is in the context window. What does it say?
 
Which table are you using?
Also, if you right click on the Activate script after it fails, it should tell you what the error is in the context window. What does it say?
Using TPHD v4.2.CT with CEMU 2.2 and tried with 2.4

It says:

<< Lua error in the script at line 2:[string "--store orig onClose so CE can properly free..."]:155: Cannot open file C:\user\...\log.txt' No such file or directory >>
 
Using TPHD v4.2.CT with CEMU 2.2 and tried with 2.4

It says:

<< Lua error in the script at line 2:[string "--store orig onClose so CE can properly free..."]:155: Cannot open file C:\user\...\log.txt' No such file or directory >>
This is strange, you are the only one who has had this specific problem... It seems that the script isn't able to find the location of the log file that Cemu creates when it starts. I use this as it saves me having to find the location of where Cemu places it's memory by telling me where it is. Can you confirm that the log.txt file exists in the folder when Cemu.exe is?

Also what version of Cheat Engine are you using? Just so we don't clog up this chat, you can DM me so we can try to get this issue solved.
 
Hi, it's not working for me. 4.1 IS working, 4.2 not.
I'm on CE 7.5 and got this error message:

<<Lua error in the script at line 2:[string "-- store orig onClose so CE can properly free..."]:147: attempt to index a nil value (field '?')>>
Post automatically merged:

Fixed it by changing the code lines back as in 4.1:
openProcess("Cemu.exe")
local scanMain = AOBScan("3F 80 00 00 2F 72 65 73 2F 4C")[0]
registerSymbol("_baseaddr", tonumber(scanMain,16))

Working now, thanks for your effort!
 
Last edited by biggermandy,
  • Like
Reactions: n0ted
Hi, it's not working for me. 4.1 IS working, 4.2 not.
I'm on CE 7.5 and got this error message:

<<Lua error in the script at line 2:[string "-- store orig onClose so CE can properly free..."]:147: attempt to index a nil value (field '?')>>
Post automatically merged:

Fixed it by changing the code lines back as in 4.1:
openProcess("Cemu.exe")
local scanMain = AOBScan("3F 80 00 00 2F 72 65 73 2F 4C")[0]
registerSymbol("_baseaddr", tonumber(scanMain,16))

Working now, thanks for your effort!

Seems like it was running into an issue finding the base address? Even though you fixed it for yourself, can you tell me which version of CEMU? CEMU got an update sometime in 2.0 which allows you to store it's data in the appdata. If you use this feature, the log file that CEMU generated will be found there instead of where the exe is located, which can lead to issues. I will attach a fixed version for it here. Would you mind checking it out for me to see if that solves your issue?
 

Attachments

Seems like it was running into an issue finding the base address? Even though you fixed it for yourself, can you tell me which version of CEMU? CEMU got an update sometime in 2.0 which allows you to store it's data in the appdata. If you use this feature, the log file that CEMU generated will be found there instead of where the exe is located, which can lead to issues. I will attach a fixed version for it here. Would you mind checking it out for me to see if that solves your issue?
I'm using Cemu 2.5 (released in December) and haven't changed the configuration path. It defaults to %appdata%\Cemu.
Your new file fixed it! :)
 
Using TPHD v4.2.CT with CEMU 2.2 and tried with 2.4

It says:

<< Lua error in the script at line 2:[string "--store orig onClose so CE can properly free..."]:155: Cannot open file C:\user\...\log.txt' No such file or directory >>
Might be an obvious solution, but I was also having a similar problem and I found that choosing "Run as Administrator" for both Cemu and Cheat Engine fixed the problem
 
Hello there.

I'm having problems trying to get this cheat table to work, I'm getting errors in Cheat Engine. When I first open the table, a "Code list/Pause" window opens with a list of memory addresses and instruction names with an "OK" button at the bottom. When I double-click the square next to "Activate", the square does a little clock animation but doesn't enable.

<Lua error in the script at line 2:[string "local syntax check,memrec=... ..."]:5: attempt to call a nil value (global "read_file_lines')>

When I double-click the <script> text at the end of the line and open the editor, clicking OK at the bottom gives an error dialogue box saying "Not all code is injectable", the same error, and "Are you sure you want to edit it to this?" with a YES / NO prompt. Clicking Yes or No makes no difference. When I expand the fields in the Disclaimer section to the "DEV ONLY" options, all the values are shown as ??

I've tried using Cemu v2.5 and v2.6, I have v7.5.1 of Cheat Engine, and I've tried running them both with admin rights. I'm using the 4.2.2 version of the table, but I also get the same error with the 4.1 and 4.2 versions as well. In CE, I've checked the box for "MEM_MAPPED" in Scan Settings and enabled the 2 byte, 4 byte, and Float Big Endian custom types. I've tried copy and pasting the Log.txt file Cemu creates at startup from the Appdata folder into the same directory as Cemu.exe before starting CE.

Thanks!
 

Attachments

  • CEMUTPHD1.PNG
    CEMUTPHD1.PNG
    14.8 KB · Views: 59
  • CEMUTPHD2.PNG
    CEMUTPHD2.PNG
    38.1 KB · Views: 51
  • CEMUTPHD3.PNG
    CEMUTPHD3.PNG
    5.8 KB · Views: 38
  • CEMUTPHD4.PNG
    CEMUTPHD4.PNG
    29.5 KB · Views: 64
Hello there.

I'm having problems trying to get this cheat table to work, I'm getting errors in Cheat Engine. When I first open the table, a "Code list/Pause" window opens with a list of memory addresses and instruction names with an "OK" button at the bottom. When I double-click the square next to "Activate", the square does a little clock animation but doesn't enable.

<Lua error in the script at line 2:[string "local syntax check,memrec=... ..."]:5: attempt to call a nil value (global "read_file_lines')>

When I double-click the <script> text at the end of the line and open the editor, clicking OK at the bottom gives an error dialogue box saying "Not all code is injectable", the same error, and "Are you sure you want to edit it to this?" with a YES / NO prompt. Clicking Yes or No makes no difference. When I expand the fields in the Disclaimer section to the "DEV ONLY" options, all the values are shown as ??

I've tried using Cemu v2.5 and v2.6, I have v7.5.1 of Cheat Engine, and I've tried running them both with admin rights. I'm using the 4.2.2 version of the table, but I also get the same error with the 4.1 and 4.2 versions as well. In CE, I've checked the box for "MEM_MAPPED" in Scan Settings and enabled the 2 byte, 4 byte, and Float Big Endian custom types. I've tried copy and pasting the Log.txt file Cemu creates at startup from the Appdata folder into the same directory as Cemu.exe before starting CE.

Thanks!

Haven't had this issue before. I might have an idea what it is though. Can you send of screenshot of your Cheat Engine setting under the General Settings tab?
 
Haven't had this issue before. I might have an idea what it is though. Can you send of screenshot of your Cheat Engine setting under the General Settings tab?

Sure thing, here you go.
 

Attachments

  • CEMUTPHD5.PNG
    CEMUTPHD5.PNG
    41.9 KB · Views: 56
Sure thing, here you go.
Ok, so it was what I thought. Under the section where it says "Table: Lua scripts" your option is set to "never". While this is an understandable setting to set it to for security reasons, my table makes use of custom Lua scripts I've written for it to work. That is why you are getting the read_file_lines() returning nil error, and the function doesn't exist as my script hasn't run. If you want it to work but are worried about security, you can set it to always ask, that way, when you open a table and there is a script attached to it, you can choose whether or not to run it.

You can also go to the "Table" tab on Cheat Engine (not the settings) then "Show Cheat Table Lua Scripts" to see what the scripts are and determine for yourself whether or not they are suspicious.
 
Ok, so it was what I thought. Under the section where it says "Table: Lua scripts" your option is set to "never". While this is an understandable setting to set it to for security reasons, my table makes use of custom Lua scripts I've written for it to work. That is why you are getting the read_file_lines() returning nil error, and the function doesn't exist as my script hasn't run. If you want it to work but are worried about security, you can set it to always ask, that way, when you open a table and there is a script attached to it, you can choose whether or not to run it.

You can also go to the "Table" tab on Cheat Engine (not the settings) then "Show Cheat Table Lua Scripts" to see what the scripts are and determine for yourself whether or not they are suspicious.
Yep! That did it. Set it to "Always" and away it went. I didn't set that option to Never myself, I haven't changed any other settings in CE, so that's just what it was by default. Thanks heaps!
 

Site & Scene News

Popular threads in this forum