[Release] Super-Basic Server Base

07/24/2011 03:00 .Kinshi#1
Hey guys, I started a new Conquer server a little while ago and I figured I could release what I've gotten so far so aspiring coders can have a base to work with.
This is super basic, you can login and that's it. Doesn't have any functionality other than that.
It works with the latest version of Conquer.

If anyone's interested in using this and coding with it I can release more as I code it.

How to set up:
  • REQUIRES: Visual Studio 2010, [Only registered and activated users can see links. Click Here To Register...], [Only registered and activated users can see links. Click Here To Register...]
  • Download both the attachments, extract them where you like.
  • Setup the database.sql file with Xampp
  • Open KinConquer.sln with Visual Studio 2010
  • In both projects (KinConquer_AUTH and KinConquer_GAME) go to the Database.cs file
  • Edit following line with your database info:
    Code:
    base("localhost", "conquer", "kinshi", "vp3XsqmdGdqjFNAt", true)
  • Remember to do this for both Database.cs files.
  • In the project KinConquer_AUTH go to Variables.cs
  • Edit the string variable GameIP to the IP of your game server
  • By default it connects on ports 9960 and 5816 for auth and game respectively
  • Ports can be changed in both Variable.cs files

Newest Direct Download: [Only registered and activated users can see links. Click Here To Register...]

Subversion: [Only registered and activated users can see links. Click Here To Register...]

New features & Bug Fixes:
  • Aug 14, 2011
  • Fixed saving to database
  • Base for spells and proficiencies
  • Base for attack calculations
  • Aug 11, 2011
  • Added screen class
  • Added inventory and equipment
  • July 29, 2011
  • Basic screen code
  • Added some packets
  • July 24, 2011
  • Login Issue fixed
  • Character Creation fixed
07/24/2011 03:21 djneo31#2
hello, you are being very nice to share your work, congratulations very good, we need new projects to learn more thanks! :D :D :handsdown: :handsdown:
07/24/2011 03:25 BaussHacker#3
Looking through it, it gave me some ideas.
07/24/2011 03:44 .Kinshi#4
Added the SQL database i use for ease :)
07/24/2011 10:27 hady#5
thank you for that base But you need to tell the very smart guys that this will work with 5500+ Cuz they will ask you What Patch does this work with this (It works with the latest version of Conquer) and it do not work with 5513
-------------
i don't know what is wrong my way of setting the source or the loader that i am using , i think that nullable 's loader do not work on the 5500+ cuz of the new server they added , if i am wrong plz help me
-------------
sorry but can you help me make it work , i am using 5816 , 5560 for the ports , using 192.168.1.3 for the ip , to log in i am using 127.0.0.1 in the client , using wamp ,and your data base what is massing ?
07/24/2011 10:42 exorcismman#6
at auth its says when u login in the game unhandlepocket 1086 and in the game its stay at login to accountserver only :) can u tell what wrong with the login or at auth
07/24/2011 13:12 chickmagnet#7
Quote:
Originally Posted by hady View Post
thank you for that base But you need to tell the very smart guys that this will work with 5500+ Cuz they will ask you What Patch does this work with this (It works with the latest version of Conquer) and it do not work with 5513
-------------
i don't know what is wrong my way of setting the source or the loader that i am using , i think that nullable 's loader do not work on the 5500+ cuz of the new server they added , if i am wrong plz help me
Quote:
Originally Posted by exorcismman View Post
at auth its says when u login in the game unhandlepocket 1086 and in the game its stay at login to accountserver only :) can u tell what wrong with the login or at auth
nullables loader should work on any v-er right now i use it on ver 5512

and that 1086 should be 1060 if im not mistakin
07/24/2011 13:31 hady#8
Quote:
Originally Posted by chickmagnet View Post
and that 1086 should be 1060 if i am not mistaken
yeh from 5385 it is 1060 and the source is set to it in Delegates.cs
i will try to use impulse's source to login the 5500 and if it didn't work i will kill my self i got it working up to 5395

---------------------------
i am using 5.1.53
07/24/2011 13:58 chickmagnet#9
wait which MySQL version should i use coz im gettin this silly MySQL version error

[Only registered and activated users can see links. Click Here To Register...]
07/24/2011 21:16 .Kinshi#10
It works with the latest Conquer (IE: 5513)

Quote:
Originally Posted by exorcismman View Post
at auth its says when u login in the game unhandlepocket 1086 and in the game its stay at login to accountserver only :) can u tell what wrong with the login or at auth
What version of Conquer are you using?

Quote:
Originally Posted by chickmagnet View Post
wait which MySQL version should i use coz im gettin this silly MySQL version error
You got that while trying to make a character right?
Go to Packets->Handles->NewHero.cs, look for:
Code:
Program.Database.ExecuteNonQuery("INSERT INTO hero ...
Replace that whole void with:
Code:
                                    Program.Database.ExecuteNonQuery("INSERT INTO hero (id, name, transtype, avatar, body, hairstyle, " +
                                        "level, mapid, x, y, hitpoints, firstclass, strength, agility, vitality, spirit) VALUES (" +
                                        Client.Identifier + ", '" + Packet->CharacterName + "', 1, " + Avatar + ", " + Packet->Mesh + ", " +
                                        Hair + ", 1, 1010, 60, 109, 0, " + Packet->Job + ", " + str + ", " + agi + ", " +
                                        vit + "," + spi + ")");
And I just use Xampp :P


EDIT:
Fixed a login issue and character creation ;)
07/24/2011 22:08 The-Seeker#11
Thanks ...
07/24/2011 23:00 Yup Stigs#12
I like it! (y)
07/25/2011 03:20 .Kinshi#13
Updated the source, fixed a few little things. The base should be great to work with now.
If you're using this to code with let me know :)

I'll update again once I get more done.

Should i make an SVN for this?
07/25/2011 03:24 chickmagnet#14
Quote:
Originally Posted by .Kinshi View Post
Updated the source, fixed a few little things. The base should be great to work with now.
If you're using this to code with let me know :)

I'll update again once I get more done.

Should i make an SVN for this?
ye u should and instead of havin to keep reuploadin the whole thing u can do like elitecoemu and just do files at a time
07/25/2011 03:43 rockymiperro#15
hey men look this xDD dont happend nothing jeje what is my error here?