Author Topic: Labyrinth of Touhou 2 - 14F  (Read 219679 times)

Re: Labyrinth of Touhou 2 - 14F
« Reply #210 on: November 29, 2014, 06:06:35 PM »
If that's how the random function works in this case then I feel like the parameter here should been 100 and not 99:
(Code to determine whether or not Mystia's Mysterious song cures Paralysis and / or Heavy)
Code: [Select]
if (level * 4 + 60) > random(99)
        ailmPAR.power: (ailmPAR.power - 1)
        ailmPAR.chance: (ailmPAR.chance + 10000)
if (level * 4 + 60) > random(99)
        ailmHVY.power: (ailmHVY.power - 1)
        ailmHVY.chance: (ailmHVY.chance + 10000)
I'll just assume you're correct and finish editing that bit accordingly.

Edit: Finished adding the Spellcard formulas for the girls' spellcards. Going to take a break and come back later to handle subclass spells and whatever else Ethan included in this code dump.

Hmm, nope. Looks like it is 0-2. Which means 1/3 chance of each debuff. Tested it with a bit of debugging on what I assume is the random function, and it was returning 0, 1, and 2. Then I did actual testing with Hina's maxed skill against an enemy with 0 debuff resistance. 11 trials, landed 23 debuffs. Average of 2.1 debuffs per use, which is reasonably close to 1/3 (1.7). It'd probably be closer if I had done more trials.



Edit:
And I've finished my changes.

Updated file: http://puu.sh/danpH/cd48f20f08.txt

As before, this is a JSON dump, and not very useful to human readers. I've changed it to be an array instead of a dictionary, since enemy names aren't unique.
I've also added monster types (which removed several Unknown fields) and item drops (Thanks to EthanSilver)
« Last Edit: November 29, 2014, 07:16:30 PM by qazmlpok »

EthanSilver

  • Lunatic Programmer
  • Got squid, will travel.
    • Ethan Silver's Junkpile - Hacks and translation patches
Re: Labyrinth of Touhou 2 - 14F
« Reply #211 on: November 29, 2014, 07:20:41 PM »
I've started a thread in the Touhou Projects subforum for all the reverse-engineering stuff. It seems like it's starting to take over this thread and discouraging/impeding others who want to discuss the gameplay. This will also be a good opportunity to keep everything we work on in the first post where it will be easily accessible rather than having to dig through several pages worth of text-walls.


Latest works
The Strongest

Re: Labyrinth of Touhou 2 - 14F
« Reply #212 on: November 29, 2014, 08:49:40 PM »
I realized that I forgot to do the spell card formulas for the last few characters on the wiki.

I also just realized that the preliminary spell card formulas are all slightly off due to how the multiplier is calculated instead of the static 0.05 bonus that was listed the last time the info was dumped. Going to finish up the rest of the formulas and fix up the ones that are already done after I finish eating.

Edit: For Kaguya's DEF and MND debuff on Buddha's Stone Bowl I'm having trouble making sense of the code.

Code: [Select]
buffDEF.power: (buffDEF.power - (level + (((level - 1) - this) * 2) + 17))
buffDEF.chance: (((level - 1) * 5) + buffDEF.chance + 80)
buffMND.power: (buffMND.power - (level + (((level - 1) - buffDEF.chance) * 2) + 17))
buffMND.chance: (((level - 1) * 5) + buffMND.chance + 80)

I have no idea what the variable "this" refers to nor do I understand why the chance of applying a DEF debuff affects the strength of the MND debuff.
My best guess would be that "this" refers to the chance for applying a DEF debuff but that still doesn't explain why the calculations for DEF and MND are different (why use two variables if the value its being used for is the same?) or why that is even a part of the calculations.

Short definition, "this" refers to the current object that is in scope of the code, but in this case it is a bit confusing.

Considering how the code is laid out, without looking at anything else, it looks like it should either be the current buffDEF.power, or maybe buffDEF.chance since that is what the MND one uses.
If you look at where the code is currently placed, and what else is around it, you can get more context to what it is.

The Code could be "wrong" too.
« Last Edit: November 29, 2014, 08:55:23 PM by Spiffspoo »

Alcoraiden

  • Do not go gentle into that good night
Re: Labyrinth of Touhou 2 - 14F
« Reply #213 on: November 30, 2014, 12:30:42 AM »
What editor are you guys using to open these files?
« Last Edit: November 30, 2014, 01:58:50 AM by Alcoraiden »

jaxter0987

  • Umiiro Shoujo ni Miserarete
  • Umi is love, Umi is life
Re: Labyrinth of Touhou 2 - 14F
« Reply #214 on: November 30, 2014, 01:01:38 AM »
Short definition, "this" refers to the current object that is in scope of the code, but in this case it is a bit confusing.

Considering how the code is laid out, without looking at anything else, it looks like it should either be the current buffDEF.power, or maybe buffDEF.chance since that is what the MND one uses.
If you look at where the code is currently placed, and what else is around it, you can get more context to what it is.

The Code could be "wrong" too.
Just want to explain this last thing before I stop talking about the code.

I'm well aware of what "this" usually means in code (hi there Java) but there's not enough context to infer what it actually means in this case. That is the first and only instance of "this" in the spellcard dump which probably means there's other code somewhere else that's giving the spellcard its effects like Ethan has mentioned. I figured as much, but I thought I'd pose the question to the two other programmers in the thread first.

Working on adding subclass spellcards now.

What editor are you guys using to open these files?
Quoting the start of all this:
Replace your exe with this. (Edit: Actually, just drop it in the same folder as your exe. Don't replace it. Just in case. ;) ) I wrote a quick little hack to give her an extra command (seemed to work okay when I tested it...). Currently it's using Rabies Bite (08 02) as a place-holder. You can change it by changing the value at 0x06A34C with a hex editor to any of the values in the hacking guide I posted earlier. Feel free to give her something fun. :)


I'm not sure what's causing you trouble... She just reads out the values stored in every front-line character's command listings. If you change a character's commands, the commands she has access to also change accordingly.
Enemy commands differ from character commands. They're contained in a different list. From my experimenting, giving a character a skill ID that doesn't refer to a character skill just crashes the game because they're nowhere to be found in the handler function. Junk data ends up being used when trying to load up their name/info/data and the border between execution and crashes collapses pretty hard. So enemies must use enemy skills and characters must use character skills; there's no way to mix and match them. Too bad... :P
Hmm? Are you using a decompiler to get that function? Or part of IDA? There's a couple of things I'd like to find out about the game, but trying to trace through the asm in OllyDbg is suffering.
I'm a youkai hacker. I use ndisasm to dump a listing (ndisasm -u thlabyrinth2.exe > disassembly.txt) and then go through it by hand. I also code quick-and-dirty little tools to facilitate some things (in this case, a string-extractor that just takes the highlighted offset in my text editor and copies the string it points to to the clipboard - same tool I used when working on LoT-Rebirth (though with different offsets)). And, of course, I have no idea where I'd be without a text editor that supports regular expressions.

I'll be glad to point you off in the right direction if you're looking for anything in particular. I haven't found everything yet but depending on what you're trying to figure out about the game, maybe I can help...

On topic, is it just me or are the post-game boss level requirements completely insane? Even 30+ levels over them I get annihilated before I get a chance to do much. I'm starting to wonder if there's much of a point to it other than bragging rights (by the time you get the last 2 characters, anyhow, the post-game's nearly done so they practically seem to be there for novelty purposes only...) Granted, diva-Aya can make short work of the post-game bosses but that's just cheating. :D

I'm just using Ethan's code dump to add formulas to the wiki as well as try to make sense of how the game works.

Edit: And finished adding subclass spellcard formulas. Looking into LoT Rebirth at the moment but that will be saved for after I finish my third playthrough of LoT2, trying to enjoy the story this time. Also, Ethan, your links in your signature are broken.

Edit2: Anyone remember how many Shikigami events there were on 9F to reduce Ran's Shikigami's strength? The wiki apparently can't decide between three and four and I don't remember the number of events there were.
« Last Edit: November 30, 2014, 03:21:33 AM by jaxter0987 »

Re: Labyrinth of Touhou 2 - 14F
« Reply #215 on: November 30, 2014, 05:16:05 AM »
Edit2: Anyone remember how many Shikigami events there were on 9F to reduce Ran's Shikigami's strength? The wiki apparently can't decide between three and four and I don't remember the number of events there were.

You can reduce their strength?  Interesting, I never bothered with that, since I didn't know, and breezed right through the fight.

ZXNova

  • Life is an explosion!
Re: Labyrinth of Touhou 2 - 14F
« Reply #216 on: November 30, 2014, 05:32:49 AM »
There are 4 barriers you must deactivate to reduce her strength.

Re: Labyrinth of Touhou 2 - 14F
« Reply #217 on: November 30, 2014, 06:05:57 AM »
What the hell is wrong with the Wasp's Shadows? They're so fast I can't get my damn attackers in jesus christ.

ZXNova

  • Life is an explosion!
Re: Labyrinth of Touhou 2 - 14F
« Reply #218 on: November 30, 2014, 06:08:08 AM »
At this point you're gonna need to grind lots to put money in your resistances. Are you doing this on challenge level btw?

Re: Labyrinth of Touhou 2 - 14F
« Reply #219 on: November 30, 2014, 06:19:24 AM »
What the hell is wrong with the Wasp's Shadows? They're so fast I can't get my damn attackers in jesus christ.

You need to get your money stats to the same as your levels or higher.
You might want to go through your subclasses and redo your items too.

Also, the first 3 shadows are weak to death.

Re: Labyrinth of Touhou 2 - 14F
« Reply #220 on: November 30, 2014, 02:38:33 PM »
What the hell is wrong with the Wasp's Shadows? They're so fast I can't get my damn attackers in jesus christ.
They're both somewhat vulnerable to Shock, poison wasp moreso. Try magician Orin + Reisen out on the field to reduce ailment resistances. Even with his speed, Orin might be able to keep him locked down.



What are good spells for Satori to use, now that we have all of the formulas? Narrow confines of Avici and Gathering and Dissipating are known. What about Galaxy Stop? The formula on that actually seems fairly decent, in addition to the devastating status effects.
Or perhaps composite attacks, to take advantage of her nearly identical atk and mag stats? Reimu's Fantasy Seal has good multipliers, so it should be good in Satori's hands.
« Last Edit: November 30, 2014, 03:05:15 PM by qazmlpok »

Re: Labyrinth of Touhou 2 - 14F
« Reply #221 on: November 30, 2014, 04:40:54 PM »
Quote
What are good spells for Satori to use, now that we have all of the formulas? Narrow confines of Avici and Gathering and Dissipating are known. What about Galaxy Stop? The formula on that actually seems fairly decent, in addition to the devastating status effects.
Or perhaps composite attacks, to take advantage of her nearly identical atk and mag stats? Reimu's Fantasy Seal has good multipliers, so it should be good in Satori's hands.

Mountain Breaker
      Lv 1   (2.00 ATK - 0.25 DEF) * 1.60

Since this skill only counts 25% of the target's defense, it might be a bit stronger than NCoA and GaD. It doesn't carry any extra effects though and it's single target, but still worth mentioning I think.

ZXNova

  • Life is an explosion!
Re: Labyrinth of Touhou 2 - 14F
« Reply #222 on: November 30, 2014, 05:29:26 PM »
Mountain Breaker
      Lv 1   (2.00 ATK - 0.25 DEF) * 1.60

Since this skill only counts 25% of the target's defense, it might be a bit stronger than NCoA and GaD. It doesn't carry any extra effects though and it's single target, but still worth mentioning I think.

I think that's actually 50% of defense. Considering every other spell formula seems to have .5 DEF, that's what I'm thinking.

Re: Labyrinth of Touhou 2 - 14F
« Reply #223 on: November 30, 2014, 05:40:13 PM »
Giga Flare
      Lv 1   (1.24 MAG - 0.05 MND) * 1.24

Deadly Swallowtail Lance
      Lv 1   (1.48 MAG - 0.25 MND) * 1.60, DTH 24000 33%

Hyperactive Flying Object
      Lv 1   (1.20 MAG - 0.25 MND) * 2.00

Galaxy Stop
      Lv 1   (1.44 MAG - 0.20 MND) * 1.44, PAR 8000 80%, SHK 100  88%, SIL 12000 80%

Most have 0,5 modifier yes, but there seems to be a few with less out there.

ZXNova

  • Life is an explosion!
Re: Labyrinth of Touhou 2 - 14F
« Reply #224 on: December 01, 2014, 01:04:52 AM »
Yeah I know that. And the description of Giga Flare said that it ignores mind. About 90% I think it said. And Right there in formula it shows 124% MAG - 5% MND... hm.

Re: Labyrinth of Touhou 2 - 14F
« Reply #225 on: December 02, 2014, 01:17:01 AM »
Yeah I know that. And the description of Giga Flare said that it ignores mind. About 90% I think it said. And Right there in formula it shows 124% MAG - 5% MND... hm.

Well even if it were 10%, it is pretty good against most enemies.
I never used Okuu post game, where the big def/mnd increase is, so I don't know how good it is there but I found Okuu in LoT2 to be a bit lackluster in general.

ZXNova

  • Life is an explosion!
Re: Labyrinth of Touhou 2 - 14F
« Reply #226 on: December 02, 2014, 09:38:52 PM »
She honestly isn't. During main game, she isn't so good, but post game she comes fairly decentish good. You see the thing about Utsuho is that she needs to stay out for a long time. So she needs tankiness to be able to get stacks of overheat. Giga Flare is a good damaging spell, does good consistent damage to enemies without high MYS resistance. I would say Utsuho is kinda expensive, then again everyone is post game. As I said before, she needs turns. So you try to optimize her for HP, SPD, and MAG. You're gonna have to put some extra monies into her HP and resistances so that she can have better survivability. A healer is good too. Lastly, she needs to have the subclass Transcendent to make the most of her stats and tankiness.

Re: Labyrinth of Touhou 2 - 14F
« Reply #227 on: December 03, 2014, 01:41:32 AM »
She honestly isn't. During main game, she isn't so good, but post game she comes fairly decentish good. You see the thing about Utsuho is that she needs to stay out for a long time. So she needs tankiness to be able to get stacks of overheat. Giga Flare is a good damaging spell, does good consistent damage to enemies without high MYS resistance. I would say Utsuho is kinda expensive, then again everyone is post game. As I said before, she needs turns. So you try to optimize her for HP, SPD, and MAG. You're gonna have to put some extra monies into her HP and resistances so that she can have better survivability. A healer is good too. Lastly, she needs to have the subclass Transcendent to make the most of her stats and tankiness.

I increased her stats like I did everyone else, which is at least 200 on main stats and 20 for resistances now, and I still didn't like her.
I just think she needs better spell combinations.
With Hijiri Intense Nuclear Reaction is pointless, and Hell's Tokamak damage is pretty meh in general.
Giga Flare is nice, but gets costly.

ZXNova

  • Life is an explosion!
Re: Labyrinth of Touhou 2 - 14F
« Reply #228 on: December 03, 2014, 11:33:35 PM »
I wouldn't call Intense Nuclear Reaction pointless. It's still a damaging spell, although it can lower your resistances which is dumb.

If Intense Nuclear Reaction didn't come with the negative of lowering your armor, or at least upped to damage to justify the armor shredding, then yeah it'd be fine.

Re: Labyrinth of Touhou 2 - 14F
« Reply #229 on: December 04, 2014, 12:52:25 AM »
It's pointless in that you can just have another buffer boost Okuu's mag, and not need to deal with the reduced defenses.

I think it'd be more useful as a special effect rather than a plain buff, much like her overheating and fighting spirit. Use Intense and get a stack of the effect that raises final damage by 10% and increase incoming damage by 10% as well, or something to that effect. That way it wouldn't be completely superceded by a competent buffer.

On the other hand, I think Futo is getting something vaguely like that. Probably without the extra incoming damage.

Re: Labyrinth of Touhou 2 - 14F
« Reply #230 on: December 04, 2014, 05:53:04 AM »
It's pointless in that you can just have another buffer boost Okuu's mag, and not need to deal with the reduced defenses.

I think it'd be more useful as a special effect rather than a plain buff, much like her overheating and fighting spirit. Use Intense and get a stack of the effect that raises final damage by 10% and increase incoming damage by 10% as well, or something to that effect. That way it wouldn't be completely superceded by a competent buffer.

On the other hand, I think Futo is getting something vaguely like that. Probably without the extra incoming damage.
Wait what Futo what. What is this about Futo I hear.

(Also since everyone ever has been finding the formulas for stuff, did anyone get the formula for the hit chance of a spell?)

Re: Labyrinth of Touhou 2 - 14F
« Reply #231 on: December 04, 2014, 06:01:10 PM »
Futo and Shou are the two absolutely confirmed characters for the upcoming expansion pack.

I think the blog post explains Futo's gimmick. There's probably a translation in the previous LoT2 thread... although I have no idea where.

Re: Labyrinth of Touhou 2 - 14F
« Reply #232 on: December 04, 2014, 10:23:13 PM »
How the hell do you get past the rocks on 9F Extra and 14F Extra? I always get game-crashing bugs on it (and I just lost like 2 hours/2 Floors worth of exploration... and 14F is stupid to navigate too) and I... kind of don't want that to happen.

Re: Labyrinth of Touhou 2 - 14F
« Reply #233 on: December 04, 2014, 10:55:42 PM »
Make sure you have the latest English version. I believe there were game-breaking bugs there that got fixed.

Re: Labyrinth of Touhou 2 - 14F
« Reply #234 on: December 05, 2014, 06:12:20 AM »
Make sure you have the latest English version. I believe there were game-breaking bugs there that got fixed.
See, that's the problem... I already HAVE the latest english version. It just gives me an error when I activate the said events :/

Axel Ryman

  • Fear me
Re: Labyrinth of Touhou 2 - 14F
« Reply #235 on: December 05, 2014, 06:19:33 AM »
There was an update that fixed that.



You can get around it by selecting Ignore, then holding down the I key to continuously Ignore it after it keeps popping up.

Re: Labyrinth of Touhou 2 - 14F
« Reply #236 on: December 06, 2014, 02:52:58 PM »
Not even Diva!Aya hax can get past the Azure Giant's Shadow... guess I'll have to settle for grinding next.
The worst part is that after the Azure Giant it's not gonna get any better because then only the Magatama and Mirror are left... and then Shredding Amnesieri. Oh boy, that thing sounds like the stuff of nightmares.

Re: Labyrinth of Touhou 2 - 14F
« Reply #237 on: December 06, 2014, 04:11:22 PM »
If you're okay with using Diva Aya you might want to give Gambler Flandre a go. Just set her up for maximum damage and plan your party to get her buffed up and ready before the bosses get their first turn and you can trivialize 75% of the post game bosses.
Horribly cheesy but gets the job done. :P

Re: Labyrinth of Touhou 2 - 14F
« Reply #238 on: December 06, 2014, 04:34:06 PM »
That's another thing I'm using... but isn't doing very well against this boss either ;_;

Re: Labyrinth of Touhou 2 - 14F
« Reply #239 on: December 06, 2014, 06:07:31 PM »
What exactly is your problem with the boss?
I never had any particular difficulty with this guy, though Knowledge was a different story,

He is weak to Fire & Spirit attacks, classified as human & demon, and can be debuffed decently.
Use those attributes to your advantage.

Try to Stack as much MP on Flan as possible, buff her up, have her attack, and give her instant turns with Aya and Yukari if you must.
If you beat everything else up till this point, you should be able to do it.  The last 2 bosses are a huge step up though.

What level are your stats at on average?