Wednesday, May 11, 2011

GitHub updated with character creation code

So before I post all the information about the character create code, I just wanted to let everyone know that GitHub has already been updated with the latest code. Head on over to https://github.com/dragagon/AegisBorn to find the most recent code including the code to create a character. If you really like my tutorials and feel inclined to give something back, I do take donations. As always stay tuned for posts concerning how I implement character creation and enforce the character limit and unique names.

4 comments:

Sever said...

Hello Dragagon!

First i want to thank you for this great tutorials!

Second i have a little problem here...
Smart for gives me an error like

13:29:31,277 INFO [SocketReader] core.SocketAcceptor - Session created: { Id: 1, Type: DEFAULT, Logged: No, IP: 127.0.0.1:54513 }
on Server port: 9933 <---> 54513
13:29:31,384 INFO [com.smartfoxserver.v2.controllers.SystemController-1] controllers.SystemController - {IN}: Handshake
13:29:31,440 INFO [com.smartfoxserver.v2.controllers.SystemController-1] controllers.SystemController - {IN}: Login
13:29:31,443 INFO [com.smartfoxserver.v2.controllers.SystemController-1] api.SFSApi - Login in, { Zone: GameZone }, ( User Name: tester
s, Id: 0, Priv: 0, Sess: 127.0.0.1:54513 )
13:29:31,446 INFO [com.smartfoxserver.v2.controllers.SystemController-1] controllers.SystemController - {IN}: JoinRoom
13:29:38,786 INFO [com.smartfoxserver.v2.controllers.ExtensionController-1] Extensions - {GameExtension}: Result: f04c9f6e85e7954db
36b53613ed986819eb449c8
13:29:38,790 INFO [com.smartfoxserver.v2.controllers.ExtensionController-1] Extensions - {GameExtension}: java.util.NoSuchElementEx
ception

Do you have any idea why this error appears? Thank You!

Unknown said...

This sounds like you have not created a Game Zone and Room using the compiled extension. Its joining the room and looking for the extension and can't find it. Either the name is wrong for the classpath or something else is up.

Sever said...

hmm... strange.

If i look in sfs admin panel in zone monitor i can see the user connected to created Zone - Room.
I can`t get the line of code that fires this NoSuchElementException. Everything looks ok...

Any ideas?

Unknown said...

Go into the sfsadmin panel and go to your zone Configurator. You want to edit your zone and go to the zone extension tab. Ensure the name field is the same as your extension folder [SFSInstallDir]/SFS2x/Extensions/[Name]. Next you need to make sure that the file field is your Java classpath and class name. I.E. domain.domainname.gamename.extensionclassname. so for my game it ended up being com.cjrgaming.aegisborn.AegisBornExtension