Skip to content

About

BotStory's fork of iw2d/kaentake: the v83 client DLL and launcher with feature toggles, the server feature handshake, the Crew window and a self-patching launcher.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

BotStory fork

This is the BotStory fork of iw2d/kaentake. On top of the upstream hooks (resolution, quickslot, tooltip, etc.) it adds:

  • Self-patching launcher. Launch Game.exe (the renamed Kaentake.exe) now runs a patcher before spawning MapleStory.exe. On launch it fetches manifest.txt from a configured patch URL, SHA-256s local files (with a .patch_cache side-file so unchanged files skip rehashing), and pulls any files that differ. Atomic .new → rename; two-retry on hash mismatch.
  • Version guard. v83_version_guard.cpp bails at DLL attach if the host MapleStory.exe isn't the v83 build the offsets were written for.
  • Feature switches. Every module is one line in src/feature_list.h (id, title, default, flags, section, requirement, attach function). The DLL attaches them in that order and the launcher's Features page lists them by section; see Features below.

The launcher's Features page

The patcher code lives in src/patcher.{h,cpp} and is wired into src/launcher.cpp ahead of DetourCreateProcessWithDllExA. It links winhttp + bcrypt (both shipped with Windows; no external deps).


Usage

For end users: extract the bootstrap zip, run Launch Game.exe as administrator. The patcher handles the rest.

For upstream-style usage: download all files from the original Releases into a clean v83 installation directory, then run Kaentake.exe as administrator.

A standalone WZ file (Custom.wz) is included to extend the system option dialog with a combobox for selecting the in-game resolution.


Configuration

Either the commandline arguments or the config.ini file can be used to redirect the client to a host other than the default "127.0.0.1".

Commandline (takes precedence over the file):

Launch Game.exe 127.0.0.1 8484

config.ini:

[config]
host=127.0.0.1
port=8484
patch_url=http://<server-ip>:8485
resolution=1600x900
  • host / port — Cosmic login server address.
  • patch_url — optional. If unset, the patcher is skipped entirely and the launcher behaves like stock upstream. If set, the patcher fetches <patch_url>/manifest.txt on every launch.
  • base — optional, the WZ set the client is built on. Leave it out (or repack) for the Community Repack set. base=cosmic marks a client built on the clean Cosmic WZ set (patched with the server repo's tools/wz-patcher): the patcher also fetches <patch_url>/bases/cosmic/manifest.txt, whose entries replace the main manifest's WZ files and download from <patch_url>/bases/cosmic/. If the server has no such manifest the launcher asks before playing with the current files; it never falls back to the Repack WZ files.
  • crew_hotkey — optional, the key that opens the Crew window: exactly one letter or digit (default U). Anything else is logged to kaentake_diag.txt and U is used. The key does nothing while it is set to something in the game's own key settings (also logged). The window remembers where it was closed in a [crew] section (x=, y=).
  • config.ini and kaentake_diag.txt are always the ones beside the exe (Launch Game.exe / MapleStory.exe), whatever folder a shortcut starts in. A value that is not valid is logged there with what was used instead.
  • resolution — optional preferred launch resolution. Accepts either a WxH shorthand (800x600, 1024x768, 1366x768, 1600x900, 1920x1080) or a direct index (0–4). When set, it overrides the user's saved in-game preference for every launch — useful for shipping a sensible default in the bootstrap zip. The quickslot bar variant (8-slot / wider) is picked to match. In-game changes sync back: if this line is present, changes made via System Option → Resolution are mirrored to config.ini on clean exit, so the file always reflects the latest choice. Leave the line out entirely to hand resolution control exclusively to the in-game menu.

Features

The switchable modules, by the section the Features page lists them under. BotStory's modules only do something on a BotStory server; the ones marked * change gameplay, so the server may switch them off or require them (see Feature handshake below).

Section Module [features] key Default
BotStory Fusion Anvil transmog fusion_anvil on
BotStory Resident quests in blue quest_list_color on
BotStory Crew window crew_window on
BotStory Set item tooltips set_items on
BotStory Storage Bags (ores, scrolls, chairs, mounts) storage_bag on
Interface Wide resolutions and config.ini prefs resolution on
Interface Custom item names and equip tooltips tool_tip on
Interface No exit ad, minimize button chronicle_extras on
Interface 26-slot quickslot bar enlarge_quickslot on
Interface Bindable movement keys (e.g. WASD) movement_keys on
Interface World map mob/NPC tooltips map_info_tool_tip on
Combat display Mob HP bar with numbers mob_hp_tag on
Combat display Buff and skill cooldown display temp_stat on
Combat display Boss HP % under the boss bar boss_hp off
Login Quick login (skip world select) quick_login on
Login Remember login remember_password on
Avatars and item effects Avatar extras (taming mobs, chairs) avatar_data on
Avatars and item effects Item effects (ItemEff.img) item_effect on
Gameplay (the server decides) Gameplay patches (damage/speed caps) * free_addy on
Gameplay (the server decides) Chain Lightning range and damage * ext_chain_lightning on
Fixes Item icon drawing fix item_icon on
Fixes Shoulder equip slot fix shoulder_slots on
Fixes Equip body part check fix is_correct_body_part on
Fixes Equip body part lookup fix get_body_part_from_item on

Each module in src/feature_list.h has a config.ini line under [features]:

[features]
mob_hp_tag=1
boss_hp=0
crew_window=1
  • A missing line is the module's default, so a config.ini with no [features] section attaches the same modules as before the registry. [config] crew_window still works when [features] has no crew_window line.
  • Core modules (version_guard, client_bypass, client_inlink, string_pool, res_man, wz_map_limit, fusion_anvil_field, server_packets) always attach and have no line. fusion_anvil_field reads the Fusion Anvil field the BotStory server writes into every equip; only the transmog (fusion_anvil) can be switched off.
  • requires: item_effect needs avatar_data, enlarge_quickslot needs resolution. A module whose requirement is off stays off.
  • server_gated (free_addy, ext_chain_lightning) marks gameplay changes: the BotStory server decides those at login (see below).
  • log=1 (or KAENTAKE_FEATURE_LOG=1 in the environment) writes kaentake_features.txt next to MapleStory.exe: the attach order and every hook and patch under the module that made it.
  • inert=a,b holds the server's vetoes for the next start (the feature handshake writes it): a live module there attaches but starts inert, any other one does not attach. An allow from the server takes it out.

Two modules that change the same bytes are reported in kaentake_diag.txt at startup (a message box in debug builds).

Feature handshake. After the first SET_FIELD of each connection the client reports every module (id, title, version from feature_list.h, flags, state) on opcode 0x118; the BotStory server answers allow, deny or require per module on 0x17B (core module server_packets, featurehandshake.cpp, wire format in src/featureproto.h). A deny makes a live module inert at once and keeps any other one off from the next start (inert=); allow and require lift such a veto and wake an inert module. The player's own switches are never turned on. A server without the handshake never answers. Its lines go to kaentake_diag.txt as [handshake]. Server side: BotStory Server docs/CLIENT_FEATURE_HANDSHAKE.md.

Features page. The launcher opens a window with one checkbox per switchable module before it patches and starts the game. Play saves and starts the game, Save saves and keeps the page open, Cancel (or the window's X) exits and asks first if there are unsaved changes. A module named in inert= shows as "(off on this server)", greyed out; its own line is saved unchanged. It writes every switchable module's line to [features] and leaves the other keys alone. Its last checkbox, "Show this page every time", is saved as page_at_launch (default 1); with page_at_launch=0 the launcher goes straight to the game, and Launch Game.exe --features or holding Shift while it starts opens the page anyway.

Adding a module. Write its attach function, declare it in hook.h, add its .cpp to src/CMakeLists.txt and one X(...) line to src/feature_list.h, with the section its checkbox goes under (KAENTAKE_SECTIONS; core modules are in core, which the page does not show). Mark it FEATURE_LIVE only if its hooks and patches can be switched off while the game runs (no struct layout changes, no state that has to be cleaned up by one of its own hooks).

About

BotStory's fork of iw2d/kaentake: the v83 client DLL and launcher with feature toggles, the server feature handshake, the Crew window and a self-patching launcher.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages