Jump to content
  • 0

Setting up and connection problems


kohakusan

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  09/22/12
  • Last Seen:  

Okay, I've been trying to setup a server for a couple days now and I keep running into lots of troubles... :sigh:

I have experience setting up and recompiling the server, but I've been "out of the business" for a while so there are quite a lot of new things I'm having trouble with.

My objective: Pre-Re local server.

I got 2 compiled versions with respective packetver edited on mmo.h for 20120410 and 20120618. And got the lua files from http://svn6.assembla...de/Lua_Project/

First, I got the rAthena 16792 revision from SVN, configured, recompiled and it's working just fine then I got kRO and my nightmare started...

I choose to use the 2012-04-10aRagexeRE and 2012-06-18aRagexeRE, for testing purposes.

Downloaded the lua files, made the diffs and grf using Weediff2012Pack_v2 with the diff generator, not actual .diff file. By now I basically tried every possible option in there for diff, mostly the "read data folder first" and "read lua before lub".

After running into coultess errors from lua like the "shadowtable.lua" error I somehow managed to make one of the 06-18 diffed work without any problem(I don't know which options I chose) while any other diff(04-10 or 06-18 with respective lua folder) I try making gives me this error:

Clipboard01_zpsfac57f39.jpg

After that, the game opens fine. I noticed this is related to the OptionInfo.lua inside the savedata folder and it doesn't give me any error if I delete it but when I open the game again it errors once more.

Second problem:

When trying to connect(even with the working 0618 one) I always get the 5011 error or the Rejected from server(30), the latter most of the time, especially on the working one.

My server windows don't show anything related to wrong packets or anything at all really, they simply show it disconnected:

Untitled_zpsf4dfea78.jpg

Btw I tried using both Data folder and .grf file with respective diff.

I don't know if I'm missing something about the packet version somewhere or something else, maybe mmo.h need something more for the 0618 to work since I think it's not supported yet...

Is it possible to be the lua files too?

mmo.h(and 20120618 for the other)

#ifndef PACKETVER
#define PACKETVER 20120410

packet_db.txt

//packet_db_ver: 25
packet_db_ver: default
------
//2012-04-10aRagexeRE
packet_ver: 30
0x01FD,15,repairitem,2
0x089C,26,friendslistadd,2
0x0885,5,hommenu,2:4
0x0961,36,storagepassword,0
0x0288,-1,cashshopbuy,4:8
0x091C,26,partyinvite2,2
0x094B,19,wanttoconnection,2:6:10:14:18
0x0369,7,actionrequest,2:6
0x083C,10,useskilltoid,2:4:6
0x0439,8,useitem,2:4
0x0945,-1,itemlistwindowselected,2:4:8
0x0815,-1,reqopenbuyingstore,2:4:8:9:89
0x0817,2,reqclosebuyingstore,0
0x0360,6,reqclickbuyingstore,2
0x0811,-1,reqtradebuyingstore,2:4:8:12
0x0819,-1,searchstoreinfo,2:4:5:9:13:14:15
0x0835,2,searchstoreinfonextpage,0
0x0838,12,searchstoreinfolistitemclick,2:6:10
0x0437,5,walktoxy,2
0x0886,6,ticksend,2
0x0871,5,changedir,2:4
0x0938,6,takeitem,2
0x0891,6,dropitem,2:4
0x086C,8,movetokafra,2:4
0x08A6,8,movefromkafra,2:4
0x0438,10,useskilltopos,2:4:6:8
0x0366,90,useskilltoposinfo,2:4:6:8:10
0x0889,6,getcharnamerequest,2
0x0884,6,solvecharname,2
0x08E5,41,bookingregreq,2:4	//Added to prevent disconnections
0x08E6,4
0x08E7,10,bookingsearchreq,2
0x08E8,-1
0x08E9,2,bookingdelreq,2
0x08EA,4
0x08EB,39,bookingupdatereq,2
0x08EC,73
0x08ED,43
0x08EE,6
0x08EF,6,bookingignorereq,2
0x08F0,6
0x08F1,6,bookingjoinpartyreq,2
0x08F2,36
0x08F3,-1
0x08F4,6
0x08F5,-1,bookingsummonmember,2:4
0x08F6,22
0x08F7,3
0x08F8,7
0x08F9,6
0x08FA,6
0x08FB,6,bookingcanceljoinparty,2
0x0907,5,moveitem,2:4
0x0908,5
0x08D7,28,battlegroundreg,2:4 //Added to prevent disconnections
0x08CF,10 //Amulet spirits
0x0977,14 //Monster HP Bar

Packet_db.txt(0618)

Since this one is not on the rAthena by default, I got on a thread somewhere, don't remember.

//2012-06-18aRagexeRE
0x0078,55
0x007c,44
0x00aa,9
0x00f3,-1,globalmessage,2:4
0x0193,2,closekafra,0
0x01a2,37
0x01fd,15,repairitem,2
0x0202,5,changedir,2:4
0x022c,65
0x022d,19,wanttoconnection,2:6:10:14:18
0x0281,-1,convertitem,2:4:8:12
0x0288,-1,npcpointshopbuy,2:4:8:10
0x0289,12
0x029b,80
0x035f,6,ticksend,2
0x0360,6,clickbuyingstorereq,2
0x0361,5,hommenu,4
0x0362,6,dropitem,2:4
0x0364,8,movefromkafra,2:4
0x0368,6,solvecharname,2
0x0369,7,actionrequest,2:6
0x0437,5,walktoxy,2
0x0438,10,useskilltopos,2:4:6:8
0x0439,8,useitem,2:4
0x07d9,268
0x07e4,6,takeitem,2
0x07ec,8,movetokafra,2:4
0x0802,26,partyinvite2,2
0x0815,-1,openbuyingstorereq,2:4:8:9:89
0x0817,2,closebuyingstorereq,0
0x083c,10,useskilltoid,2:4:6
0x0856,26,friendaddrequest,2
0x0940,-1,sellbuyingstorereq,2:4:8:12
0x096a,6,getcharnamerequest,2

And clientinfo.xml, tried using packetver 28, 29 and 30, changing it on packet_db.txt too, still nothing.

<?xml version="1.0" encoding="euc-kr" ?>
<clientinfo>
<desc>Ragnarok Client Information - Taiwan Version</desc>
<servicetype>korea</servicetype>
<servertype>sakray</servertype>
<connection>
	<display>MyRO</display>
	<desc>MyRO</desc>
	<balloon>1/1/1</balloon>
	<langtype>1</langtype>
	<version>30</version>
	<address>"MyIP"</address>
	<port>"myport"</port>
	<aid>
		<admin>2000000</admin>
	</aid>
	<loading>
		<image></image>
	</loading>
</connection>
<registrationweb></registrationweb>
</clientinfo>

kRO fully updated with rsu-kro-rag-lite and renewal.

Recompiled using Visual Studio 2012

EDIT: Okay, I noticed something, I still get the "Rejectect from Server(30)" or 5011 errors even with server offline, so I think it's basically client-side...

Edited by kohakusan
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

First, if you have an error message saying 'a nil value' that's a LUA/LUB error, make sure you put your LUA/LUB in the correct folder, (ex: C:\kRO\data\luafiles514\lua files)

Second, try to rediff your client.exe without "read data folder first" and "read lua before lub", and be sure to use "WDGSkipPacketHeaderObfuscation.dll" option from earthlingz.

Third, after you make changes to mmo.h, don't forget to recompile your server again.

Fourth, don't forget to edit your address IP and port in clientinfo.xml to match your server IP.

<address>"MyIP"</address>
<port>"myport"</port>

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  09/22/12
  • Last Seen:  

Ran out of patience and tried with yet another older Raxexe and it's ALMOST working...

I'm using 2012-03-07 now, changed everything to packtver=29 and mmo to 20120307, recompiled but map server says:

[info]:  clif_parse: Disconnecting session #3 with unknown packet version (p:0x
086a,l:19).

But it's there on packet_db:

//2012-03-07fRagexeRE
packet_ver:29
0x086A,19,wanttoconnection,2:6:10:14:18
0x0437,5,walktoxy,2
0x0887,6,ticksend,2
0x0890,5,changedir,2:4
0x0865,6,takeitem,2
0x02C4,6,dropitem,2:4
0x093B,8,movetokafra,2:4
0x0963,8,movefromkafra,2:4
0x0438,10,useskilltopos,2:4:6:8
0x0366,90,useskilltoposinfo,2:4:6:8:10
0x096A,6,getcharnamerequest,2
0x0368,6,solvecharname,2
0x0369,26,friendslistadd,2
0x0863,5,hommenu,4
0x0861,36,storagepassword,0
0x0929,26,partyinvite2,2
0x0885,7,actionrequest,2:6
0x0889,10,useskilltoid,2:4:6
0x0870,-1,itemlistwindowselected,2:4:8
0x0926,18,bookingregreq,2:4:6
0x0815,-1,reqopenbuyingstore,2:4:8:9:89
0x0817,2,reqclosebuyingstore,0
0x0360,6,reqclickbuyingstore,2
0x0811,-1,reqtradebuyingstore,2:4:8:12
0x0884,-1,searchstoreinfo,2:4:5:9:13:14:15
0x0835,2,searchstoreinfonextpage,0
0x0838,12,searchstoreinfolistitemclick,2:6:10
0x0439,8,useitem,2:4

Do I need to change something on clif.h or clif.c?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Use 2012-04-10, because it's the current latest stable client for rAthena.

There's no need to change clif.c / clif.h, what you need to edit are mmo.h and packet_db.txt

Use 'packet_db_ver: 30'

mmo.h: #define PACKETVER 20120307

Rediff your 2012-04-10 client without "read data folder first" and "read lua before lub".

And use this diff from earthlingz.

Don't run out of patience just from 4 hours trying..

I was taking almost a week to set up a working server & client /hum

But the most important thing is the learning process, painful but worthy in the end..

WDGSkipPacketHeaderObfuscation.rar

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  09/22/12
  • Last Seen:  

Thanks for helping, I managed to get it to work on 2012-03-07 only. It's fine for now though...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...