Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (117)
games submitted by our members
Games in WIP (564)
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  
  Chat Program  (Read 2691 times)
0 Members and 1 Guest are viewing this topic.
Offline matheus23

JGO Kernel


Medals: 107
Projects: 3


You think about my Avatar right now!


« Posted 2012-04-29 11:23:10 »

Hello Guys,

This is my first Post, so please move this topic, if its wrong here...

I just created a Programm for chatting. It was made with Kryonet (http://code.google.com/p/kryonet/), which helped me A LOT.
I would really like, if you would join my server, and say hi, to show, that it worked, or reply here with the thrown Exception / Problem.

To connect to my server use this:
#set-name <the name you want to have>
#connect flux.homelinux.org

You can download the program here: http://dl.dropbox.com/u/45530199/Games/ConsoleChat.zip

Thats all. Hopefully we meet Smiley

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline jonjava
« Reply #1 - Posted 2012-04-29 11:25:00 »

Hmm, nothing shows up when I click it. Maybe need to run from command line? I'll try it

Nope, running from console with 'java -jar', at least it tries to connect somewhere(firewall noticed) but when accepted it just hangs there and doesn't let you input anything.

No errors.

Offline matheus23

JGO Kernel


Medals: 107
Projects: 3


You think about my Avatar right now!


« Reply #2 - Posted 2012-04-29 11:30:16 »

Weired bug in AWT. It hangs in the call setVisible(true);. It works after you try it multiple times.

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline jonjava
« Reply #3 - Posted 2012-04-29 11:42:37 »

Is there a screen supposed to appear when you double click the jar? Or do you need to run it from the command line?

Well, in either case, it's not working and it's not spitting out any errors. :/

Offline BoBear2681

JGO Coder


Medals: 18



« Reply #4 - Posted 2012-04-29 15:53:38 »

Weired bug in AWT. It hangs in the call setVisible(true);. It works after you try it multiple times.

Perhaps you're doing stuff off of the EDT that you shouldn't?
Offline matheus23

JGO Kernel


Medals: 107
Projects: 3


You think about my Avatar right now!


« Reply #5 - Posted 2012-04-29 17:00:45 »

That would be really strange. Yes, I'm often NOT in the Event Dispatch Thread (Checked with SwingUtilities.isEventDispatchThread()), but I ALWAYS call SwingUtilities.invokeLater(new Runnable() { ... }); if I'm not inside a dispatch thread, or I dont know. Inside that Runnable I call every Swing method, which needs to be called...

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline matheus23

JGO Kernel


Medals: 107
Projects: 3


You think about my Avatar right now!


« Reply #6 - Posted 2012-04-29 17:18:27 »

Okey, that is fixed now. Just quickly restarting server, (link works too, just donwload it again.).

Solution:

I used Swing-Components together inside a JFrame... That caused flickering and strange behavior. Should be fixed now Smiley

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline Shane75776
« Reply #7 - Posted 2012-04-29 17:22:17 »

trying to run it from the command line it just sits there. does not do anything.

Check out my Snipping Tool++ ! An advanced snippet/screenshot/text uploading tool! Meant to replace the windows snipping tool.

Check out Pixel Rain My most recent Swing based game!
Offline matheus23

JGO Kernel


Medals: 107
Projects: 3


You think about my Avatar right now!


« Reply #8 - Posted 2012-04-29 17:27:48 »

... what?...  Stare  Cranky  Emo
mhmm... I ... I had that problems once too, but I really don't get, why that still happens... I'm really confused. I started it from outside eclipse with a jar too, but for me it works perfectly.

Cracily strange...

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline matheus23

JGO Kernel


Medals: 107
Projects: 3


You think about my Avatar right now!


« Reply #9 - Posted 2012-04-29 17:30:05 »

Oh wait. Please run it with java -jar ConsoleChat.jar log-trace
That should output EVERY information about Kryonet, maybe it hangs there instead of setVisible(..).

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Shane75776
« Reply #10 - Posted 2012-04-29 17:32:29 »

Nope. still does not show anything.

Check out my Snipping Tool++ ! An advanced snippet/screenshot/text uploading tool! Meant to replace the windows snipping tool.

Check out Pixel Rain My most recent Swing based game!
Offline matheus23

JGO Kernel


Medals: 107
Projects: 3


You think about my Avatar right now!


« Reply #11 - Posted 2012-04-29 17:36:23 »

As I am not able to reproduce the bug, can you please try to find, where it hangs?
Here is the src: http://dl.dropbox.com/u/45530199/Games/ConsoleChat.zip
I'd really appriciate that...

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline matheus23

JGO Kernel


Medals: 107
Projects: 3


You think about my Avatar right now!


« Reply #12 - Posted 2012-04-29 18:46:44 »

okey, the above link is the wrong one. Its the link for downloading the Program.

It should work now. I checked it in Windows XP, there it hangs in setVisibe(true);
After putting around a SwingUtilities.invokeLater(...). It seems to work. So just use the above link to download and run Smiley

Checked and running!

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Online ra4king

JGO Kernel


Medals: 346
Projects: 3
Exp: 5 years


I'm the King!


« Reply #13 - Posted 2012-04-29 19:08:25 »

It works fine for me! Really cool stuff Smiley

Offline matheus23

JGO Kernel


Medals: 107
Projects: 3


You think about my Avatar right now!


« Reply #14 - Posted 2012-04-29 19:35:52 »

ra4king hey Cheesy just saw, you posted somthing there Cheesy glad it worked for you Smiley

EDIT: Just saw it.. Sorry for 3 times doublepostin.. oO

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline ReBirth
« Reply #15 - Posted 2012-04-30 01:48:55 »

So it said "Unable to Connect Client:".

Offline matheus23

JGO Kernel


Medals: 107
Projects: 3


You think about my Avatar right now!


« Reply #16 - Posted 2012-04-30 07:41:08 »

Yepp, Server was not online, I'm starting it again now.

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
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.

Grunnt (22 views)
2014-09-23 14:38:19

radar3301 (14 views)
2014-09-21 23:33:17

BurntPizza (31 views)
2014-09-21 02:42:18

BurntPizza (22 views)
2014-09-21 01:30:30

moogie (20 views)
2014-09-21 00:26:15

UprightPath (30 views)
2014-09-20 20:14:06

BurntPizza (34 views)
2014-09-19 03:14:18

Dwinin (48 views)
2014-09-12 09:08:26

Norakomi (75 views)
2014-09-10 13:57:51

TehJavaDev (108 views)
2014-09-10 06:39:09
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

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!