Skip to content
This repository has been archived by the owner on Feb 13, 2018. It is now read-only.

Connecting Issue #106

Open
loluca123 opened this issue Aug 27, 2017 · 1 comment
Open

Connecting Issue #106

loluca123 opened this issue Aug 27, 2017 · 1 comment

Comments

@loluca123
Copy link

Good Day,
I want to use the CocSharp, but it doesnt really works for me. Also i got a few questions, i hope there is somebody who can help me.

  1. When i build the whole Solution in Microsoft Visual Studio it will throw an error: ionic, mysql cant be found or smth like this. I updated all the nuget packages from the Solution, so i fixed this.

  2. The CocSharp.Proxy throw an error too, but i dont need a proxy, only the server. But if its important, the error is like: cant find 'keyPair'. I just added a declaration of the element, so that the Build will work.

  3. After succesfully Buildet the solution (before i edited the port from 9339 to 9229, because im running the ucs server also) I've started my server.
    At first it downloads all the assets from the server (i didnt changed that) and after that, it starts on port 9229, great.
    I've tried to join the Server with 1. a patched apk 8.709.16 with my server and my port in it. 2. The original 8.709.2, patched the libg.so with the 8.709.2 key and edited my dns and port.
    And on all these tries ive got the same error:
    The app starts, download the latest patch, restarts, loads to 100% and the stucks at 100%, after a few seconds "login failed.

On the very first try i came the farest to 100% loading and then the game starts and i should type in my name, but then Connection Lost. After reopening the App it tells me i have to clear app data (i also checked the database at this step, but it seems everything to be ok). So i deleted the AppData, reopen the app, it downloads the patch, restarts succesfully, loads to 100% stops, and tell me "login failed" or "connection lost".
I tried to delete and Build CocSharp.Server again. After deleting all files and rebuild the cocsharp.server and reinstalling the app, i came again as far as on the first time. It tells me i can give my character a name (which is not working) but it stops before the name saved and tells me again connection lost. (1:1 same story like at the beginning.
Everytime the connecting get lost, there is before a "keepalivereq/keepaliveresponse" or "OwnHomeDataMessage"

Questions:

How can i succesfully run my Server? How can i solve this issue?

How does the Patch Server works? What is the master_branch? Why i cant do it with a file hosting site like hostinger? Why only a few files will be downloaded to the device when it connects to the server, how to add more?

Is it possible to run Coc 9.x succesfully on this server? how can i do this and what is needed for it? Do i need the right keys of the new version or is it only important for the proxy?

If everything works, how can i make the global chat one for all countries?

Thanks for reading, please help me if you can,
Sincerly Luca Tiziani

@FICTURE7
Copy link
Owner

FICTURE7 commented Aug 28, 2017

Hi, I would not recommend using the latest commit labeled 'Breaking stuff' because it breaks stuff, I'd suggest that you use the commit before.

Don't forget that also need to setup MySQL with the proper tables and stuff.

The patching server is basically an HTTP server serving files such as *.csv, *.sc and other assets used by the game client. When the server starts it downloads the same assets from the patching server so that the server and the client uses the same *.csv files and therefore avoid having issues related to mismatched *.csv. The reason the client downloads only a few files is because only a few files differs from its local files, it would be a waste of time to download every assets. You can configure patching in the server config file.

I also stopped maintaining CoCSharp, so don't expect a 9.x.x support.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants