10 KiB
Hook: HS932#-8@401947
cat TA*.OVL | ruby -e 'puts $stdin.read.force_encoding(Encoding::BINARY).split(/[\x00-\x1f\x7f\xfd-\xff]+/n).map {|s| s.encode(Encoding::UTF_8, Encoding::SJIS, invalid: :replace, undef: :replace).gsub(/^[ -~]+/, "").gsub(/[ -~]+$/, "") }.select {|x| x.length > 1}'
grep -H vn TA_16*.OVL.txt | while read line; do [[ $line =~ 'vn "'(.*)'";' ]]; grep -q "${BASH_REMATCH[1]}" ../../nip_src/tasogare || echo "$line"; done
grep -HE 'var2\[([0-9]|1[1-9]|[2-5][0-9]|6[4-9]|7[0-9]|89|9[0-9]|1[0-2][0-9]|13[07]|14[09]|1[5-9][0-9]|2[0-9][0-9])\] =' TA_09*.txt
ovls
xxyy
day numbering: https://trad-japan.com/name-of-month/ https://jpnculture.net/tsuki-michikake
xx
- 01
- izumi briefing, arrive in village, day2 (二日月)
- 02
- day2
- 03
- some random shit
- 04
- day3 (until meet maya)
- 06
- day3 (after meet maya; cont cond: visit ichinose, yuuzou, jinja)
- 07-08
- night
- 09
- day4, melanie challenge accepted
- 10
- day4, melanie challenge rejected
- 11
- first dungeon
- 12
- after first dungeon w/ 3girls?
- 13
- first dungeon
- 1401
- no first dungeon
- 14yy
- after first dungeon, no 3girls
- 15
- pre day5, was dungeon
- 16
- day5, was dungeon
- 17
- day5 events, no dungeon
- 19
- day5, no dungeon
- 20
- day6: tokyo trip
- 21
- day7: kasumi dead body
- 22
- day9 around events
- 23
- day9 (kasumi burial, opt give documents back to maya)
- 2401
- day11 morning
- 24yy
- day11, after hole found at maya
- 25
- day11, before hole found at maya
- 26
- day11 dungeon
- 27
- day11 fire
- 28
- day11 after fire -> makoto? + melanie H
- 29
- day? events
- 30
- day? (maya attack)
- 31
- day? maya events
- 32
- day? events
- 33
- day? events
- 34
- day? events
- 35
- day14a events
- 36
- day14a (maya almost kill)
- 37
- day14a events (post maya, makoto collect)
- 38
- day14a events (post maya, hinaki collect, miyu speech)
- 39
- day14a events (post paya, hinaki speech)
- 40
- day14b pre-events
- 42
- day14b (girls disappear)
- 43
- day14b after dungeon church-like
- 45
- day14b escape
- 48
- misc dungeon
- 49
- school
yy
- 50
- main ruin
- 51
- ichinose
- 52
- police
- 53
- yuuzou
- 54
- jizou shrine
- 55
- jinja
- 56
- clinic
- 58
- matsuno shou (melanie inn)
- 59
- school (sometimes, usu. 4900)
- 61
- makoto house
- 62
- kenshi iwa (ichinose next to ruin)
- 64
- o numa (swamp ruin)
- 65
- ichinose inside
- 68
- keijou ga hara (far away ruin)
vars
good end: まこと -> var2[104] -> var2[40] >= 2 && var2[41] >= 3 美夕 -> var2[105] -> var2[42] >= 2 && var2[98] && var2[11] && !var2[104] && ?? 雛姫 -> var2[106] -> !var2[104] && !var2[46] && var2[40] >= 4 && var2[110] == 2?
melanie: var2[36] != 0 && var2[209] > 2 && var[57] = 0 (always true) && var2[91] =
0
=> at least 3 treasure
~maya ending:
91 | 95 | 96 | 98 | 104 | 105 = 0 && 227 =
1
- 0
-
- 1
- lantern
- 2
- lantern fuel??
- 3
- eye stone count?
- 4
- has guild notes?
- 5
- has manuscripts?
- 6..9
-
- 10
- day (新月=1, 二日月=2, 三日月=3, 四日月=4, 五日月=5, 六日月=6, 七日月=7, 九日月=9, 十日余り月=11, 新月=?, 小望月=14a, 十四日月=14b, 望月=15, 望月)
- 11
- has necklace
- 12..16
-
- 17
- day14: visited maya when hinaki is missing
- 18
- day14: visited police after makoto is missing
- 19
- day14: final dungeon before fight: selected 耐える
- 20..29
-
- 30
- (practically not read) day9 end: replied 雛姫が許す限り
- 31..32
-
- 33
- day14: still had necklace when finding kidnapped girls in last dungeon
- 34
-
- 35
- (not read) day9: replied to hinaki when asked how long to stay: 探し物が見つかるまで
- 36
- day?, day14a: visited matsuno shou; day14a visited school
- 37..39
-
- 40
- hinaki favor? (makoto first atk 許す, miyu don't tell about her mother 約束する, melanie attacked in dungeon while the other 3 girls are around 助ける, maya leave from ichinose after no dungeon 雛姫と話す, tokyo 水族館, save miyu from room confinement 協力する, last night don't forget hinaki 雛姫を迎えに行く)
- 41
- makoto favor (makoto first atk 許す, akita why came? 邪魔しに来た, kasumi disappearance yuuzou あがらせてもらう, melanie attacked in dungeon while the other 3 girls are around 見守る -1!, dungeon w/3 girls after まことを送る, まことと遺跡に入る約束をする, tokyo 映画館, tokyo ret まことに謝る, save miyu from room confinement 協力する)
- 42
- miyu favor (tatsumi miyu atk 助ける, just after 許す, tokyo 展望台)
- 43
- (not read) maya hole: ここから避難させる
- 44
- miyuki rape peeped 1: single 1653, 2: gang 3053, 3: single 2353
- 45
-
- 46
- day4: barged into kasumi's bathroom
- 47..49
-
- 50
- day4: dungeon w/3 girls after まことを送る
- 51
- day4: 1: entered first dungeon, 2: found 3girls in dungeon
- 52
- heard miyuki oneesan?
- 53
- day4: dungeon w/ 3girls after まことと遺跡に入る約束をする
- 54
- day4: before 1st dungeon police これから遺跡に入る x2
- 55
- day3: kasumi disappeareance tell hinaki: 聞く
- 56
- day3: miyu don't tell about her mother 俺には分からない
- 57
- day4: (not read) melanie 1st meet 挑戦を受ける
- 58
- day4: place visit counter before dungeon (ichinose, yuuzou, main ruin, police, jinja) (to trigger hinaki missing speech from kasumi)
- 59
- day4: failed dungeon: triggered (・・・遺跡に入る気はないのか?) or メラニーのことが気になるな。早く行ってみよう。 by fucking around instead of going to the dungeon (later cleared)
- 60..63
- random visit counters, usage varies by day
- 64
- day4 dungeon: find melanie atk-ed
- 65
- day4 no dungeon: saw yuuzou x kasumi rape
- 66
- day4: hinaki told you makoto's past (var2[50] == 0)
- 67
- day9 youzou house, 1: visited, 2: saw miyuki rape
- 68
- day9 youzou house, 1: saw miyuki rape (probably meant to be "triggered" not "saw", but the code is buggy…); increased: main ruin, ichinose, police, jinja
- 69
-
- 70
- day4, escaped from dungeon, melanie?: 駐在所に行く
- 71
- day4 dungeon: 1: find melanie atk-ed, 2: saw melanie buried scene (where he thinks she's a ghost)
- 72
- day9: makoto didn't tell her past (because hinaki did, var2[66])
- 73..76
-
- 77
- day5, no dungeon: met hinaki at school
- 78
- library: learned 一美's name
- 79
- saw file about makoto family murder @ police
- 80
- random counter
- 81
- only set to 0
- 82..86
-
- 87
- (not read) day5: file about makoto family murder
- 88
-
- 89
- dungeon: eye pickup event selector (0..3)
- 90
-
- 91
- day?/14a: melanie H: 1=メラニーを受け入れる, 2=抗う
- 92..94
-
- 95
- library: kazumi H
- 96
- library: sayoko H
- 97
- (day3: after meet maya -> 1, but later overwritten): day4, rejected melanie's challenge
- 98
- day?: miyu rescued, went back to yuuzou: みゆきが心配
- 99
- library: var2[150]=11 kazumi: 慰める
- 100..103
-
- 104
- day14a: makoto good end flag: まことを抱く
- 105
- day14a: miyu good end flag: 美夕が好きだから
- 106
- day14a: hinaki good end flag: 雛姫に応じる
- 107
-
- 108
- day14b: 1=visited makoto house w/ melanie; 2=makoto ran away @ matsuno
- 109
- day14a: don't forget hinaki 雛姫を迎えに行く
- 110
- day14a 1=miyu didn't invite to room or refused; 2=miyu successfully invited
- 111
- day14b TODO 426[ABC] visit?
- 112..117
-
- 128
- day5, no dungeon: visited library
- 129..130
-
- 131..134
- random visit counters, usage varies by day
- 135
- only set to 0
- 136
- random visit counters, usage varies by day
- 137
- day14b: visited clinic
- 138
- only set to 0
- 139
- random visit counters, usage varies by day
- 140
- day14a, makoto house visit counter
- 141..145
- random visit counters, usage varies by day
- 146
- (not read) 2=one of dungeon's eye pickup event
- 147..148
- only set to 0
- 149
- dungeon: picked up first eye (in the playthrough)
- 150
- init=1; TODO school visit counter? 2=sayako, kazumi 1st meet; 3=sayako late event; 4=sayako still angry, learn 2 name; 6=sayako late again; 7=(same day) inside, duo angry; 8=went to school next day; 9=(same day) ?; 10=next day to school; 11=very srs fight; 12=kazumi sorry; 20=done
- 151
-
- 152
- library: var2[150] = 11: visited (library, not school)
- 153
-
- 154
- day14b yuuzou: var2[108]==0 visited
- 155..165
-
- 166
- dungeon: triggered coffin event
- 167..168
-
- 169
- dungeon companion: 1=day4 makoto&co; 2=day11 melanie
- 170..180
- dungeon: picked up eye/treasure (one var for each pickup?)
- 181
- (not read) supposed to be like 170..180, but fucked up and assigned instead of read && compared with uninitialized var…
- 182
- dungeon day4: hidden passage found my miyu
- 183..184
- dungeon pickup
- 185
- dungeon day11: maya hole enter event triggered
- 186
- dungeon roadblock oni counter (0..2)
- 187
-
- 188
- only read
- 189
- dungeon day11: found melanie
- 190..191
-
- 192..193
- dungeon pickup
- 194
-
- 195
- dungeon pickup
- 196
-
- 197..199
- dungeon pickup
- 200
- dungeon day11: found burial chamber w/ melanie
- 201
- dungeon day11: found exit ladder
- 202..203
-
- 204
- dungeon: bumped into wall event counter (0..2)
- 205
- school: 150 corrector, reset at: 0106 (miyu atk), 0302 (meet maya), 0701, [1051, 1201, 1402, 1402], [1601, 1702], 2203, 2402, 2904, 3661
- 206..208
-
- 209
- dungeon picked up treasure count
- 210..224
-
- 225..226
- dungeon pickup
- 227
- day? fucked maya
- 228
- day14b: kazumi reconcillation scene
- 229..230
-
- 231
- day9 ichinose: 雛姫の様子を見に行く
- 232..234
-
- 235
- school TODO
- 236..239
-
- 240
- day14a maya almost kill scene, reset at day end
- 241..255
-
dungeon
data bits
upper 2 bits: flags, lower 6: id
- 0x00
- walkable, has event if != 0
- 0x40
- normal wall, has look at event
- 0x80
- not used
- 0xc0
- wall (0xc0 normal, c1 hidden, c3 down, c4 up, c5 right, c6 left)
in reality: x & 0x80 != 0 > wall
x & 0xc0 =
0x40 > has look at event (and normal wall)
everything has step event, but you can't step on cells where x & 0xc0 !
0
lamp strength events
Start from 502 246 on prepare, 506 250 on day14b prepare; dungeon oni eye event: set to 101 or 506 250
- 400
- 0 (dead code)
- 300
- 1 (dead code)
- 200
- 2 (->3x3 minimap)
- 100
- 3 (->1x1 minimap, i.e. none)
- 0
- 4 (game over)