README: introduction, philosophy (Blizzlike, every data change names its source), what it is based on with credits, a table of the config switches, build steps, modules and how to add the bots module, contributing, links. The Forever setup steps that were in the README moved to doc/ForeverSetup.md unchanged. CONTRIBUTING.md: the Blizzlike rule, good sources, bug reports, C++ and SQL rules, credits. Issue forms: bug report, data fix (SQL) with a source field, new client build. Pull request form with a source box. doc/OptionalServerOptions.md: Instance.MoltenCoreRagnarosReady added.
3.5 KiB
Contributing to ForeverCore
Thanks for helping. Bug reports, data fixes and code are all welcome. Please read this page once before you start.
The one rule: Blizzlike, with a source
ForeverCore copies Blizzard's game for the WoW Forever client. A change is welcome when it does one of these:
- makes the server match Blizzard's game, and says where that comes from, or
- fixes the server itself (a crash, a wrong packet, pathing, a broken script).
Good sources, best first:
- Packet captures (sniffs) from the official Forever realms.
- Client data: DB2 files, hotfixes, the player's
WDBcache. - Questie data, Wowhead (the Forever / Classic pages), in-game screenshots or video.
- VMaNGOS, CMaNGOS or TrinityCore, for vanilla behaviour that Forever did not change.
Not welcome in the core: custom items, quests, NPCs, rates or features. Things that only some server owners want can be
an option in worldserver.conf that is off by default, or a module in src/modules/ (see
src/modules/README.md).
Reporting a bug
Use the issue forms. Please give:
- the commit you run (
.server debugin game, or the first lines of the worldserver log), - the ids of the creatures, quests, items or spells involved, with a Wowhead link if you have one,
- what happens, and what should happen instead (and how you know),
- for a crash: the crash log from the
Crashesfolder.
Search the open issues first; if the bug is already there, add to it instead of opening a new one.
Sending a pull request
- Fork the repository and make a branch from
forever(or fromforever-botsfor a change to the bots module). - One fix per pull request. Small pull requests get reviewed quickly.
- Fill in the pull request form, including the source box.
- Say how you tested it: does it build, did you check it in game.
Please tick "Allow edits from maintainers", so we can fix small things for you.
C++
- Follow the TrinityCore C++ standards
and
.editorconfig(4 spaces, at most 160 columns). - Change core files only when you must. If a feature can be a module or a script, make it one.
- A new option goes in
worldserver.conf.distwith a description and a Blizzlike default.
SQL
- World data fixes go in
sql/custom/world/, namedYYYY_MM_DD_NN_world_<classic|forever>_<short_name>.sql(classicfor vanilla data,foreverfor what the Forever client added or changed). For an open pull request, use today's date; we fix the date when we merge if needed. - Start the file with a comment that says what it fixes and where the data comes from.
- Every file must be safe to run twice:
DELETEthe rows youINSERT(by guid and id for spawns), noREPLACE INTO. - Use backticks around table and column names, list the column names in every
INSERT, and use oneINSERTper table. - Don't use database names in the file, and don't
DELETE+INSERTa row just to change one column: useUPDATE. - New spawns: use free guids, and say where the position comes from (sniff, Questie, video).
- Changes to the
authorcharactersschema also go intosql/base/.
Credits
If your fix uses another project's code or data, name it in the file and in the pull request, and check that its license allows it (GPL-2.0 compatible). We keep the author of every merged commit.
Questions
Ask on our Discord. Please don't ask the TrinityCore team about ForeverCore.