• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

How to compile otcv8botserver

Gesior.pl

Mega Noob&LOL 2012
Senator
Joined
Sep 18, 2007
Messages
2,955
Solutions
98
Reaction score
3,351
Location
Poland
GitHub
gesior
Official bot server for OTCv8 bot.************:8000 is offline:
If you want to keep using bot with your friends, you got to create own host:
Temporary solution: use my server arm.skalski.pro:8000

This software has 3 years and requires 2 libraries with unspecified versions.
I found which versions are compatible with otcv8botserver:
  • uWebSockets: 18.9.0
  • uSockets: 0.5.0

How to download and compile server and required libraries
OS:
Ubuntu 20.04
Install:
Code:
apt install zlib1g-dev wget unzip build-essential

Download & compile:
Code:
wget https://github.com/OTCv8/otcv8botserver/archive/refs/heads/master.zip
unzip master.zip
mv otcv8botserver-master otcv8botserver
cd otcv8botserver
wget https://raw.githubusercontent.com/nlohmann/json/develop/single_include/nlohmann/json.hpp
wget https://github.com/uNetworking/uWebSockets/archive/refs/tags/v18.9.0.zip
unzip v18.9.0.zip
mv uWebSockets-18.9.0 uWebSockets
cd uWebSockets
rm -rf uSockets
wget https://github.com/uNetworking/uSockets/archive/refs/tags/v0.5.0.zip
unzip v0.5.0.zip
mv uSockets-0.5.0 uSockets
make
cd ..
g++ main.cpp -std=c++17 -Ofast uWebSockets/uSockets/uSockets.a -IuWebSockets/src -IuWebSockets/uSockets/src -lz -lpthread -o botserver
It will create botserver file, which you must run on screen.

If you want to run it inside docker:
Dockerfile
Code:
FROM ubuntu:20.04

RUN apt-get update

ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/London

RUN apt-get -y install tzdata

RUN apt-get -y install zlib1g-dev wget unzip build-essential

RUN cd /home/ && wget https://github.com/OTCv8/otcv8botserver/archive/refs/heads/master.zip
RUN cd /home/ && unzip master.zip
RUN cd /home/ && mv otcv8botserver-master otcv8botserver
RUN cd /home/otcv8botserver && wget https://raw.githubusercontent.com/nlohmann/json/develop/single_include/nlohmann/json.hpp
RUN cd /home/otcv8botserver && wget https://github.com/uNetworking/uWebSockets/archive/refs/tags/v18.9.0.zip
RUN cd /home/otcv8botserver && unzip v18.9.0.zip && rm v18.9.0.zip
RUN cd /home/otcv8botserver && mv uWebSockets-18.9.0 uWebSockets
RUN cd /home/otcv8botserver/uWebSockets && rm -rf uSockets
RUN cd /home/otcv8botserver/uWebSockets && wget https://github.com/uNetworking/uSockets/archive/refs/tags/v0.5.0.zip
RUN cd /home/otcv8botserver/uWebSockets && unzip v0.5.0.zip && rm v0.5.0.zip
RUN cd /home/otcv8botserver/uWebSockets && mv uSockets-0.5.0 uSockets
RUN cd /home/otcv8botserver/uWebSockets && make
RUN cd /home/otcv8botserver && g++ main.cpp -std=c++17 -Ofast uWebSockets/uSockets/uSockets.a -IuWebSockets/src -IuWebSockets/uSockets/src -lz -lpthread -o botserver

ENTRYPOINT ["/home/otcv8botserver/botserver"]

EDIT:
Uploaded server with all required libraries included. In case authors of these libraries decide to remove them from github, we got working version. Instruction of compilation for files from .zip:
Bash:
apt install zlib1g-dev build-essential
cd uWebSockets
make
cd ..
g++ main.cpp -std=c++17 -Ofast uWebSockets/uSockets/uSockets.a -IuWebSockets/src -IuWebSockets/uSockets/src -lz -lpthread -o botserver
 

Attachments

  • otcv8botserver-with-libraries.zip
    523.8 KB · Views: 18 · VirusTotal
Last edited:
what does this do?
So yeah - I've noticed that OTC says disconnected from Bot Server now but what exactly was it's purpose as it seems things still operate fine.

Just want to make sure everything is in check and I don't absolutely need this before launching my new season

Edit: I've updated the server link to yours and the errors gone; good enough for me! xD
 
Last edited:
Back
Top