Modify j2play.ini to suit your application
From J2Play
(Redirected from C++ Modify)
The final step in getting your game to talk to the J2Play playground involves modifying the j2play.ini file. Open j2play.ini file with any text editor, e.g Notepad.
Contents |
Informatinon about your game
First part you need to finish is the [Game] section. It includes all information the J2Play playground need to know about your game
[Game] Name = <your game title> GameID = <your game's j2play gameid> (see Get GameID for details) ExecutableFile = <your game executable file name> MaxPlayers = <The number of simultaneous players the game supports in a match for multiplayer games> (1 for single player games) OfflineSupport = 0(nonsupport)/1(support) (see Implement offline mode for details) OfflineMode = 0 (don't change it manually)
Test user information
For debugging your game with J2Play playground locally, you also need a test user. There is a [User] section in j2play.ini describe the user used
[User] Userid=@J2PLAY_GUID@ Screenname=@J2PLAY_SCREENNAME@ NetworkID=@J2PLAY_NETWORK@ ImageUrl=@J2PLAY_IMAGEURL@
Login to J2Play Management Console, and use the information presented in this application to fill in the parameters in the j2play.ini file:
[User] Userid = <userid> Screenname = <screenname> NetworkID = <facebook/hi5/orkut/...> ImageUrl = <photo>
J2Play Game Server
If j2play game server is used to implement the multiple players game server, changes the [Server] section
[Server] J2PlayGameServer = 0
Changes J2PlayGameSever from "0" to "1".
