From a6ad82ffdaa487161553e091f3008b04ab0d836c Mon Sep 17 00:00:00 2001 From: ppc Date: Tue, 14 Jan 2025 15:56:53 +0000 Subject: [PATCH] documentation fixes/config key simplification --- AMNet.Server/CardPresenter.cs | 2 +- AMNet.Server/Config.cs | 2 +- readme.md | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/AMNet.Server/CardPresenter.cs b/AMNet.Server/CardPresenter.cs index b1c944d..e4f248c 100644 --- a/AMNet.Server/CardPresenter.cs +++ b/AMNet.Server/CardPresenter.cs @@ -52,7 +52,7 @@ internal class CardPresenter /// Sets the card /// /// The access code of the card to use - /// The FeliCa card IDm, if a physical card was used + /// The FeliCa card IDm, if a physical card was used /// How long the card should be presented to the game for in milliseconds /// Whether the card was set successfully public StoredCard SetCard(string accessCode, string idmHex, long validFor = 5000) diff --git a/AMNet.Server/Config.cs b/AMNet.Server/Config.cs index 8951085..482c9bf 100644 --- a/AMNet.Server/Config.cs +++ b/AMNet.Server/Config.cs @@ -14,7 +14,7 @@ internal static class Config GameId = ReadKey(IOSection, "gameId", 4); ServerName = ReadKey(IOSection, "serverName", 26, Environment.MachineName); - PhysicalCardUseIDm = PInvoke.GetPrivateProfileInt(IOSection, "usePhysicalCardIdm", 0, ConfigFileName) > 0; + PhysicalCardUseIDm = PInvoke.GetPrivateProfileInt(IOSection, "useAimeDBForPhysicalCards", 0, ConfigFileName) > 0; EnableAimeTxt = PInvoke.GetPrivateProfileInt(IOSection, "enableKeyboardMode", 1, ConfigFileName) > 0; AimeTxtPath = ReadKey("aime", "aimePath", PInvoke.MAX_PATH, @"DEVICE\aime.txt"); } diff --git a/readme.md b/readme.md index 1df1e18..81d176f 100644 --- a/readme.md +++ b/readme.md @@ -26,22 +26,22 @@ This was originally intended for use with maimai and CHUNITHM, but should be com ; serverName - the name of the server to show to users (defaults to the computer name if not set) ; serverAddress - the address to listen on, including the protocol (defaults to http://+:6070, where + is a wildcard) ; enableKeyboardMode - whether to enable hold-enter-to-login mode. Reads the file set at aimePath for card number (or DEVICE/aime.txt if not set). - ; physicalCardIdentifier - if the game is using a shared network (rinnet/aquadx.net/missless), set this to "idm" (otherwise "access"). It only affects the use of physical cards only. + ; useAimeDBForPhysicalCards - Whether physical cards should use AiMeDB to retrieve access codes. If the game is using a hosted network, set this to 1 to load the same account data/profile as you would get on a physical cab. gameId=SDEZ ;serverName=CHUNI-PENGUIN ;serverAddress=http://+:6070 ;enableKeyboardMode=1 - ;physicalCardIdentifier=idm + ;useAimeDBForPhysicalCards=1 ``` 4. Launch the game, and check the amdaemon console for server startup messages 5. Access the using one of the interfaces (see below), add a new server `http://:6070`, import your existing card (or create a new one) and start playing! ### Physical Cards -AMNet 1.3 adds support for scanning physical cards on iOS devices. If you own a physical Aime/Banapass/e-Amusement/Suica card, you can scan it using the app and use it in-game. -By changing the `physicalCardIdentifier` in segatools.ini, it is also possible to adjust the format of card numbers sent to the game: +AMNet 1.3 adds support for scanning physical cards on iOS devices. If you own a physical AiMe/Banapass/e-Amusement/Suica card, you can scan it using the app and use it in-game. +By changing the `useAimeDBForPhysicalCards` in segatools.ini, it is also possible to adjust the format of card numbers sent to the game: -- `access` - This is the default and should be used if the game server is hosted locally. -- `idm` - If the game server is hosted on a shared network (rinnet/aquadx.net/missless) use this option instead (cards that have been used on a cabinet connected to the same network should load correctly). +- `0` - Default value, will send the 20-digit access code on the back of the card to the game and load the save data directly. +- `1` - Send the card's IDm data to the game, and it will use the connected AiMeDB to retrieve a 20 digit code assigned to the card. This option should be used on shared networks to enable the same account data/profile as you would get on a physical cab. ## Interfaces AMNet can be used on most platforms, see below for options available for each platform: