Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (567)
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  Game Development / Networking & Multiplayer / Re: Is there any eclipse plugin for Darkstar game server development? on: 2006-06-15 18:21:14
Maybe we coudl put it on a page in the project site wiki?

Sure!

Um -- there's a project site wiki? Where is it?
2  Game Development / Networking & Multiplayer / Re: Is there any eclipse plugin for Darkstar game server development? on: 2006-06-11 09:32:37
@abies:

Thanks for your comment on not needing to package stuff in a Jar and run the SGS start script to run your own server. I've worked out your advice into a little tutorial for debugging game servers from Eclipse and posted it in this separate thread.
3  Game Development / Networking & Multiplayer / Re: NullPointerException in ChannelImpl.unicastData on: 2006-06-11 08:39:26
I just figured out what my problem probably was. I tried to send data to a null UserID. Sending to simTask.getUserID() instead seems to have fixed the issue. I still don't know why I had problems with the SwordWorld demo server, but perhaps it was something similarly trivial too.

 Embarrassed  Embarrassed  Embarrassed

I'm sorry for wasting your time with such a silly mistake. Now that I've figured out how to use a debugger on the SGS, I'm going to hunt my own bugs more thoroughly next time.
4  Game Development / Networking & Multiplayer / Re: Is there any eclipse plugin for Darkstar game server development? on: 2006-06-06 12:09:30
Another useful piece of functionality in an IDE plug-in would be support for debugging your server code. Right now, I switch to a shell to restart the game server each time I change my code, but this is inconvenient and doesn't support debugging. It would be nice if there were, say, an Eclipse Run configuration for running a piece of your project in the context of a game server, which could perhaps also take care of creating a dummy SGS-apps.conf on the fly for you so you wouldn't have to bother about it while developing.
5  Game Development / Networking & Multiplayer / NullPointerException in ChannelImpl.unicastData on: 2006-06-06 12:03:15
Hi, I think that Project Darkstar is an awesome tool, but I'm having a little problem with the network communication.

Sometimes when I call SimTask.sendData to send data from the server to the client, I get an exception of the following form:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
WARNUNG: Exception on task execution:
  target: org.akoller.sgs.textadv.Boot
  method: userJoined
  declared on: com.sun.gi.logic.SimUserListener
java.lang.NullPointerException
        at com.sun.gi.comm.routing.impl.ChannelImpl.unicastData(ChannelImpl.java:121)
        at com.sun.gi.logic.impl.SimulationImpl.sendUnicastData(SimulationImpl.java:496)
        at com.sun.gi.logic.impl.DeferredUnicast.execute(SimTaskImpl.java:574)
        at com.sun.gi.logic.impl.SimTaskImpl.processDeferredCommands(SimTaskImpl.java:536)
        at com.sun.gi.logic.impl.SimTaskImpl.execute(SimTaskImpl.java:188)
        at com.sun.gi.logic.impl.SimThreadImpl.run(SimThreadImpl.java:105)


The data the server wanted to send never arrives at the client in such a case. The exception occurs unpredictably -- sometimes the data sending goes through, but rarely enough to make my game unplayable.

This already happened with the original SwordWorld system from the tutorial (after I had changed makeReference to lookupReferenceFor to get it to run). One thing that seemed to eliminate these exceptions in SwordWorld was to call openChannel("GAMECHANNEL") to get a new ChannelID for each call to sendData. But (a) the documentation says the lifetime of a ChannelID is from start to finish of a run of the server, so I shouldn't need to acquire new ChannelIDs for each sendData call, and (b) it doesn't really help after all -- in my little experimental text adventure that I've been developing, which doesn't do much that SwordWorld doesn't at this point, the problem comes back even then.

The problem comes from calls to sendData, not from userJoined as the example above seems to suggest; it just occurs there because I send a welcome message to the user when they join the game.

Can you give me any advice on how to deal with this problem?
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.

Pippogeek (39 views)
2014-09-24 16:13:29

Pippogeek (30 views)
2014-09-24 16:12:22

Pippogeek (19 views)
2014-09-24 16:12:06

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

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

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

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

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

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

BurntPizza (54 views)
2014-09-19 03:14:18
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!