Touhou Puppet Play Forums

Touhou Puppet Dance Performance => Touhou Puppet Dance Performance => : DerxwnaKapsyla June 18, 2015, 09:51:23 AM

: Analysis of the Map files
: DerxwnaKapsyla June 18, 2015, 09:51:23 AM
So, the core map folder (\gn_dat3\map\data) has three files in each individual map folder. I have figured out what each file roughly does.

Now, I've spent roughly the past 2 hours going over the .mad file to try and decipher what it contains. I've managed to figure out most of whats in it, save for 2 things. There's also some things that need some additional checking, but that's something to do at a later time. These are the findings of my investigation, this should help in getting information for the wiki prepped, as well as making a tool for extracting the information a whole lot easier. The example map used here is the Garden of the Sun, map 160.

(http://i.imgur.com/fz8XPUM.png)

It seems that battle background determines the wild battle music used. I have a hunch this is determined somewhere within the executable file, unless I'm just really thick and overlooking it somewhere. As for the Overworld Fog Effect, there are 8 values for it.

I've also looked at the .obs file, since it controls events and warps. However, there's no feasible way i'm deciphering that. It looks too complex for me to comprehend. Someone else might be able to understand it, but as it stands, I cannot.
: Re: Analysis of the Map files
: DerxwnaKapsyla June 18, 2015, 10:09:16 PM
I have updated the first post with new findings and an updated image. The new findings document the Field Encounter Type and the Overworld Fog Effect.
: Re: Analysis of the Map files
: DerxwnaKapsyla August 16, 2015, 07:40:34 PM
In light of recent things, I have edited the first post again with updated information. We now know where the alternate encounter table is stored.
: Re: Analysis of the Map files
: Greenmittenz August 17, 2015, 05:27:39 AM
Posting this here cause it is relevant to maps...

Finally got around to uploading all the map files to imgur if people want to play with them. Posting a shortened version of the imgur album link.
http://goo.gl/q02xZj
: Re: Analysis of the Map files
: DerxwnaKapsyla August 17, 2015, 02:30:15 PM
Posting this here cause it is relevant to maps...

Finally got around to uploading all the map files to imgur if people want to play with them. Posting a shortened version of the imgur album link.
http://goo.gl/q02xZj

How did you get your hand on these out of curiosity? For reference.
: Re: Analysis of the Map files
: Greenmittenz August 17, 2015, 04:15:45 PM
I received the maps from dabomstew, I believe he used the fmf to render the map layout and the obs to place the objects but I am not exactly sure how he went about doing so.
: Re: Analysis of the Map files
: DerxwnaKapsyla August 17, 2015, 04:38:02 PM
We'll probably need these again when the dlc comes out, as it's adding new maps. But until then, this is perfect!
: Re: Analysis of the Map files
: Greenmittenz August 17, 2015, 08:22:41 PM
Apparently the only thing to really do with the OBS and FMF files is to build the maps which we already have...
"ya we have the maps generated already
there is not too much more to do with that data
other than "rom hacking""

Dabomstew and my primary interest in them has been for routing the speedrun but at the very least we will probably do it again when the major patch comes out as it will be relevant for speedrunning. I am also working on matching up the trainer table with the events along with all the items to show what all the item orbs and stuff are on each map.
: Re: Analysis of the Map files
: DerxwnaKapsyla August 17, 2015, 08:43:10 PM
That will be even more helpful, since I'm trying to document that stuff on the wiki right now. I've only gotten done Hakurei Shrine, and Route 1 is almost done.
: Re: Analysis of the Map files
: Greenmittenz August 19, 2015, 09:37:54 AM
Ok finally finished going through the game and matching up the events with the trainer table and items. Figured the information might be helpful for you to use with the wiki so I copied my lookup tables to google docs.
https://docs.google.com/spreadsheets/d/1mwOh22k1ropW0nDX7BTZfrCUpWiXvw--IwkGl8VDDcs/edit?usp=sharing

Some notes about the stuff
About the maps themselves. Events 0-49 are typically standard events such as story missions. 50+ tend to be Items. 2xx are NPCs that only talk to you and 512+ are trainers and after all trainers on the map are numbered it goes on to the named trainers. Then events in the 8xx-9xx range tend to be warps of some kind.

MapDB - Just a reference with the links to the images I uploaded earlier. The names are just to be able to separate the maps as they often have the same name in the game files.
EncounterDB - Encounters mid level and encounter rate in each map. There might be a few places I missed cause honestly I was lazy when I threw the info together.
BattleDB - Matches the Unnamed trainers on each map with their event number to the trainer number in the trainer table.
TrainerDB - Completed trainer table with all relevant information.
EvBattleDB - This is a table I made for all of the special/event battles or more precisely the "Named" trainers. Many of the events to trigger the battles can be hard to identify so this just ties all the event battles to the map where they occur.
ItemLocDB - Ties map number and event number to the item that you get.
ConnectionDB - Simply shows which maps and connected to others through warps. The one exception is with map 19 that ties to Makai, the map doesn't show a warp but it does act as a warp so I included it anyways.

Some more about the Trainer and Battle tables. All of the trainers are accounted for in the game other then the following.
0 Seems to be a test battle nothing special... Potentially called on for the starter encounter but that is likely calling a wild encounter based on how the AI acts.
12-16 Not in the game at all but perhaps these were used in the demo?
500 maybe a placeholder? the real stuff starts at 512
587-592 These are the fairies down in the unaccessible area in the scarlet devil mansion. The issue is that there is one more event then there are trainers to assign to them meaning one of them is a double up. I might fill them in later but for now you can't get to it normally anyways so I wont worry about it.
1021-1023 These are all test battles found on the debug maps. You can't access them normally so I didn't bother dealing with them.

Also something I plan to get eventually but did not think of when I did my quick run through of the game was to record all of the shops and what you can get and which maps they are on.
: Re: Analysis of the Map files
: akatsukisky August 20, 2015, 10:56:39 AM
Um hey guys, I have a question. While it appears that Mokou's house is in the map database, I am unable to find a way there.

Is it an unimplemented map coming with the C89 DLC or do you need a specific way to enter her house, just like how you can go to the depths of the Bamboo Forest?

Also. I saw Flandre running around in the SDM. And yet I am still unable to actually fight and do a single puppet smashfest (Power Kasen with A+ all stats and the Fighting ultimate move "Vacuum Break Fist: 150 Focus, cannot move next turn") on her. Does anyone know how to find her?
: Re: Analysis of the Map files
: Greenmittenz August 20, 2015, 06:32:12 PM
You can access Mokou's house... In the files near mokou's house on the bamboo forest map you can see the warp event is #1001 and 1002. then jsut find where on the map the other side of that warp is (hint NPC #516).

As for Flandre She is not in the game as a fight. There are some extra unimplemented rooms in the SDM that might have lead to a fight with her eventually but atm she is not even in the trainer list.
: Re: Analysis of the Map files
: Elyk August 30, 2015, 03:02:21 AM
After the translation patch is finished I'd like to talk about the map stuff you have written because I'm interested in how far we can push modding.
: Re: Analysis of the Map files
: akatsukisky September 02, 2015, 09:44:59 AM
Um, another question? I saw an item that Suwako-sama gives in the Wiki, which doubles XP and PP gained from battles. Can I know where to find the little god?

(Already cleared, now finding the remaining SCs and reincarnating puppets to use for Shinki)
: Re: Analysis of the Map files
: DerxwnaKapsyla September 02, 2015, 06:47:11 PM
Postgame, either right away or after the Kasen sidequest, behind the Moriya Shrine in Lake Moriya's center
: Re: Analysis of the Map files
: akatsukisky September 03, 2015, 11:23:10 AM
OK, thanks for the help.

Also, 80% completion of everything in the game. Current progress:

1) Completion of the book. I'm only at 44 puppets so far, and at least 20 of that said number are dual-types e.g. Mokou (Blaziken-ish starter), Byakuren, Kanako, Reimu (ignores all Void/Illusion moves like a boss), Shinki etc.

2) Post-game event battles: Currently left with Cirno, Letty Whiterock, Shou Toramaru, Sanae (I fought Suwako first and the little god isn't as scary as her descendant), Kanako, Reimu (if possible?) Marisa, Ran and Yukari (where are they?) . Anyone else I can challenge post-game?

3) Skill cards. I was gonna say I'm done, but I'm missing SC16: Shooting Press (100 Earth/Focus, normal move). I know where it is, but to make a trip into the Hakurei Cave again is boring as hell.

4) Missing items: Lots of them. Too lazy to travel and find them.

5) Kicking Shinki a 2nd time. Before post-game, that crazy girl made my team look like noobs (maybe cos none of my members were 90+ except Momiji) so I want a rematch. Haven't done it yet ATM; trying to get a 2nd team that can do better (at least all stats A- and above).

6) Getting Tewi's product. What does she sell, I don't know. But here's what I DO know: 5M cash? Whaaaaaat?! I hope it is usable man, or else I'd rather spend it on getting the remaining puppets.
: Re: Analysis of the Map files
: Greenmittenz September 03, 2015, 07:21:32 PM
I don't believe you can actually get Tewi's item.

As for the post game battles... they are

Chen (at Mayohiga)
Ran (at Yukari's House use the gap map and change pages)
Yukari (at Yukari's House)
Reimu (Hakurei Shrine)
Marisa (Her house in the FoM)
Medicine (Suzuran Fields)
Cirno (In the Icy Cavern)
Faeries of Light (Behind the Hakurei Shrine)
Sakuya (SDM Kitchen)
Nitori (Outside her workshop)
Yuugi (Outside the entrance to the City in Former Hell)
Utsuho (Before the hallway leading the the Hell of Blazing Fires Control Area)
Yuuka (At her house)
Shou (At the Myouren Temple)
Sanae (At the Moriya Shrine)
Sara (at the end of the cave to Makai)
Yuki/Mai/Yumeko/Shinki (end game Rematch fights)
Letty (Bottom of the Ice Cavern)
Alice (at her house)
Seiga (In the Myouren Temple Cave as a part of the Kasen Sidequest)
Sukuna (In the Hakurei Shrine as a part of the Kasen Sidequest)
Sukuna Again (Outside the Hakurei Shrine near Genji after the Kasen Sidequest)

Non post game special battles
Kaguya (at Eientei after beating Marisa)
Mokou (at her house after defeating her in Eientei)

As for the items getting them isnt super important as you can buy all the relevant ones in the Youkai Mountain Misty Area Shop, but if you want to go get them all then I suggest getting the Excel sheet I made and looking at the MapInfo tab as it has the location of all the items.

Just as some interesting notes.
Cirno is the highest Level trainer in the game with 2 lv99 Puppets apart from a trainer on the Debug map that has a level 50 and a level 100
Letty is the hardest Non Makai rematch fight in the game.
Flandre is the rarest encounter in the game. Both her and Sariel have the lowest encounter rate at 3.33% but Sariel can be found in the Icy Cavern Basement area at 10% leaving Flandre to be the rarest as she is only found in the SDM Labyrinth.
: Re: Analysis of the Map files
: Elyk September 27, 2015, 09:13:23 PM
Posting this here cause it is relevant to maps...

Finally got around to uploading all the map files to imgur if people want to play with them. Posting a shortened version of the imgur album link.
http://goo.gl/q02xZj
Can you upload these in an archive? Imgur shrunk some of the larger maps such as Hakurei Cave to the point where the warp values are unreadable.
: Re: Analysis of the Map files
: Wrulfang September 27, 2015, 10:08:01 PM
I did a crappy map of the hakurei cave with the escape route, the alternate branches, and the warps if you want it, but I will advice is made on gimp format, and is just a bunch of thick lines, white for the main route, black for the branches, and thin red lines for the warps.
just ask if you need it
: Re: Analysis of the Map files
: Greenmittenz September 28, 2015, 03:19:39 AM
http://www.mediafire.com/download/9v42auqviexai64/tpdpmaps.rar

Here is a .rar containing all the images. Never looked at the imgur stuff I uploaded so =p.

Also a note for all the warps... they will say something like "924 m15 908" how to read this is the first 9xx number is the number corresponding to that event, then the mxxx is what map the warp is pointing to, finally the 2nd 9xx number is the event number that the warp is pointing to.
: Re: Analysis of the Map files
: Elyk October 04, 2015, 07:15:49 PM
Thanks. That cut my trip through Hakurei Cave down to only 3 hours.
: Re: Analysis of the Map files
: Greenmittenz October 13, 2015, 06:28:18 AM
Another thing I have known for some time but never got around to mentioning but on map 280 (part of the SDM maps) there is an odd visual bug.

You can see events 50 and 51 are shown as Item Orbs which means they are drawn into the game and not just hidden items... but if you go to that location you wont see them. You can pick up the items as normal but they would otherwise be easy to miss. This is because the tables are drawn on a layer above the item balls in a similar manner to the flowers over a certain infamous Skill Card, but in this case the table completely covers the orb and gives you no reason to actually check the location.

Not really a big deal though as the hidden items are just a Myouren Tea and a Chirei Bun.