WarRock Private server error

03/09/2013 20:02 darkraptor4#1
Hello everyone

I recently came across some old WarRock private server files published by FelixFaust/Milkax3. It seems to be an "old" AlterWar project. Searching a little I arrived here and so I´m asking you guys.

Before asking anything here I tried to get everything working myself. Without a single idea of mysql or VB I managed to create a working database (called wremu) and to launch the executable files of the private server.

I have modified hosts file like this:

127.0.0.1 login.warrock.net

and I setup my server.ini like this:


The first thing I noticed when I finally managed to get everything working is that the server was full (¿?) and the name I had set in the .ini file wasn´t the name of the server

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

When I try to connect to the server, it says the server is full. I have downloaded visual studio but although I´m able to open the project file, I can´t rebuild the .exe since some stuff is missing.

Is it my fault or the files are not working?

Thanks in advance.

PD: Ok, I know im a noob when it comes to coding and so on, but I´m willing to learn how to fix this (there is no need to anyone to do it for me). I just need a clue of what´s happening.
03/09/2013 23:11 Nullpointer1337#2
i guess your problem is: you have the port instead of the userlimit (the block) in your serverlist packet
03/09/2013 23:13 Sleutel#3
Because its made for chapter 2+
03/09/2013 23:17 Nullpointer1337#4
Quote:
Originally Posted by Sleutel View Post
Because its made for chapter 2+
uhm not sure what shit i just made there... it WAS working *for the moment*. with lots of bugs. my advice: don't use these files.
03/09/2013 23:22 darkraptor4#5
First of all thanks for your answer Nullpointer1337 and Sleuter.

You recommend me not to use these files but right now they are the best sources I found. So until something better becames public I believe I´ll have to stick to this.

Sleutel: so the files are made for chapter 2 isn´t it?. Well, I thought it would work with chapter 1 as well. Would it work if I used chapter 2 client?

Thanks again.

EDIT: While downloading a chapter 2 client I wanted to test Nullpointer1337 solution. I swap the port and LIMIT values so that LIMIT is 5330 and PORT is 32 and guess what: I could enter the server!. The problem is that when Im about to choose game mode (CQC, UO...) I get a connection error and the game takes me back to the log screen.

[Only registered and activated users can see links. Click Here To Register...]
03/09/2013 23:41 Nullpointer1337#6
bad serverfiles.
you dont have to download ch2 client. ill give you my old cp1 serverfiles. (not working at all but still better)

[Only registered and activated users can see links. Click Here To Register...]
files: see attachment
03/10/2013 00:03 darkraptor4#7
That´s very kind of you Nullpointer. I downloaded them and tested them out.

First thing I did was to create another db called wremu2 and I used the SQL script to generate the necessary tables.

Second thing I noticed is that PatchServer uses another database (or at least, the default .ini file was pointing to another database), but I didn´t find any sql script. I used the same database (wremu2) and tried to launch it but I couldn´t. The .exe crashed. I tried to debug it with visualstudio 2010 and It seems to point to mysqldata not being there. I tried to use Loginserver mysql.data with no results.

As I wasn´t able to launch patchserver I tried to launch game server (which executed succesfully) and created a new account using the mysql manager. I avoided WRupdater.exe (as the patch server wasn´t working) by using -hstart with WarRock.exe

When I wanted to log, I got a wrong password error. I have checked and checked and I´m sure I´m typing it correctly. Does the server use some kind of password encryption or is there anything I have missed?

Sorry If I ask a lot of questions but I´m used to cod4 modding (where I am very skilled) not to WarRock private server and stuff xD.

EDIT: After a few hours I managed to get almost everything working. I copied mysql.data from gameserver to patchserver so that now it works fine. Now I can log in and create a room but when I shoot a friend I get an error. It says something about me trying to use OPK.
03/10/2013 12:20 Nullpointer1337#8
Quote:
Originally Posted by darkraptor4 View Post
It says something about me trying to use OPK.
yeah that was my fail.. somewhere in roomdatahandler should be the damage subtype. remove dat "opk check" cuz that was a noob-try to scan for opk (tought these blocks are the player position)
03/10/2013 12:30 darkraptor4#9
I commented out those lines (cod4 scripting knowledge is useful at last xD) using a ' before the lines


and tried to compile gameserver again using Visual Studio 2010. The problem is that I get about 20 errors when I try to build the solution and gameserver.exe is not compiled. Is it my fault? Am I missing something? Or are there some raw files missing?

Thanks a lot and sorry for the questions
03/10/2013 19:05 Nullpointer1337#10
uhm
could you compile it WITH these lines?
03/10/2013 19:13 darkraptor4#11
I´m sorry. I had just sent you a pm. I tried to compile stock files without a single modification and I get the same errors.

I´d better explain the steps I am following:

1. Open VB studio 2010.
2. Open a project: GameServer.vbproject
3. Build Solution.

I get 26 warning and 21 errors.

Here the errors:


I´m sorry to keep bothering you but I´d really appreciate some light here.

Thanks in advance.
03/10/2013 22:53 Nullpointer1337#12
add a reference to MySql.Data.dll .
Then go to each Server.vb and look for the part of server initialisation (new Server()): Add a parameter: Port. GameServer: 5340, LoginServer: 5330. You may delete PatchServer, this is actually senseless :)
04/08/2013 00:50 windowsxp925#13
#request thanks :)
@darkraptor4 how do you manage to fix the invalid password ??
@Nullpointer1337
08/15/2013 06:47 3dVision#14
Sorry for bumping.. but how'd you fix the "invalid password" and "exceeded maximum capacity" problem? :)