Adventure Game Studio

AGS Games => Completed Game Announcements => Topic started by: Dualnames on Mon 19/07/2010 16:04:09

Title: Cold Virtual Beer (Using the famous TCP/IP Plugin + Source code available)
Post by: Dualnames on Mon 19/07/2010 16:04:09
Quote
It may not blow your mind off.
It may not make you horny at nights.
It may not drive you crazy.

You can select your avatar from a great variety of AGS IRC forum members.
You can have different names
There's a chatlog!

->Prologue:

But after some hard work, I've managed to figure the TCP/IP PLUGIN by a-v-o, and here's something terribly simple and easy, but I don't recall it been done over INTERNET. Cause you see routers have NAT and it blocks incoming direct access over IPs. I will make something really big out of this, but I might also not, so here's Johnie.

 (http://i133.photobucket.com/albums/q53/JustLedZep/12-2.jpg)

This is the 3rd attempt  to ever provide a working link to a game created with a TCP/IP Plugin. I must say, I haven't seen what was done before, cause links don't work anymore. I've actually however managed to figure out this plugin, and I offer my knowledge if one needs it.

->Controls:
Simple left click walks/interacts and right click examines, though you won't have much use for it on this version.

when IPs appear over the listbox please click on them IF you're not connected to them.

->About this game's connectivity.
A) Over LAN:

Works like a charm you'll have no problems whatsoever.

b)Over the internet:

Due to most users being behind routers, you either need to portforward and have all the guys/gals you'll connect to portforward to, or you can use Hamachi.

Hamachi bypasses your NAT by simply creating another IP over your router. That IP is what you need.

HOST:
The game requires one host. The host doesn't need to type other's people IPs but instead needs to create a Network at Hamachi, and tell people to join it.

POWER Hamachi->Network->Create ->Make up network credentials

I'm having a network called dualnames, with network password #ags and my IP is 5.47.124.125, I will be online at long times.

CLIENT:
All you require as client is to enter the IP of the HOST
And the IPs of the people he wants to see as well, via the listbox.

POWER Hamachi->Network->Join an existing ->Enter network credentials

(http://i133.photobucket.com/albums/q53/JustLedZep/defy.png)
->What you need to get some (BOTH are required over INTERNET):
Download Game (http://www.xenogiagames.com/dngames/TCP.rar)
Download Source+plugin (http://www.xenogiagames.com/dngames/CVB_plugin.rar)
Download Hamachi (The unmanaged version) (https://secure.logmein.com/products/hamachi2/download.aspx)

->Team:
Dualnames - Coding, and lots of googling
JimReed - Graphics, GUI design and GOD ON EARTH
Specials thanks to IRC GUYS!
Title: Re: Cold Virtual Beer (An internet AGS program using the famous TCP/IP Plugin)
Post by: FSi++ on Mon 19/07/2010 16:07:05
Yay, there's me!!1 And Jon.
Title: Re: Cold Virtual Beer (An internet AGS program using the famous TCP/IP Plugin)
Post by: Jim Reed on Tue 20/07/2010 02:46:20
In order of appearance:
AngelicCharon
Al_Ninio
Babar
CalinLeafshade
ShiverMeSideways
FSi
JimReed
Jon_swe
NsMn
Stee
Wonkyth
Dualnames

And, yes, they're based on real pics of the above-mentioned people.

EDIT: New avatars:
Scarab
Jimbob
Monsiuer OUXX
Snake
Title: Re: Cold Virtual Beer (An internet AGS program using the famous TCP/IP Plugin)
Post by: Shane 'ProgZmax' Stevens on Tue 20/07/2010 08:10:00
I logged in just to have a look and I think it's neat.  Could easily be expanded to have some 2-4 people puzzles and stuff like that (and minigames like beer drinking!).
Title: Re: Cold Virtual Beer (An internet AGS program using the famous TCP/IP Plugin)
Post by: Monk on Tue 20/07/2010 08:11:48
i love this thing, i love become yoda! i wish you will continue to work on some magic and continue developing this, wish you the very best of luck!
Title: Re: Cold Virtual Beer (An internet AGS program using the famous TCP/IP Plugin)
Post by: Wonkyth on Tue 20/07/2010 10:14:02
Sheesh, we're an ugly bunch...
Title: Re: Cold Virtual Beer (An internet AGS program using the famous TCP/IP Plugin)
Post by: Technocrat on Tue 20/07/2010 10:26:49
Are you going to make the AGS files for this available? That would certainly make it a bit less nigh-on impossible for me to figure out getting the plugin to work for other games (like, I dunno, turn based strategy games). Just a thought.
Title: Re: Cold Virtual Beer (An internet AGS program using the famous TCP/IP Plugin)
Post by: Jim Reed on Tue 20/07/2010 14:07:11
Be warned:
If you see Dualnames network working on Hamachi, he might not be runing CVB at the current moment so you will not be able to connect. Connecting to each other will work though, if you start your own session.

Currently, new versions come out about 10 times a day, but there is no notification of that. Best guess is to redownload the client every time you want to connect.
This is being worked upon, too.

Sorry for the inconvinience.

EDIT:
If you connect to the IRC #ags channel, you can get the latest low-down directly from him, and find out when he is runing CVB.
Snake even got his custom avatar in. Please refrain from bugging the hard-working man much, he is sweating blood over this piece of software as it is.
Thank you.
Title: Re: Cold Virtual Beer (An internet AGS program using the famous TCP/IP Plugin)
Post by: Dualnames on Tue 20/07/2010 17:10:06
Quote from: Technocrat on Tue 20/07/2010 10:26:49
Are you going to make the AGS files for this available? That would certainly make it a bit less nigh-on impossible for me to figure out getting the plugin to work for other games (like, I dunno, turn based strategy games). Just a thought.

Damnit, Technocrat, I'm no fucking elitist. :D Of course i will.

EDIT :If you want the code at any point don't hesitate to ask.
Title: Re: Cold Virtual Beer (An internet AGS program using the famous TCP/IP Plugin)
Post by: Jim Reed on Tue 20/07/2010 17:17:42
Upon seeing how Dualnames is a cool guy, I can safely say that he will import any avatar you can provide. So, yes, please bug the lazy mofo.
Title: Re: Cold Virtual Beer (An internet AGS program using the famous TCP/IP Plugin)
Post by: Dualnames on Wed 21/07/2010 14:39:46
Okay added a minigame. Plus some cool stuff.

(http://i133.photobucket.com/albums/q53/JustLedZep/drawdn.png)

Also featuring two rooms, one being unfinished. But its a strip club... :D
Title: Re: Cold Virtual Beer (An internet AGS program using the famous TCP/IP Plugin)
Post by: Jim Reed on Wed 21/07/2010 15:49:25
Chess coming soon! =D
Title: Re: Cold Virtual Beer (An internet AGS program using the famous TCP/IP Plugin)
Post by: GreenBoy on Thu 22/07/2010 01:50:01
This is one of the coolest things I've seen in a while.  :=
Title: Re: Cold Virtual Beer (An internet AGS program using the famous TCP/IP Plugin)
Post by: Galen on Thu 22/07/2010 18:55:43
*brushes up on his phallus drawing skills*
Title: Re: Cold Virtual Beer (Using the famous TCP/IP Plugin + Source code available)
Post by: Dualnames on Fri 23/07/2010 16:01:53
Okay so here's the source code. Get it going lads.

Download Source+plugin (http://www.xenogiagames.com/dngames/CVB_plugin.rar)

It's not much but I know someone working on a super clean version of that and much user friendlier. So wait up if you're bored.

3.1.2 compiled. But works on all 3.x.x versions before that.
Title: Re: Cold Virtual Beer (Using the famous TCP/IP Plugin + Source code available)
Post by: DoorKnobHandle on Fri 23/07/2010 16:21:43
Doesn't work with versions later than 3.1.2? I tried it in 3.2 Final 5 and it crashes.
Title: Re: Cold Virtual Beer (Using the famous TCP/IP Plugin + Source code available)
Post by: Dualnames on Fri 23/07/2010 17:14:19
Quote from: dkh on Fri 23/07/2010 16:21:43
Doesn't work with versions later than 3.1.2? I tried it in 3.2 Final 5 and it crashes.

A) depends on the crash. And as i said, compiled with 3.1.2.
Title: Re: Cold Virtual Beer (Using the famous TCP/IP Plugin + Source code available)
Post by: DoorKnobHandle on Fri 23/07/2010 18:47:50
It just crashes the application, I have to open the task manager and shut it down manually. No error message.
Title: Re: Cold Virtual Beer (Using the famous TCP/IP Plugin + Source code available)
Post by: Moogle on Fri 23/07/2010 19:35:54
how do i get this to work?


goon[0]=TcpListenIP (ServerIndex);


what do i have to do cause my game wont load with out it plus i think i might need the other script for it...oh

and msg
test.asc(36): Error (line 36): Type mismatch: cannot convert 'String*' to 'string'

and SpeechChannel
test.asc(37): Error (line 37): undefined symbol 'SpeechChannel'


TcpSetString (ServerIndex, Broadcast, SpeechChannel, 0, msg);
TcpSend (ServerIndex, Broadcast, SpeechChannel);
Title: Re: Cold Virtual Beer (Using the famous TCP/IP Plugin + Source code available)
Post by: Dualnames on Fri 23/07/2010 20:25:44
Quote from: dkh on Fri 23/07/2010 18:47:50
It just crashes the application, I have to open the task manager and shut it down manually. No error message.

Anyhow, it's possible I haven't fully tested the code in AGS 3.1.2 and haven't tested at all after that version, this was mostly built in 2.72.
But I had no trouble when I checked this. dkh, I'd like you if its possible to tell me what are you doing and its causing the crash.

Quote from: mog.net on Fri 23/07/2010 19:35:54
how do i get this to work?


goon[0]=TcpListenIP (ServerIndex);

what do i have to do cause my game wont load with out it plus i think i might need the other script for it...oh
and msg
test.asc(36): Error (line 36): Type mismatch: cannot convert 'String*' to 'string'

and SpeechChannel
test.asc(37): Error (line 37): undefined symbol 'SpeechChannel'


TcpSetString (ServerIndex, Broadcast, SpeechChannel, 0, msg);
TcpSend (ServerIndex, Broadcast, SpeechChannel);


What you fully need to actually make a connection is this:

int ServerIndex;
int ChatChannel;

function game_start() {
string text1;
StrCopy(text1, VersionInfo);

  int port=28166; //port depends on the server you are connecting. Normally any port will do. NORMALLY.

ServerIndex = TcpAddServer (port, text1);
ChatChannel = TcpAddChannel (ServerIndex, 2, 1, 0);//The 2,1, 0 aren't random numbers but depends on the packets sends. 2 means that two integer values will be sent and received via the ChatChannel and 1 String.

string ip;
StrCopy(ip,"192.168.1.5"); The IP, this can probably be the IP of the server. For now it's just local.
TcpConnect (ServerIndex, ip);

TcpListen (ServerIndex);
TcpProcessMessages (ServerIndex);

}


The rest as theories are barely developed in the source code.
Title: Re: Cold Virtual Beer (Using the famous TCP/IP Plugin + Source code available)
Post by: LGM on Sat 24/07/2010 08:22:59
The server is full :(
Title: Re: Cold Virtual Beer (Using the famous TCP/IP Plugin + Source code available)
Post by: tzachs on Sat 24/07/2010 16:21:43
This looks very promising indeed... I logged in and had a look, pity I was all alone in there...
Title: Re: Cold Virtual Beer (Using the famous TCP/IP Plugin + Source code available)
Post by: Stupot on Sat 24/07/2010 16:33:28
Quote from: LGM on Sat 24/07/2010 08:22:59
The server is full :(

Yeh I get that too :(  How many people can it hold?
Title: Re: Cold Virtual Beer (Using the famous TCP/IP Plugin + Source code available)
Post by: Dualnames on Sat 24/07/2010 18:02:37
Quote from: Stupot on Sat 24/07/2010 16:33:28
Quote from: LGM on Sat 24/07/2010 08:22:59
The server is full :(

Yeh I get that too :(  How many people can it hold?

11-12
if you adjust a variable at the source up to infinite -1. You get that cause you probably didn't really manage to connect. Try your own local ip (if it works your character will triple)
Title: Re: Cold Virtual Beer (Using the famous TCP/IP Plugin + Source code available)
Post by: LGM on Sun 25/07/2010 08:26:18
I don't know what that means :(
Title: Re: Cold Virtual Beer (Using the famous TCP/IP Plugin + Source code available)
Post by: Dualnames on Sun 25/07/2010 09:03:44
Quote from: LGM on Sun 25/07/2010 08:26:18
I don't know what that means :(

On the connect button, enter your local IP. If you haven't blocked the program via the firewall, you will manage to see three of you stacked one behind the other. My local IP is 192.168.1.6 or 5. Assuming that the server is full happens because you haven't really connected anywhere.
Title: Re: Cold Virtual Beer (Using the famous TCP/IP Plugin + Source code available)
Post by: Stupot on Sun 25/07/2010 11:26:07
I can get the guy to triple when I put in the IP that Hamachi has given me...
But If I try to enter your I get "10060 can not connect to [your IP]"

And I still get "The network appears to be full" no matter how many times I try to join your existing network.

And I can't get the drawing board to work either :(
Title: Re: Cold Virtual Beer (Using the famous TCP/IP Plugin + Source code available)
Post by: Jim Reed on Sun 25/07/2010 12:21:47
If Dualnames is offline, any of you can come to the ags IRC channel, and I'll set up a game and talk you through the process of connecting.
Title: Re: Cold Virtual Beer (Using the famous TCP/IP Plugin + Source code available)
Post by: Dualnames on Sun 25/07/2010 12:22:57
The drawing boards just needs middle mouse to activate/deactivate
And left click draws black
right click draws white
Title: Re: Cold Virtual Beer (Using the famous TCP/IP Plugin + Source code available)
Post by: LGM on Sun 25/07/2010 19:48:26
No no, the HAMACHI network is full..
Title: Re: Cold Virtual Beer (Using the famous TCP/IP Plugin + Source code available)
Post by: Dualnames on Sun 25/07/2010 19:57:37
Quote from: LGM on Sun 25/07/2010 19:48:26
No no, the HAMACHI network is full..

I actually realized that, a little too late, now it shouldn't be.
Title: Re: Cold Virtual Beer (Using the famous TCP/IP Plugin + Source code available)
Post by: Yuri Patrick on Thu 24/02/2011 20:16:55
Alright. I searched for the original TCP/IP plugin thread and was brought here...

I was wondering, is the TCP/IP plugin high-level only or would it be capable of handling a connection to a Telnet server? Or would I need to write another plugin, a telnet plugin or something for it to be able to communicate with my game server?
Title: Re: Cold Virtual Beer (Using the famous TCP/IP Plugin + Source code available)
Post by: Hercule Poirot on Tue 20/11/2012 16:45:49
Hello!
I like this idea and I would really like to study the source or download the project, but all the links are dead. :~(
Please, could you re-upload it or send it to me by e-mail?
Thanks! (roll)

EDIT: Never mind, I found it myself!
Here's the link if anyone wants it:
Click here to download (http://jift.narod.ru/invis/CVB_plugin.rar)
Title: Re: Cold Virtual Beer (Using the famous TCP/IP Plugin + Source code available)
Post by: Yuri Patrick on Sun 25/08/2013 05:31:22
I know that this topic is horribly old, but I am still interested in trying to get some MMO technology going here inside of AGS.

Does anyone still have a copy of the source code for the TCP/IP Plugin itself? I use to have it, it use to be all over the place, and now it is very difficult to find. If you still have the source code to the plugin itself, would you please post a link or email it to me?
Title: Re: Cold Virtual Beer (Using the famous TCP/IP Plugin + Source code available)
Post by: Icey on Sun 25/08/2013 05:51:56
http://www.adventuregamestudio.co.uk/forums/index.php?topic=42648.msg628072#msg628072

Use this instead, it's not perfect but easier to set up without much help.
Title: Re: Cold Virtual Beer (Using the famous TCP/IP Plugin + Source code available)
Post by: Monsieur OUXX on Sun 01/09/2013 10:43:40
yep, definitely. The "AGS chat client" system is still one bit more recent, stable and easy to use than the TCP/IP plugin --even though CVB was great in its time! What we still need is a system to exchange sprites between clients ;)
Title: Re: Cold Virtual Beer (Using the famous TCP/IP Plugin + Source code available)
Post by: Sledgy on Sun 21/09/2014 08:57:21
Smb got copy of this game and plugin? (links are dead)

And there's another way to do multiplayer (net play) in AGS?
Title: Re: Cold Virtual Beer (Using the famous TCP/IP Plugin + Source code available)
Post by: Crimson Wizard on Sun 21/09/2014 13:35:40
Quote from: Sledgy on Sun 21/09/2014 08:57:21
Smb got copy of this game and plugin? (links are dead)

And there's another way to do multiplayer (net play) in AGS?

Answered your PM, for others, there's a new Sockets for AGS by WyZ:
http://www.adventuregamestudio.co.uk/forums/index.php?topic=48937.0
Open source project that uses it:
http://www.adventuregamestudio.co.uk/forums/index.php?topic=50165.0