Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (577)
games submitted by our members
Games in WIP (498)
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 801 times)
0 Members and 1 Guest are viewing this topic.
Offline java_freshie

Innocent Bystander





« Posted 2012-10-29 18: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.

Background:
 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  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (23 views)
2014-04-15 18:08:23

BurntPizza (18 views)
2014-04-15 03:46:01

UprightPath (32 views)
2014-04-14 17:39:50

UprightPath (16 views)
2014-04-14 17:35:47

Porlus (32 views)
2014-04-14 15:48:38

tom_mai78101 (58 views)
2014-04-10 04:04:31

BurntPizza (116 views)
2014-04-08 23:06:04

tom_mai78101 (216 views)
2014-04-05 13:34:39

trollwarrior1 (183 views)
2014-04-04 12:06:45

CJLetsGame (190 views)
2014-04-01 02:16:10
List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:05:20
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!