From 545aa2d6dd1198e113cf0fcbfa93df862a0dcae1 Mon Sep 17 00:00:00 2001 From: Exynox Date: Sat, 16 Nov 2024 15:52:33 +0000 Subject: [PATCH] Added CLion IDE run configurations --- .idea/editor.xml | 580 ++++++++++++++++++++++++ .idea/misc.xml | 3 + .idea/runConfigurations/Test_Server.xml | 8 + .idea/runConfigurations/auth.xml | 7 + .idea/runConfigurations/db.xml | 7 + .idea/runConfigurations/game.xml | 7 + README.md | 15 + 7 files changed, 627 insertions(+) create mode 100644 .idea/editor.xml create mode 100644 .idea/runConfigurations/Test_Server.xml create mode 100644 .idea/runConfigurations/auth.xml create mode 100644 .idea/runConfigurations/db.xml create mode 100644 .idea/runConfigurations/game.xml diff --git a/.idea/editor.xml b/.idea/editor.xml new file mode 100644 index 0000000..226ca24 --- /dev/null +++ b/.idea/editor.xml @@ -0,0 +1,580 @@ + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index b528caa..a10624d 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,5 +1,8 @@ + + diff --git a/.idea/runConfigurations/Test_Server.xml b/.idea/runConfigurations/Test_Server.xml new file mode 100644 index 0000000..af4299b --- /dev/null +++ b/.idea/runConfigurations/Test_Server.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/auth.xml b/.idea/runConfigurations/auth.xml new file mode 100644 index 0000000..99d7b3a --- /dev/null +++ b/.idea/runConfigurations/auth.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/db.xml b/.idea/runConfigurations/db.xml new file mode 100644 index 0000000..988bc39 --- /dev/null +++ b/.idea/runConfigurations/db.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/game.xml b/.idea/runConfigurations/game.xml new file mode 100644 index 0000000..632968b --- /dev/null +++ b/.idea/runConfigurations/game.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/README.md b/README.md index 0a85423..bca973b 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,21 @@ in order to start them at once. 5. Of course, you'll need a MySQL 5.x database, Valgrind and any other development goodies you wish. Also, a lot of time. +### Creating a minimal test server (WIP) + +In CLion, create a `test` directory containing the `auth`, `db`, and `game` +directories, and then symlink the following files in the `gamefiles` directory. + +```shell +ln -s ../../gamefiles/conf/item_names_en.txt ./test/db/item_names.txt +ln -s ../../gamefiles/conf/item_proto.txt ./test/db/item_proto.txt +ln -s ../../gamefiles/conf/mob_names_en.txt ./test/db/mob_names.txt +ln -s ../../gamefiles/conf/mob_proto.txt ./test/db/mob_proto.txt + +ln -s ../../gamefiles/data ./test/auth/data +ln -s ../../gamefiles/data ./test/game/data +``` + ## 3. Improvements ### Major improvements - The binaries run on 64-bit Linux with the network stack being partially rewritten in Libevent.