Search:

Type: Posts; User: Norm

Search: Search took 0.24 seconds.

  1. Replies
    33
    Views
    3,463

    Re: 2D JAVA GAME TCP SERVER/CLEINT SUPPORT HELP?

    Maybe using the word message is confusing.
    What does one client have to tell the other for them to play the game?

    This topic has been continued at:...
  2. Replies
    33
    Views
    3,463

    Re: 2D JAVA GAME TCP SERVER/CLEINT SUPPORT HELP?

    What about these two questions:
    What messages are to be sent from one client to another?
    What response, if any, should be made when a client receives a message?
  3. Replies
    33
    Views
    3,463

    Re: 2D JAVA GAME TCP SERVER/CLEINT SUPPORT HELP?

    Before any code is written there needs to be a design. Some of the things to consider:
    What messages are to be sent from one client to another?
    What response, if any, should be made when a client...
  4. Replies
    33
    Views
    3,463

    Re: 2D JAVA GAME TCP SERVER/CLEINT SUPPORT HELP?

    Can you post any questions or comments about the problems you are having here?
  5. Replies
    33
    Views
    3,463

    Re: 2D JAVA GAME TCP SERVER/CLEINT SUPPORT HELP?

    Why serialized? What information do you want sent from one client to the other?
    Do you think sending a serialization of a class will be easier than sending a String?
  6. Replies
    33
    Views
    3,463

    Re: 2D JAVA GAME TCP SERVER/CLEINT SUPPORT HELP?

    Would the int values need any description? if "30,444" is sent, would the receiver know what that meant?
    Or would there need to be a descriptor: "moveTo 30,444"
  7. Replies
    33
    Views
    3,463

    Re: 2D JAVA GAME TCP SERVER/CLEINT SUPPORT HELP?

    First decide what data needs to be sent between the clients and the work on how to send it.
    Sending Strings is easier to debug. What information needs to be sent?
  8. Replies
    33
    Views
    3,463

    Re: 2D JAVA GAME TCP SERVER/CLEINT SUPPORT HELP?

    Are you saying that the only thing a client sends to the server and the other client is two values: x and y?

    Have you designed and written any code yet?

    Please post the full text of the error...
  9. Replies
    33
    Views
    3,463

    Re: 2D JAVA GAME TCP SERVER/CLEINT SUPPORT HELP?

    What does the program need to get through the network communications to play the game?
    What response does the program need to make to a message received from the other player?

    For example:...
  10. Replies
    33
    Views
    3,463

    Re: 2D JAVA GAME TCP SERVER/CLEINT SUPPORT HELP?

    The drivers are simple programs to send and receive fixed messages for testing the network code. They would not be used after the testing.

    The part that gets the input from the network instead of...
  11. Replies
    33
    Views
    3,463

    Re: 2D JAVA GAME TCP SERVER/CLEINT SUPPORT HELP?

    What design items do you have so far for the communications between the client and the server?
    The code in post#7 will have to be rewritten to work with the network code.
    The networking code will...
  12. Replies
    33
    Views
    3,463

    Re: 2D JAVA GAME TCP SERVER/CLEINT SUPPORT HELP?

    Where? What post? The code in Post #9 needs to be fixed.

    What was the purpose of posting the code in post#9?

    Are you working on a design for the communications between the client and the...
  13. Replies
    33
    Views
    3,463

    Re: 2D JAVA GAME TCP SERVER/CLEINT SUPPORT HELP?

    Please edit the posted code and add proper indentations. The statements should NOT all start in the first column.
    Code inside {}s should be indented 3-4 spaces.
  14. Replies
    33
    Views
    3,463

    Re: 2D JAVA GAME TCP SERVER/CLEINT SUPPORT HELP?

    SSCCE standards for Short, Self Contained, Correct Example. The post looks like the whole thing.

    For the networking part you won't need the whole thing.
    You should be able to write the message...
  15. Replies
    33
    Views
    3,463

    Re: 2D JAVA GAME TCP SERVER/CLEINT SUPPORT HELP?

    Sorry, this defines a SSCCE: Short, Self Contained, Correct Example

    How will the client and server communicate? What messages will be sent between them? How can those messages be used to drive...
  16. Replies
    33
    Views
    3,463

    Re: 2D JAVA GAME TCP SERVER/CLEINT SUPPORT HELP?

    Sorry, no private communications.

    Write a SSCCE and post it here.
  17. Replies
    33
    Views
    3,463

    Re: 2D JAVA GAME TCP SERVER/CLEINT SUPPORT HELP?

    What have you done so far? Do you have code and any specific questions about your project?
Results 1 to 17 of 17