Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (133)
games submitted by our members
Games in WIP (603)
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 / Archived Projects / JautOGL-My game project on java.net on: 2006-10-19 00:04:39
Hi to everyone. After publishing an article on java .net (<a href="http://today.java.net/pub/a/today/2006/10/10/development-of-3d-multiplayer-racing-game.html">Development of a 3D Multiplayer Racing Game</a>) i decided to start o project based on this work. You can find more information on the following:

<a href="https://jautogl.dev.java.net/">https://jautogl.dev.java.net/</a>

I look for developers participating in my project. Any comments and ideas are welcome.
2  Game Development / Networking & Multiplayer / Re: !!! localhost all OK, but in reality packets never arrive !!! HELP !!! on: 2006-05-30 14:27:26
Riven it is just a class. It does not have a main. I have another class that calls it. Anyway...

As for the waiting time i fixed it because one minute was a lot of time and i forgot to erase the comment.

The problem is not there i think... I really do not know...

Thanks for your response
3  Game Development / Networking & Multiplayer / Re: !!! localhost all OK, but in reality packets never arrive !!! HELP !!! on: 2006-05-30 13:56:56
Dear Riven,

The information i added were not available to me at the time of my first post. Athough you really misunderstood me, i apologise for my "attitude", i just wanted to be specific and our discussion not to take irrelevant extensions. Sory again Riven and CaptainJester.

As far as the information you gave me is concerned, i have already done port forwarding and nothing changed. Both from the sides of client and server. Have you checked the code Riven?
4  Game Development / Networking & Multiplayer / Re: !!! localhost all OK, but in reality packets never arrive !!! HELP !!! on: 2006-05-30 11:41:21
Friend, you bring me problems...If you do not understand let the others understand. I do not have something to change, if you want to see the problem just put an IP address. p.x. 167.45.0.7. Replace the word "localhost". It is simple and you confuse the others in what i ask!

Please, check the problem. I have turned off the firewalls, i have checked the packet size and till the packets never arrive to the server when the systems runs on internet. I repeat that localhost and in a lan network all look fine.
5  Game Development / Networking & Multiplayer / Re: !!! localhost all OK, but in reality packets never arrive !!! HELP !!! on: 2006-05-29 18:42:19
i know my friend...of course...this is when i have the problem !!!
6  Game Development / Networking & Multiplayer / !!! localhost all OK, but in reality packets never arrive !!! HELP !!! on: 2006-05-29 17:54:23
I have a serious problem with the application i work. I implement a multiplayer mode for a game using NIO. Wher i run the application all look fine but when i install the server in another computer the packets never arrive through network.

How can i fix this problem???

Here is the code:

SERVER

import java.net.*;
import java.io.*;
import java.nio.*;
import java.nio.channels.*;

public class NIOServer {

  public final static int DEFAULT_PORT = 3120;
  public final static int MAX_PACKET_SIZE = 65507;

  public static void main(String[] args) {

    int port = DEFAULT_PORT;
       
    try {
      DatagramChannel channel = DatagramChannel.open();
      DatagramSocket socket = channel.socket();
      SocketAddress address = new InetSocketAddress(port);
      socket.bind(address);
      ByteBuffer buffer = ByteBuffer.allocateDirect(MAX_PACKET_SIZE);
      while (true) {
        SocketAddress client = channel.receive(buffer);
        //data s=buffer.getBytes();
        //System.out.print(buffer);
        buffer.flip();
        channel.send(buffer, client);
        buffer.clear();
      } // end while
    }  // end try
    catch (IOException ex) {
      System.err.println(ex);
    }  // end catch

  }  // end main

}


CLIENT

import java.net.*;
import java.io.*;
import java.nio.*;
import java.nio.channels.*;
import java.util.*;

public class NIOClient{
   public  final static int DEFAULT_PORT = 3120;
     private final static int LIMIT = 1000;
    int port = DEFAULT_PORT;
       
    SocketAddress remote;
    DatagramChannel channel;
    Selector selector;
    ByteBuffer buffer;
   public NIOClient(){
      try{
         remote = new InetSocketAddress("localhost", port);
         channel = DatagramChannel.open();
         channel.configureBlocking(false);
            channel.connect(remote);
            selector = Selector.open();
            channel.register(selector, SelectionKey.OP_READ | SelectionKey.OP_WRITE);
            buffer = ByteBuffer.allocate(4);
      }
      catch (IOException ex) {
            System.err.println(ex);
       }
      
   }

     public int channel(int k){
        int r=0;
        try {
           
            int n = 0;
            int numbersRead = 0;
               // wait one minute for a connection
              selector.select(6000);
              Set readyKeys = selector.selectedKeys();
              Iterator iterator = readyKeys.iterator();
                   if (iterator.hasNext()) {
                     SelectionKey key = (SelectionKey) iterator.next();
                     iterator.remove();
                     if (key.isReadable()) {
                          buffer.clear();
                          channel.read(buffer);
                          buffer.flip();
                          int echo = buffer.getInt();
                          System.out.println("Read: " + echo);
                          numbersRead++;
                          r=echo;
                     }
                     if (key.isWritable()) {
                          buffer.clear();
                          buffer.putInt(k);
                          buffer.flip();
                          channel.write(buffer);
                          System.out.println("Wrote: " + k);
                          n++;
                         if (n == LIMIT) {
                            // All packets have been written; switch to read-only mode
                            key.interestOps(SelectionKey.OP_READ);
                          }
                     } 
                   }
               
      }  // end try
       catch (IOException ex) {
            System.err.println(ex);
       }
       return r;
     }
}
7  Java Game APIs & Engines / JOGL Development / Re: Speed Issues with Jogl on: 2006-03-26 14:11:48
As i have mentioned in another post i have exactly the same problem in a pc with an Asus 128 MB. I have not managed to fix it...
8  Java Game APIs & Engines / JOGL Development / Re: low performance, better graphic card.... STRANGE!!! on: 2006-03-26 14:06:44
completely no change in anything...

I think that this card has some problems maybe...
9  Java Game APIs & Engines / JOGL Development / low performance, better graphic card.... STRANGE!!! on: 2006-03-22 20:54:08
Hi to everyone !

I develop a game using JOGL and something very strange happens. Shocked

I have 2 PCs with the following bacic characteristics:

   * BASE STATION
         -2.0 GHz CPU
         -ASUS A9550 128 MB GRAPHICS CARD
         -max resolution: 1280x1024

   * LAPTOP
         -I.7 GHz Cetrino CPU
         -GeForce FX Go5200 64 MB
         -max resolution: 1280x800 (wide screen)

Although it seems that the base station can give better performance the opposite happens and i mean that the game in the base station runs very slowly. On laptop everything seems OK.

I tried to play with the resolution or with the options of the two graphics cards but nothing changes...

What is the reason for this strange mulfunction??? Huh
10  Java Game APIs & Engines / JOGL Development / Vector Graphics Support on: 2005-11-14 22:26:49
Hello to everyone here...This is my first message!!!  Cool

Does anyone know if jogl and generally OpenGL supports Vector Graphics???  Huh
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.

Mr.CodeIt (11 views)
2014-12-23 03:34:11

rwatson462 (38 views)
2014-12-15 09:26:44

Mr.CodeIt (31 views)
2014-12-14 19:50:38

BurntPizza (62 views)
2014-12-09 22:41:13

BurntPizza (99 views)
2014-12-08 04:46:31

JscottyBieshaar (60 views)
2014-12-05 12:39:02

SHC (74 views)
2014-12-03 16:27:13

CopyableCougar4 (77 views)
2014-11-29 21:32:03

toopeicgaming1999 (138 views)
2014-11-26 15:22:04

toopeicgaming1999 (127 views)
2014-11-26 15:20:36
Resources for WIP games
by kpars
2014-12-18 10:26:14

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
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!