fix: docker install

This commit is contained in:
Micrah
2020-01-03 21:35:11 +11:00
committed by BarbzYHOOL
parent 859e7b78ba
commit 24200cd692
3 changed files with 13 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
# mod-solo-lfg # Solo Dungeon Finder
## Description ## Description
@@ -7,19 +7,23 @@ Allows for players to use dungeon finder solo or in groups less than and up to 5
## Standard Installation ## Standard Installation
``` ```
1. Apply lfg-solo.patch to your core. 1. Apply lfg-solo.patch to your core.
2. Simply place the module under the `modules` directory of your AzerothCore source. 2. Simply place the module under the `modules` directory of your AzerothCore source.
3. Re-run cmake and launch a clean build of AzerothCore. 3. Apply lfg-solo.patch to your core.
a. In order to do this, please go to the root /azerothcore-wotlk of your installation.
b. Then do git apply modules/mod-solo-lfg/lfg-solo.patch
4. Re-run cmake and launch a clean build of AzerothCore.
``` ```
## Docker Installation ## Docker Installation
``` ```
0. Go inside your /modules/ folder 1. Go inside your /modules/ folder
1. git clone https://github.com/milestorme/mod-solo-lfg.git 2. git clone https://github.com/milestorme/mod-solo-lfg.git
2. Apply lfg-solo.patch to your core. 3. Apply lfg-solo.patch to your core.
a. In order to do this, please go to the root /azerothcore-wotlk of your installation. a. In order to do this, please go to the root /azerothcore-wotlk of your installation.
b. Then do git apply modules/mod-solo-lfg/lfg-solo.patch b. Then do git apply modules/mod-solo-lfg/lfg-solo.patch
(make sure the path is indeed pointing to your lfg-solo.patch file) (make sure the path is indeed pointing to your lfg-solo.patch file)
3. Re-run cmake and launch a clean build of AzerothCore. 4. Go to src/Lfg_solo.cpp and replace line 24 with ``` void OnLogin(Player* __attribute__ ((unused))player)``` save file.
5. Re-run cmake and launch a clean build of AzerothCore.
a. Go to your root folder and ./bin/acore-docker-build a. Go to your root folder and ./bin/acore-docker-build
b. Then do a docker-compose up b. Then do a docker-compose up
``` ```

View File

@@ -82,3 +82,4 @@ index 30ae2a4ec4..288ccbe5af 100644
{ {
strGuids.addRoles(proposalRoles); strGuids.addRoles(proposalRoles);
for (uint8 i=0; i<5 && check.guid[i]; ++i) for (uint8 i=0; i<5 && check.guid[i]; ++i)

View File

@@ -21,7 +21,7 @@ public:
// Docker Installation prevents warnings. In order to avoid the issue, we need to add __attribute__ ((unused)) // Docker Installation prevents warnings. In order to avoid the issue, we need to add __attribute__ ((unused))
// to the player variable to tell the compiler it is fine not to use it. // to the player variable to tell the compiler it is fine not to use it.
void OnLogin(Player* __attribute__ ((unused))player) void OnLogin(Player* player)
{ {
if (sConfigMgr->GetIntDefault("LFG.SoloMode", true)) if (sConfigMgr->GetIntDefault("LFG.SoloMode", true))
{ {