Xenesis
 Roy Koopa Actually a Doctor
Level: 101
   

Posts: 412/2732
EXP: 10486589 For next: 231086
Since: 07-28-07
Pronouns: She/Her
From: Orange Star's Retirement Villa
Since last post: 9 days Last activity: 19 hours
|
| Posted on 05-05-09 06:02:08 AM (last edited by Xenesis at 05-05-09 01:03 PM) |
Link | Quote
| |
For the benefit of anyone who wants it, this little assembly hack is an aid for anyone wanting to hack AW2. It uses AW2 (U) and assumes a clean ROM (use this patch to remove an intro)
It's a modification to the way stats are called in the game that now allows you to edit each one independently on a per-unit basis instead of modifying the game's pre-set unit classes. It basically removes a lot of limitations at the cost of taking up a lot more space (But when you barely use 6mb out of 8, meh.)
IPS Patch
Now there's no rules about stat combinations when hacking in AW2. Each unit can now have it's own unique set of firepower, defence, movement and range stats under D2D, COP and SCOP conditions for every CO.
CO Data starts at 0x619750 in the ROM. There is an entry for every single unit in the game, including the dummy units + 1 buffer to keep the arrays aligned nice. ASCII Labels for your convenience. The game now ignores any of the pointers to CO Stats in the CO Data and just uses this format.
I copied the CO stats painstakingly by hand. Tell me if I typo'd anything or you find any bugs.
Edit:
As an update, I have compiled a Nightmare 2.0 Module for the Edited CO Tables. You can find the module file here. |
Hectamatatortron
Member
Level: 35
   
Posts: 152/232
EXP: 258215 For next: 21721
Since: 09-19-07
Since last post: 7.2 years Last activity: 5.3 years
|
|
Originally posted by Xenesis Edit:
As an update, I have compiled a Nightmare 2.0 Module
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
Sweet.
Two of some of my favorite kinds hacks rolled into one:
- Those that make other things easier to hack (meta-hacking is awesome to me)
- Those that take advantage of something I made (I love it when something I work on ends up having a use somewhere)
____________________  |
Xenesis
 Roy Koopa Actually a Doctor
Level: 101
   

Posts: 573/2732
EXP: 10486589 For next: 231086
Since: 07-28-07
Pronouns: She/Her
From: Orange Star's Retirement Villa
Since last post: 9 days Last activity: 19 hours
|
|
I've created a new nightmare module pack. It's got a few things:
aw2cmap - Edits the details of the campaign map headers.
aw2co - Edits various statistics of the COs.
aw2costat - Edits the statistics of a CO's units with the standard stat sets.
aw2costatcustom - This is for using the pointerhackultra patch to edit each CO's units individually.
aw2map - Edit details of the map header for every map in the game.
aw2misc - Edits a few random details of CO Powers and the game.
aw2unit - Edits unit details
aw2mapsprite - Changes a unit's default idling sprite on the map
aw2movechart - Edits the default movement charts for various movement types
aw2shoppic - Allows for easy editing for the shop graphics pointers.
Thought I'd post here if any one wants it.
Link is here. If I update, url should stay the same. |
xCH4RLIExSQU4Dx
Random nobody
Level: 5
   
Posts: 1/4
EXP: 502 For next: 27
Since: 07-11-11
Since last post: 10.8 years Last activity: 10.8 years
|
| Posted on 07-11-11 01:57:14 PM (last edited by xCH4RLIExSQU4Dx at 07-11-11 02:36 PM) |
Link | Quote
| |
Hey I don't know if you still do aw2 hacking and i don't even know if you will see this post but if you do I have a few questions:
1.) I was wondering if it was possible to load a factory script in versus mode, I'm using the map liberation and i have changed it so that you can play as either team and it shows up in the V.S. Map list everything works except the factory doesn't produce units.
If you can work this out that would be great b/c ever since i played my first factory map i wanted to be able to try out the other side.
2.) I haven't downloaded the balance hack yet and I wanted to make missiles be able to attack ground and air units.
Can I do this through Nightmare 2 or do i need to hex edit my ROM?
3.) How can I make design maps into a campaign map? |
Xenesis
 Roy Koopa Actually a Doctor
Level: 101
   

Posts: 1217/2732
EXP: 10486589 For next: 231086
Since: 07-28-07
Pronouns: She/Her
From: Orange Star's Retirement Villa
Since last post: 9 days Last activity: 19 hours
|
|
Hi there!
Yes, I do and I'll hopefully be able to answer your questions.
1) Yes, you can. To have a working factory requires that one team be black coloured and that the script is set in the map header. With the nightmare 2 module, go find 'Liberation' in the campaign, copy the factory pointer and replace it in whatever map you moved it into in Vs. And make sure P2 is forced to Black (Campaign recolours your armies by CO, Vs mode does not).
2) Yes. See here for an AW2 Damage Chart editor. I suppose I should make a NM2 module at some point too....
3) You'll have to copy them out to a standard map and insert them into the game. There's a map editor and inserter for AW2 here.
Good luck  |
xCH4RLIExSQU4Dx
Random nobody
Level: 5
   
Posts: 2/4
EXP: 502 For next: 27
Since: 07-11-11
Since last post: 10.8 years Last activity: 10.8 years
|
|
For the damage chart editor I have no clue how to get it to work on PC but I can use my mac so there's no problem xD
And for the custom campaign maps I had figured that out but this will make it much easier than editing the hex tile by tile...that takes FOREVER
Thanks bro
Also for the factory I didn't replace any maps I just moved it b/c I don't care about campaign at the time and it works when the computer is P2 but not when a player is P2, so how do I add the script into the header? Is it something in Nightmare 2.0 or hex? |
Xenesis
 Roy Koopa Actually a Doctor
Level: 101
   

Posts: 1218/2732
EXP: 10486589 For next: 231086
Since: 07-28-07
Pronouns: She/Her
From: Orange Star's Retirement Villa
Since last post: 9 days Last activity: 19 hours
|
|
Hm, might be something in the Factory's code to check whether a player is an AI or not.
I'll have to look into it at some point. |
xCH4RLIExSQU4Dx
Random nobody
Level: 5
   
Posts: 3/4
EXP: 502 For next: 27
Since: 07-11-11
Since last post: 10.8 years Last activity: 10.8 years
|
|
| K and btw I saw your Sonja hack where she caused FoW as her power and I was wondering how I could do that to both her power and her super power. |
Xenesis
 Roy Koopa Actually a Doctor
Level: 101
   

Posts: 1221/2732
EXP: 10486589 For next: 231086
Since: 07-28-07
Pronouns: She/Her
From: Orange Star's Retirement Villa
Since last post: 9 days Last activity: 19 hours
|
|
I wrote some custom assembly code to do it.
I should still have it somewhere, although it had a few bugs (and notably needs some improvement).
A lot of the things in my youtubes are custom code, which is doable but takes some learning  |
xCH4RLIExSQU4Dx
Random nobody
Level: 5
   
Posts: 4/4
EXP: 502 For next: 27
Since: 07-11-11
Since last post: 10.8 years Last activity: 10.8 years
|
|
| hmm.. cuz that is a great balancer for sonja. |
Xenesis
 Roy Koopa Actually a Doctor
Level: 101
   

Posts: 1882/2732
EXP: 10486589 For next: 231086
Since: 07-28-07
Pronouns: She/Her
From: Orange Star's Retirement Villa
Since last post: 9 days Last activity: 19 hours
|
|
In learning to use ARMips I re-wrote Pointer Hack Ultra to be assembleable using it.
Download Link
Usage:
Place a clean AW2 (U) rom named aw2-original.gba in the folder
Modify the CO's stats in the stats folder
Run 'build.bat'
Enjoy!
Note: If the formatting is messed up, open the files in wordpad instead of notepad.
You can also change the location of the table where the data gets placed by modifying mainphultra.asm |