Let wow gold and runescape gold help you skip the boring farming process. cheap wow gold and rs gold with Instant Delivery & Lowest price can save your money to the maximum at www.savorgold.com!

Forum > How to set up your own Pazaak Cantina v2 Statistics Server

DarthRevan
Joined: Nov 09
03.04.2010, 01:56 PM
The Pazaak Cantina Server allows to host an online statistics and multiplayer server. It is intended for clans or other groups, who wants to hold their own (private) competitions.

You can get the latest version of the Pazaak Cantina Server at Sourceforge.

The server consists of a single PHP script. The data is stored in a MySQL database. There are two tables: One for the statistics and one for the game browser. Therefore, you have to create these two tables in your MySQL database. The MySQL commands are in the appendix of the Readme.txt file.

Then, you have to change the variables in the 'Config' section of the file server.php to match your MySQL configuration.
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)

Acrano
Joined: Mar 10
03.20.2010, 01:22 PM
Hi DarthRevan,

Thanks for your awesome work!
I have uploaded the server.php and modified the config section. So when I open the server.php over the browser I will get follow message: "Pazaak Cantina Online Server v1.2.0.0". Is that good or bad what are the next steps? I hope you can give me some hints...

cheerio,
Acrano

DarthRevan
Joined: Nov 09
03.20.2010, 01:32 PM
When you open server.php in a browser, it only states which version is installed. If you installed it correctly, you should be able to create online accounts on the server:

1. Go to "Create Online Account" in Pazaak Cantina
2. Enter http://www.your-domain.com/path/to/server.php as the server
3. Create your account. You can check if it was successful by logging in with Pazaak Cantina.
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)

Acrano
Joined: Mar 10
03.20.2010, 02:29 PM
Thx for your quick replay DarthRevan. Your step explanations is only for the Pazaak Cantina client v2.x Alpha right?

DarthRevan
Joined: Nov 09
03.20.2010, 02:31 PM
Yes that's right.
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)

Acrano
Joined: Mar 10
03.20.2010, 03:06 PM
Yep that works...

And how I can host a multiplayer server? Will that handle also your server.php script?

cheers,
Acrano

DarthRevan
Joined: Nov 09
03.20.2010, 05:43 PM
Only the gamebrowser is handled by the server.php. When you host a multiplayer server, everything is done inside PazaakCantina.exe. You have to open the port 333 TCP to make PazaakCantina.exe work as a host.
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)

Acrano
Joined: Mar 10
03.21.2010, 10:28 AM
So you mean that only the PazaakCantina.exe can host a game?

cheers,
Acci

DarthRevan
Joined: Nov 09
03.21.2010, 03:30 PM
Yes. There are no dedicated servers.
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)

naerian
Joined: Dec 09
03.26.2010, 03:11 PM
In future I may write a small dedicated server for PaCa, but since I don't have time right now... ;>

MartialKnight
Joined: Mar 10
03.27.2010, 09:11 PM
Hello,

We just recently downloaded the V 1.8.2 of Pazaak Cantina and love it... but couldn't figure out how to get the online multiplayer to work on it.

So we saw that there was the 2.0.0.7 Alpha version and saw that it had updated online multiplayer... but now I'm having problems getting that to work.

First off, we no nothing about MySQL, so we don't know how to get or create a database to edit the tables according to the server.

Secondly, on my computer, when I try to host, first it says "You are not connectable. Please check your firwall and port forwarding settings"

My firewall is off and I don't know how to check my port forwarding settings.

Sorry to bring these total NOOB problems to you, but we love Pazaak and would love to be able to play this multiplayer with our friends over the net.

Thanks for our time and answers!

DarthRevan
Joined: Nov 09
03.28.2010, 10:02 AM
You have to enable port forwarding for port 333 TCP/IP to host a game.

It's highly probable, that you connect via router to the internet. So enter the address of your router (e.g. 192.168.1.1 or refer to manual / manufacturer's web page) and find the option port forwarding (sometimes also called Port settings or NAT settings). Here you can add a new entry with (internal and external) port 333, protocol TCP/IP, and redirection to your PC's internal IP.

This procedure differs, when using different routers. Therefore, it would be best to google for your router's manual and find the port forwarding section in it :)
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)

luisma_415
Joined: Apr 10
04.28.2010, 01:18 AM
I'm still lost D:
Are there any detailed instructions on how to connect to the server.
Or at least join some matches?! I keep getting the "firewall and fowarding" message too, and I tried to do the LAN/ Port Fowarding thing, but I'm pretty sure I did it wrong.

Please help. :/

luisma_415
Joined: Apr 10
04.28.2010, 01:20 AM
*sorry, not LAN, but NAT.

DarthRevan
Joined: Nov 09
04.28.2010, 03:42 PM
As long as you get the "You are not connectable" message, you can't host a game. Nevertheless you can join games, which are hosted by e.g. your friends. If you want to host a game, you have to open port 333 (if you didn't change it in the options menu). This is described two posts above.

Be sure to check:
- Is Pazaak Cantina added as an exception in your firewall? (For testing, you can try to temporarily disable your firewall)
- Have you been able to enter your router's configuration page?
- Did you forward port 333 TCP/IP to _your_ computer?
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)

luisma_415
Joined: Apr 10
05.02.2010, 12:33 AM
ok,Im still having problems. sorry

When i go to the routers settings, I get this (for the forwarding)

" Service Name:
Sevice type: ( TCP/UDP, TCP, or UDP)
Starting Port:
Ending Port:
Server IP address: "


so what do i do..... :/

DarthRevan
Joined: Nov 09
05.02.2010, 12:49 PM
Service Name: PazaakCantina (or whatever you like)
Service Type: TCP
Starting Port: 333
Ending Port: 333
Server IP address: The IP address that your PC has got in the LAN (e.g. 192.168.1.5)
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)

luisma_415
Joined: Apr 10
05.02.2010, 10:17 PM
thank you so much! I got it. And sorry to have kept bothering.

Prieto
Joined: May 10
05.04.2010, 01:46 AM
well, what if you get a message that says "The requested address is not valid in its context" ?

DarthRevan
Joined: Nov 09
05.04.2010, 07:39 AM
I assume that error occurs when you click 'Host'?
Maybe another application on your PC is already using port 333 TCP or 300/301 UDP (these ports are used to find running LAN servers). You can check that with TCPView.
BTW, what is your internal IP address and subnet?
Are you using IPv6?
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)

Prieto
Joined: May 10
05.08.2010, 05:38 PM
ok, well im using a laptop to host. And I also have a computer that has pazaak cantina, and it can host.

idk if that helps!?

DarthRevan
Joined: Nov 09
05.08.2010, 06:03 PM
So the error occurs when you want to connect to already hosted game?
What address do you connect to?
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)

Prieto
Joined: May 10
05.09.2010, 04:25 PM
Well, it's just whenever I want to host a game in general (be it that the other computer is in use or not).

As for the adress, I tried many. I put the network adress, the IP, but nothing.

DarthRevan
Joined: Nov 09
05.09.2010, 05:19 PM
I believe the error occurs in PazaakCantina.Network.Host(), but I am not sure. I have sent you an email with a modified version of PazaakCantina.exe. When the error occurs again, there will be a detailed error report. This report might help me fixing this bug.
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)

Mlenny
Joined: May 10
05.31.2010, 01:03 AM
I'm new to Pazaak Cantina. And i'm having problems with the multiplayer aswell. I really don't know anything about SQL, Port, Server, ect. I'm using a desktop. Here's some of the info you might find useful, but frankly, i haven't got a clue what to do.

Port: 333
Source: Internet
Game Type: Free Game - Internet
Server Type: N/A
(Above Spectate and Join): 127.0.0.1:333

When i try to Join/Spectate i get this message:

"No connection could be made because the target machine actively refused it. 127.0.0.1:333"

and when i try to host i get this.

"You are not connectable please check your firewall and port forwarding settings"

Followed by: "Hosting at 192.168.1.65:333".

I have no clue on anything this is asking me. I read the initial post and followed the link, i downloaded it but my computer couldn't read the file. Please i'd really appreacitate it, if you helped me with this problem.

DarthRevan
Joined: Nov 09
05.31.2010, 03:05 PM
There are two different "server systems" for Pazaak Cantina:

- The online server, which can be downloaded in the first post, is intended for webmasters, who e.g. want to setup a clan server. It only manages the statistics of the users.

- The multiplayer server is used to host games. When a game is hosted, others can connect to it. The multiplayer server is included in PazaakCantina and thus, no additional server files have to be downloaded.

Maybe it's a bit confusing, that these two servers are discussed in one thread. Therefore, I created the thread How to play multiplayer games over LAN or Internet for the multiplayer server system.
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)