Supercell.Magic icon indicating copy to clipboard operation
Supercell.Magic copied to clipboard

Building

Open MathieuARS opened this issue 5 years ago • 10 comments

I can find any project that can be build without any errors....

https://i.imgur.com/CqAx8MH.png

MathieuARS avatar Jan 21 '20 18:01 MathieuARS

Apply the changes from here #3

justdimaa avatar Jan 22 '20 00:01 justdimaa

Still an error..

https://i.imgur.com/zuYTBvy.png

MathieuARS avatar Jan 23 '20 02:01 MathieuARS

Replace

LogicDataTables.GetIntegerValue("StealLimitMid", 0);

with

this.GetIntegerValue("StealLimitMid", 0);

justdimaa avatar Jan 23 '20 17:01 justdimaa

can you give already compiled server, please

MrVitalikS avatar Jan 23 '20 18:01 MrVitalikS

Now i have this error on the start.bat cmd

https://i.imgur.com/kCbiR0c.png

MathieuARS avatar Jan 23 '20 18:01 MathieuARS

You have to start a local webserver create a supercell folder and copy the files from the directory Supercell.Magic-master\www into the directory. You should be able to access http://127.0.0.1/supercell/environment.json and see a config then. When you will start the start.bat you will face another problem or two. You need to provide the game assets for the server. Download the Clash of Clans APK 9.256.20, use WinRAR or similar to open it. There you will see an assets folder. Copy it into your webserver directory. Also don't forget to set up a couchbase server and a redis server. When you set up the couchbase server you either have to use the credentials given in the environment.json or you use your own credentials and replace them in the file. Once you are logged in, head over to Buckets and create the following buckets: magic-players, magic-admin, magic-alliances, magic-streams, magic-seasons

If you want to use docker compose for it, create a docker compose file where the start.bat is located and copy the code below. I have used the Supercell.Magic-master\www directory as the main directory for the webserver. To access the couchbase server: http://localhost:8091/ Supercell.Magic-master\docker-compose.yaml

version: '3'

services:
    webserver:
        image: nginx:alpine
        restart: unless-stopped
        tty: true
        ports:
            - "80:80"
        volumes:
            - ./www/:/var/www
            - ./docker/nginx/conf.d/:/etc/nginx/conf.d/
    couchserver:
        image: couchbase:community-6.0.0
        restart: unless-stopped
        ports:
            - "8091:8091"
        volumes:
            - couchbasedb:/opt/couchbase/var
    redisserver:
        image: redis:alpine3.11
        restart: unless-stopped
        ports:
            - "6379:6379"
        volumes:
            - redisdb:/data

volumes:
    couchbasedb:
    redisdb:

Supercell.Magic-master\docker\nginx\conf.d\app.conf

server {
    listen 80;
    error_log  /var/log/nginx/error.log;
    access_log /var/log/nginx/access.log;
    root /var/www/;
}

justdimaa avatar Jan 23 '20 23:01 justdimaa

can you please share the compiled server. I got me error with .Net

MrVitalikS avatar Jan 24 '20 05:01 MrVitalikS

i still have that error:

https://i.imgur.com/DiDeh2r.png

MathieuARS avatar Jan 25 '20 23:01 MathieuARS

i still have that error:

https://i.imgur.com/DiDeh2r.png

Also have this error, not sure how to fix it

z0mbieslayer avatar Mar 28 '21 21:03 z0mbieslayer