mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
Big update.
This commit is contained in:
@@ -1,33 +0,0 @@
|
|||||||
---
|
|
||||||
AccessModifierOffset: '-4'
|
|
||||||
AlignConsecutiveMacros: 'true'
|
|
||||||
AlignConsecutiveAssignments: 'true'
|
|
||||||
AlignConsecutiveDeclarations: 'true'
|
|
||||||
AlignTrailingComments: 'true'
|
|
||||||
AllowAllConstructorInitializersOnNextLine: 'false'
|
|
||||||
AllowAllParametersOfDeclarationOnNextLine: 'false'
|
|
||||||
AllowShortBlocksOnASingleLine: 'false'
|
|
||||||
AllowShortCaseLabelsOnASingleLine: 'false'
|
|
||||||
AllowShortFunctionsOnASingleLine: Empty
|
|
||||||
AllowShortIfStatementsOnASingleLine: Never
|
|
||||||
AllowShortLambdasOnASingleLine: Inline
|
|
||||||
AllowShortLoopsOnASingleLine: 'true'
|
|
||||||
BinPackArguments: 'true'
|
|
||||||
BinPackParameters: 'true'
|
|
||||||
BreakBeforeBraces: Allman
|
|
||||||
ColumnLimit: '500'
|
|
||||||
IndentWidth: '4'
|
|
||||||
PointerAlignment: Left
|
|
||||||
SpaceAfterCStyleCast: 'true'
|
|
||||||
SpaceBeforeCpp11BracedList: 'true'
|
|
||||||
SpaceBeforeParens: ControlStatements
|
|
||||||
SpaceBeforeRangeBasedForLoopColon: 'true'
|
|
||||||
SpaceInEmptyParentheses: 'false'
|
|
||||||
SpacesInAngles: 'false'
|
|
||||||
SpacesInCStyleCastParentheses: 'false'
|
|
||||||
SpacesInContainerLiterals: 'false'
|
|
||||||
SpacesInParentheses: 'false'
|
|
||||||
TabWidth: '0'
|
|
||||||
UseTab: Never
|
|
||||||
|
|
||||||
...
|
|
||||||
45
.github/SECURITY.md
vendored
45
.github/SECURITY.md
vendored
@@ -5,7 +5,9 @@
|
|||||||
We support the following versions of dependencies.
|
We support the following versions of dependencies.
|
||||||
|
|
||||||
:white_check_mark: = supported
|
:white_check_mark: = supported
|
||||||
|
|
||||||
:red_circle: = NOT supported
|
:red_circle: = NOT supported
|
||||||
|
|
||||||
unspecified = might work but no guarantee
|
unspecified = might work but no guarantee
|
||||||
|
|
||||||
Versions of AzerothCore:
|
Versions of AzerothCore:
|
||||||
@@ -28,40 +30,39 @@ Versions of MariaDB:
|
|||||||
| --------------- | ------------------ |
|
| --------------- | ------------------ |
|
||||||
| 10.6 | :white_check_mark: |
|
| 10.6 | :white_check_mark: |
|
||||||
| 10.5 | :white_check_mark: |
|
| 10.5 | :white_check_mark: |
|
||||||
| 10.4 | :white_check_mark: |
|
| 10.4 and lower | :red_circle: |
|
||||||
| 10.3 | :white_check_mark: |
|
|
||||||
| 10.2 | :white_check_mark: |
|
|
||||||
|
|
||||||
Versions of CLang:
|
Versions of CLang:
|
||||||
|
|
||||||
| CLang Version | Supported |
|
| CLang Version | Supported |
|
||||||
| --------------- | ------------------ |
|
| ------------- | ------------------ |
|
||||||
| 12 | :white_check_mark: |
|
| 12 | :white_check_mark: |
|
||||||
| 11 | :white_check_mark: |
|
| 11 | :white_check_mark: |
|
||||||
| 10 | :white_check_mark: |
|
| 10 | :white_check_mark: |
|
||||||
| 9 and lower | :red_circle: |
|
| 9 and lower | :red_circle: |
|
||||||
|
|
||||||
Versions of GCC:
|
Versions of GCC:
|
||||||
|
|
||||||
| GCC Version | Supported |
|
| GCC Version | Supported |
|
||||||
| --------------- | ------------------ |
|
| ----------- | ------------------ |
|
||||||
| 10 | :white_check_mark: |
|
| 10 | :white_check_mark: |
|
||||||
| 9 | :white_check_mark: |
|
| 9 | :white_check_mark: |
|
||||||
| 8 | :white_check_mark: |
|
| 8 | :white_check_mark: |
|
||||||
| 7 and lower | :red_circle: |
|
| 7 and lower | :red_circle: |
|
||||||
|
|
||||||
Versions of Ubuntu:
|
Versions of Ubuntu:
|
||||||
|
|
||||||
| Ubuntu version | Supported |
|
| Ubuntu version | Supported |
|
||||||
| --------------- | ------------------ |
|
| -------------- | ------------------ |
|
||||||
| 20.04 | :white_check_mark: |
|
| 20.04 | :white_check_mark: |
|
||||||
| 18.04 | :white_check_mark: |
|
| 18.04 | :white_check_mark: |
|
||||||
|
|
||||||
Versions of macOS:
|
Versions of macOS:
|
||||||
|
|
||||||
| macOS Version | Supported |
|
| macOS Version | Supported |
|
||||||
| --------------- | ------------------ |
|
| ------------- | ------------------ |
|
||||||
| 10.15 | :white_check_mark: |
|
| 11 | :white_check_mark: |
|
||||||
|
| 10.15 | :white_check_mark: |
|
||||||
|
|
||||||
**Note**: We do NOT support any repacks that may or may not have been made based on AzerothCore. Nor do we support any of the releases that are made under AzerothCore.
|
**Note**: We do NOT support any repacks that may or may not have been made based on AzerothCore. Nor do we support any of the releases that are made under AzerothCore.
|
||||||
|
|
||||||
|
|||||||
2
.github/workflows/core_build.yml
vendored
2
.github/workflows/core_build.yml
vendored
@@ -38,6 +38,8 @@ jobs:
|
|||||||
CONTINUOUS_INTEGRATION: true
|
CONTINUOUS_INTEGRATION: true
|
||||||
- name: Create conf/config.sh
|
- name: Create conf/config.sh
|
||||||
run: source ./apps/ci/ci-conf.sh
|
run: source ./apps/ci/ci-conf.sh
|
||||||
|
- name: Process pending sql
|
||||||
|
run: bash bin/acore-db-pendings
|
||||||
- name: Import db
|
- name: Import db
|
||||||
run: source ./apps/ci/ci-import-db.sh
|
run: source ./apps/ci/ci-import-db.sh
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
46
.github/workflows/cpp20.yml
vendored
46
.github/workflows/cpp20.yml
vendored
@@ -1,46 +0,0 @@
|
|||||||
name: C++20
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- 'master'
|
|
||||||
pull_request:
|
|
||||||
types: ['labeled', 'labeled', 'opened', 'synchronize', 'reopened']
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }})
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
name: C++20
|
|
||||||
env:
|
|
||||||
COMPILER: clang
|
|
||||||
ENABLE_CPP_20: 1
|
|
||||||
if: github.repository == 'azerothcore/azerothcore-wotlk' && (github.ref == 'refs/heads/master' || contains(github.event.pull_request.labels.*.name, 'file-cpp') || github.event.label.name == 'file-cpp' || contains(github.event.pull_request.labels.*.name, 'run-build') || github.event.label.name == 'run-build')
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Cache
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: var/ccache
|
|
||||||
key: ccache:C++20:${{ github.ref }}:${{ github.sha }}
|
|
||||||
restore-keys: |
|
|
||||||
ccache:C++20:${{ github.ref }}
|
|
||||||
ccache:C++20
|
|
||||||
- name: Configure OS
|
|
||||||
run: source ./acore.sh install-deps
|
|
||||||
env:
|
|
||||||
CONTINUOUS_INTEGRATION: true
|
|
||||||
- name: Create conf/config.sh
|
|
||||||
run: source ./apps/ci/ci-conf.sh
|
|
||||||
- name: Import db
|
|
||||||
run: source ./apps/ci/ci-import-db.sh
|
|
||||||
- name: Build
|
|
||||||
run: source ./apps/ci/ci-compile.sh
|
|
||||||
- name: Dry run
|
|
||||||
run: source ./apps/ci/ci-worldserver-dry-run.sh
|
|
||||||
- name: Check startup errors
|
|
||||||
run: source ./apps/ci/ci-error-check.sh
|
|
||||||
- name: Run unit tests
|
|
||||||
run: source ./apps/ci/ci-run-unit-tests.sh
|
|
||||||
2
.github/workflows/docker_build.yml
vendored
2
.github/workflows/docker_build.yml
vendored
@@ -35,6 +35,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo rm -rf /usr/local/lib/android
|
sudo rm -rf /usr/local/lib/android
|
||||||
sudo rm -rf /usr/share/dotnet
|
sudo rm -rf /usr/share/dotnet
|
||||||
|
sudo rm -rf /opt/ghc
|
||||||
|
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
|
||||||
docker --version
|
docker --version
|
||||||
docker-compose --version
|
docker-compose --version
|
||||||
|
|
||||||
|
|||||||
49
.vscode/settings.json
vendored
49
.vscode/settings.json
vendored
@@ -3,6 +3,7 @@
|
|||||||
"*.dist": "properties",
|
"*.dist": "properties",
|
||||||
"*.crash": "properties",
|
"*.crash": "properties",
|
||||||
"*.wtf": "properties",
|
"*.wtf": "properties",
|
||||||
|
"*.cnf": "properties",
|
||||||
"array": "cpp",
|
"array": "cpp",
|
||||||
"atomic": "cpp",
|
"atomic": "cpp",
|
||||||
"bit": "cpp",
|
"bit": "cpp",
|
||||||
@@ -66,7 +67,53 @@
|
|||||||
"cfenv": "cpp",
|
"cfenv": "cpp",
|
||||||
"typeinfo": "cpp",
|
"typeinfo": "cpp",
|
||||||
"codecvt": "cpp",
|
"codecvt": "cpp",
|
||||||
"xstring": "cpp"
|
"xstring": "cpp",
|
||||||
|
"variant": "cpp",
|
||||||
|
"any": "cpp",
|
||||||
|
"barrier": "cpp",
|
||||||
|
"charconv": "cpp",
|
||||||
|
"compare": "cpp",
|
||||||
|
"concepts": "cpp",
|
||||||
|
"coroutine": "cpp",
|
||||||
|
"csetjmp": "cpp",
|
||||||
|
"execution": "cpp",
|
||||||
|
"filesystem": "cpp",
|
||||||
|
"format": "cpp",
|
||||||
|
"forward_list": "cpp",
|
||||||
|
"future": "cpp",
|
||||||
|
"ios": "cpp",
|
||||||
|
"latch": "cpp",
|
||||||
|
"locale": "cpp",
|
||||||
|
"numbers": "cpp",
|
||||||
|
"queue": "cpp",
|
||||||
|
"ranges": "cpp",
|
||||||
|
"regex": "cpp",
|
||||||
|
"scoped_allocator": "cpp",
|
||||||
|
"semaphore": "cpp",
|
||||||
|
"source_location": "cpp",
|
||||||
|
"span": "cpp",
|
||||||
|
"stack": "cpp",
|
||||||
|
"stop_token": "cpp",
|
||||||
|
"strstream": "cpp",
|
||||||
|
"syncstream": "cpp",
|
||||||
|
"typeindex": "cpp",
|
||||||
|
"valarray": "cpp",
|
||||||
|
"xfacet": "cpp",
|
||||||
|
"xhash": "cpp",
|
||||||
|
"xiosbase": "cpp",
|
||||||
|
"xlocale": "cpp",
|
||||||
|
"xlocbuf": "cpp",
|
||||||
|
"xlocinfo": "cpp",
|
||||||
|
"xlocmes": "cpp",
|
||||||
|
"xlocmon": "cpp",
|
||||||
|
"xlocnum": "cpp",
|
||||||
|
"xloctime": "cpp",
|
||||||
|
"xmemory": "cpp",
|
||||||
|
"xstddef": "cpp",
|
||||||
|
"xtr1common": "cpp",
|
||||||
|
"xtree": "cpp",
|
||||||
|
"xutility": "cpp",
|
||||||
|
"*.ipp": "cpp"
|
||||||
},
|
},
|
||||||
"deno.enable": true,
|
"deno.enable": true,
|
||||||
"deno.path": "deps/deno/bin/deno",
|
"deno.path": "deps/deno/bin/deno",
|
||||||
|
|||||||
2
AUTHORS
2
AUTHORS
@@ -16,7 +16,7 @@ Development of this project dates back to 2004, and was developed under various
|
|||||||
* SD2 project, 2008-2009, located at http://www.scriptdev2.com/
|
* SD2 project, 2008-2009, located at http://www.scriptdev2.com/
|
||||||
* TrinityCore, 2008-2012, located at https://www.trinitycore.org/
|
* TrinityCore, 2008-2012, located at https://www.trinitycore.org/
|
||||||
* SunwellCore 2012-2016, privately developed, more info at https://www.azerothcore.org/pages/sunwell.pl/
|
* SunwellCore 2012-2016, privately developed, more info at https://www.azerothcore.org/pages/sunwell.pl/
|
||||||
* AzerothCore, 2016-2021, located at https://www.azerothcore.org/
|
* AzerothCore, 2016-2022, located at https://www.azerothcore.org/
|
||||||
|
|
||||||
## Authorship of the code
|
## Authorship of the code
|
||||||
Authorship is assigned for each commit within the git history, which is stored in these git repositories:
|
Authorship is assigned for each commit within the git history, which is stored in these git repositories:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "azerothcore-wotlk",
|
"name": "azerothcore-wotlk",
|
||||||
"version": "5.0.0-dev",
|
"version": "6.0.0-dev.2",
|
||||||
"license": "AGPL3"
|
"license": "AGPL3"
|
||||||
}
|
}
|
||||||
|
|||||||
238
apps/Fmt/FormatReplace.py
Normal file
238
apps/Fmt/FormatReplace.py
Normal file
@@ -0,0 +1,238 @@
|
|||||||
|
import pathlib
|
||||||
|
from os import getcwd
|
||||||
|
|
||||||
|
if not getcwd().endswith('src') and not getcwd().endswith('modules'):
|
||||||
|
print('Run this from the src or modules directory!')
|
||||||
|
print('(Invoke as \'python ../apps/Fmt/FormatReplace.py\')')
|
||||||
|
exit(1)
|
||||||
|
|
||||||
|
def isASSERT(line):
|
||||||
|
substring = 'ASSERT'
|
||||||
|
if substring in line:
|
||||||
|
return True
|
||||||
|
else :
|
||||||
|
return False
|
||||||
|
|
||||||
|
def isABORTMSG(line):
|
||||||
|
substring = 'ABORT_MSG'
|
||||||
|
if substring in line:
|
||||||
|
return True
|
||||||
|
else :
|
||||||
|
return False
|
||||||
|
|
||||||
|
def islog(line):
|
||||||
|
substring = 'LOG_'
|
||||||
|
if substring in line:
|
||||||
|
return True
|
||||||
|
else :
|
||||||
|
return False
|
||||||
|
|
||||||
|
# def isSendSysMessage(line):
|
||||||
|
# substring = 'SendSysMessage'
|
||||||
|
# if substring in line:
|
||||||
|
# return True
|
||||||
|
# else :
|
||||||
|
# return False
|
||||||
|
|
||||||
|
# def isPSendSysMessage(line):
|
||||||
|
# substring = 'PSendSysMessage'
|
||||||
|
# if substring in line:
|
||||||
|
# return True
|
||||||
|
# else :
|
||||||
|
# return False
|
||||||
|
|
||||||
|
def isPQuery(line):
|
||||||
|
substring = 'PQuery'
|
||||||
|
if substring in line:
|
||||||
|
return True
|
||||||
|
else :
|
||||||
|
return False
|
||||||
|
|
||||||
|
def isPExecute(line):
|
||||||
|
substring = 'PExecute'
|
||||||
|
if substring in line:
|
||||||
|
return True
|
||||||
|
else :
|
||||||
|
return False
|
||||||
|
|
||||||
|
def isPAppend(line):
|
||||||
|
substring = 'PAppend'
|
||||||
|
if substring in line:
|
||||||
|
return True
|
||||||
|
else :
|
||||||
|
return False
|
||||||
|
|
||||||
|
# def isStringFormat(line):
|
||||||
|
# substring = 'StringFormat'
|
||||||
|
# if substring in line:
|
||||||
|
# return True
|
||||||
|
# else :
|
||||||
|
# return False
|
||||||
|
|
||||||
|
def haveDelimeter(line):
|
||||||
|
if ';' in line:
|
||||||
|
return True
|
||||||
|
else :
|
||||||
|
return False
|
||||||
|
|
||||||
|
def checkSoloLine(line):
|
||||||
|
if isABORTMSG(line):
|
||||||
|
line = line.replace("ABORT_MSG", "ABORT");
|
||||||
|
return handleCleanup(line), False
|
||||||
|
elif isASSERT(line):
|
||||||
|
return handleCleanup(line), False
|
||||||
|
elif islog(line):
|
||||||
|
return handleCleanup(line), False
|
||||||
|
elif isPExecute(line):
|
||||||
|
line = line.replace("PExecute", "Execute");
|
||||||
|
return handleCleanup(line), False
|
||||||
|
elif isPQuery(line):
|
||||||
|
line = line.replace("PQuery", "Query");
|
||||||
|
return handleCleanup(line), False
|
||||||
|
elif isPAppend(line):
|
||||||
|
line = line.replace("PAppend", "Append");
|
||||||
|
return handleCleanup(line), False
|
||||||
|
# elif isSendSysMessage(line):
|
||||||
|
# return handleCleanup(line), False
|
||||||
|
# elif isPSendSysMessage(line):
|
||||||
|
# return handleCleanup(line), False
|
||||||
|
# elif isStringFormat(line):
|
||||||
|
# return handleCleanup(line), False
|
||||||
|
else:
|
||||||
|
return line, False
|
||||||
|
|
||||||
|
def startMultiLine(line):
|
||||||
|
if isABORTMSG(line):
|
||||||
|
line = line.replace("ABORT_MSG", "ABORT");
|
||||||
|
return handleCleanup(line), True
|
||||||
|
elif isASSERT(line):
|
||||||
|
return handleCleanup(line), True
|
||||||
|
elif islog(line):
|
||||||
|
return handleCleanup(line), True
|
||||||
|
# elif isSendSysMessage(line):
|
||||||
|
# return handleCleanup(line), True
|
||||||
|
# elif isPSendSysMessage(line):
|
||||||
|
# return handleCleanup(line), True
|
||||||
|
elif isPQuery(line):
|
||||||
|
line = line.replace("PQuery", "Query");
|
||||||
|
return handleCleanup(line), True
|
||||||
|
elif isPExecute(line):
|
||||||
|
line = line.replace("PExecute", "Execute");
|
||||||
|
return handleCleanup(line), True
|
||||||
|
elif isPAppend(line):
|
||||||
|
line = line.replace("PAppend", "Append");
|
||||||
|
return handleCleanup(line), True
|
||||||
|
# elif isStringFormat(line):
|
||||||
|
# return handleCleanup(line), True
|
||||||
|
else :
|
||||||
|
return line, False
|
||||||
|
|
||||||
|
def continueMultiLine(line, existPrevLine):
|
||||||
|
if haveDelimeter(line):
|
||||||
|
existPrevLine = False;
|
||||||
|
return handleCleanup(line), existPrevLine
|
||||||
|
|
||||||
|
def checkTextLine(line, existPrevLine):
|
||||||
|
if existPrevLine:
|
||||||
|
return continueMultiLine(line, existPrevLine)
|
||||||
|
else :
|
||||||
|
if haveDelimeter(line):
|
||||||
|
return checkSoloLine(line)
|
||||||
|
else :
|
||||||
|
return startMultiLine(line)
|
||||||
|
|
||||||
|
def handleCleanup(line):
|
||||||
|
line = line.replace("%s", "{}");
|
||||||
|
line = line.replace("%u", "{}");
|
||||||
|
line = line.replace("%hu", "{}");
|
||||||
|
line = line.replace("%lu", "{}");
|
||||||
|
line = line.replace("%llu", "{}");
|
||||||
|
line = line.replace("%zu", "{}");
|
||||||
|
line = line.replace("%02u", "{:02}");
|
||||||
|
line = line.replace("%03u", "{:03}");
|
||||||
|
line = line.replace("%04u", "{:04}");
|
||||||
|
line = line.replace("%05u", "{:05}");
|
||||||
|
line = line.replace("%02i", "{:02}");
|
||||||
|
line = line.replace("%03i", "{:03}");
|
||||||
|
line = line.replace("%04i", "{:04}");
|
||||||
|
line = line.replace("%05i", "{:05}");
|
||||||
|
line = line.replace("%02d", "{:02}");
|
||||||
|
line = line.replace("%03d", "{:03}");
|
||||||
|
line = line.replace("%04d", "{:04}");
|
||||||
|
line = line.replace("%05d", "{:05}");
|
||||||
|
line = line.replace("%d", "{}");
|
||||||
|
line = line.replace("%i", "{}");
|
||||||
|
line = line.replace("%x", "{:x}");
|
||||||
|
line = line.replace("%X", "{:X}");
|
||||||
|
line = line.replace("%lx", "{:x}");
|
||||||
|
line = line.replace("%lX", "{:X}");
|
||||||
|
line = line.replace("%02X", "{:02X}");
|
||||||
|
line = line.replace("%08X", "{:08X}");
|
||||||
|
line = line.replace("%f", "{}");
|
||||||
|
line = line.replace("%.1f", "{0:.1f}");
|
||||||
|
line = line.replace("%.2f", "{0:.2f}");
|
||||||
|
line = line.replace("%.3f", "{0:.3f}");
|
||||||
|
line = line.replace("%.4f", "{0:.4f}");
|
||||||
|
line = line.replace("%.5f", "{0:.5f}");
|
||||||
|
line = line.replace("%3.1f", "{:3.1f}");
|
||||||
|
line = line.replace("%%", "%");
|
||||||
|
line = line.replace(".c_str()", "");
|
||||||
|
line = line.replace("\" SZFMTD \"", "{}");
|
||||||
|
line = line.replace("\" UI64FMTD \"", "{}");
|
||||||
|
# line = line.replace("\" STRING_VIEW_FMT \"", "{}");
|
||||||
|
# line = line.replace("STRING_VIEW_FMT_ARG", "");
|
||||||
|
return line
|
||||||
|
|
||||||
|
def getDefaultfile(name):
|
||||||
|
file1 = open(name, "r+", encoding="utf8", errors='replace')
|
||||||
|
|
||||||
|
result = ''
|
||||||
|
|
||||||
|
while True:
|
||||||
|
line = file1.readline()
|
||||||
|
|
||||||
|
if not line:
|
||||||
|
break
|
||||||
|
|
||||||
|
result += line
|
||||||
|
|
||||||
|
file1.close
|
||||||
|
return result
|
||||||
|
|
||||||
|
def getModifiedfile(name):
|
||||||
|
file1 = open(name, "r+", encoding="utf8", errors='replace')
|
||||||
|
|
||||||
|
prevLines = False
|
||||||
|
result = ''
|
||||||
|
|
||||||
|
while True:
|
||||||
|
line = file1.readline()
|
||||||
|
|
||||||
|
if not line:
|
||||||
|
break
|
||||||
|
|
||||||
|
line, prevLines = checkTextLine(line, prevLines)
|
||||||
|
result += line
|
||||||
|
|
||||||
|
file1.close
|
||||||
|
return result
|
||||||
|
|
||||||
|
def updModifiedfile(name, text):
|
||||||
|
file = open(name, "w", encoding="utf8", errors='replace')
|
||||||
|
file.write(text)
|
||||||
|
file.close()
|
||||||
|
|
||||||
|
def handlefile(name):
|
||||||
|
oldtext = getDefaultfile(name)
|
||||||
|
newtext = getModifiedfile(name)
|
||||||
|
|
||||||
|
if oldtext != newtext:
|
||||||
|
updModifiedfile(name, newtext)
|
||||||
|
|
||||||
|
p = pathlib.Path('.')
|
||||||
|
for i in p.glob('**/*'):
|
||||||
|
fname = i.absolute()
|
||||||
|
if '.cpp' in i.name:
|
||||||
|
handlefile(fname)
|
||||||
|
if '.h' in i.name:
|
||||||
|
handlefile(fname)
|
||||||
@@ -7,7 +7,8 @@ git clone --depth=1 --branch=master --recursive https://github.com/azerothcore/m
|
|||||||
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-autobalance.git modules/mod-autobalance
|
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-autobalance.git modules/mod-autobalance
|
||||||
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-ah-bot.git modules/mod-ah-bot
|
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-ah-bot.git modules/mod-ah-bot
|
||||||
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-anticheat.git modules/mod-anticheat
|
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-anticheat.git modules/mod-anticheat
|
||||||
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-azerothshard.git modules/mod-azerothshard
|
# NOTE: disabled because it causes DB error
|
||||||
|
# git clone --depth=1 --branch=master https://github.com/azerothcore/mod-azerothshard.git modules/mod-azerothshard
|
||||||
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-cfbg.git modules/mod-cfbg
|
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-cfbg.git modules/mod-cfbg
|
||||||
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-chat-transmitter modules/mod-chat-transmitter
|
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-chat-transmitter modules/mod-chat-transmitter
|
||||||
# NOTE: disabled because it causes DB error
|
# NOTE: disabled because it causes DB error
|
||||||
@@ -15,7 +16,8 @@ git clone --depth=1 --branch=master https://github.com/azerothcore/mod-chat-tran
|
|||||||
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-desertion-warnings.git modules/mod-desertion-warnings
|
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-desertion-warnings.git modules/mod-desertion-warnings
|
||||||
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-duel-reset.git modules/mod-duel-reset
|
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-duel-reset.git modules/mod-duel-reset
|
||||||
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-ip-tracker.git modules/mod-ip-tracker
|
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-ip-tracker.git modules/mod-ip-tracker
|
||||||
git clone --depth=1 --branch=main https://github.com/azerothcore/mod-low-level-arena.git modules/mod-low-level-arena
|
git clone --depth=1 --branch=main https://github.com/azerothcore/mod-low-level-arena.git modules/mod-low-level-arena
|
||||||
|
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-low-level-rbg modules/mod-low-level-rbg
|
||||||
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-multi-client-check.git modules/mod-multi-client-check
|
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-multi-client-check.git modules/mod-multi-client-check
|
||||||
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-pvp-titles.git modules/mod-pvp-titles
|
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-pvp-titles.git modules/mod-pvp-titles
|
||||||
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-pvpstats-announcer.git modules/mod-pvpstats-announcer
|
git clone --depth=1 --branch=master https://github.com/azerothcore/mod-pvpstats-announcer.git modules/mod-pvpstats-announcer
|
||||||
|
|||||||
@@ -13,15 +13,16 @@ function import() {
|
|||||||
folder="db_"$db
|
folder="db_"$db
|
||||||
pendingPath="$AC_PATH_ROOT/data/sql/updates/pending_$folder"
|
pendingPath="$AC_PATH_ROOT/data/sql/updates/pending_$folder"
|
||||||
updPath="$UPDATES_PATH/$folder"
|
updPath="$UPDATES_PATH/$folder"
|
||||||
|
archivedPath="$AC_PATH_ROOT/data/sql/archive/$folder/5.x"
|
||||||
|
|
||||||
latestUpd=`ls -1 $updPath/ | tail -n 1`
|
latestUpd=$(ls -1 $updPath/ | tail -n 1)
|
||||||
|
|
||||||
if [ -z $latestUpd ]; then
|
if [ -z $latestUpd ]; then
|
||||||
echo "FIRST UPDATE FILE MISSING!! DID YOU ARCHIVED IT?";
|
latestUpd=$(ls -1 $archivedPath/ | tail -n 1)
|
||||||
exit;
|
echo "> Last update file for db $db is missing! Using archived file" $latestUpd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dateToday=`date +%Y_%m_%d`
|
dateToday=$(date +%Y_%m_%d)
|
||||||
counter=0
|
counter=0
|
||||||
|
|
||||||
dateLast=$latestUpd
|
dateLast=$latestUpd
|
||||||
|
|||||||
@@ -31,5 +31,16 @@ for i in `find data/sql/updates/pending* -name "*.sql" -type f`; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
for i in `find data/sql/updates/pending* -name "*sql" -type f`; do
|
||||||
|
if $(cat "$i"|sed "s/'.*'\(.*\)/\1/g"|grep -q -i -E "broadcast_text"); then
|
||||||
|
echo "> broadcast_text check - Failed"
|
||||||
|
echo " - DON'T EDIT broadcast_text TABLE UNLESS YOU KNOW WHAT YOU ARE DOING!"
|
||||||
|
echo " - This error can safely be ignored if the changes are approved to be sniffed."
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "> broadcast_text check - OK"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Everything looks good"
|
echo "Everything looks good"
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
export OPENSSL_ROOT_DIR=$(brew --prefix openssl@1.1)
|
||||||
|
|
||||||
export CCACHE_CPP2=true
|
export CCACHE_CPP2=true
|
||||||
export CCACHE_MAXSIZE='500M'
|
export CCACHE_MAXSIZE='500M'
|
||||||
export CCACHE_COMPRESS=1
|
export CCACHE_COMPRESS=1
|
||||||
@@ -17,9 +19,9 @@ time cmake ../../../ \
|
|||||||
-DMYSQL_LIBRARY=/usr/local/lib/libmysqlclient.dylib \
|
-DMYSQL_LIBRARY=/usr/local/lib/libmysqlclient.dylib \
|
||||||
-DREADLINE_INCLUDE_DIR=/usr/local/opt/readline/include \
|
-DREADLINE_INCLUDE_DIR=/usr/local/opt/readline/include \
|
||||||
-DREADLINE_LIBRARY=/usr/local/opt/readline/lib/libreadline.dylib \
|
-DREADLINE_LIBRARY=/usr/local/opt/readline/lib/libreadline.dylib \
|
||||||
-DOPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include \
|
-DOPENSSL_INCLUDE_DIR="$OPENSSL_ROOT_DIR/include" \
|
||||||
-DOPENSSL_SSL_LIBRARIES=/usr/local/opt/openssl/lib/libssl.dylib \
|
-DOPENSSL_SSL_LIBRARIES="$OPENSSL_ROOT_DIR/lib/libssl.dylib" \
|
||||||
-DOPENSSL_CRYPTO_LIBRARIES=/usr/local/opt/openssl/lib/libcrypto.dylib \
|
-DOPENSSL_CRYPTO_LIBRARIES="$OPENSSL_ROOT_DIR/lib/libcrypto.dylib" \
|
||||||
-DWITH_WARNINGS=1 \
|
-DWITH_WARNINGS=1 \
|
||||||
-DCMAKE_C_FLAGS="-Werror" \
|
-DCMAKE_C_FLAGS="-Werror" \
|
||||||
-DCMAKE_CXX_FLAGS="-Werror" \
|
-DCMAKE_CXX_FLAGS="-Werror" \
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ function inst_simple_restarter {
|
|||||||
|
|
||||||
function inst_download_client_data {
|
function inst_download_client_data {
|
||||||
# change the following version when needed
|
# change the following version when needed
|
||||||
local VERSION=v12
|
local VERSION=v13
|
||||||
|
|
||||||
echo "#######################"
|
echo "#######################"
|
||||||
echo "Client data downloader"
|
echo "Client data downloader"
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ sudo apt-get -y install ccache clang cmake curl google-perftools libmysqlclient-
|
|||||||
|
|
||||||
if [[ $CONTINUOUS_INTEGRATION || $DOCKER ]]; then
|
if [[ $CONTINUOUS_INTEGRATION || $DOCKER ]]; then
|
||||||
sudo add-apt-repository -y ppa:mhier/libboost-latest && sudo apt update && sudo apt-get -y install build-essential cmake-data \
|
sudo add-apt-repository -y ppa:mhier/libboost-latest && sudo apt update && sudo apt-get -y install build-essential cmake-data \
|
||||||
libboost1.74-dev libbz2-dev libncurses5-dev libmysql++-dev libgoogle-perftools-dev libreadline6-dev libssl-dev libtool mysql-client \
|
libboost1.74-dev libbz2-dev libncurses5-dev libmysql++-dev libgoogle-perftools-dev libreadline6-dev libssl-dev libtool \
|
||||||
openssl zlib1g-dev
|
openssl zlib1g-dev
|
||||||
else
|
else
|
||||||
case $UBUNTU_VERSION in
|
case $UBUNTU_VERSION in
|
||||||
|
|||||||
4
conf/dist/config.cmake
vendored
4
conf/dist/config.cmake
vendored
@@ -87,5 +87,5 @@ endif()
|
|||||||
set(WITH_SOURCE_TREE "hierarchical" CACHE STRING "Build the source tree for IDE's.")
|
set(WITH_SOURCE_TREE "hierarchical" CACHE STRING "Build the source tree for IDE's.")
|
||||||
set_property(CACHE WITH_SOURCE_TREE PROPERTY STRINGS no flat hierarchical)
|
set_property(CACHE WITH_SOURCE_TREE PROPERTY STRINGS no flat hierarchical)
|
||||||
|
|
||||||
# If disable - use c++17
|
# Config abort
|
||||||
option(USE_CPP_20 "Enable c++20 standard" 0)
|
option(CONFIG_ABORT_INCORRECT_OPTIONS "Enable abort if core found incorrect option in config files" 0)
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ CREATE PROCEDURE updateDb ()
|
|||||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||||
SELECT COUNT(*) INTO @COLEXISTS
|
SELECT COUNT(*) INTO @COLEXISTS
|
||||||
FROM information_schema.COLUMNS
|
FROM information_schema.COLUMNS
|
||||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_characters' AND COLUMN_NAME = '2021_10_14_01_characters';
|
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_characters' AND COLUMN_NAME = '2021_10_14_00';
|
||||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||||
START TRANSACTION;
|
START TRANSACTION;
|
||||||
ALTER TABLE version_db_characters CHANGE COLUMN 2021_10_14_01_characters 2021_11_06_00 bit;
|
ALTER TABLE version_db_characters CHANGE COLUMN 2021_10_14_00 2021_11_06_00 bit;
|
||||||
SELECT sql_rev INTO OK FROM version_db_characters WHERE sql_rev = '1635587652443122100'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
SELECT sql_rev INTO OK FROM version_db_characters WHERE sql_rev = '1635587652443122100'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||||
--
|
--
|
||||||
-- START UPDATING QUERIES
|
-- START UPDATING QUERIES
|
||||||
27
data/sql/archive/db_characters/5.x/2021_12_26_00.sql
Normal file
27
data/sql/archive/db_characters/5.x/2021_12_26_00.sql
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
-- DB update 2021_11_06_00 -> 2021_12_26_00
|
||||||
|
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||||
|
DELIMITER //
|
||||||
|
CREATE PROCEDURE updateDb ()
|
||||||
|
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||||
|
SELECT COUNT(*) INTO @COLEXISTS
|
||||||
|
FROM information_schema.COLUMNS
|
||||||
|
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_characters' AND COLUMN_NAME = '2021_11_06_00';
|
||||||
|
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||||
|
START TRANSACTION;
|
||||||
|
ALTER TABLE version_db_characters CHANGE COLUMN 2021_11_06_00 2021_12_26_00 bit;
|
||||||
|
SELECT sql_rev INTO OK FROM version_db_characters WHERE sql_rev = '1638643807174948000'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||||
|
--
|
||||||
|
-- START UPDATING QUERIES
|
||||||
|
--
|
||||||
|
|
||||||
|
INSERT INTO `version_db_characters` (`sql_rev`) VALUES ('1638643807174948000');
|
||||||
|
-- placeholder
|
||||||
|
--
|
||||||
|
-- END UPDATING QUERIES
|
||||||
|
--
|
||||||
|
UPDATE version_db_characters SET date = '2021_12_26_00' WHERE sql_rev = '1638643807174948000';
|
||||||
|
COMMIT;
|
||||||
|
END //
|
||||||
|
DELIMITER ;
|
||||||
|
CALL updateDb();
|
||||||
|
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||||
36
data/sql/archive/db_characters/5.x/2021_12_26_01.sql
Normal file
36
data/sql/archive/db_characters/5.x/2021_12_26_01.sql
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
-- DB update 2021_12_26_00 -> 2021_12_26_01
|
||||||
|
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||||
|
DELIMITER //
|
||||||
|
CREATE PROCEDURE updateDb ()
|
||||||
|
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||||
|
SELECT COUNT(*) INTO @COLEXISTS
|
||||||
|
FROM information_schema.COLUMNS
|
||||||
|
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_characters' AND COLUMN_NAME = '2021_12_26_00';
|
||||||
|
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||||
|
START TRANSACTION;
|
||||||
|
ALTER TABLE version_db_characters CHANGE COLUMN 2021_12_26_00 2021_12_26_01 bit;
|
||||||
|
SELECT sql_rev INTO OK FROM version_db_characters WHERE sql_rev = '1640532476858588300'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||||
|
--
|
||||||
|
-- START UPDATING QUERIES
|
||||||
|
--
|
||||||
|
|
||||||
|
INSERT INTO `version_db_characters` (`sql_rev`) VALUES ('1640532476858588300');
|
||||||
|
|
||||||
|
-- Create table
|
||||||
|
DROP TABLE IF EXISTS `character_settings`;
|
||||||
|
CREATE TABLE `character_settings` (
|
||||||
|
`guid` INT UNSIGNED NOT NULL,
|
||||||
|
`source` VARCHAR(40) NOT NULL,
|
||||||
|
`data` TEXT NULL,
|
||||||
|
PRIMARY KEY (`guid`, `source`)
|
||||||
|
) ENGINE=MYISAM DEFAULT CHARSET=utf8mb4 COMMENT='Player Settings';
|
||||||
|
|
||||||
|
--
|
||||||
|
-- END UPDATING QUERIES
|
||||||
|
--
|
||||||
|
UPDATE version_db_characters SET date = '2021_12_26_01' WHERE sql_rev = '1640532476858588300';
|
||||||
|
COMMIT;
|
||||||
|
END //
|
||||||
|
DELIMITER ;
|
||||||
|
CALL updateDb();
|
||||||
|
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user