Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Is AGK possible to make a text Multi Chat Room ?

Author
Message
sally12345
11
Years of Service
User Offline
Joined: 5th May 2013
Location:
Posted: 5th May 2013 15:08
Hi,
Is there a example to make a text Multi Chat Room?

Any help will be appreciate it.
Best Regards
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 6th May 2013 07:30
You'd need a centralized server. I don't know if AppGameKit has the necessary networking commands for even the client side.

"You're all wrong. You're all idiots." ~Fluffy Rabbit
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 6th May 2013 17:06
its easy, only HostNetwork for Server and JoinNetwork for client.
the rest are send/receive messages.

http://www.appgamekit.com/documentation/examples/multiplayer/0_getting_started.htm
Naphier
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 7th May 2013 05:53
I'm working on something similar right now. My next game needs to allow up to 4 players to chat. I can post what I have at the end of the week and you should be able to build upon it fairly easily.

I use a server with PHP and MySQL for transfer of the chat messages.
So you will need access to a server. I'm just using XAMPP on my home PC until the game is ready to launch.

Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 7th May 2013 17:14
Naphier, that is one method that doesn't require having a PC or Mac somewhere running an AppGameKit network host app. And a good one, I think, for anyone who has access to a web server.

The other method is running an AppGameKit app acting as the host on a PC or Mac that is visible. This would be using the MultiPlayer commands. This method is a bit trickier because the hosting computer would likely be in someone's home or office.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
Naphier
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 7th May 2013 22:58
Here's a link to the code for the framework for a server based app that can do this.
http://forum.thegamecreators.com/?m=forum_view&b=41&t=203769&p=1

Improvements are welcome!

Login to post a reply

Server time is: 2024-11-24 13:37:06
Your offset time is: 2024-11-24 13:37:06