Giter VIP home page Giter VIP logo

Comments (8)

sudlud avatar sudlud commented on July 19, 2024

as far as I can tell the .dist holds the default values and acts as a template for the .conf.

some settings must be present in the .conf file, but for many settings if they are not present in the .conf, the core will load their default values that are defined in the source code (!), which should usually be equal to the default value present in the .dist

from azerothcore-wotlk.

1825679767 avatar 1825679767 commented on July 19, 2024

as far as I can tell the holds the default values and acts as a template for the ..dist``.conf

some settings must be present in the file, but for many settings if they are not present in the , the core will load their default values that are defined in the source code (!), which should usually be equal to the default value present in the .conf``.conf``.dist

Yes, but if the conf file is missing parameters, the core will report an error upon startup. Therefore, I hope to adjust to prioritize reading parameters from the conf file. If a parameter is not present in the conf, then reading the parameters from dist will suffice. This way, conf only needs to contain the parameters one wishes to modify, which will make it appear less bloated.

from azerothcore-wotlk.

Kitzunu avatar Kitzunu commented on July 19, 2024

It will just throw a warning that there is no value in conf file. You don't need to have them all in the conf file (Just a few mandatory like database credentials). Rest is read from the core

from azerothcore-wotlk.

Kitzunu avatar Kitzunu commented on July 19, 2024

the .dist is just a distribution file and not intended to be read

Here's some reading on how config files work
https://www.azerothcore.org/wiki/how-to-work-with-conf-files
https://www.azerothcore.org/wiki/config-overrides-with-env-var

from azerothcore-wotlk.

1825679767 avatar 1825679767 commented on July 19, 2024

the .dist is just a distribution file and not intended to be read

Here's some reading on how config files work https://www.azerothcore.org/wiki/how-to-work-with-conf-files https://www.azerothcore.org/wiki/config-overrides-with-env-var

But if the conf file is missing any parameter, the core will report an error in red when it starts up. How can I cancel these prompts?

from azerothcore-wotlk.

1825679767 avatar 1825679767 commented on July 19, 2024

Uploading f77648fc-70d5-4369-8321-3966c942557e.png…

After I filled in the following parameters in the conf configuration file, it was impossible to start.
[worldserver]
LoginDatabaseInfo = "127.0.0.1;3306;root;root;azerothcore_test_auth"
WorldDatabaseInfo = "127.0.0.1;3306;root;root;azerothcore_test_world"
CharacterDatabaseInfo = "127.0.0.1;3306;root;root;azerothcore_test_chars"

from azerothcore-wotlk.

Kitzunu avatar Kitzunu commented on July 19, 2024

But if the conf file is missing any parameter, the core will report an error in red when it starts up.

Correct, it is just telling you that the configs are missing. They are moreso warnings over errors, because an error would halt the server.

After I filled in the following parameters in the conf configuration file, it was impossible to start.

Because there are more mandatory settings....

To make it easy I would say most settings, not all, in SERVER SYSTEM SETTINGS should be present in the conf file. At least DATABASE & CONNECTIONS DIRECTORIES AUTOUPDATER

while GAME SETTINGS don't.

from azerothcore-wotlk.

1825679767 avatar 1825679767 commented on July 19, 2024

But if the conf file is missing any parameter, the core will report an error in red when it starts up.

Correct, it is just telling you that the configs are missing. They are moreso warnings over errors, because an error would halt the server.

After I filled in the following parameters in the conf configuration file, it was impossible to start.

Because there are more mandatory settings....

To make it easy I would say most settings, not all, in should be present in the conf file. At least SERVER SYSTEM SETTINGS``DATABASE & CONNECTIONS DIRECTORIES AUTOUPDATER

while don't.GAME SETTINGS

Excuse me, how should I modify the code if I want to cancel the red alert due to the lack of the GAME SETTINGS section?

from azerothcore-wotlk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.