Unified client project, lets kill the d/c bugs

Joined
Jun 29, 2008
Messages
5,021
Reaction score
999
This topic got me thinking.

http://forum.ragezone.com/f451/slot-values-568644/

For those of you that don't know (SHAME on you) the client enc files have a load of data about items, quests and almost everything else in the game. The server does too. If the data the two have don't match, exactly, then you get d/c bugs. 4th door kick you out? Your enc files suck. Buying skills, potions or crafting disconnect you? Your enc files suck. Depending on the language and age of your client it probably doesn't match the server unless you use saur0n's or my patch and even then it is not perfect.

All of your critical rates displaying wrong? Premium bonuses? It's almost always your client.

Right now i am going through revisions of the official enc files to find ones that have more accurate data than ours, are newer and actually work (the latest won't load). I got to thinking that anybody can test enc files if they knew how so why am i doing all the work? Either you don't know or you are lazy. Lets see xP

Most cabalmain.exes complain if you don't use the exact enc files it was designed for as it checks them and complains if they are "corrupt" (read: not the right version). Saur0n's client synch exe doesn't do this check and can load ANY enc files that are in the older format. You can replace files right?

Look in /etc/cabal/docs/clientfiles for my server files or in saur0n's patch (http://forum.ragezone.com/f459/sync-server-client-457455/) for the cabalmain.exe that can do this.

Find a full set of official files from around the age of our servers (around March 2008 or earlier for EU/US i think). Look at saur0n's or my patch files for a list of what you need.

Replace the cabal.enc in your client and see if it will load. If it does replace the rest to see how the data looks. Check critical rates, proces and anything you know is currently wrong. Expect many many crashes whilst testing (trust me :/).

If you find a set closer to the proper values then post them along with the server version (EU/US/BR/CH etc), the date they are from (very important!) and what things you checked (values included).

Why am i doing this again?

Simple. If we find the best enc files we can align the server data to them and get rid of d/c bugs for good because our current ones suck and i'm tired of trying to support 90 different variations. I want non-english enc files too as we can use a combination of the different files to support non-english languages (i have already done some testing with Lost-Spirit). Once we all agree on a specific set for each language i can then decode them and post the decoded versions and from there we can align the server. If everybody is using the _exact_ files we know the contents of i (and other people) can fix server bugs easily. If you all use a bunch of random stuff then you will always have crashes and nobody can help you.

Maybe some of you can learn a little about how enc files work too ;)

If enough people with some olly skill are interested i can show you how to dump the decoded enc files from memory. I won't do a post before anyone asks as doing it is way beyond 99% of people here and i will spend months teaching olly to 9 year olds with delusions of hackery. That isn't what i'm trying to do here.

Files i am not interested in, at all. language.enc and kloc.enc unless it is smaller than 530bytes. Both will be missing from most manual patches anyway.

Before anybody asks this will NOT get pets working, nor Chaos Arena and probably not what you are about to ask either. This is about fixing bugs not magical new features.

EDIT: OGPlanet have updated their client installer and the current one will cause problems. Use the "Jan 30th 2008" client by searching their mirror sites. The gamershell mirror is below.


My current synch patch ->
 
Last edited:
chumpy i do not think that this can mean gold to us. Example: ogplanet`s new patches have a client checksum check. If you look in the dumps you will realize that newer enc files will never work with our cabalmains. And newer mains won`t work with our server due to the sync problems.
The only thing we can do is ask est soft for a spare copy of server`s source code/

cypher.
 
Yes this is the problem. We need to find older enc files with the right values as we can use any older format enc files with that cabalmain. As the new format enc files won't work with that one cabalmain with the enc check disabled the best we can do is find the most compatible combinations or add the hex to new cabalmains. Most of the stuff that crashes people is in cabal.enc but find a compatible one and a few translated *msg.enc where the tables match up and we could have a reasonable client.

We need a standard patch is the point and i don't think saur0n's files are the best we can do. Different combinations give me varied results and if i have more files to work with i think i can do something special ;)
 
Let me think, CabalEU provide link for manual patches, since the client get's stuck most of the time, I'll try to find that thing. EP2 came in eu at the end of february last year. The problem is that version was a bit bugged, but the slot values were right hmm
 
EU will cause even more compability crashes.
Using the whole set of enc files yes, but what i am thinking is a hybrid much like saur0n's. We could use, say a cabal.enc from one language (most of the quest and item data in in it) and just the actual language enc files from EU/US. Saur0n's patch was a hybrid of a chinese cabal.enc 9and one or two other files i think) and US *msg.encs and i think we will get the best all round result following the same pattern. This is why i want the best encs from each territory so we can compare and look for good matches.

Chumpy check your pms :/

I have seen the PM. I have been a bit sick the past few days and have not really done much which is why i have no responded yet. I'm feeling much better today though :)
 
A lot of the files can be mixed. Try adding a chinese cabal.enc and see. Almost everything that needs aligning with is in cabal.enc (other than cash shop and premium stuff) and i haven't used a US klog.enc for ages. I think only the actual display text is linked that way and that is the only part we need to change (for language patches).

What we need is a bunch of different decoded enc files we can study rather than just the ones saur0n posted. Most people think the enc files he posted are based on his synch patch. Guess what?
 
Ok, since nobody has any suggestions for sets to examine i'll just pick some. EU v367 and US 2008 03 03. Why am i picking these? Well the Chaos Arena signpost was added in v379 on the EU servers and in the 2008 07 08 US manual patch. As we don't have Chaos Arena it makes sense to use the latest before it was added. US for people who like the word "Forcium" and EU for those that think americans should stop changing the name/spelling of everything just because they can :P

The actual enc files plus decoded copies:

EU v367 ->

US 2008 03 03 - >

Saur0n's synch patch encs ->
(does not contain caz_msg.enc as it uses the standard US one, also DOES contain the Chaos Arena sign).

And some PT encs of unknown version as Lost-Spirit wanted some and i need to study non-english ones anyway. ->

My thinking is simple:

script.enc
cabal.enc
caz.enc
cont.enc

These are the files that contain the actual game data. These are what cause our d/c bugs when the server data doesn't match.

*_msg.enc and help.enc contain the actual text displayed by the client (UI, quest text etc).

If we can all settle on one specific set of the data files we can align the server to it. We can then switch the *_msg.enc and help.enc to other versions depending on the language you want, forcium/mithril etc. As long as the message numbers in these files match up with the data files what is actually in the message strings doesn't matter.
 
Ok here is an example. I have rebuilt my client patch based on these US files and used the EU language translation. Also included are the files needed to align the server.



I have tested basic shops and several levels of crafting and it all seems to work ok. The MF shop is also working.

+1 but let's not let this start a "War of the Nations", chumpy :P Being half-English and half-American would kinda limit my participation in such an event XD

True. That is why i have included the US translation as well for those that prefer it. Just replace cabal_msg.enc with cabal_msg.enc.us ;)

EDIT: Apparently i did not add the US translation. Here it is:
 
Last edited:
Ok here is an example. I have rebuilt my client patch based on these US files and used the EU language translation. Also included are the files needed to align the server.



I have tested basic shops and several levels of crafting and it all seems to work ok. The MF shop is also working.

I see those newer files show amp slot 7% and crit dmg slot 10%, can it be synced in server side as well? if yes, can you point me in right direction :)
 
I'm still trying to find out where this is. I think it's buried on core.scp somewhere but i have not found it yet. Here are the force codes i am searching for if that helps anyone.

force1="HP UP"
force2="MP UP"
force3="Attack UP"
force4="Magic UP"
force5="Defense UP"
force6="Attack Rating UP"
force7="Defense Rating UP"
force8="Critical DMG UP"
force9="Critical Rate UP"
force10="Min DMG UP"
force11="Min DMG UP"
force12="HP Absorb Limit UP"
force13="MP Absorb Limit UP"
force14="Attack UP"
force15="Magic UP"
force16="Critical Rate Limit UP"
force17="Attack Rating UP"
force18="Critical DMG UP"
force19="Critical Rate UP"
force20="Sword Amp. UP"
force21="Sword Amp. UP"
force22="Magic Amp. UP"
force23="Magic Amp. UP"
force24="HP Absorb"
force25="MP Absorb"
force26="Evasion"
force27="HP Regen."
force28="MP Regen."
force29="Add. DMG"
force30="Add. DMG"
force31="Skill EXP UP"
force32="Skill EXP UP"
force33="Alz Drop UP"
force34="Alz Drop UP"
force35="STR UP"
force36="INT UP"
force37="DEX UP"
force38="All STAT UP"
force39="1 Slot Drop Rate UP"
force40="1 Slot Drop Rate UP"
force41="2 Slot Drop Rate UP"
force42="2 Slot Drop Rate UP"
force43="LIGHTNING DMG"
force44="FIRE DMG"
force45="POISON DMG"
force46="COLD DMG"
force47="LIGHTNING RES"
force48="FIRE RES"
force49="POISON RES"
force50="COLD RES"
force51="Enervation"
force52="Stun"
force53="Heal"
force54="Down"
force55="Knock back"
force56="Unmovable"
force57="Absorb Damage"
force58="Reflect Damage"
force59="Conditional Skill AMP (Sword_Rank 1)"
force60="Conditional Skill AMP (Sword_Rank 2)"
force61="Conditional Skill AMP (Sword_Rank 3)"
force62="Conditional Skill AMP (Sword_Rank 4)"
force63="Conditional Skill AMP (Magic_Rank 1)"
force64="Conditional Skill AMP (Magic_Rank 1)"
force65="Conditional Skill AMP (Magic_Rank 1)"
force66="Fortitude"
force67="Reflection Nerves"
force68="Volitional power "
force69="Fortune"
force70="Astral Buff Possibility UP"
force71="Astral Buff Number UP"
force72="Increase the Attack distnace"
force73="Turn off Astral Weapon"
force74="Strengthen Curse Skill"
force75="Debuff"
force76="Attack the Weak point"
force77="Flash Draw"
force78="SP Regen."
force79="Down SP Use"
force80="Attack"
force81="Intercept"
force82="Slip"
force83="Increase Aggro"
force84="SP Absorb UP"
force85="HP Down"
force86="MP Down"
force87="Regist Critical Rate"
force88="Regist Critical Damage"
force89="Resist unable to move"
force90="Resist Slip"
force91="Regist Down"
force92="Resist Knock Back"
force93="Resist Stun"
 
I am being very careful about it. I spent an entire day testing shops and crafting (2 of our worst problems) before i even thought about posting it. With the info i have now i can fix shop, craft and quest bugs pretty easily as long as everybody is using the same base patch. Once i figure out the format of core.scp i think i can align the critical rates etc too.

Stil, this is what testing is for and why it is in the dev section not releases ;)
 
Chumpy.....

i used you file server v2.5

i used client Cabalsea ......

Can you recoment to me what can i used EU v367 or US 2008 03 03

i want used Forcium name.....

patch client i used Saur0n's synch patch encs ....

Other quoestion this file inluded chaos arena or not .......

and other thing is PT encs of unknown version as Lost-Spirit for what ......must download and update or not ...


Thanks ....
 
I have never tried the cabalsea client so i don't know how well it will work (i use ogplanet). The patch may work fine though.

To have forcium look in the data folder and delete cabal_msg.enc and then rename cabal_msg.enc.us to cabal_msg.enc.

This patch doesn't include chaos area as making CA work would involve server files we don't have.

You ca ignore the PT enc files. They are specifically for Lost-Spirit or anyone else that wants to examine the files, they are't any use to use unless you have a Portuguese client.
 
Back