How to create/add your own NEW parallel quest
Apr 24, 2017 4:19:24 GMT
The Mad Titan, atsuraelu, and 4 more like this
Post by Deleted on Apr 24, 2017 4:19:24 GMT
First of all you need to have a good knowledge of binary files and hexediting basics.
After reading this thread you will be able to create your own new parallel quest (it won't replace any existing quests)
I will try to keep updating this thread and adding more details and explications.
1. Introduction:
2. Understanding the structure of a quest:
a. Quest infos:
3. Setting characters to your quest:
4. Setting characters' start positions:
5. Understanding quest dialogues:
6. Understanding qed file:
7. Adding a new parallel quest:
I may update this thread MUCH later (in the next couple of months) since I am VERY busy atm
After reading this thread you will be able to create your own new parallel quest (it won't replace any existing quests)
I will try to keep updating this thread and adding more details and explications.
1. Introduction:
Each quest has 5 files: qed, qsl, qml and qbt
qed: quest script
and _1.qed for utimate finish
qsl: involved characters' starting position
qml: involved characters' settings
qbt: quotes/dialogues
and there is the qxd file which defines the quests and organize them
I am gonna work here with parallel quests. So open tmq_dat.qxd
qxd file has a part in which quest infos are defined and another one that defines character param
qed: quest script
and _1.qed for utimate finish
qsl: involved characters' starting position
qml: involved characters' settings
qbt: quotes/dialogues
and there is the qxd file which defines the quests and organize them
I am gonna work here with parallel quests. So open tmq_dat.qxd
qxd file has a part in which quest infos are defined and another one that defines character param
2. Understanding the structure of a quest:
a. Quest infos:
Each quest infos set covers 284 bytes
0000014C 54 4D 51 5F 30 31 30 31 00 00 00 00 00 00 00 00 TMQ_0101........
0000015C 01 00 00 00 01 00 00 00 00 00 00 00 03 00 00 00 ................
0000016C 06 00 00 00 BC 82 00 00 01 00 44 00 00 00 00 00 ..........D.....
0000017C 01 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF ................
0000018C 44 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF D...............
0000019C 01 00 00 00 01 00 00 00 01 00 00 00 BC D9 00 00 ................
000001AC 02 00 00 00 3C E6 00 00 84 03 00 00 18 00 00 00 ....<...........
000001BC 02 00 00 00 FC 01 01 00 96 00 00 00 E6 00 00 00 ................
000001CC 1E 00 00 00 C8 00 00 00 2C 01 00 00 28 00 00 00 ........,...(...
000001DC 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000001EC 03 00 00 00 FC 1A 01 00 01 00 00 00 DC 4D 01 00 .............M..
000001FC 00 00 00 00 00 00 00 00 01 00 00 00 00 5A 01 00 .............Z..
0000020C 01 00 00 00 0A 00 00 00 FF FF 0B 00 00 00 FF FF ................
0000021C 0C 00 00 00 FF FF FF FF 00 00 FF FF FF FF 00 00 ................
0000022C FF FF FF FF 00 00 FF FF 01 00 03 00 05 00 07 00 ................
0000023C 09 00 0B 00 FF FF FF FF FF FF FF FF 00 00 00 00 ................
0000024C 00 00 00 00 00 00 00 00 00 00 00 00 1A 00 18 00 ................
0000025C 14 00 11 00 00 00 80 3F 00 00 00 00 .......?....
quest ID
qe_ep msg file (quest dialogues)
qe_title msg file set count (keep it 6)
qe_title msg file set address start (you need to assign new ligns to your new quest)
quest duration in seconds
difficulty stars
stage ID
qed files count (keep it 2)
qed files address start (you need to assign new infos to your new quest)
Zeni reward
Items rewarded count
Items rewarded address start (you can assign new infos to your new quest)
skills rewarded count
skills rewarded address start (you can assign new infos to your new quest)
characters rewarded count
characters rewarded
address start (you can assign new infos to your new quest)
stage portrait count
stage portrait ID address start (you can assign new infos to your new quest)
character portraits ID list (6 bytes per one)
b. Character param:0000014C 54 4D 51 5F 30 31 30 31 00 00 00 00 00 00 00 00 TMQ_0101........
0000015C 01 00 00 00 01 00 00 00 00 00 00 00 03 00 00 00 ................
0000016C 06 00 00 00 BC 82 00 00 01 00 44 00 00 00 00 00 ..........D.....
0000017C 01 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF ................
0000018C 44 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF D...............
0000019C 01 00 00 00 01 00 00 00 01 00 00 00 BC D9 00 00 ................
000001AC 02 00 00 00 3C E6 00 00 84 03 00 00 18 00 00 00 ....<...........
000001BC 02 00 00 00 FC 01 01 00 96 00 00 00 E6 00 00 00 ................
000001CC 1E 00 00 00 C8 00 00 00 2C 01 00 00 28 00 00 00 ........,...(...
000001DC 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000001EC 03 00 00 00 FC 1A 01 00 01 00 00 00 DC 4D 01 00 .............M..
000001FC 00 00 00 00 00 00 00 00 01 00 00 00 00 5A 01 00 .............Z..
0000020C 01 00 00 00 0A 00 00 00 FF FF 0B 00 00 00 FF FF ................
0000021C 0C 00 00 00 FF FF FF FF 00 00 FF FF FF FF 00 00 ................
0000022C FF FF FF FF 00 00 FF FF 01 00 03 00 05 00 07 00 ................
0000023C 09 00 0B 00 FF FF FF FF FF FF FF FF 00 00 00 00 ................
0000024C 00 00 00 00 00 00 00 00 00 00 00 00 1A 00 18 00 ................
0000025C 14 00 11 00 00 00 80 3F 00 00 00 00 .......?....
quest ID
qe_ep msg file (quest dialogues)
qe_title msg file set count (keep it 6)
qe_title msg file set address start (you need to assign new ligns to your new quest)
quest duration in seconds
difficulty stars
stage ID
qed files count (keep it 2)
qed files address start (you need to assign new infos to your new quest)
Zeni reward
Items rewarded count
Items rewarded address start (you can assign new infos to your new quest)
skills rewarded count
skills rewarded address start (you can assign new infos to your new quest)
characters rewarded count
characters rewarded
address start (you can assign new infos to your new quest)
stage portrait count
stage portrait ID address start (you can assign new infos to your new quest)
character portraits ID list (6 bytes per one)
Each character param set covers 124 bytes
00000000 64 00 00 00 47 4F 4B 00 00 00 00 00 00 00 00 00 d...GOK.........
00000010 01 00 00 00 00 00 80 BF 00 00 80 BF 00 00 80 BF ................
00000020 00 00 80 BF 00 00 80 BF 00 00 80 BF 00 00 80 BF ................
00000030 00 00 80 BF 00 00 80 BF 00 00 80 BF 00 00 80 BF ................
00000040 00 00 80 BF 00 00 80 BF 00 00 80 BF 00 00 80 BF ................
00000050 00 00 80 BF 00 00 00 00 FF FF FF FF FF FF FF FF ................
00000060 FF FF FF FF FF FF FF FF FF FF 00 00 00 00 00 00 ................
00000070 00 00 00 00 00 00 00 00 FF FF FF FF ............
character quest ID (qxd ID)
character short name ID
00000000 64 00 00 00 47 4F 4B 00 00 00 00 00 00 00 00 00 d...GOK.........
00000010 01 00 00 00 00 00 80 BF 00 00 80 BF 00 00 80 BF ................
00000020 00 00 80 BF 00 00 80 BF 00 00 80 BF 00 00 80 BF ................
00000030 00 00 80 BF 00 00 80 BF 00 00 80 BF 00 00 80 BF ................
00000040 00 00 80 BF 00 00 80 BF 00 00 80 BF 00 00 80 BF ................
00000050 00 00 80 BF 00 00 00 00 FF FF FF FF FF FF FF FF ................
00000060 FF FF FF FF FF FF FF FF FF FF 00 00 00 00 00 00 ................
00000070 00 00 00 00 00 00 00 00 FF FF FF FF ............
character quest ID (qxd ID)
character short name ID
character costume ID
level
health (float) if this is set to -1 it uses the base health of the level. (1000: full yellow bar; 1500: half orange bar; 2000: full orange bar ...)
Physical damage received
Ki damage received
Ki
Stamina
... (other attributes)
first super attack ID
second super attack ID
third super attack ID
fourth super attack ID
first ultimate attack cue ID (cue ID= cus skill ID - 5000)
second ultimate attack cue ID
evasive attack cue ID
transformation ID (if you want your character to be a ss1 from the beginning set this to "64 00" and set Super Saiyan as an ultimate attack)
qed file draws characters from qml
Open qml file
Each char set covers 76 bytes
00000010 00 00 00 00 00 00 00 00 2D 2D 2D 00 00 00 00 00 ........---.....
00000020 18 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00 ................
00000030 01 00 00 00 0F 27 00 00 05 00 00 00 00 00 00 00 .....'..........
00000040 FF FF FF FF 00 00 00 00 00 00 FF FF FF FF FF FF ................
00000050 FF FF FF FF FF FF FF FF FF FF FF FF ............
Char sort
Char start position (qsl ID)
Stage ID
00->player 02->AI
char behavior 01->ally 02->enemy
char quest ID (char qxd ID)
Open qml file
Each char set covers 76 bytes
00000010 00 00 00 00 00 00 00 00 2D 2D 2D 00 00 00 00 00 ........---.....
00000020 18 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00 ................
00000030 01 00 00 00 0F 27 00 00 05 00 00 00 00 00 00 00 .....'..........
00000040 FF FF FF FF 00 00 00 00 00 00 FF FF FF FF FF FF ................
00000050 FF FF FF FF FF FF FF FF FF FF FF FF ............
Char sort
Char start position (qsl ID)
Stage ID
00->player 02->AI
char behavior 01->ally 02->enemy
char quest ID (char qxd ID)
4. Setting characters' start positions:
qml draws start positions from qsl
Open qsl file
00000000 23 51 53 4C FE FF 18 00 00 00 01 00 01 00 00 00 #QSL............
00000010 00 00 00 00 18 00 00 00 1C 00 00 00 18 00 00 00 ................
00000020 00 00 00 00 00 00 07 00 10 00 00 00 51 55 45 53 ............QUES
00000030 54 5F 30 31 30 31 5F 50 4F 53 5F 30 30 00 00 00 T_0101_POS_00...
00000040 00 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00 ................
00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000060 00 00 00 00 00 00 00 00 00 00 00 00 ............
Stage ID
Data Set count
Each data set covers 64 bytes
0000002C 51 55 45 53 54 5F 30 31 30 33 5F 50 4F 53 5F 30 QUEST_0101_POS_0
0000003C 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0...............
0000004C 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0000005C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Start position in _QST.map file of the stage
qsl ID
Also you can change coords of starting positions by editing _QST.map file
18 00 is the ID of BFten
Open BFten_QST.map
Open qsl file
00000000 23 51 53 4C FE FF 18 00 00 00 01 00 01 00 00 00 #QSL............
00000010 00 00 00 00 18 00 00 00 1C 00 00 00 18 00 00 00 ................
00000020 00 00 00 00 00 00 07 00 10 00 00 00 51 55 45 53 ............QUES
00000030 54 5F 30 31 30 31 5F 50 4F 53 5F 30 30 00 00 00 T_0101_POS_00...
00000040 00 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00 ................
00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000060 00 00 00 00 00 00 00 00 00 00 00 00 ............
Stage ID
Data Set count
Each data set covers 64 bytes
0000002C 51 55 45 53 54 5F 30 31 30 33 5F 50 4F 53 5F 30 QUEST_0101_POS_0
0000003C 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0...............
0000004C 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0000005C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Start position in _QST.map file of the stage
qsl ID
Also you can change coords of starting positions by editing _QST.map file
18 00 is the ID of BFten
Open BFten_QST.map
placeholder
5. Understanding quest dialogues:
00000000 23 51 42 54 FE FF 24 00 00 00 00 00 02 00 04 00 #QBT..$.........
00000010 02 00 00 00 00 00 00 00 24 00 00 00 A4 00 00 00 ........$.......
00000020 A4 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00 ................
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Each quote data set covers 20 bytes
00000164 00 00 01 00 00 00 00 00 00 00 4B 00 00 00 FF FF ..........K.....
00000174 00 00 01 00 ....
msg item cue ID (ex: CAQ_1901_00_1_CL1)
msg item sub-cue ID (ex: CAQ_1901_00_1_CL1)
char ID
char portrait (set this to 64 00 to show ss1 portrait slot)
At the end of the file you will see references to correspondent msg element of each quote data set (these are stored in qe_ep msg file)
00000010 02 00 00 00 00 00 00 00 24 00 00 00 A4 00 00 00 ........$.......
00000020 A4 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00 ................
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
quote data sets address start
00000164 00 00 01 00 00 00 00 00 00 00 4B 00 00 00 FF FF ..........K.....
00000174 00 00 01 00 ....
msg item cue ID (ex: CAQ_1901_00_1_CL1)
msg item sub-cue ID (ex: CAQ_1901_00_1_CL1)
char ID
char portrait (set this to 64 00 to show ss1 portrait slot)
At the end of the file you will see references to correspondent msg element of each quote data set (these are stored in qe_ep msg file)
6. Understanding qed file:
placeholder
7. Adding a new parallel quest:
placeholder
I may update this thread MUCH later (in the next couple of months) since I am VERY busy atm