about summary refs log tree commit diff stats
path: root/data/maps/the_repetitive/rooms/Main Room.txtpb
blob: 8a2feb018a0ecab93e4d93c6a8b00bd4eab98aa1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #008800; font-weight: bold } /* Keyword */
.highlight .ch { color: #888888 } /* Comment.Hashbang */
.highlight .cm { color: #888888 } /* Comment.Multiline */
.highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */
.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
.highlight .c1 { color: #888888 } /* Comment.Single */
.highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #333333 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #666666 } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #008800 } /* Keyword.Pseudo */
.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */
.highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */
.highlight .na { color: #336699 } /* Name.Attribute */
.highlight .nb { color: #003388 } /* Name.Builtin */
.highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */
.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
.highlight .nd { color: #555555 } /* Name.Decorator */
.highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */
.highlight .nl { color: #336699; font-style: italic } /* Name.Label */
.highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */
.highlight .py { color: 
name: "Main Room"
panels {
  name: "HOTS (2)"
  path: "Panels/Entry/panel_3"
  clue: "hots"
  answer: "hotshots"
}
panels {
  name: "HOTS (1)"
  path: "Panels/Entry/panel_6"
  clue: "hots"
  answer: "hots"
}
panels {
  name: "HEIGHT (2)"
  path: "Panels/Entry/panel_4"
  clue: "height"
  answer: "eight"
  symbols: SPARKLES
}
panels {
  name: "HEIGHT (1)"
  path: "Panels/Entry/panel_15"
  clue: "height"
  answer: "height"
}
panels {
  name: "HEIGHT (3)"
  path: "Panels/Entry/panel_5"
  clue: "height"
  answer: "high"
  symbols: SPARKLES
}
panels {
  name: "HEIGHT (4)"
  path: "Panels/Entry/panel_9"
  clue: "height"
  answer: "hit"
  symbols: SPARKLES
}
panels {
  name: "HEIGHT (5)"
  path: "Panels/Entry/panel_10"
  clue: "height"
  answer: "hi"
  symbols: SPARKLES
}
panels {
  name: "HEIGHT (6)"
  path: "Panels/Entry/panel_11"
  clue: "height"
  answer: "i"
  symbols: SPARKLES
}
panels {
  name: "QUESTION"
  path: "Panels/Entry/panel"
  clue: "question"
  answer: "which"
  symbols: EXAMPLE
}
panels {
  name: "INTUITION"
  path: "Panels/Entry/panel2"
  clue: "intuition"
  answer: "hunch"
  symbols: SUN
}
panels {
  name: "HI"
  path: "Panels/Entry/panel5"
  clue: "hi"
  answer: "high"
  symbols: ZERO
}
panels {
  name: "I"
  path: "Panels/Entry/panel6"
  clue: "i"
  answer: "eye"
  symbols: ZERO
}
panels {
  name: "?"
  path: "Panels/Entry/panel_16"
  clue: ""
  answer: "wish"
  symbols: QUESTION
}
panels {
  name: "HAND"
  path: "Panels/Entry/panel_17"
  clue: "hand"
  answer: "harm"
  symbols: BOXES
  symbols: EVAL
}
panels {
  name: "? HAND"
  path: "Panels/Entry/panel_18"
  clue: ""
  answer: "warm"
  symbols: LINGO
  symbols: EVAL
}
panels {
  name: "RICHES"
  path: "Panels/Entry/panel_19"
  clue: "riches"
  answer: "wealth"
  symbols: SUN
}
panels {
  name: "? RICHES"
  path: "Panels/Entry/panel_20"
  clue: ""
  answer: "health"
  symbols: LINGO
  symbols: EVAL
}
panels {
  name: "MISHMASH"
  path: "Panels/Entry/panel_21"
  clue: "mishmash"
  answer: "hash"
  symbols: EVAL
}
letters {
  key: "h"
  level2: true
  path: "Components/Collectables/collectable"
}
paintings {
  name: "EYERED2"
  path: "Meshes/eyeRed2"
  orientation: "east"
  exit_only: true
}
ports {
  name: "CC"
  path: "Components/Warps/worldport3"
  orientation: "east"
}
/span> i++) { GetModuleBaseNameA(_handle, moduleList[i], &name[0], sizeof(name)); // TODO: Filling with 0s still yeilds name.size() == 64... if (strcmp(processName.c_str(), name.c_str()) == 0) { _baseAddress = (uintptr_t)moduleList[i]; break; } } if (_baseAddress == 0) { std::cout << "Couldn't find the base process address!" << std::endl; exit(EXIT_FAILURE); } } Memory::~Memory() { CloseHandle(_handle); } void Memory::ThrowError() { std::string message(256, '\0'); FormatMessageA(4096, nullptr, GetLastError(), 1024, &message[0], message.length(), nullptr); std::cout << message.c_str() << std::endl; exit(EXIT_FAILURE); } void* Memory::ComputeOffset(std::vector<int> offsets) { // Leave off the last offset, since it will be either read/write, and may not be of type unitptr_t. int final_offset = offsets.back(); offsets.pop_back(); uintptr_t cumulativeAddress = _baseAddress; for (const int offset : offsets) { cumulativeAddress += offset; const auto search = _computedAddresses.find(cumulativeAddress); if (search == std::end(_computedAddresses)) { // If the address is not yet computed, then compute it. uintptr_t computedAddress = 0; if (!ReadProcessMemory(_handle, reinterpret_cast<LPVOID>(cumulativeAddress), &computedAddress, sizeof(uintptr_t), NULL)) { ThrowError(); } _computedAddresses[cumulativeAddress] = computedAddress; } cumulativeAddress = _computedAddresses[cumulativeAddress]; } return reinterpret_cast<void*>(cumulativeAddress + final_offset); }