Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (575)
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] 2 3 ... 6
1  Games Center / WIP games, tools & toy projects / Re: GNetLib V0.0.0.2 (A Simple Java Networking Library) on: 2014-10-20 10:25:56
i sent a msg to you with me skype!

i would love to have some help with this libary!

when i implement it to a game i have i will add tween screen with libary picture so you need to
create one xD
2  Games Center / WIP games, tools & toy projects / Re: GNetLib V0.0.0.2 (A Simple Java Networking Library) on: 2014-10-18 12:37:40
Looks Awesome Greate Job!!!
3  Games Center / WIP games, tools & toy projects / Re: GNetLib V0.0.0.2 (A Simple Java Networking Library) on: 2014-10-17 05:08:03
i might do some tutorials on how to use this library once i get pretty good at it
it have learned me so much about networking in 1 day it's really good for beginners =D
4  Games Center / WIP games, tools & toy projects / Re: GNetLib V0.0.0.2 (A Simple Java Networking Library) on: 2014-10-17 05:01:25
thanks =D
tell me when thay are uploaded =D
5  Games Center / WIP games, tools & toy projects / Re: GNetLib V0.0.0.2 (A Simple Java Networking Library) on: 2014-10-17 04:04:07
yes!

what i mean by this
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
         @Override
         protected void packetReceived(final ClientModel client, final Packet packet) {
             Sys.SendSysMsg("RECIVE!");
             if (packet.getPacketName().equals("move")) {
                double xp = (double) packet.getEntry("x");
                double yp = (double) packet.getEntry("y");
                Sys.SendSysMsg("RECIVE!");
             }
             Sys.SendSysMsg("RECIVE!");
             return; // event handled.
         }


it wont print msg or anything i can send packets from server to client
and client sends the pack but server does not take it and i cant use its data i have been trying all night
and yes am starting them in main string args thing


here is concol here it connects and sends packet
GNetClient -> Obtaining target host address.
GNetClient -> Target host obtained, attempting to connect to it.
GNetClient -> We've been connected to the server.
GNetClient -> Sending packet: LoginPacket

but server does not say RECIVE
GNetServer -> Obtaining target host address.
GNetServer -> Target host obtained, attempting to bind to it.
GNetServer -> Server is now being broadcasted on given address.
GNetServer -> A client has been connected. (online: 1)
System: Client Has Connected!

or that packet has been sent
6  Games Center / WIP games, tools & toy projects / Re: GNetLib V0.0.0.2 (A Simple Java Networking Library) on: 2014-10-16 23:12:28
and this metod does not seam to work btw it wont print or anything been trying for hours to print x and y
         
   int x;
   int y;
        g2.drawString("xpos: "+x+" ypos: "+y, 50, 180);

                        @Override
         protected void packetReceived(final ClientModel client, final Packet packet)
         {
            
             if (packet.getPacketName().equals("LoginPacket"))
             {
                 x = (int) packet.getEntry("xpos");
                  y = (int) packet.getEntry("ypos");
                  Sys.SendSysMsg("RECIVED!");
                  return; // event handled.
             }
             Sys.SendSysMsg("RECIVED!");
         }
         
7  Games Center / WIP games, tools & toy projects / Re: GNetLib V0.0.0.2 (A Simple Java Networking Library) on: 2014-10-16 23:06:42
btw can you add functions like this

if(client.HasConnected()){}
if(!client.HasConnected()){}


there is a bug that you can keep on pressing a button to connect same client 10000 times xD

8  Games Center / WIP games, tools & toy projects / Re: GNetLib V0.0.0.2 (A Simple Java Networking Library) on: 2014-10-16 22:53:49
it still wont let me print the players x and y
             if (packet.getPacketName().equals("LoginPacket"))
             {
                 Integer x = (Integer) packet.getEntry("xpos");
                  Integer y = (Integer) packet.getEntry("ypos");
                  Sys.SendSysMsg(x+","+y);
                  return; // event handled.
             }
9  Games Center / WIP games, tools & toy projects / Re: GNetLib V0.0.0.2 (A Simple Java Networking Library) on: 2014-10-16 14:14:15
i cant get it to work tell me what am doing wrong here

Here i Create Sevrer

ArrayList<String> names = new ArrayList<String>();

   public void CreateServer() {
      GNetServer server = new GNetServer("127.0.0.1", 8080);
      
      server.addEventListener(new ServerEventListener()
      {
         @Override
         protected void connectionEvent(final ClientModel client, final ServerEvent event)
         {
            if (event.clientConnected) {
               Sys.SendSysMsg(names+"");
            }
         }

         @Override
         protected void packetReceived(ClientModel client, Packet packet) {
             if (packet.getPacketName().equals("LoginPacket"))
             {
               String name = (String) packet.getEntry("name");
               int id = (int) packet.getEntry("id");
               names.add(name);
               Sys.SendSysMsg(id+"");
                return; // event handled.
             }
         }
      });
      
      if (server.bind())
      {
         server.start();
      }
   }

Here is when i connect to server
   public void ConnectToServer(String ip,int port) {
      
      GNetClient client = new GNetClient("127.0.0.1", 8080);
      
      client.addEventListener(new ClientEventListener()
      {

         @Override
         protected void connectionEvent(ServerModel server, ClientEvent event) {
            
            if(event.connected) {
               Packet loginPacket = new loginPacket("JIM", 1);
                server.sendPacket(loginPacket);
            }

         }

         @Override
         protected void packetReceived(ServerModel serverModel, Packet packet) {
            
             return; // event handled.
         }
         
      });
      
      if (client.bind())
      {
         client.start();
      }
   }

Login Packet

public class loginPacket extends Packet{

   public loginPacket(String username, int ID) {
      super("LoginPacket", 2);
      addEntry("name", username);
      addEntry("id", ID);
   }

}

it wont print out the name or add it to the list?!
10  Games Center / WIP games, tools & toy projects / Re: GNetLib V0.0.0.2 (A Simple Java Networking Library) on: 2014-10-15 11:47:33
do movement tutorials as well
for ex

how to make a small mutliplayer game with just 2 rectangles moving on both clients
11  Games Center / WIP games, tools & toy projects / Re: GNetLib V0.0.0.2 (A Simple Java Networking Library) on: 2014-10-14 12:43:15
badass
12  Games Center / WIP games, tools & toy projects / Re: GNetLib V0.0.0.2 (A Simple Java Networking Library) on: 2014-10-14 11:37:25
this looks awesome and easy to learn thank you Cheesy
please do some video tutorials on this =D
i might do when i learn it please just keep on updating it so it does not turn in to an inactive project!
13  Games Center / WIP games, tools & toy projects / Re: ZomGame Puzzel Game Update [36] - Bullets are Fixed!!! on: 2014-10-14 11:30:41
Devlog 36 is out now!!!!

i have not been coding much lately but got working on zomgame a small bit again
14  Games Center / WIP games, tools & toy projects / Re: Project X [RPG] on: 2014-09-06 04:13:28
yup rpg games takes lots off time and coding if its gona be good
15  Games Center / WIP games, tools & toy projects / Re: Real Turn - Android RPG with roguelike elements on: 2014-09-05 10:31:10
looks awesome =D
16  Discussions / General Discussions / Live Stream ZomGame Start soon...[]CLOSED[] on: 2014-08-23 15:25:18

Live Stream of my puzzel game start soon
http://www.twitch.tv/virtueel


Youtube to see devlogs
https://www.youtube.com/user/InidDevo
17  Discussions / Miscellaneous Topics / Re: Life is like a strategy game sort off on: 2014-08-06 16:21:33
made me laugh Smiley
18  Discussions / Miscellaneous Topics / Life is like a strategy game sort off on: 2014-08-06 15:28:59
well i think it is like a strategy game, if you make the right choice/pick the right path you succeed, if you make the wrong choice or path you lose and got to face with the consequences of wrong thinking.

so before you make your choice, look at the consequences! Smiley

what do you think life is?
19  Game Development / Game Mechanics / Re: Player data files on: 2014-08-05 19:01:21
blocks and id's?
20  Game Development / Game Mechanics / Re: Player data files on: 2014-08-05 15:15:00
so with inputStream i can use something from a file then after its used close the file so i dont need to read it anymore?

am new to
inputStream
and
outputStream
21  Game Development / Game Mechanics / Re: Player data files on: 2014-08-05 15:11:20
ok i did DoubleTag db = new DoubleTag("PlayerSpeed",Speed);

all i can do is

getValue();
and getName();

what is this good for?
22  Game Development / Game Mechanics / Re: Player data files on: 2014-08-05 14:55:21
how do i use this to save data is there any tutorials i cant find any?
23  Discussions / Miscellaneous Topics / Re: Java Keyword Tutorials on: 2014-08-04 19:46:23
am just uploading what all keywords do ama do alot tutorials on java not java2D, i will start java2D later Smiley
24  Discussions / Miscellaneous Topics / Re: Java Keyword Tutorials on: 2014-08-04 18:41:02
thank you Smiley
25  Discussions / Miscellaneous Topics / Re: Interesting Profile pictures on: 2014-08-04 18:37:47
...cube?
26  Discussions / Miscellaneous Topics / Re: Interesting Profile pictures on: 2014-08-04 18:27:56
my is just a badass
27  Discussions / Miscellaneous Topics / Re: Java Keyword Tutorials on: 2014-08-04 16:59:00
good comment =D, this is true
28  Discussions / Miscellaneous Topics / Re: Java Keyword Tutorials on: 2014-08-04 16:27:36
i will explaind in interface video what the differens is between them and why to use interface, Smiley , shud i put a text tutorial in decription where to read what it is?
29  Discussions / Miscellaneous Topics / Re: Java Keyword Tutorials on: 2014-08-04 16:13:54
first off that tutorial is for abstract not interface, i will do interface tutorial as well, i know all that, you can do so with out having abstract at all it works alot better am just showing what they are used for Smiley
30  Game Development / Newbie & Debugging Questions / Re: Libgdx Death animation on: 2014-08-04 12:28:52
make a check and see if it is on last frame?

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
public void doingAnimation(){

   if(frames == 5){
       stopAnimation();
       animation = false;
   }

   //make an int to plus or something
   frames++;

   or
   while(animation){
       frames++;
   }

}


btw just trying to help Smiley hope you get it
Pages: [1] 2 3 ... 6
 

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

The first screenshot will be displayed as a thumbnail.

Longarmx (35 views)
2014-10-17 03:59:02

Norakomi (25 views)
2014-10-16 15:22:06

Norakomi (24 views)
2014-10-16 15:20:20

lcass (26 views)
2014-10-15 16:18:58

TehJavaDev (50 views)
2014-10-14 00:39:48

TehJavaDev (50 views)
2014-10-14 00:35:47

TehJavaDev (40 views)
2014-10-14 00:32:37

BurntPizza (63 views)
2014-10-11 23:24:42

BurntPizza (36 views)
2014-10-11 23:10:45

BurntPizza (75 views)
2014-10-11 22:30:10
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!