Author Topic: Cheat Text Search  (Read 1063 times)

0 Members and 1 Guest are viewing this topic.

Offline Gent

  • PJ64 Dever
  • Hero Member
  • *****
  • Posts: 505
  • Karma: +100/-0
  • SuperFly Deving Guy
    • Project64 Website
Re: Cheat Text Search
« Reply #15 on: July 13, 2020, 06:30:33 pm »
Like I said earlier, these builds crash
When you try to unhide Advance Setting on Fresh install
When you try to change any settings including choosing Rom Directory.
When you try to change Rom Setting when rom is active (Fine from right click browser)
Also crashed on trying to enable a cheat code from Cheat menu.
See video below
« Last Edit: July 13, 2020, 06:34:39 pm by Gent »
System 1 Specs:

OS:Windows 7 Professional 64Bit
CPU:Intel® Core™2 Quad Processor Q8400, 2.66 GHz, 1333 MHz FSB
System RAM:8GB Ddr2 Ram
Video:ATI Radeon HD 7470 PCI-E Graphics Card 1Gb
Sound:Creative Labs SB0460 X-fi Fatality Sound Blaster

System 2 Specs:

OS:Windows 7 Professional 64Bit
CPU:AMD Intel Quad Core i7 860 @ 2.80GHz Lynnfield 45nm Technology
System RAM:16.0GB Dual-Channel DDR3 @ 664MHz (9-9-9-24)
Video Card:512MB NVIDIA GeForce 310 Graphics
Sound Card:Realtek High Definition Audio

System 3 Specs:

OS:Windows 7 Professional 64Bit
CPU:AMD Essentials E1-2100 Accelerated Processor clock speed : 1.0 GHz
System RAM:Crucial 16GB  DDR3 RAM (1,333 MHz)
Video Card:AMD E1-2100 APU with AMD Radeon™ HD 8210 Graphics
Sound Card:Realtek ALC269Q-VB5-GR


Offline Gent

  • PJ64 Dever
  • Hero Member
  • *****
  • Posts: 505
  • Karma: +100/-0
  • SuperFly Deving Guy
    • Project64 Website
Re: Cheat Text Search
« Reply #16 on: July 14, 2020, 01:52:20 am »
testing the later builds on my office PC it isn't as bad.... Yoshi Perm cheat works.
The cheat enabled still crashes and i have found that the cheat search is not functioning correctly
See video below.

First is the older build with the manually fixed crcsand second is the latest build with calculated crcs


« Last Edit: July 14, 2020, 02:12:09 am by Gent »
System 1 Specs:

OS:Windows 7 Professional 64Bit
CPU:Intel® Core™2 Quad Processor Q8400, 2.66 GHz, 1333 MHz FSB
System RAM:8GB Ddr2 Ram
Video:ATI Radeon HD 7470 PCI-E Graphics Card 1Gb
Sound:Creative Labs SB0460 X-fi Fatality Sound Blaster

System 2 Specs:

OS:Windows 7 Professional 64Bit
CPU:AMD Intel Quad Core i7 860 @ 2.80GHz Lynnfield 45nm Technology
System RAM:16.0GB Dual-Channel DDR3 @ 664MHz (9-9-9-24)
Video Card:512MB NVIDIA GeForce 310 Graphics
Sound Card:Realtek High Definition Audio

System 3 Specs:

OS:Windows 7 Professional 64Bit
CPU:AMD Essentials E1-2100 Accelerated Processor clock speed : 1.0 GHz
System RAM:Crucial 16GB  DDR3 RAM (1,333 MHz)
Video Card:AMD E1-2100 APU with AMD Radeon™ HD 8210 Graphics
Sound Card:Realtek ALC269Q-VB5-GR


Offline RadeonUser

  • PJ64 Dever
  • Full Member
  • *****
  • Posts: 249
  • Karma: +1/-0
  • SuperFly Deving Guy
Re: Cheat Text Search
« Reply #17 on: August 03, 2020, 05:55:39 am »
I believe I fixed most of the file related issues, it's still slow on release and even slower on the debug build but it's working "well enough".
Fixed the reset problem (easy enough) on cheat search.
Should be able to delete the entry now as well, was part of the rewrite I was doing and never finished.

Not sure what else I've done between the last time and now as the file stuff was taking a good deal of my concentration.

Offline RadeonUser

  • PJ64 Dever
  • Full Member
  • *****
  • Posts: 249
  • Karma: +1/-0
  • SuperFly Deving Guy
Re: Cheat Text Search
« Reply #18 on: August 03, 2020, 03:56:02 pm »
Gent's complaint: Cheat Search is horribly slow if there are millions of hits.
This was, mostly, intentional as memory usage is the price to pay for speed.
This build allocates memory in 512KB blocks to deal with high hits.
Unfortunately, it also allocates 512KB for a single result  8-}

I can do some future tweaks for unknown searches as that size is known (4MB or 8MB RDRAM, seeing as the entire memory is kept)

I also need to look into reducing that memory footprint somehow as I'm storing 8 bytes per hit, making it a whopping 64MB maximum for 8MB RDRAM unknown searches.

Also look at Missing Link, the Deku Ammo cheat doesn't seem to be activating on this build.


Offline Gent

  • PJ64 Dever
  • Hero Member
  • *****
  • Posts: 505
  • Karma: +100/-0
  • SuperFly Deving Guy
    • Project64 Website
Re: Cheat Text Search
« Reply #19 on: August 04, 2020, 12:15:35 am »
Move Up and Move Down do not work in cheat search enable
And on File Close or Top Right Exit  X App Crashes
« Last Edit: August 04, 2020, 12:28:41 am by Gent »
System 1 Specs:

OS:Windows 7 Professional 64Bit
CPU:Intel® Core™2 Quad Processor Q8400, 2.66 GHz, 1333 MHz FSB
System RAM:8GB Ddr2 Ram
Video:ATI Radeon HD 7470 PCI-E Graphics Card 1Gb
Sound:Creative Labs SB0460 X-fi Fatality Sound Blaster

System 2 Specs:

OS:Windows 7 Professional 64Bit
CPU:AMD Intel Quad Core i7 860 @ 2.80GHz Lynnfield 45nm Technology
System RAM:16.0GB Dual-Channel DDR3 @ 664MHz (9-9-9-24)
Video Card:512MB NVIDIA GeForce 310 Graphics
Sound Card:Realtek High Definition Audio

System 3 Specs:

OS:Windows 7 Professional 64Bit
CPU:AMD Essentials E1-2100 Accelerated Processor clock speed : 1.0 GHz
System RAM:Crucial 16GB  DDR3 RAM (1,333 MHz)
Video Card:AMD E1-2100 APU with AMD Radeon™ HD 8210 Graphics
Sound Card:Realtek ALC269Q-VB5-GR


Offline RadeonUser

  • PJ64 Dever
  • Full Member
  • *****
  • Posts: 249
  • Karma: +1/-0
  • SuperFly Deving Guy
Re: Cheat Text Search
« Reply #20 on: August 17, 2020, 02:59:41 pm »
I made a bit of progress on text replacement, the cheat code isn't created yet and there's a lot of error checking but the replacement does work.

Still to do:
Text input verification (We have our normal ASCII text and there's another possibly Unicode(?) option)
When editing the cheat in cheat search display the text (After it has been created)
Choose a format to save to the cdb (This may be kept as a string rather than the individual bytes)
Have cheat window (The normal one) recognize this new cheat format and load/handle it.

Once a stable point is reached and things are working I will investigate the 16bit option with the enhanced character set and then try to implement it.
Depending on the format decided for the cdb I may just denote this as U"16 bit text" or if that's difficult simply write out a long cheat to replace the 16bits individually.
The goal for the 8bit replacement may just be "Secret Gent" and I'll maybe add an option to null the last byte, or maybe \0 works right now... I haven't tested it thoroughly.

I'm sure I'll run into other things I need to do, that's just what I can think of right now.

The file stuff should be fine now, I decided to make the rom browser behave differently in my debug builds and returned to the stabler version some weeks back.
Which has also seen some modifications because I found some logic problems along the way...
So I'm hoping that's finally sorted
« Last Edit: August 17, 2020, 03:03:27 pm by RadeonUser »

Offline Gent

  • PJ64 Dever
  • Hero Member
  • *****
  • Posts: 505
  • Karma: +100/-0
  • SuperFly Deving Guy
    • Project64 Website
Re: Cheat Text Search
« Reply #21 on: August 17, 2020, 03:14:46 pm »
Fantastic!
System 1 Specs:

OS:Windows 7 Professional 64Bit
CPU:Intel® Core™2 Quad Processor Q8400, 2.66 GHz, 1333 MHz FSB
System RAM:8GB Ddr2 Ram
Video:ATI Radeon HD 7470 PCI-E Graphics Card 1Gb
Sound:Creative Labs SB0460 X-fi Fatality Sound Blaster

System 2 Specs:

OS:Windows 7 Professional 64Bit
CPU:AMD Intel Quad Core i7 860 @ 2.80GHz Lynnfield 45nm Technology
System RAM:16.0GB Dual-Channel DDR3 @ 664MHz (9-9-9-24)
Video Card:512MB NVIDIA GeForce 310 Graphics
Sound Card:Realtek High Definition Audio

System 3 Specs:

OS:Windows 7 Professional 64Bit
CPU:AMD Essentials E1-2100 Accelerated Processor clock speed : 1.0 GHz
System RAM:Crucial 16GB  DDR3 RAM (1,333 MHz)
Video Card:AMD E1-2100 APU with AMD Radeon™ HD 8210 Graphics
Sound Card:Realtek ALC269Q-VB5-GR


Offline Gent

  • PJ64 Dever
  • Hero Member
  • *****
  • Posts: 505
  • Karma: +100/-0
  • SuperFly Deving Guy
    • Project64 Website
Re: Cheat Text Search
« Reply #22 on: August 17, 2020, 03:31:35 pm »
The one thing Ive noticed is how the code looks in Testing area.
Activator is showing as 71 where the entry point Selection is blank.
See images below
System 1 Specs:

OS:Windows 7 Professional 64Bit
CPU:Intel® Core™2 Quad Processor Q8400, 2.66 GHz, 1333 MHz FSB
System RAM:8GB Ddr2 Ram
Video:ATI Radeon HD 7470 PCI-E Graphics Card 1Gb
Sound:Creative Labs SB0460 X-fi Fatality Sound Blaster

System 2 Specs:

OS:Windows 7 Professional 64Bit
CPU:AMD Intel Quad Core i7 860 @ 2.80GHz Lynnfield 45nm Technology
System RAM:16.0GB Dual-Channel DDR3 @ 664MHz (9-9-9-24)
Video Card:512MB NVIDIA GeForce 310 Graphics
Sound Card:Realtek High Definition Audio

System 3 Specs:

OS:Windows 7 Professional 64Bit
CPU:AMD Essentials E1-2100 Accelerated Processor clock speed : 1.0 GHz
System RAM:Crucial 16GB  DDR3 RAM (1,333 MHz)
Video Card:AMD E1-2100 APU with AMD Radeon™ HD 8210 Graphics
Sound Card:Realtek ALC269Q-VB5-GR