English Amiga Board


Go Back   English Amiga Board > Support > support.Other

 
 
Thread Tools
Old 06 November 2019, 20:35   #1
Shatterhand
Warhasneverbeensomuchfun
 
Shatterhand's Avatar
 
Join Date: Jun 2001
Location: Rio de Janeiro / Brazil
Age: 41
Posts: 3,450
Learning how to hack Amiga games.

Let's say I'd like start trying to hack Amiga games on ADF format... simple stuff, like maybe changing the palette or trying to add 2nd button support for games that use the keyboard for that....

Where should I start look to learn this kind of stuff? And what kind of tools I'd need?
Shatterhand is offline  
Old 06 November 2019, 20:40   #2
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
Depends specifically what you want..

Action replay or winuae debugger is a good start
BippyM is offline  
Old 06 November 2019, 21:09   #3
Shatterhand
Warhasneverbeensomuchfun
 
Shatterhand's Avatar
 
Join Date: Jun 2001
Location: Rio de Janeiro / Brazil
Age: 41
Posts: 3,450
I've never even touched Winuae debugger, but it does sound like a good start.
Shatterhand is offline  
Old 06 November 2019, 21:15   #4
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
The debugger isn't the easiest to use. I'd start messing with a replay and find palette info, mess with sprites etc.

Wouldbe nice if there was a decent guide for the winuae debugger
BippyM is offline  
Old 06 November 2019, 21:33   #5
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,161
then once you figured out what to change most of the time you have to add code to change it, because data & code is often packed and unpacked by the game only when needed.

Or unpack, change, repack, insert into adf image, and hope the packed size doesn't increase...
jotd is offline  
Old 06 November 2019, 22:30   #6
malko
Ex nihilo nihil
 
malko's Avatar
 
Join Date: Oct 2017
Location: CH
Posts: 4,856
Quote:
Originally Posted by bippym View Post
[...] wouldbe nice if there was a decent guide for the winuae debugger
+1
malko is offline  
Old 06 November 2019, 22:32   #7
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
Quote:
Originally Posted by jotd View Post
then once you figured out what to change most of the time you have to add code to change it, because data & code is often packed and unpacked by the game only when needed.

Or unpack, change, repack, insert into adf image, and hope the packed size doesn't increase...
Indeed, but one step at a time.. Learnt how Amiga works internally
BippyM is offline  
Old 06 November 2019, 22:55   #8
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,161
A collaboration is also possible: you figure out what to change and we integrate that in whdload slaves for instance.

Earok does a lot of (excellent) game hacking but doesn't want to update whdload slaves. In that case, he just sends me his code with the addresses & where to patch and I integrate it (Ruff'n'tumble joypad support for instance).

You can start by trying to add trainers. This is the easiest thing to do I can think off. Levelskips are very useful, but a little trickier.
jotd is offline  
Old 06 November 2019, 23:00   #9
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
Quote:
Originally Posted by jotd View Post
A collaboration is also possible: you figure out what to change and we integrate that in whdload slaves for instance.

Earok does a lot of (excellent) game hacking but doesn't want to update whdload slaves. In that case, he just sends me his code with the addresses & where to patch and I integrate it (Ruff'n'tumble joypad support for instance).

You can start by trying to add trainers. This is the easiest thing to do I can think off. Levelskips are very useful, but a little trickier.
I remember figuring out rainbow islands many years ago.. 4 rainbows anyone lol
BippyM is offline  
Old 07 November 2019, 09:20   #10
meynaf
son of 68k
 
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
IMO the easiest way could be to re-source some system friendly game.
Then inserting/deleting code becomes a lot easier (and perhaps debugging as well).
meynaf is online now  
Old 11 November 2019, 10:05   #11
Sim085
Registered User
 
Join Date: Apr 2009
Location: N/A
Posts: 962
Do you mean like using tools like re-source?

Also what would you qualify as "system friendly"? For example would a game that runs from workbench be classified as so?



Quote:
Originally Posted by meynaf View Post
IMO the easiest way could be to re-source some system friendly game.
Then inserting/deleting code becomes a lot easier (and perhaps debugging as well).
Sim085 is offline  
Old 11 November 2019, 10:18   #12
malko
Ex nihilo nihil
 
malko's Avatar
 
Join Date: Oct 2017
Location: CH
Posts: 4,856
Quote:
Originally Posted by Sim085 View Post
[...] Also what would you qualify as "system friendly"? For example would a game that runs from workbench be classified as so?
I would think so. Like Lucas or Sierra's adventure games.

Meynaf would better know but I think some games that are executable from WB (thus HD), WHDLoad games excepted, are not so system friendly and they, kind of "save" the system state before restoring it upon quitting. Am I correct ?
malko is offline  
Old 11 November 2019, 14:23   #13
meynaf
son of 68k
 
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
Quote:
Originally Posted by Sim085 View Post
Do you mean like using tools like re-source?
Yes.


Quote:
Originally Posted by Sim085 View Post
Also what would you qualify as "system friendly"? For example would a game that runs from workbench be classified as so?
System friendly means it runs without destroying the OS, and actually uses it. In the ideal case, a game that can even multitask, which means you can use any amiga tool while the game is running.


Quote:
Originally Posted by malko View Post
I would think so. Like Lucas or Sierra's adventure games.

Meynaf would better know but I think some games that are executable from WB (thus HD), WHDLoad games excepted, are not so system friendly and they, kind of "save" the system state before restoring it upon quitting. Am I correct ?
Mere fact of being able to execute from WB does indeed not mean system friendly. Note that whdload games are not really to be considered system friendly because whdload actually saves the system state and restores it upon quitting.
meynaf is online now  
Old 11 November 2019, 15:05   #14
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
What wrote meynaf is right, but it's not always true for everyone.
That it is simpler to hack a system friendly game is subjective.
I prefer those who take over the system, I can better keep the situation under control .
Undoubtedly, you need to have a thorough knowledge of the hardware and debug tools are much less 'friendly'.
ross is offline  
Old 11 November 2019, 15:20   #15
meynaf
son of 68k
 
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
Quote:
Originally Posted by ross View Post
What wrote meynaf is right, but it's not always true for everyone.
That it is simpler to hack a system friendly game is subjective.
I prefer those who take over the system, I can better keep the situation under control .
Undoubtedly, you need to have a thorough knowledge of the hardware and debug tools are much less 'friendly'.
If you use the emulator's debugger rather than an amiga one (i don't), then the situation becomes different.

But anyway that depends how much the game is "unfriendly" and how far you push "hacking". If it uses absolute addressing and you want to act at source level, believe me, it's not easy to insert/delete code.
meynaf is online now  
Old 11 November 2019, 16:19   #16
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,161
One thing I did: I disassembled an executable (Battle Chess), figured out data (text) mistaken as source. Once all those fake sources were converted into data, I could reassemble/add/remove stuff.

This is the easiest (sometimes there are even symbols left in the executable ). If you need to hack NDOS games, the best is to improve existing whdload installs, as whdload slaves are designed to patch games easily.

There are a lot of slaves with enhancement requests, check whdload mantis for this.
jotd is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
WTB : Learning C: Programming Graphics on the Amiga and Atari ST kamelito MarketPlace 3 25 April 2019 20:17
A new Learning Demo for Amiga OCS and beyond. Toni Galvez Amiga scene 46 01 March 2015 15:20
Wanting to start learning to code amiga in asm fishyfish Coders. Asm / Hardware 5 03 March 2012 06:11
Playpower - 8 bit learning games for the developing world girv Retrogaming General Discussion 5 24 March 2009 22:00
how to hack games boing_1000 request.Old Rare Games 6 26 June 2006 12:46

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 17:55.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.10517 seconds with 15 queries