Modify j2play.ini to suit your application

From J2Play

(Redirected from C++ Modify)
Jump to: navigation, search

The final step in getting your game to talk to the J2Play playground involves modifying the j2play.ini file. Edit the file and and modify the two following parameters:

  • GameName: The name of game.
  • LaunchName: The filename of executable file including the ".exe"
  • playerNum: The number of simultaneous players the game supports in a match for multiplayer games (1 for single player games)
  • NetworkID: The network your game runs on (in this case we'll use Facebook).

The following steps will explain how to fill out the rest of the information required by the j2play.ini.

Add a Game to The J2Play Game Management System

The value for the GameID parameter in j2play.ini required for the connection can be obtained by adding your game to J2Play network using The J2Play Game Management System. All of this information can be changed at any time; the purpose of this process is to obtain a GameID.

  1. If you have not already done so create a J2Play Game Management System account.
  2. Navigate to J2Play Game Management System.
  3. In the Game Management System click the "Add Game" button to start adding your game.
  4. Enter the following information about your game:
    • Title: Title of the game
    • Description: A Quick Description of the game
    • Summary: A one line summary of the game
    • Game URL: Just type "PC Game"
    • Game Image: The main 50x50 Icon for the game
    • Game Icon: 16x16 mini icon form the game
    • Game Screenshot: One screenshot of the game
    • Genre: Select the genre of your game
    • Network: Does not apply to PC Games

Make sure all of the required fields are filled in, and click the "Add" button.

You will now be re-directed to the main screen where a new entry for the game has just been created. Find the entry for this game, copy the value under the GameID column, and paste it into the j2play.ini file:

  • GameID: Game id obtained from J2Play Game Management System

Install the J2Play Facebook Application

Go to the J2Play Developer Application. This step varies for different social networking sites see "Perform any social site specific setup" to find out how you can install this application on the social networking site of your choice.

Use the information presented in this application to fill in the following parameters in the j2play.ini file:

  • facebook_userGUID: userid
  • facebook_screenname: screenname
  • facebook_params: Example: ?userid=<GUID>&screenname=<screen name>&networkid=<networkid>&gameid=<gameid>&imageurl=<profile picture>
    • <GUID> = userid
    • <screen name> = screenname
    • <networkid> = facebook
    • <gameid> = GameID (from previous step)
    • <profile picture> = photo

Links

Personal tools