I've got the first idea for a community project: a RPG in Java. I've already got some ideas for engines, but for the graphics, I need someone who knows a good library for 3D/2D graphing.
\Mapar007
I've got the first idea for a community project: a RPG in Java. I've already got some ideas for engines, but for the graphics, I need someone who knows a good library for 3D/2D graphing.
\Mapar007
I don't know Java, but I can create a sort of website for the java game.
I know Java, but I'm experiencing a few problems with the JVM now.
\Mapar007
btw: JVM = Java Virtual Machine
problem resolved. I'm ready to start the project now, but I'm not going to do it alone, I need some fellow Java programmers. (in fact, if there's nobody else, we can do it in another lang).
\Mapar007
I don't know much about Java, but I'm familiar with C,C++, Python which are the same family of programming language.
Don't get me wrong, I can still learn java. I've got, what,
*counts books*
6 books on java from older days? I think I can learn.
Yeah, my dad has LOTS of books about Java too, I'm working my way through now. (just read the book about I/O). It's difficult sometimes though, most of the matter is "advanced" and it happens that I have to reread a paragraph a few times before I understand it… lolz
@RandomProductions: It'd be nice if you learned Java, even if it were only a bit. And make sure its Java 2 (=java 1.2) and not some old, deprecated java version (1.0 or 1.1).
\Mapar007
I can also learn on the internet :)
That always works!
I already wrote the classes Skill and ProfileBuilder. I'm working on ProfileReader now.
Edit: I uploaded them below in a .zip archive, take a look if you want.
Ok, it's going fine now. I've downloaded java 3D, but the graphics are for later on. Engines go first. (I finished Quest and ProfileReader, and rewrote ProfileBuilder to Profile).
And for the final layout in general: I was thinking, to keep it simple, to use an AWT Container for the window, with a 3DPanel for the game and Swing components for navigation. Or should I do the nav in J3D too? (but as I already said: that's for later on)
Heh heh, at least I started working on it again… But I think I'll move this to individual because I'm all alone :( lol
You could use OpenGL, found Here.
That is for netbeans though. I can help you with the java. I am working on a project right now, but that is not high priority.
So do I put it under individual or not?
I will help depending on language. if java, yes.
It is Java, as was said in the news section.
The project is going well, but now I'm a bit stuck. I have come at the point where I need to define a User class. The class is written, but to organize the login, I'll need help. Does anyone have a good idea. (security is not of high priority at this stage, but it should be easy to implement in a later version)
If you have a server you can connect to, just do a jframe with two fields and a button. Then, use the action event to connect to the server to see if any of the usernames and passwords match.
(I'm doing everything locally now)
What I meant was, managing logins and stuff…
You could encrypt the username and password, and write it to a file. Then, if you wanted to use a network, you could just send and recieve the file.
I wrote a chat client and server pair recently, so this stuff is still pretty fresh in memory. I'll assume you're using TCP/IP since I haven't worked with UDP or anything else for that matter, so I don't know how different the client validation will be (if it is at all).
You'll want to listen on a preset port for incoming connections. When a connection is made from an incoming client, immediately start negotiating for a new port. After the negotiations are complete, the client sends the user information to the server for validation.
This process is probably easiest to visualize as a conversation.
CLIENT: Hello Server
SERVER: Hello Client
SERVER checks for free ports in it's range.
IF it finds one, THEN open that port and listen for a connection.
SERVER sends new port number to the client.
CLIENT disconnects from the server, closes the old port, and reconnects on the new port.
SERVER reopens the NewConnectionListener Port and wait for a new client.
CLIENT: Hello Server
SERVER: Hello Client
CLIENT: My Username is "FOO" and my Password is "BAR"
SERVER checks to see if that username is in the database
IF it is present AND the password is correct then allow the login
SERVER: Everything checks out. You can start playing.
CLIENT shows the game GUI and normal play begins.
I'm going to use Aoi's routine when I start writing the networking stuff. Graphmasturs idea is the best for now, I think. (let's keep it simple, after all).
For user save files: I am doing everything with serialization. (which incorporates everything)
This checking for user-is-logged-on-or-not will only be necessary when I get to multiplayer.
It's not that easy… (you would have to keep an extremely large user database, if it ever gets popular (stress on if))
Anyway, it's resolved by now. I have a class LocalManager with a method getLocalUser() and it does just fine.
(I have a User class too, of course)
The combat engine is almost ready for testing. Just need to work away a silly NullPointerException (of which I don't the reason, grrrr), and finish the rest of the GUI, then I can test it out.
I don't have it at hand here (it's on my own PC), but I'll post it ASAP.
Funny detail: the classes described in one of my posts in october/november are removed by now :) figured out I didn't need them.
I gave it a rest. I'm writing a chat program now. (that's fun too)
Why are you quitting? This project would have been great. Did you have some bugs or what?
He's not quitting he's giving it a break I've done it before usually when you come back your ideas are nice a fresh.