News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

How to edit a .DSK (or ROM?)

Started by and155, 15:52, 23 October 20

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

and155

Hi there,
I have found some 'Pokes' for one of my favourite games, which I still can't complete. I have the game as a .DSK file which when I open in notepad looks like nonsense.
Does anyone know how best to open and edit this type of format? I.e. is there a program I can use to do this? If not in .DSK format, what format should I obtain the game in and then edit - again with editing software to use?
The pokes I have found are:


















Temps = time, Force = Strength/Health and Balles = Bullets. These are all for Dr. Scrimes Spook School.
Thanks in advance for your help
Andy


GUNHED

http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

and155

Thanks for sending this through. I appreciate that this may be simple for you experts, but I have no idea what I'm doing!
I found within Winape that there is a 'Pokes' section. I am guessing I need to find the code and amend the data?

GeoffB17

#3
Hello,

Yes, this is somewhat of an arcane art, but once you get the hang of it, and have the correct tools, then it's OK.

I'd expect that 'pokes' might be given as a byte offset within a specified file, i.e. byte 20 should be changed from 68 to 6F.   So you have a program that displays the file as hex bytes such as 1F 2B AA 68 etc, and allows you to select a specific byte and change it, and then save the whole file back to disk or memory.

In your message, you did not show the actual poke details.   The details you did show are merely translations of French words to English?

Literal pokes can be done using BASIC, you need to have the file to be changed in memory, so POKE <address>, <data> will change the byte <address> from whatever it was to <data>.   The file needs to be loaded at the correct place (re memory addresses) as well.  You cannot use literal pokes on a .DSK file, as nothing is in the correct place.

Editing the .DSK would just add some extra calculating to make sure you're using the correct bit of the image that represents the right bit of the file, and then literally changing the file data

Doing something like this, always a good idea to make a copy of the file and edit that, then if things get messed up you've got the original to go back to.

Oh, in case you wonder, you cannot edit a ROM.  It's Read Only Memory!

????  When I first looked at your message, there was just a blank space between your text, and the note regarding the translations.  hence the comment about 'No actual pokes'.   After writing all the above, I've looked again at your original message, and NOW the actual pokes are there, showing as reverse video (white on Blue).   These are certainly BASIC pokes, although it would be a help if the information showed the current data at the address so you could confirm you are poking the correct spot.   I'd assume that the pokes are given assuming the code to be changed is at the normal place.  It might be possible to use that data to change (patch) the data in the .DSK image, but this may be a lot more complicated depending on what files/code is in the image, and how it's loaded into memory

Geoff

Johnny Olsen

Quote from: and155 on 15:52, 23 October 20I have found some 'Pokes' for one of my favourite games, which I still can't complete. I have the game as a .DSK file which when I open in notepad looks like nonsense.

No need to mess with dsk image, Nich has already made a dsk with the poke you need.
Follow Gunhed's link, scroll down and press the black crack dsk.
Download
"Dr Scrime's Spook School (UK) (1987) (Trainer) .dsk"

genesis8

____________
Amstrad news site at Genesis8 Amstrad Page

Gryzor

Quote from: GeoffB17 on 17:32, 23 October 20When I first looked at your message, there was just a blank space between your text, and the note regarding the translations. hence the comment about 'No actual pokes'. After writing all the above, I've looked again at your original message, and NOW the actual pokes are there, showing as reverse video (white on Blue). These are certainly BASIC pokes, although it would be a help if the information showed the current data at the address so you could confirm you are poking the correct spot. I'd assume that the pokes are given assuming the code to be changed is at the normal place. It might be possible to use that data to change (patch) the data in the .DSK image, but this may be a lot more complicated depending on what files/code is in the image, and how it's loaded into memory

What on earth?!?! Same with me, first load nothing appeared, refreshing the page showed the pokes as if they were screen-shot from an emulator (see attachment). Even weirder if I edit the post I can move the individual characters about! No idea how this is possible :D  Is there an emulator that allows you to copy text from the screen as bitmaps or something?

and155

#7
Quote from: Johnny Olsen on 10:07, 24 October 20
No need to mess with dsk image, Nich has already made a dsk with the poke you need.
Follow Gunhed's link, scroll down and press the black crack dsk.
Download
"Dr Scrime's Spook School (UK) (1987) (Trainer) .dsk"
Great! Thanks for all your help! I got this working this morning :)

Nich

Quote from: and155 on 15:52, 23 October 20
Hi there,
I have found some 'Pokes' for one of my favourite games, which I still can't complete. I have the game as a .DSK file which when I open in notepad looks like nonsense.
Does anyone know how best to open and edit this type of format? I.e. is there a program I can use to do this? If not in .DSK format, what format should I obtain the game in and then edit - again with editing software to use?

I posted an explanation in another thread of how to enter pokes in WinAPE using its debugger, but here it is again:

Press F7 while the game is playing. Click on the section of the window with the long lines of hex values and random characters.

Now either press Ctrl+G or click on the icon with the pointing hand. You will be asked which address in memory to go to.

Enter the 4-digit hex value (e.g. 7F66), and the cursor should move to that address. Now type the 2-digit hex value you wish to poke into that address (e.g. 21).

Repeat this procedure until you have poked all the addresses you need. :) You can also scroll through the lines of hex values and search for the relevant memory addresses.

WinAPE also has a poke database which you can access by pressing Ctrl+F8, but I've never used it!

Gryzor

Keep forgetting about the poke db... damn :D

Powered by SMFPacks Menu Editor Mod