TZX file checksums

General software. From trouble with the Banyan Tree to OCP Art Studio, post any general software chat here. Could include game challenges...
Post Reply
User avatar
Vag
Drutt
Posts: 22
Joined: Sat Nov 12, 2022 4:52 pm
Location: Athens, Greece
Contact:

TZX file checksums

Post by Vag »

Hello everyone,
Do you know of a program that can recalculate and update the checksums of a TZX file easily?
Thanks :--)
User avatar
SkoolKid
Manic Miner
Posts: 418
Joined: Wed Nov 15, 2017 3:07 pm

Re: TZX file checksums

Post by SkoolKid »

I think my answer to your question is going to be "No" regardless, but what do you mean by checksums? Do you mean the parity bytes at the end of data blocks?
SkoolKit - disassemble a game today
Pyskool - a remake of Skool Daze and Back to Skool
User avatar
Vag
Drutt
Posts: 22
Joined: Sat Nov 12, 2022 4:52 pm
Location: Athens, Greece
Contact:

Re: TZX file checksums

Post by Vag »

Hi SkoolKid, thanks for your response :--))

SkoolKid wrote: Fri May 17, 2024 6:51 pm what do you mean by checksums? Do you mean the parity bytes at the end of data blocks?
Exactly :--)
In case you want to hack a TZX file using romhacking techniques (e.g. edit it with a hex editor), you have to recalculate the checksums. If you check "Fast Tape Loader", Speccy doesn't mind and loads the game, but if you want to make a game hack and release it, it's something you have to do.

SkoolKid wrote: Fri May 17, 2024 6:51 pm I think my answer to your question is going to be "No" regardless
Well, I will need to update the checksums of a hack I'm making and I'm about to finish.
I need something like this: UpdateTapChecksums, but not just for TAP files. I'm sure the author was too lazy to support TZX files (as it's me) :--P~
Maybe there's a workaround, like converting the TZX to something else, and then back to TZX (but without any information loss)? If not, I will have to write an "UpdateTzxChecksums" program, but I would like to avoid it if possible (there's no time).

Regards!
User avatar
jpnz
Manic Miner
Posts: 335
Joined: Tue Nov 14, 2017 4:07 pm
Location: Hamilt[r]on - City Of The Future - NZ

Re: TZX file checksums

Post by jpnz »

You can use Tapir if you're OK with Windows

Image

Image

Image
User avatar
Vag
Drutt
Posts: 22
Joined: Sat Nov 12, 2022 4:52 pm
Location: Athens, Greece
Contact:

Re: TZX file checksums

Post by Vag »

Thank you jpnz!
That's the solution, I will try it after some days, when the game is finished :--)
User avatar
Lee P
Manic Miner
Posts: 217
Joined: Fri Jan 05, 2018 9:47 am
Location: The Warehouse
Contact:

Re: TZX file checksums

Post by Lee P »

I think it can be done in ZX Blockeditor too, although I've never used it for that.
Ralf
Rick Dangerous
Posts: 2324
Joined: Mon Nov 13, 2017 11:59 am
Location: Poland

Re: TZX file checksums

Post by Ralf »

Personally I use Zx Blockeditor:
https://www.alessandrogrussu.it/zx-modules.html

Hacking a few bytes in some random hex editor will make the .tzx unusable. As you noticed the checksums will be wrong.

But Zx Blockeditor knows about checksums and will adjust them when you click "Save".

If you want to hack a game easily, use a .SNA format for testing. It doesn't have any checksums and can be edited with anything.
User avatar
Vag
Drutt
Posts: 22
Joined: Sat Nov 12, 2022 4:52 pm
Location: Athens, Greece
Contact:

Re: TZX file checksums

Post by Vag »

Hi friends, thank you both!
I will also try Zx Blockeditor :--)
Ralf wrote: Sat May 18, 2024 10:35 amIf you want to hack a game easily, use a .SNA format for testing. It doesn't have any checksums and can be edited with anything.
I don't want to hack a game easily :--))))
There had been games that took me months or years to translate!

I prefer image files to snapshot files, because I want to create new language versions of games, as they would have been made originally.
Post Reply