Forum BigDB Where's the BigDB in PlayerIO

Discussion and help relating to the PlayerIO database solution, BigDB.

Where's the BigDB in PlayerIO

Postby iksnae » November 28th, 2010, 2:13 am

I can't seem to locate the BigBD object in the PlayerIO object as it's described in the documentation.

Is there something I am missing here? I am trying to access BigDB from serverside.
iksnae
 
Posts: 9
Joined: August 6th, 2010, 4:59 am

Re: Where's the BigDB in PlayerIO

Postby TobiasW » November 28th, 2010, 4:23 am

Are you trying to accessing it inside the class which extends PlayerIO.GameLibrary.Game? (Probably the class named "Server"?)
User avatar
TobiasW
 
Posts: 59
Joined: August 29th, 2010, 12:31 am

Re: Where's the BigDB in PlayerIO

Postby iksnae » November 28th, 2010, 8:18 am

thanks for responding. if you're talking about the client-side actionscript, i see the BigDB there. i'm trying to locate it in the server-side C# code. i'm using sample files downloaded from tutorials and examples, but none of them use the BigDB options. i'm a flash/flex dev and total noob to C#, so things that i could easily figure out in AS3, using C# and VisualStudio is still kinda confusing, like linking libraries to the IDE.

thanks again.
iksnae
 
Posts: 9
Joined: August 6th, 2010, 4:59 am

Re: Where's the BigDB in PlayerIO

Postby TobiasW » November 28th, 2010, 3:53 pm

I'm talking about the server-side C# code too.

The thing is, the server-side code has a namespace PlayerIO, which is accessible from everywhere and doesn't help you a bit when you want to use the BigDB, and in the main class (which inherits from PlayerIO.GameLibrary.Game and most likely looks something like this "public class MyGame : Game<Player> {") a field also called PlayerIO.

You can access PlayerIO.BigDB only in this class.
User avatar
TobiasW
 
Posts: 59
Joined: August 29th, 2010, 12:31 am

Re: Where's the BigDB in PlayerIO

Postby iksnae » November 28th, 2010, 7:01 pm

thanks again.. I think I'm getting a lot closer to the answer. I still can't figure out which namespace i should be using or how to use it. is there any documentation or examples available that implement the BigDB? once i can see some code in action i'll have a better idea of how to use it myself. thanks.
iksnae
 
Posts: 9
Joined: August 6th, 2010, 4:59 am

Re: Where's the BigDB in PlayerIO

Postby iksnae » November 28th, 2010, 7:10 pm

here's the code i'm using from the tutorial:
Code: Select all
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using PlayerIO.GameLibrary;
using System.Drawing;

namespace MyGame {
   public class Player : BasePlayer {
      public string Name;
   }

   public class GameCode : Game<Player> {
      public override void GameStarted() {}
      public override void UserJoined(Player player) {}
      public override void UserLeft(Player player) {}
      
      public override void GotMessage(Player player, Message message) {
         player.send("Hello World");
      }
   }
}


In this example the namespace seems to be MyGame.. how would i go about using the correct classes, allowing BigDB and such?
iksnae
 
Posts: 9
Joined: August 6th, 2010, 4:59 am

Re: Where's the BigDB in PlayerIO

Postby iksnae » November 28th, 2010, 9:48 pm

i just realized i was using old files as my starting point.. now i'm using files from the "NewGame" directory, everything's now appearing as it should. thanks for the help!
iksnae
 
Posts: 9
Joined: August 6th, 2010, 4:59 am

Re: Where's the BigDB in PlayerIO

Postby TobiasW » November 28th, 2010, 9:59 pm

Great. Happy coding!
User avatar
TobiasW
 
Posts: 59
Joined: August 29th, 2010, 12:31 am


Return to BigDB