Home › Forums › Destiny of an Emperor › Destiny of an Editor (permanent beta test mode active)
Tagged: Destiny of an Editor, Destiny of an Emperor, Huo Hu, Niahak, ROM Hacking, Xian Zhu Xuande, Zhuge Liang
- This topic has 1,129 replies, 26 voices, and was last updated 10 years, 12 months ago by
MiDKnighT.
-
AuthorPosts
-
December 24, 2012 at 7:54 pm #27427
DragonAtma
ModeratorWhat happens if you go with a chapter number from 10 to FF?
December 24, 2012 at 8:06 pm #27428sonic.penguin
ModeratorNo clue, haven't tried it yet :P It might just crash it!
December 24, 2012 at 8:12 pm #27429Niahak
ModeratorQuote:Somehow I'm missing the extended chapters portion with the newest update. While I do have a regiontable that specifies they should present, they are not appearing in the map editor.Yeah, it loads the acceptable chapter numbers for the map editor from the ROM because I was a little bit lazy. It's been that way since I first added map editing. I can make an update, but it will definitely not be well-tested. Good thing I set up that SVN server, since I'm not at home :)
Quote:There is also a bug with the text editor where if you edit a line and don't click on another line before exporting that the line often reverts to the previous line before you edited it. It's really weird.Yeah, that's actually due to another issue. I didn't like the idea of opening and exporting a ROM changing any text, and there's no easy way to tell if a line has been manually changed by the user. It can also be fixed, I think, but just want to make sure that's an acceptable side-effect.
December 24, 2012 at 8:13 pm #27430Niahak
ModeratorQuote:Somehow I'm missing the extended chapters portion with the newest update. While I do have a regiontable that specifies they should present, they are not appearing in the map editor.Yeah, it loads the acceptable chapter numbers for the map editor from the ROM because I was a little bit lazy. It's been that way since I first added map editing. I can make an update, but it will definitely not be well-tested. Good thing I set up that SVN server, since I'm not at home :)
Quote:There is also a bug with the text editor where if you edit a line and don't click on another line before exporting that the line often reverts to the previous line before you edited it. It's really weird.Yeah, that's actually due to another issue. I didn't like the idea of opening and exporting a ROM changing any text, and there's no easy way to tell if a line has been manually changed by the user. It can also be fixed, I think, but just want to make sure that's an acceptable side-effect.
December 24, 2012 at 8:27 pm #27431Niahak
ModeratorI couldn't reproduce the second issue, so I'll hold off on fixing it.
First one should be fixed now, but again I've only barely tested:
December 24, 2012 at 8:29 pm #27432sonic.penguin
ModeratorYou can whip up DOAEditor releases even on the fly!?
Amazing!!
December 24, 2012 at 8:37 pm #27433Niahak
ModeratorWhen I happen to check LYS at exactly the right time, have my netbook with the right tools installed, and have a pretty good idea of where to look, yeah. I can whip up a release of DoaEditor in about 20 minutes.
January 10, 2013 at 2:54 pm #27434sonic.penguin
ModeratorOkay, so I know the battle editor allows you to punch in coordinates to place battles on the main map, but is there any way it can modified to allow you place battles ANYWHERE just by punching in coordinates? For example, if I want to place a battle on a treasure box in a cave.
Now I can do this manually via the hex, but thats a big pain. Any thoughts Niahak?
January 10, 2013 at 4:09 pm #27435MiDKnighT
ModeratorThe ROM hacking guide has instructions on how to do it but I agree that it would be nice to put in your own address in DoaEditor.
Still looking forward to a "portrait selector" enhancement to DoaEditor (like the region selector) since there are sooooo many new portraits now. It's time consuming to put in new portraits slice by slice with a large portrait library.
Niahak has been letting his "honey do" list sit for a while like I have :)
January 13, 2013 at 3:21 pm #27436MiDKnighT
ModeratorHi Niahak,
I wanted to chat with you about my next ROM expansion. Currently the plan is:
-
– Expand the ROM to 1MB (2x current expanded size, 4x original ROM size)
– Copy ROM pages 00-03 to pages 20-23 (move portraits, sprites, etc… to expanded pages)
– Change portrait/sprite/other code to look in pages 20-23.
– Add a new text bank to page 03
I had some questions about the new text bank and I figure you know more about this than anyone.
What I know from the ROM map is:
Quote:
Page 0A – Starting Address: 0x28010
0x28400-0x2BF1F: Text Bank 1
Page 0B – Starting Address: 0x2C010
0x2C390-0x2F1CF: Text Bank 2
0x2FAF0-0x2FD3B: Item Names
0x2FE4F-0x2FF45: Tactic Names
But I'm kinda confused because it looks like there are references to more than 2 text banks for the battle taunts?
Quote:Which text bank it will use is at 0x3AF79:0000 00FF FFFF 0101 0202 0101 0201 0202
0202 0202 0202 02FF 0202 02FF 0202 0203
0202 0202 0202 0202 0202 0202 0202 0202
0202 FF02 0202 FF02 0202 0202 0202 0202
0202 0202 0202 0202 0100 0003 FF02 02FF
So I assume FF means no text reference for that taunt. Then it seems there are 00-03 text banks?
If I add a new text bank it would be text bank 04?
Can you brain dump what you know about this? :)
January 13, 2013 at 4:26 pm #27437Niahak
ModeratorThe 00-03 in the battle taunts section only refer to the 2 text banks.
00 – text bank 1, line 0-255
01 – text bank 1, line 256+
02 – text bank 2, line 0-255
03 – text bank 2, line 256+
So depending on how many lines you will want to have, you will have values 04 – (04+(n/256)).
I don't know exactle how.the lookup routine works, but I do know that much.
Also, don't forget about the line pointers you will need before the actual lines. I think I have mentioned how they work in the Rom hacking guide, but can post in more detail later (traveling and so no access to computer).
January 13, 2013 at 5:58 pm #27438sonic.penguin
ModeratorFF means no taunt and shows no taunt in battles, 01 is text bank 1, 02 is oxygen… actually its a reference to bank 2.
It works kind of like chapters and lines in a book, like chapter 1 line 15 or Chapter 2 line 231, but each line has a pointer to it for a specific townsperson, event, or battle. That would be the BIGGEST pain of moving the current text banks is all the pointers to current townspeople dialogue. It would be much eaiser to just add more empty banks to be filled in if it was merely for battle dialogues into the new expansion w/ portrait data (or maybe new music!)
There is an 03 text bank that is WAY at the bottom and starts talking about Sima Yi, basic in-battle dialogue w/ tactics, Pang Tong and Zhou Cang's lines, etc.
January 21, 2013 at 8:30 pm #27439sonic.penguin
ModeratorOkay, for some reason, DOAEditor is truncating names I have manually changed in the hex. In this instance, I changed Pirate (the ones that are in the Wu house) to Xiongnu and every time I export in DOAEditor, it changes it to Xiongn
January 21, 2013 at 10:45 pm #27440Niahak
ModeratorIt's probably hard-coding the length of the pirate entry.
Will take a look and see what can be done tonight.
January 22, 2013 at 12:41 am #27441Niahak
ModeratorHey sonic,
Did you update the pointers above the officer entries to match the longer name? That would explain the behavior you're seeing.
The pirate byte length isn't hardcoded, but if the pointers weren't updated it would assume nothing has changed.
-
AuthorPosts
- You must be logged in to reply to this topic.

