Author Topic: Cheat Text Search  (Read 87 times)

0 Members and 1 Guest are viewing this topic.

Offline Gent

  • PJ64 Dever
  • Sr. Member
  • *****
  • Posts: 463
  • Karma: +2/-0
  • SuperFly Deving Guy
    • Project64 Website
Cheat Text Search
« on: September 13, 2019, 12:13:39 PM »
Ok Rad and myself have been looking at this again and it seems Nemu Text search does indeed something Hinky that is not compatible with PJ.
However.... Zilmars Newer model with group effort overhauling the Cheat search stuff i stumbled on their improvements.
By searching known values and selecting String method it can now search for text rather accurately with incorporated live test result section like outs but also the bonus of viewing in Memory editor and live changing there also.

Anyway....

Below is a mod Ive done on  007 - The World is Not Enough (U) to Replace Agent, Secret Agent and OO Agent with Rob, Secret Rob and 00 Rob.

80176A6C 52 6F 62 00 00 (Rob)

Name Mod\Rob
80176A6C 0052
80176A6D 006F
80176A6E 0062
80176A6F 0000
80176A70 0000

---------------------------------------------------

80176A5C 53 65 63 72 65 74 20 52 6F 62 20 20 (Secret Rob)

Name Mod\Secret Rob
80176A5C 0053
80176A5D 0065
80176A5E 0063
80176A5F 0072
80176A60 0065
80176A61 0074
80176A62 0020
80176A63 0052
80176A64 006F
80176A65 0062
80176A66 0020
80176A67 0020

---------------------------------------------------

80176A50 30 30 20 52 6F 62 20 20 (00 Rob)

Name Mod\00 Rob

80176A50 0030
80176A51 0030
80176A52 0020
80176A53 0052
80176A54 006F
80176A55 0062
80176A56 0020
80176A57 0020

--------------------------------------------------

What I really like about TextSearch.png and MemEditor.png is the ability to show as Text or Hex result and also to open a Memory Editor that can Live update the value to see in realtime... nice! We need that  ;;)
« Last Edit: September 13, 2019, 02:36:47 PM by Gent »

Offline RadeonUser

  • PJ64 Dever
  • Full Member
  • *****
  • Posts: 231
  • Karma: +1/-0
  • SuperFly Deving Guy
Re: Cheat Text Search
« Reply #1 on: September 21, 2019, 12:40:16 PM »
This is just proof of concept, lots of work needed yet.
Please test out if the other functionality has changed any as I rewrote a lot of the back end to try to simplify things.

I need to byteswap the input for searching so that won't really work, you can test it out though.
"Agent" in TWINE would end up being gAne\0t but I've no idea how you're going to copy and paste the null terminator into it.
Best you can look up is probably gAne but even that doesn't return the full list...

Hmm I just remembered I haven't finished off the cheat sorting...
Take care not to get the cheats out of order, the numbering should be Cheat0, Cheat1, etc... no sudden jumps like Cheat0, Cheat10, Cheat2 as it will ignore the latter past Cheat0.
Just need to stop right now and take a break.

Offline RadeonUser

  • PJ64 Dever
  • Full Member
  • *****
  • Posts: 231
  • Karma: +1/-0
  • SuperFly Deving Guy
Re: Cheat Text Search
« Reply #2 on: September 21, 2019, 08:47:36 PM »
Now butters your scones!

Should now search for text.
Still no replacing but I'm seeing odd results from the hits.
Also, ignore the fact that it's returning 0 for all values.
That will come later once I decide what to do.