Compare commits
63 Commits
0.2.2
...
65a81ec4a1
Author | SHA1 | Date | |
---|---|---|---|
65a81ec4a1 | |||
ae708d9315 | |||
48ee253534 | |||
27108d629a | |||
6616009e92 | |||
1ada609020 | |||
21e028f186 | |||
175816c81d | |||
b15eb7f3fe | |||
3a8d9e38e8 | |||
4074c3b96a | |||
854fef68e8 | |||
cf66bb3310 | |||
254f6f6664 | |||
0072bc5e14 | |||
62f3635b86 | |||
2c37b2009d | |||
e0701ed5bd | |||
21381a4e3a | |||
ba44269071 | |||
f5ccb17736 | |||
bb52a57ffc | |||
8360d6939f | |||
1e362d8507 | |||
0a907f41d2 | |||
dbcabd7fa9 | |||
fcc2a9e4a0 | |||
12b6abf373 | |||
e1daa48366 | |||
83707434ee | |||
042414a499 | |||
68c7c4bc4f | |||
eafbee616f | |||
026cb861a8 | |||
1ba21fb1f9 | |||
8fede9a1df | |||
dfb3d08998 | |||
326c134f9e | |||
9b7536ee9a | |||
9056f6c6c6 | |||
8685b02fdc | |||
341bef9aba | |||
8a1acefeeb | |||
eacc808366 | |||
4a1460f36e | |||
aae9b169df | |||
dd74eafc24 | |||
d471d99a24 | |||
350fb0d424 | |||
869720f9e6 | |||
4fc612552a | |||
248205ae01 | |||
82317e6c4d | |||
847ab2ef89 | |||
ebc479b7df | |||
1ee687f269 | |||
d85ef28eac | |||
01cc27a7df | |||
72b495c03c | |||
0c86f802ca | |||
05a1406c7c | |||
00c5634c09 | |||
42079d56b7 |
@ -10,9 +10,12 @@ Dockerfile
|
|||||||
.gitkeep
|
.gitkeep
|
||||||
|
|
||||||
# Compiled quests
|
# Compiled quests
|
||||||
gamefiles/locale/english/quest/object/
|
gamefiles/data/quest/object/
|
||||||
gamefiles/locale/english/quest/pre_qc/
|
gamefiles/data/quest/pre_qc/
|
||||||
gamefiles/locale/english/quest/qc
|
gamefiles/data/quest/qc
|
||||||
|
|
||||||
# Test folder
|
# Test folder
|
||||||
test/
|
test/
|
||||||
|
|
||||||
|
# Built files
|
||||||
|
build/
|
6
.idea/encodings.xml
generated
6
.idea/encodings.xml
generated
@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="Encoding">
|
|
||||||
<file url="PROJECT" charset="EUC-KR" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"cmake.configureOnOpen": true
|
||||||
|
}
|
15
Dockerfile
15
Dockerfile
@ -1,10 +1,15 @@
|
|||||||
FROM ubuntu:latest as build
|
FROM ubuntu:22.04 as build
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Set up the CMake repository
|
||||||
|
RUN apt-get update && apt-get install -y ca-certificates gpg wget
|
||||||
|
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
|
||||||
|
RUN echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy main' | tee /etc/apt/sources.list.d/kitware.list >/dev/null
|
||||||
|
|
||||||
# Update the system and install various dependencies
|
# Update the system and install various dependencies
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y git cmake ninja-build build-essential tar curl zip unzip pkg-config autoconf python3 \
|
apt-get install -y git cmake ninja-build build-essential tar curl zip unzip pkg-config autoconf python3 \
|
||||||
libdevil-dev libncurses5-dev libbsd-dev
|
libdevil-dev libncurses5-dev libbsd-dev
|
||||||
|
|
||||||
# Arm specific
|
# Arm specific
|
||||||
ENV VCPKG_FORCE_SYSTEM_BINARIES=1
|
ENV VCPKG_FORCE_SYSTEM_BINARIES=1
|
||||||
@ -12,7 +17,7 @@ ENV VCPKG_FORCE_SYSTEM_BINARIES=1
|
|||||||
# Install vcpkg and the required libraries
|
# Install vcpkg and the required libraries
|
||||||
RUN git clone https://github.com/Microsoft/vcpkg.git
|
RUN git clone https://github.com/Microsoft/vcpkg.git
|
||||||
RUN bash ./vcpkg/bootstrap-vcpkg.sh
|
RUN bash ./vcpkg/bootstrap-vcpkg.sh
|
||||||
RUN ./vcpkg/vcpkg install boost-system cryptopp effolkronium-random libmysql libevent lzo fmt spdlog
|
RUN ./vcpkg/vcpkg install boost-system cryptopp effolkronium-random libmysql libevent lzo fmt spdlog argon2
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
@ -21,7 +26,7 @@ RUN mkdir build/
|
|||||||
RUN cd build && cmake -DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake ..
|
RUN cd build && cmake -DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake ..
|
||||||
RUN cd build && make -j $(nproc)
|
RUN cd build && make -j $(nproc)
|
||||||
|
|
||||||
FROM ubuntu:latest as app
|
FROM ubuntu:22.04 as app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y python2 libdevil-dev libbsd-dev && apt-get clean
|
RUN apt-get update && apt-get install -y python2 libdevil-dev libbsd-dev && apt-get clean
|
||||||
@ -35,7 +40,7 @@ COPY --from=build /app/build/src/quest/qc /bin/qc
|
|||||||
COPY ./gamefiles/ .
|
COPY ./gamefiles/ .
|
||||||
|
|
||||||
# Compile the quests
|
# Compile the quests
|
||||||
RUN cd /app/locale/english/quest && python2 make.py
|
RUN cd /app/data/quest && python2 make.py
|
||||||
|
|
||||||
# Symlink the configuration files
|
# Symlink the configuration files
|
||||||
RUN ln -s "./conf/CMD" "CMD"
|
RUN ln -s "./conf/CMD" "CMD"
|
||||||
|
@ -39,7 +39,7 @@ Install `vcpkg` according to the [lastest instructions](https://vcpkg.io/en/gett
|
|||||||
|
|
||||||
Build and install the required libraries:
|
Build and install the required libraries:
|
||||||
```shell
|
```shell
|
||||||
vcpkg install boost-system cryptopp effolkronium-random libmysql libevent lzo fmt spdlog
|
vcpkg install boost-system cryptopp effolkronium-random libmysql libevent lzo fmt spdlog argon2
|
||||||
```
|
```
|
||||||
|
|
||||||
Then, it's time to build your binaries. Your commands should look along the lines of:
|
Then, it's time to build your binaries. Your commands should look along the lines of:
|
||||||
@ -81,6 +81,7 @@ goodies you wish. Also, a lot of time.
|
|||||||
- Refactored macros to modern C++ functions.
|
- Refactored macros to modern C++ functions.
|
||||||
- Network settings are manually configurable through the `PUBLIC_IP`, `PUBLIC_BIND_IP`, `INTERNAL_IP`, `INTERNAL_BIND_IP` settings in the `CONFIG` file. (Might need further work)
|
- Network settings are manually configurable through the `PUBLIC_IP`, `PUBLIC_BIND_IP`, `INTERNAL_IP`, `INTERNAL_BIND_IP` settings in the `CONFIG` file. (Might need further work)
|
||||||
- Refactored logging to use [spdlog](https://github.com/gabime/spdlog) for more consistent function calls.
|
- Refactored logging to use [spdlog](https://github.com/gabime/spdlog) for more consistent function calls.
|
||||||
|
- Refactored login code to use Argon2ID.
|
||||||
|
|
||||||
## 4. Bugfixes
|
## 4. Bugfixes
|
||||||
**WARNING: This project is based on the "kraizy" leak. That was over 10 years ago.
|
**WARNING: This project is based on the "kraizy" leak. That was over 10 years ago.
|
||||||
|
@ -41,8 +41,6 @@ tstr IMPLEMENTOR
|
|||||||
tint IMPLEMENTOR
|
tint IMPLEMENTOR
|
||||||
tcon IMPLEMENTOR
|
tcon IMPLEMENTOR
|
||||||
mob_ld IMPLEMENTOR
|
mob_ld IMPLEMENTOR
|
||||||
pcbang_check IMPLEMENTOR
|
|
||||||
pcbang_update IMPLEMENTOR
|
|
||||||
setqf IMPLEMENTOR
|
setqf IMPLEMENTOR
|
||||||
delqf IMPLEMENTOR
|
delqf IMPLEMENTOR
|
||||||
effect IMPLEMENTOR
|
effect IMPLEMENTOR
|
||||||
|
2228
gamefiles/data/locale_string_cz.txt
Normal file
2228
gamefiles/data/locale_string_cz.txt
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
2228
gamefiles/data/locale_string_hu.txt
Normal file
2228
gamefiles/data/locale_string_hu.txt
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
2228
gamefiles/data/locale_string_ru.txt
Normal file
2228
gamefiles/data/locale_string_ru.txt
Normal file
File diff suppressed because it is too large
Load Diff
2228
gamefiles/data/locale_string_tr.txt
Normal file
2228
gamefiles/data/locale_string_tr.txt
Normal file
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user