documentation fixes/config key simplification

This commit is contained in:
ppc
2025-01-14 15:56:53 +00:00
parent 31c56d2449
commit a6ad82ffda
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ internal class CardPresenter
/// Sets the card
/// </summary>
/// <param name="accessCode">The access code of the card to use</param>
/// <param name="idm">The FeliCa card IDm, if a physical card was used</param>
/// <param name="idmHex">The FeliCa card IDm, if a physical card was used</param>
/// <param name="validFor">How long the card should be presented to the game for in milliseconds</param>
/// <returns>Whether the card was set successfully</returns>
public StoredCard SetCard(string accessCode, string idmHex, long validFor = 5000)
+1 -1
View File
@@ -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");
}
+6 -6
View File
@@ -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://<your-ip-address>: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: