From 3f1939e674ce94aaa25b34ea1c788d65d1b5ae7d Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Mon, 29 Apr 2024 22:21:08 -0700 Subject: [PATCH] increase number of savechar slots to 16 --- README.md | 2 +- src/ChatCommands.cc | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8573e3cc..6daeb073 100644 --- a/README.md +++ b/README.md @@ -507,7 +507,7 @@ Some commands only work on the game server and not on the proxy server. The chat * `$patch `: Run a patch on your client. `` must exactly match the name of a patch on the server. * Character data commands (game server only) - * `$savechar `: Saves your current character data on the server in the specified slot (each serial number has 4 slots, numbered 1-4). These slots are separate from BB character slots; using this command does not affect BB characters. On non-Plus GC versions, this command also saves your bank contents and chat shortcuts. + * `$savechar `: Saves your current character data on the server in the specified slot (each account has 16 slots, numbered 1-16). These slots are separate from BB character slots; using this command does not affect BB characters. On non-Plus GC versions, this command also saves your bank contents and chat shortcuts. * `$loadchar ` (v1, v2, and GC non-Plus only): Loads your character data from the specified slot. The changes will be undone if you join a game - to save your changes, disconnect from the lobby. * `$bbchar `: Use this command when playing on a non-BB version of PSO. If the username and password are correct, this command converts your current character to BB format and saves it on the server in the given slot (1-4). Any character already in that slot is overwritten. (This command is similar to `$savechar`, except it overwrites a BB character slot, and can transfer characters across accounts.) Note that the character's chat data, quick menu config, and bank contents are not copied, since there is no way for the server to request those types of data. * `$edit `: Modifies your character data. If you are on V3 (GameCube/Xbox), this command does nothing. If you are on V1 or V2 (DC or PC, not BB), your changes will be undone if you join a game - to save your changes, disconnect from the lobby. If cheats are allowed on the server, `` can be any of `atp`, `mst`, `evp`, `hp`, `dfp`, `ata`, `lck`, `meseta`, `exp`, `level`, `namecolor`, `secid`, `name`, `language`, `npc`, or `tech`. If cheats are not allowed, only `namecolor`, `name`, `language`, and `npc` can be used. Changing your character's language is only useful on BB; to do so, use a single-character language code (e.g. to switch your character to English, use `$edit language E`; for Japanese, use `$edit language J`). diff --git a/src/ChatCommands.cc b/src/ChatCommands.cc index b74f9fe8..8a3a615b 100644 --- a/src/ChatCommands.cc +++ b/src/ChatCommands.cc @@ -1431,8 +1431,8 @@ static void server_command_bbchar_savechar(shared_ptr c, const std::stri } else { pending_export->character_index = stoll(args) - 1; - if ((pending_export->character_index > 3) || (pending_export->character_index < 0)) { - send_text_message(c, "$C6Player index must\nbe in range 1-4"); + if ((pending_export->character_index > 15) || (pending_export->character_index < 0)) { + send_text_message(c, "$C6Player index must\nbe in range 1-16"); return; } pending_export->dest_account = c->login->account; @@ -1470,8 +1470,8 @@ static void server_command_loadchar(shared_ptr c, const std::string& arg check_is_game(l, false); size_t index = stoull(args, nullptr, 0) - 1; - if (index > 3) { - send_text_message(c, "$C6Player index must\nbe in range 1-4"); + if (index > 15) { + send_text_message(c, "$C6Player index must\nbe in range 1-16"); return; } c->load_backup_character(c->login->account->account_id, index);