Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 17:37

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Java] Foxxy Dialogue Creator - NPC Dialogue Creator for Conquer Online

Discussion on [Java] Foxxy Dialogue Creator - NPC Dialogue Creator for Conquer Online within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
xBlackPlagu3x's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 286
Received Thanks: 71
[Java] Foxxy Dialogue Creator - NPC Dialogue Creator for Conquer Online

This is my latest project I've been working on. There is close to like, no Java development of any kind, so I thought this might help give it a little kick start.

This is fully documented code, and it's pretty well written and the comments explain why if something could have been written better, why I didn't do it. Basically, I wrote it as basic as I could using the best methods I knew how so that people can understand it if they're new.

So yeah, go ahead and give it a look if you'd like. This project was created using IntelliJ IDEA, but you can find the .java files at: Foxxy Dialogue Creator\src\ and can edit/view them with Notepad++.

If you're going to be doing any Java development though, I highly recommend you download IntelliJ or Eclipse. Both are free.

Enjoy:

Edit: Inside you will find a .bat file which is used to actually start the program in the CMD prompt. If you right-click > Edit the file, you can view it in notepad and see that it's totally harmless.

Edit2: Here is the GitHub repository for it. All future changes will only be done with the repository:

Updates:
I have now included packages, inheritance, and other good things to the source.

As for the GitHub, I have now created a devel (short for development) branch. Any work I do nightly will go there, so you can always see updated code, however, it may not be correct or finished. The master branch will have the "finished" release.
xBlackPlagu3x is offline  
Old 03/28/2013, 14:22   #2
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
One thing:
"In Java, 127 is the maximum size of a byte."

While that is correct the reason is that Java does not support unsigned integers which is lame IMO.
Super Aids is offline  
Old 03/28/2013, 17:07   #3
 
xBlackPlagu3x's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 286
Received Thanks: 71
Quote:
Originally Posted by Super Aids View Post
One thing:
"In Java, 127 is the maximum size of a byte."

While that is correct the reason is that Java does not support unsigned integers which is lame IMO.
I agree with this so so much. Also, in the socket system when you write a packet to the server, your byte array is in big endian or something weird like that (pretty sure it's big endian), whereas C# is little-endian. So trying to get packet data is a bit different unless I code a converter, and I don't know the first thing about bit shifting, so that's out.

Therefore, the socket system I'm working on is a bit different and can only be used for my client application. My client writes all of the data to a char array, since Java sockets support strings over any thing, and then my server splits up the packet and gets all of the data based on packet type. The packet type is so I know where in the char array to get my strings. Then it's just a case of converting the strings to bytes, ints, etc, which is easy enough.
xBlackPlagu3x is offline  
Old 03/28/2013, 17:44   #4
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Java is garbage.

C# is a better Java, true story.

Comparison of C Sharp and Java - Wikipedia, the free encyclopedia
Super Aids is offline  
Thanks
1 User
Reply




All times are GMT +1. The time now is 17:38.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.