Home › Forums › Destiny of an Emperor › Town and Cave Editing
- This topic has 48 replies, 4 voices, and was last updated 12 years, 3 months ago by
sonic.penguin.
-
AuthorPosts
-
January 30, 2014 at 11:01 am #53352
MiDKnighT
ModeratorThere’s going to be one hiccup / problem with doing this in DoaEditor that’s going to require manual intervention.
It gets the place ID only from the warp. Ie…when you step into Xu Zhou it looks up the “place ID” from the warp which is “7E”. It uses the place ID to look up which PPU graphics and which palette to use for that “area’. The problem is that when you walk around Xu Zhou or any town or cave there’s no need to change the location ID or PPU graphics or palette so it just keeps what it has. But this is a problem for DoaEditor because we can’t look up the PPU graphics and palette for every region. The only one that’s recorded is the entrance for each town or cave. That means we’re going to have to manually store the place ID (or graphic/palette pointer) for the extra town and cave regions that aren’t entrances.
At first I thought we could round up some volunteers and have them walk around various towns and caves and record the locations in this wiki that I started: http://doaerhguide.wikidot.com/map-info
But after further thought it would probably be easier to do this when looking at different regions in DoaEditor.
I’m thinking the best option would be for DoaEditor to “guess” what the right palette/color is for unknown regions by checking the regions around it. Of course, the guess is going to be wrong sometimes so we’ll have to give the ability to change the PPU graphics and palette on the screen. And each time it is changed it should store it in the ROM (for 1MB Roms) so that we don’t have to fix it again. Once we have it all mapped out we can have DoaEditor stick those pointers in the ROM automatically if they aren’t there. For a small ROM we can store the pointers in DoaEditor and make them static.
January 30, 2014 at 2:22 pm #53353DragonAtma
ModeratorMid, mid, mid…
You just said there aren’t many graphics, right?So just put in buttons to swap (visually only) to different tilesets. You saw for yourself what happens if you give a city some cave graphics! XD
Then, you can keep track of the last tileset used for each viewed map, and save a file for that when you output to game (so, for example, putting map differences in jinxuan.nes will also create a jinxuan.extra or something), and that’ll keep track of the last-used (and, presumably correct) graphics for each map.
January 30, 2014 at 2:35 pm #53354MiDKnighT
ModeratorThat’s very similar to what I was proposing actually. But instead of storing it in a separate file, storing it somewhere in the vast amounts of free space in the 1mb ROM.
January 30, 2014 at 2:43 pm #53355DragonAtma
ModeratorAnd if someone for some bizarre reason does NOT want an expanded game? XD
January 30, 2014 at 2:57 pm #53358MiDKnighT
ModeratorAnd if someone for some bizarre reason does NOT want an expanded game? XD
If they don’t want an expended game then they probably aren’t interested in changing region types either. I don’t know why a DoaE modder wouldn’t want to go to a 1MB ROM and add at least some of the features we have come up with.
January 30, 2014 at 3:32 pm #53359DragonAtma
ModeratorMeh, my mind’s still not running at 100%.
Don’t worry, I’ll get over the flu soon enough. Just don’t ask me to invade russia during the winter!
January 30, 2014 at 4:13 pm #53361Lord Yuan Shu
KeymasterCool stuff here. The mapping definitely sounds complicated. It’s a trip to see cave stuff splattered all over Xu Zhou.
Quick question about the 1mb expansion – would it fuck up the manual edits on my existing mods to do that? I’m presuming things within the code / pointers would be changing places.
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingJanuary 30, 2014 at 4:48 pm #53362MiDKnighT
ModeratorThe expansion shouldn’t hurt your manual edits I wouldn’t think. It really just changes the mapping of the ROM and doesn’t mess with customizations.
If you applied IPS 1.3 you’d probably have to rebalance your mod some. If you wanna go that route I can upload the latest IPS 1.3 patch which is bug free to my knowledge.
January 30, 2014 at 4:48 pm #53363sonic.penguin
ModeratorCool stuff here. The mapping definitely sounds complicated. It’s a trip to see cave stuff splattered all over Xu Zhou.
Quick question about the 1mb expansion – would it fuck up the manual edits on my existing mods to do that? I’m presuming things within the code / pointers would be changing places.
Things you may have to change are things that have changed location, for example, tactics come to mind. There have been other sets of data that have been transferred and those sorts of things might need to re-edited as your changes will also be overwritten by the IPS once you apply part 1 and part 2 which an older mod will likely need.
It is possible to manually hex in the new data using the RH Guide @ Wikidot, but as I’ve found, there are so many changes that can be made by the IPS automatically that its not really worth going through and hexing everything in because the margin of error is so high, and unless you’re a pro at figuring out what you typed wrong (like 7E instead of 7D) then you’re much better of just redoing what the IPS changed, but it should leave maps and text (except for duel text) alone.
January 30, 2014 at 4:49 pm #53364MiDKnighT
ModeratorTo clarify, just the ROM expansion shouldn’t change much but the latest IPS patch would move things around.
January 30, 2014 at 4:51 pm #53365MiDKnighT
ModeratorThe ROM expansion WOULD kill your save states though. Although I know a way to hack around that. If you want to keep a couple save states you can send your expanded ROM to me and a couple save states and I can fix the save states for you and send them back.
January 30, 2014 at 4:55 pm #53366MiDKnighT
ModeratorJust uploaded the latest and greatest IPS 1.3 patch. https://app.box.com/s/ig6z4heyk10k9inqzcbt
1. Back up your ROM.
2. Expanded it in DoaEditor
3. Apply IPS 1.3 patch 1 and 2.
4. Go into DoaEditor and go to town.
January 30, 2014 at 5:01 pm #53368sonic.penguin
ModeratorThe ROM expansion WOULD kill your save states though. Although I know a way to hack around that. If you want to keep a couple save states you can send your expanded ROM to me and a couple save states and I can fix the save states for you and send them back.
IPS is going to mess with so many things, it would be better to just start over from scratch though
January 30, 2014 at 5:10 pm #53370MiDKnighT
ModeratorIPS is going to mess with so many things, it would be better to just start over from scratch though
If the mod was a finished product where a huge amount of effort was done to balance I would agree.
But if it’s already a work in progress I think the pros of going to the latest IPS outweigh the cons (though I may be a bit biased). Tactics and stuff can be fixed up quickly in DoaEditor.
January 30, 2014 at 5:12 pm #53371sonic.penguin
ModeratorBut if it’s already a work in progress I think the pros of going to the latest IPS outweigh the cons (though I may be a bit biased). Tactics and stuff can be fixed up quickly in DoaEditor.
They do and that is why I manually hexed in some of the menu features and went through the threads looking for dual colored text fixes. The worst part about it used to be editing item prices/names and tactic cost/targeting/names, etc but that is a LOT easier now that DOAEditor supports those changes.
-
AuthorPosts
- You must be logged in to reply to this topic.

