Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (522)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (589)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Games Center / WIP games, tools & toy projects / Re: GNetLib V0.0.0.2 (A Simple Java Networking Library) on: 2014-10-24 01:25:51
But still, how do I kick a client individually without having to kick all the clients?
2  Games Center / WIP games, tools & toy projects / Re: GNetLib V0.0.0.2 (A Simple Java Networking Library) on: 2014-10-23 00:30:14
Is there a way to kick one specific client from the server(I'm using ClientShutdownPacket by the way)?

My code:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
if(packet.getPacketName().contentEquals("UserPacket"))
            {
               users.add(packet.getEntry("username").toString());
               String test = users.get(0);
               System.out.println(packet.getEntry("IP"));
               
               boolean kick = in.nextLine().contains("kick: ");
                 if(kick)
                 {
                    String[] x = in.nextLine().split(":", -1);
                    System.out.println(x[0]);
                    System.out.println(x[1]);
                   
                     ClientShutdownPacket shutdown = new ClientShutdownPacket(client);
                     client.connected = false;
                     shutdown.addEntry("SHUTDOWN", true);
                     
                     client.sendPacket(shutdown);
                     
                 }
                     return;
            }
3  Games Center / WIP games, tools & toy projects / Re: GNetLib V0.0.0.2 (A Simple Java Networking Library) on: 2014-10-21 02:04:53
Thank you so muchhh  Grin Grin Grin Grin Grin Grin
4  Games Center / WIP games, tools & toy projects / Re: GNetLib V0.0.0.2 (A Simple Java Networking Library) on: 2014-10-20 23:02:30
When will v 0.0.0.3

Also @TehJavaDev:

Add me on skype: waleed.ahmad.ghazal
5  Games Center / WIP games, tools & toy projects / Re: GNetLib V0.0.0.2 (A Simple Java Networking Library) on: 2014-10-20 02:58:10
I am making a GUI and I want to put the logs in a JTextArea, but the only way I can is if I get the log(s) as a string and then append it.
6  Games Center / WIP games, tools & toy projects / Re: GNetLib V0.0.0.2 (A Simple Java Networking Library) on: 2014-10-20 02:35:54
Yes
7  Games Center / WIP games, tools & toy projects / Re: GNetLib V0.0.0.2 (A Simple Java Networking Library) on: 2014-10-20 02:30:13
I have been experimenting with the library, and I'm trying to get the debug log as a string, but I can't seem to do so. How can I do that?
8  Games Center / WIP games, tools & toy projects / Re: GNetLib V0.0.0.2 (A Simple Java Networking Library) on: 2014-10-20 01:43:44
Thanks for clarifying  Grin
9  Games Center / WIP games, tools & toy projects / Re: GNetLib V0.0.0.2 (A Simple Java Networking Library) on: 2014-10-20 01:19:46
What I really mean is the ability to make a client "become" the host, kind of like how online lobbies work.

A game with this feature, for example, would be Counter Strike: Global Offensive

This image can help clarify my idea:

10  Games Center / WIP games, tools & toy projects / Re: GNetLib V0.0.0.2 (A Simple Java Networking Library) on: 2014-10-20 01:03:35
Many multiplayer games have a lobby function to them. Is it possible to make a feature like that so the programmer does not have to write it but rather the library does a lot of it for us?
11  Games Center / WIP games, tools & toy projects / Re: GNetLib V0.0.0.2 (A Simple Java Networking Library) on: 2014-10-16 23:10:40
I love it! It's very user friendly  Smiley Smiley Cool
12  Games Center / WIP games, tools & toy projects / Re: Zombie Nauts [0.4.5] on: 2014-07-25 13:01:25
Really nice game! Keep up the good work
13  Discussions / Miscellaneous Topics / Re: [Girls] How to completely block them from our lives? on: 2014-07-12 02:10:22
Use the isolation technique.
14  Discussions / Miscellaneous Topics / Re: Longest program you have written? on: 2014-07-12 02:07:38
I would say the longest I've written so far is my RTS game(its not even finished yet).
It's currently:
5515+
15  Games Center / WIP games, tools & toy projects / Re: Athanas Quest on: 2014-06-01 21:03:34
My name is Waleed Ghazal, I'm 14 too. I was wondering if I can collaborate with you on this game and possibly help out with programming.
I also know of a tool that can distribute LWJGL projects.
I can also help with the development of an AI, structures and simple building too.
Skype: waleed.ahmad.ghazal
Steam: robocos123
I hope I can be of help.
Thanks
16  Game Development / Networking & Multiplayer / Re: Does anyone know how to host your multiplayer game online? on: 2013-03-15 00:58:58
How do I port forward?
17  Game Development / Networking & Multiplayer / Does anyone know how to host your multiplayer game online? on: 2013-03-15 00:55:01
I created a game with a server and client, and I do not know how to host it online(since my friend wants to join the game and we are not in the same network). If you guys know how please answer in the comments
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

trollwarrior1 (27 views)
2014-11-22 12:13:56

xFryIx (69 views)
2014-11-13 12:34:49

digdugdiggy (48 views)
2014-11-12 21:11:50

digdugdiggy (42 views)
2014-11-12 21:10:15

digdugdiggy (36 views)
2014-11-12 21:09:33

kovacsa (60 views)
2014-11-07 19:57:14

TehJavaDev (64 views)
2014-11-03 22:04:50

BurntPizza (62 views)
2014-11-03 18:54:52

moogie (77 views)
2014-11-03 06:22:04

CopyableCougar4 (77 views)
2014-11-01 23:36:41
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!