How to Really Disable Cheats Updating In update_all? [Solved]

Kernel, Main, Utilities & Applications, Miscellaneous Devices.
vanfanel
Posts: 119
Joined: Sun May 24, 2020 6:53 pm
Has thanked: 9 times
Been thanked: 20 times

How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by vanfanel »

Hi there!

Supposedly, there is an option so the update_all script doesn't update the cheats.
That's adding this to

Code: Select all

update_all.ini

:

Code: Select all

UPDATE_CHEATS="false"

However, after doing this, cheats are being insistently being updated each time I run the script.
So, what's the right way to disable them??
There's no option on the menu either with the new update_all script...

thanks!

dshadoff
Core Developer
Posts: 534
Joined: Sun May 24, 2020 9:30 pm
Has thanked: 19 times
Been thanked: 141 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by dshadoff »

Agreed. I would want to update these maybe twice a year, not every time.
User avatar
Sigismond0
Posts: 339
Joined: Mon May 25, 2020 2:21 am
Has thanked: 1 time
Been thanked: 66 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by Sigismond0 »

If you're using the new Downloader in Update All (which is enabled by default), you need to make this change to your downloader.ini:

Code: Select all

[mister]
filter = !cheats
Documentation on downloader filtering - https://github.com/MiSTer-devel/Downloa ... filters.md

List of filters - https://github.com/MiSTer-devel/Distrib ... rs-feature
vanfanel
Posts: 119
Joined: Sun May 24, 2020 6:53 pm
Has thanked: 9 times
Been thanked: 20 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by vanfanel »

Sigismond0 wrote: Mon Feb 14, 2022 2:30 pm If you're using the new Downloader in Update All (which is enabled by default), you need to make this change to your downloader.ini:

Code: Select all

[mister]
filter = !cheats
Documentation on downloader filtering - https://github.com/MiSTer-devel/Downloa ... filters.md

List of filters - https://github.com/MiSTer-devel/Distrib ... rs-feature
Ah!! This is the REAL DEAL! Thanks, it works perfectly!!
Matsu
Posts: 25
Joined: Tue Oct 27, 2020 1:02 pm
Has thanked: 8 times
Been thanked: 7 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by Matsu »

[mister]
filter = !cheats

This doesn't just stop downloading cheats, it also removes them.
User avatar
SegaMan
Posts: 37
Joined: Tue May 26, 2020 8:23 am
Has thanked: 5 times
Been thanked: 4 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by SegaMan »

Matsu wrote: Tue Mar 29, 2022 11:15 am [mister]
filter = !cheats

This doesn't just stop downloading cheats, it also removes them.

Yes, unfortunately.
I'm also looking for a solution to exclude the cheats from the update without deleting them.
fierman
Posts: 111
Joined: Mon Mar 28, 2022 11:08 pm
Has thanked: 83 times
Been thanked: 23 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by fierman »

SegaMan wrote: Wed Apr 06, 2022 8:53 pm
Matsu wrote: Tue Mar 29, 2022 11:15 am [mister]
filter = !cheats

This doesn't just stop downloading cheats, it also removes them.

Yes, unfortunately.
I'm also looking for a solution to exclude the cheats from the update without deleting them.
ditto. I like the cheats, but I don't need to have them updated twice a week.
User avatar
desin24
Posts: 22
Joined: Sat Jun 06, 2020 6:25 pm
Been thanked: 6 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by desin24 »

use !Cheats
fierman
Posts: 111
Joined: Mon Mar 28, 2022 11:08 pm
Has thanked: 83 times
Been thanked: 23 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by fierman »

desin24 wrote: Fri Apr 15, 2022 11:18 amuse !Cheats
This doesn't just stop downloading cheats, it also removes them.
User avatar
PistolsAtDawn
Posts: 338
Joined: Fri Feb 18, 2022 7:29 pm
Has thanked: 234 times
Been thanked: 90 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by PistolsAtDawn »

SegaMan wrote: Wed Apr 06, 2022 8:53 pm
Matsu wrote: Tue Mar 29, 2022 11:15 am [mister]
filter = !cheats

This doesn't just stop downloading cheats, it also removes them.

Yes, unfortunately.
I'm also looking for a solution to exclude the cheats from the update without deleting them.
What you'll want to do is use the filter option, but don't use the ! (not) operator before your filter terms. You'll want to explicitly include everything except that which you don't want updated. Using the tags works better instead of listing each core name, like this:

Code: Select all

[mister]
filter = arcade computer console other utility cores mra alternatives hbmame handheld2p palettes all_filters essential readme docs extra-utilities bios
Just leave

Code: Select all

cheats
off your list and that should do what you want. I set mine up like this yesterday.
fierman
Posts: 111
Joined: Mon Mar 28, 2022 11:08 pm
Has thanked: 83 times
Been thanked: 23 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by fierman »

PistolsAtDawn wrote: Fri Apr 15, 2022 3:32 pm
What you'll want to do is use the filter option, but don't use the ! (not) operator before your filter terms. You'll want to explicitly include everything except that which you don't want updated. Using the tags works better instead of listing each core name, like this:

Code: Select all

[mister]
filter = arcade computer console other utility cores mra alternatives hbmame handheld2p palettes all_filters essential readme docs extra-utilities bios
Just leave

Code: Select all

cheats
off your list and that should do what you want. I set mine up like this yesterday.
Thanks, but this also removes all cheats....
cheatzmister.jpg
cheatzmister.jpg (61.63 KiB) Viewed 3805 times
User avatar
SegaMan
Posts: 37
Joined: Tue May 26, 2020 8:23 am
Has thanked: 5 times
Been thanked: 4 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by SegaMan »

PistolsAtDawn wrote: Fri Apr 15, 2022 3:32 pm
SegaMan wrote: Wed Apr 06, 2022 8:53 pm
Matsu wrote: Tue Mar 29, 2022 11:15 am [mister]
filter = !cheats

This doesn't just stop downloading cheats, it also removes them.

Yes, unfortunately.
I'm also looking for a solution to exclude the cheats from the update without deleting them.
What you'll want to do is use the filter option, but don't use the ! (not) operator before your filter terms. You'll want to explicitly include everything except that which you don't want updated. Using the tags works better instead of listing each core name, like this:

Code: Select all

[mister]
filter = arcade computer console other utility cores mra alternatives hbmame handheld2p palettes all_filters essential readme docs extra-utilities bios
Just leave

Code: Select all

cheats
off your list and that should do what you want. I set mine up like this yesterday.
This also delete the cheats files.
User avatar
PistolsAtDawn
Posts: 338
Joined: Fri Feb 18, 2022 7:29 pm
Has thanked: 234 times
Been thanked: 90 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by PistolsAtDawn »

Hmm. Well I made a copy of the cheats folder and moved it back after setting up the filter that way and the cheats work while not being updated or removed. The documentation on filters lead me to believe that only the ! operator before terms would cause deletions. I guess not.

So while not a great solution due to the wasted time, making a backup copy of the cheats/ folder after they're all downloaded and then renaming it back to cheats/ after the script deletes them will work.
jca
Top Contributor
Posts: 1911
Joined: Wed May 27, 2020 1:59 pm
Has thanked: 145 times
Been thanked: 454 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by jca »

Don't forget to do the renaming dance before and after your subsequent updates.
User avatar
PistolsAtDawn
Posts: 338
Joined: Fri Feb 18, 2022 7:29 pm
Has thanked: 234 times
Been thanked: 90 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by PistolsAtDawn »

jca wrote: Sat Apr 16, 2022 6:45 pm Don't forget to do the renaming dance before and after your subsequent updates.
Do you mean when you want to update the cheats?
jca
Top Contributor
Posts: 1911
Joined: Wed May 27, 2020 1:59 pm
Has thanked: 145 times
Been thanked: 454 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by jca »

No, every time you want to update MISTer without updating the cheats you will have to do the same things as you did the first time. You can improve things by renaming the Cheats folder to something else before the update and renaming it back to Cheats after the update, no need to make a backup.
IMHO the downloader is deeply flawed, it should not delete things like it does but only if explicitly asked.
It could be something like:
filter = !cheats -> Do not download/update Cheats and delete Cheats.
filter = #cheats -> No not touch Cheats, leave it like it is.
User avatar
PistolsAtDawn
Posts: 338
Joined: Fri Feb 18, 2022 7:29 pm
Has thanked: 234 times
Been thanked: 90 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by PistolsAtDawn »

No, through whatever quirk of logic, the cheats remain in place with those filter settings but do not update.

I just tested this to be certain, and in doing so found my arcade cabinet monitor has suddenly died. I had just gotten the MiSTer in January specifically for that cabinet, and I rebuilt the controls for it too.

Now I'm off to find someone who can service the chassis of a Kortek 2914F. Sigh.
jca
Top Contributor
Posts: 1911
Joined: Wed May 27, 2020 1:59 pm
Has thanked: 145 times
Been thanked: 454 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by jca »

:?:
If I understand it correctly:
At some point you want to keep the cheats but not update them.
if you use filter = !cheats it will remove them.
if you use filter = blah blah blah which omits cheats it would also delete them so before the update you rename the cheats folder to something else, run the update and rename back the directory to cheats.
From this point on you use the update with the same filter, leaving the cheat folder as it is, and the update does not delete the cheats folder.
Is this correct?
If so it does not make any sense, the downloader has a mind of its own.
Sorry to hear about your monitor.
theypsilon
Scripting Wizard
Posts: 105
Joined: Sun May 24, 2020 8:20 pm
Been thanked: 40 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by theypsilon »

jca wrote: Mon Apr 18, 2022 5:43 am No, every time you want to update MISTer without updating the cheats you will have to do the same things as you did the first time. You can improve things by renaming the Cheats folder to something else before the update and renaming it back to Cheats after the update, no need to make a backup.
IMHO the downloader is deeply flawed, it should not delete things like it does but only if explicitly asked.
It could be something like:
filter = !cheats -> Do not download/update Cheats and delete Cheats.
filter = #cheats -> No not touch Cheats, leave it like it is.
This is not true, after you have !cheats in the filter, you may put the Cheats folder there and it won't ever get removed.

So, if you already have a Cheats folder and you'd like to keep it untouched, you may do the following 3 steps:
-1. Rename the Cheats something else.
-2. Add the negative filter "!cheats" to downloader.ini (see documentation for more details), and run downloader/update_all.
-3. Restore the original name of the Cheats folder.

That way, you won't have it updated nor removed ever again.
jca
Top Contributor
Posts: 1911
Joined: Wed May 27, 2020 1:59 pm
Has thanked: 145 times
Been thanked: 454 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by jca »

Good to know, thanks.
Another question:
Each time I run the update all script it downloads and unzips Cheats, mainly NES and SNES. Are they real updates?
User avatar
neogeo81
Posts: 374
Joined: Fri Apr 16, 2021 1:52 pm
Has thanked: 32 times
Been thanked: 45 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by neogeo81 »

theypsilon wrote: Thu Apr 21, 2022 2:01 pm
jca wrote: Mon Apr 18, 2022 5:43 am No, every time you want to update MISTer without updating the cheats you will have to do the same things as you did the first time. You can improve things by renaming the Cheats folder to something else before the update and renaming it back to Cheats after the update, no need to make a backup.
IMHO the downloader is deeply flawed, it should not delete things like it does but only if explicitly asked.
It could be something like:
filter = !cheats -> Do not download/update Cheats and delete Cheats.
filter = #cheats -> No not touch Cheats, leave it like it is.
This is not true, after you have !cheats in the filter, you may put the Cheats folder there and it won't ever get removed.

So, if you already have a Cheats folder and you'd like to keep it untouched, you may do the following 3 steps:
-1. Rename the Cheats something else.
-2. Add the negative filter "!cheats" to downloader.ini (see documentation for more details), and run downloader/update_all.
-3. Restore the original name of the Cheats folder.

That way, you won't have it updated nor removed ever again.
But if i run the updater 2-3 times week i need to do this every time? there must be another solution.
jca
Top Contributor
Posts: 1911
Joined: Wed May 27, 2020 1:59 pm
Has thanked: 145 times
Been thanked: 454 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by jca »

It is what I thought but theypsilon "corrected" me: you only have to do it once.
"This is not true, after you have !cheats in the filter, you may put the Cheats folder there and it won't ever get removed."
theypsilon
Scripting Wizard
Posts: 105
Joined: Sun May 24, 2020 8:20 pm
Been thanked: 40 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by theypsilon »

jca wrote: Thu Apr 21, 2022 2:19 pm Good to know, thanks.
Another question:
Each time I run the update all script it downloads and unzips Cheats, mainly NES and SNES. Are they real updates?
Yes, the cheats are updated very often. This is the source (you can see the update dates right there): https://gamehacking.org/mister/

I plan to buffer the updates for the cheats so they only get updated once a month or so, but that's still in my TODO list.
Matsu
Posts: 25
Joined: Tue Oct 27, 2020 1:02 pm
Has thanked: 8 times
Been thanked: 7 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by Matsu »

Honestly, I would not mind them being updated only once a year. So many unnecessary writes.
For now, I've just turned them off. Barely use cheats anyway.
Malor
Top Contributor
Posts: 860
Joined: Wed Feb 09, 2022 11:50 pm
Has thanked: 64 times
Been thanked: 194 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by Malor »

Seems like using rsync would be a much better method. I'm pretty sure Github supports rsync, so using that to copy the cheats down locally would minimize local writes. Only things that were new or had been updated would be downloaded and written to the SD card.

The containing ZIPs would need to be broken up into the hundreds(?) of individual files, but then further maintenance on them should be easy. Adding new cheats is just copying them in, and editing one should update its last-modified timestamp, so it would then be grabbed by rsync and updated on local machines.

A single big ZIP probably made a lot of sense when first starting, but updates now rewrite every file, every time, and there are a *lot* of files.... every cheat for every game for every system.
theypsilon
Scripting Wizard
Posts: 105
Joined: Sun May 24, 2020 8:20 pm
Been thanked: 40 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by theypsilon »

Downloader works the same as rsync for incremental changes, that's not the issue. The real problem is that changes are not being incremental, because all game zips are always different binary-wise between releases. There is an issue in the creation of the game zips in gamehacks server. I'm working to solve that there with rimsky82.
Stupid Dufus
Posts: 152
Joined: Sun Aug 30, 2020 12:04 am
Has thanked: 87 times
Been thanked: 46 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by Stupid Dufus »

To confirm, there's currently no way to disable downloading cheats using update_all without renaming the cheats directory before and after running it.

Is that correct?
theypsilon
Scripting Wizard
Posts: 105
Joined: Sun May 24, 2020 8:20 pm
Been thanked: 40 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by theypsilon »

Stupid Dufus wrote: Thu May 05, 2022 10:51 am To confirm, there's currently no way to disable downloading cheats using update_all without renaming the cheats directory before and after running it.

Is that correct?
No. If you don't want cheats at all, just disable them in a filter: https://www.youtube.com/watch?v=jBxls-yGtvI
Stupid Dufus
Posts: 152
Joined: Sun Aug 30, 2020 12:04 am
Has thanked: 87 times
Been thanked: 46 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by Stupid Dufus »

Sorry if I wasn't clear. I'd like to keep the cheats I already have, but simply disable downloading new ones. Hope that can be added as an option soon
jca
Top Contributor
Posts: 1911
Joined: Wed May 27, 2020 1:59 pm
Has thanked: 145 times
Been thanked: 454 times

Re: How to Really Disable Cheats Updating In update_all? [Solved]

Unread post by jca »

Just read what is said in the thread, the answer is there:
viewtopic.php?p=49532#p49532
Post Reply