Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Help Needed.  (Read 1407 times)
0 Members and 1 Guest are viewing this topic.
Offline java_freshie

Innocent Bystander

« Posted 2012-10-29 17:43:51 »

Greetings Forumites !

*I'll ask my question and then look around in case answers already exist.

 I am new here, and I am hoping that I will be able to find someone to help me solve some Java issues I have. I do hope that I'll be able to help someone around here too.

 I am new to Java. Because I have a decent amount of programming experience, and given how once you know one language, you can find your way through to a basic application in any other language, I was able to develop a Java application that does what I need it to do "for the most part".

 The application is supposed to be a multi-player game. So I needed to:
Develop the game
create a socket to connect each client to the server
get the server to connect clients together and track moves by clients
save sessions over the game
and close every connection when a client exits (maybe a presence notification too)

 1) I designed the game so that it works perfectly well in a single player mode;
 2) works somewhat against the computer (I say 'somewhat' because I think the computer is cheating because it wins by too wide a margin - see, I wrote the computer's move to make it almost hard to outplay; but I often see moves that, where I the computer, I would have made but the computer chooses not to make and actually gains no point in the alternate move it makes. Yet, it somehow wins the game. But this is something I have to figure out, and I am not so bothered about it at this point);
 3) Also, I changed some listeners, and I started noticing flickers whenever I click on some control to select the game parameters (this is another thing I am not so pressed to solve now because I had previously fixed it before another change brought it back. So I don't anticipate that it'll be difficult to solve).

 Here are my problems:
 1) I am not able to get the game to work in multi-player mode. I am... new would mean that I have some experience... I am clueless when it comes to networking. I bought a book, Killer Game Programming In Java by Andrew Davison, but either the book is meant for people with more knowledge or it's outdated, I couldn't get through any of the example codes;
 2) I am guessing that I need a database to store information, but I have no idea how to do that (this is probably something to worry about later too);
 3) I installed the Android plug-in and set it up successfully in NetBeans, and I created a new Android Application, and it generated a mainactivity (I left the defaults so if you are familiar with this, you know what I am talking about). Here is the problem. When I added the files from my "existing Java FX Game, I get all sorts of errors about packages, e.g., java.awt, not existing.

 Is there anyone who is willing to help me resolve these, or any of these issues? I considered contracting it out because I don't know that I have the time (demanding work schedule) to learn something new and extensive if it requires it, but I feel like I have done a lot of the work but will probably still be charged almost full price if I got someone to do it.

 Please help this fish out of the water.
Pages: [1]
  ignore  |  Print  

EgonOlsen (78 views)
2018-06-10 19:43:48

EgonOlsen (58 views)
2018-06-10 19:43:44

EgonOlsen (78 views)
2018-06-10 19:43:20

DesertCoockie (260 views)
2018-05-13 18:23:11

nelsongames (158 views)
2018-04-24 18:15:36

nelsongames (157 views)
2018-04-24 18:14:32

ivj94 (898 views)
2018-03-24 14:47:39

ivj94 (162 views)
2018-03-24 14:46:31

ivj94 (811 views)
2018-03-24 14:43:53

Solater (175 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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‑
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!