AzerothCore module configuration not found - azerothcore

I got problem with my modules, since the .dist/.conf seems to not be found (they're on the same folder as the two server .exe)
So I listed what I use and put in () if there is a problem (the core is fresh core from 01/19/2019 at 7 pm), also I change the .dist to .conf and it didn't fix the issues:
-Account achievement
-BG Reward (seems to get some bug, but I'm in local I can't test it for now)
-chat login (seems to don't work)
-congrats on level
-mod eluna engine
-fireworks on level (I don't see fireworks)
-mod individual XP
-mod instance reset
-item level up
-notify when muted
-npc gambler (since the git pull the 19/01 at 7 pm I can't spam the answers, but I have to quit the dialog box and retalk to him, but no other bug except that)
-phased duel
-mod premium (can't open the book anymore, since the last git pull too)
-mod start guild (seems to don't put people on a guild)
-mod transmog (I can transmog, but the setting are unfound)
I also put my server.log in pastebin :
https://pastebin.com/FZwKEuSW
And at connection I got :
-This server is running the StartGuild module.
-This server is running PhasedDuels module.
-This server is running GamblerNPC module.
-This server is running IndividualXpRate module.
-This server is running CustomServer (must be fireworks) module.
-This server is running CongratsOnLevel module.
-This server is running AccountAchievements module.
EDIT :
To show you what error I got in my worldserver.exe :
Not found option 'Gambler.Amount1'. The default value is used (1)
Not found option 'Gambler.Amount2'. The default value is used (2)
Not found option 'Gambler.Amount3'. The default value is used (3)
Not found option 'Gambler.Amount4'. The default value is used (4)
Not found option 'Gambler.Amount5'. The default value is used (5)
Not found option 'Gambler.Jackpot'. The default value is used (50)
Not found option 'Transmogrification.EnableSetInfo'. The default value is used (Yes)
Not found option 'Transmogrification.SetNpcText'. The default value is used (50001)
Not found option 'Transmogrification.EnableSets'. The default value is used (Yes)
Not found option 'Transmogrification.MaxSets'. The default value is used (10)
Not found option 'Transmogrification.SetCostModifier'. The default value is used (3.000000)
Not found option 'Transmogrification.SetCopperCost'. The default value is used (0)
Not found option 'Transmogrification.EnableTransmogInfo'. The default value is used (Yes)
Not found option 'Transmogrification.TransmogNpcText'. The default value is used (50000)
Not found option 'Transmogrification.Allowed'. The default value is used ()
Not found option 'Transmogrification.NotAllowed'. The default value is used ()
Not found option 'Transmogrification.ScaledCostModifier'. The default value is used (1.000000)
Not found option 'Transmogrification.CopperCost'. The default value is used (0)
Not found option 'Transmogrification.RequireToken'. The default value is used (No)
Not found option 'Transmogrification.TokenEntry'. The default value is used (49426)
Not found option 'Transmogrification.TokenAmount'. The default value is used (1)
Not found option 'Transmogrification.AllowPoor'. The default value is used (No)
Not found option 'Transmogrification.AllowCommon'. The default value is used (No)
Not found option 'Transmogrification.AllowUncommon'. The default value is used (Yes)
Not found option 'Transmogrification.AllowRare'. The default value is used (Yes)
Not found option 'Transmogrification.AllowEpic'. The default value is used (Yes)
Not found option 'Transmogrification.AllowLegendary'. The default value is used (No)
Not found option 'Transmogrification.AllowArtifact'. The default value is used (No)
Not found option 'Transmogrification.AllowHeirloom'. The default value is used (Yes)
Not found option 'Transmogrification.AllowMixedArmorTypes'. The default value is used (No)
Not found option 'Transmogrification.AllowMixedWeaponTypes'. The default value is used (No)
Not found option 'Transmogrification.AllowFishingPoles'. The default value is used (No)
Not found option 'Transmogrification.IgnoreReqRace'. The default value is used (No)
Not found option 'Transmogrification.IgnoreReqClass'. The default value is used (No)
Not found option 'Transmogrification.IgnoreReqSkill'. The default value is used (No)
Not found option 'Transmogrification.IgnoreReqSpell'. The default value is used (No)
Not found option 'Transmogrification.IgnoreReqLevel'. The default value is used (No)
Not found option 'Transmogrification.IgnoreReqEvent'. The default value is used (No)
Not found option 'Transmogrification.IgnoreReqStats'. The default value is used (No)
Not found option 'StartGuild.Enable'. The default value is used (Yes)
Not found option 'StartGuild.Announce'. The default value is used (Yes)
Not found option 'GamblerNPC.Announce'. The default value is used (Yes)
Not found option 'CustomServer.Announce'. The default value is used (Yes)
Not found option 'LoginChat.name'. The default value is used (world)
Not found option 'PhasedDueling.Enable'. The default value is used (Yes)
It seems the modules always take the default value, but their .conf/.conf.dist aren't found

Show me your bin/ or conf/ folder (I mean I want to see the names of the config files)
Basically read this https://www.azerothcore.org/wiki/how-to-work-with-conf-files

The reason why this is happening is because AC is recognizing your /conf files in question as Dist Files.. its a very known bug on Windows.
Simply open each config file that's not being detected, open each file, select-all copy, then open a new file with Notepad paste what you copied in the new file and save it as xxxx.conf / make sure your "Save As Type" Window shows "All files" / ANSI "
The reason why is because Windows is still seeing them as DIST files and CONF

Thank you everyone, I tried on Ubuntu 18.04 and it seems to work, so for Windows it seems to be a bug like Illuminatus said.
And thank you Barbz_YHOOL for the explaination

Related

custom module installation error on odoo 14

ValueError: ir.actions.report.report_type: required selection fields must define an ondelete policy that implements the proper cleanup of the corresponding records upon module uninstallation. Please use one or more of the following policies: 'set default' (if the field has a default defined), 'cascade', or a single-argument callable where the argument is the recordset containing the specified option.
You need to declare like this :
report_type = fields.Selection(
selection_add=[('sale', 'sale')],
ondelete={'sale': 'cascade'}
)
or you can also add this as per the requirement :
ondelete={'sale': 'set default'})
If you guys get this issue when database is cached, then try this (otherwise, ignore this solution):
Add dbfilter to odoo.conf:
dbfilter = ^your_db_name*
Then restart the server and go to /web/database/selector and select your db

Tosca: searching / bulk renaming Test Configuration Parameters

I can't find a way to search for TCPs / search TCP usages / renaming all TCPs.
Let's assume I have a 'licensePlate' TCP set up on the highest level of the hierarchy, and that I have 2 subfolders. In one of them I use the value as it is, in the other folder I change the value. I have some libraries using 'licensePlate'.
I then proceed to rename the TCP to 'carId' on the highest level (and in the libraries). The folder which inherited it will be updated. But the other one will now have two TCPs. This is illustrated in the figure below.
So at the moment I need to manually go into all my subfolders/testcases, find all of them where 'licensePlate' was re-configured, and: (1) set the value to the new param ('carId'); (2) delete the old param ('licensePlate').
The logic behind this imho is that I may still be using that param name (e.g. if I resolved my libraries). Still, I'm guessing that there must be a way to bulk-rename or at least to search for TCP usages (?)
That is really tricky and abstruse. You can find TCP usage with following TQL (Home - Search - TQL Search tab)
=>SUBPARTS[(param_name!="")]
where "param_name" is the name of your parameter.
And it seems that only usages are being found where values has been changed and are not default values.

Disabling BCD testsigning option using registry

My code should disable testsigning BCD option using Windows registry. The same as command line bcdedit -set testsigning off.
I can't do shellexecute with cmd. I found one Testsigning reference in registry, in HKLM\SYSTEM\ControlSet001\Control\SystemStartOptions value, but this value contains current kernel run options, not options for next start.
So, I can't use it.
I found that testsigning option are saved in HLKM\BCD00000000\Objects\{%GUID%}\Elements\16000049, but this GUID is different on different PC's.
How I could acquire it?
If you don't bother of activating it for all boot entries:
Enumerate all key names beneath "Objects"
Write your registry values in a loop into every found key name.
Using NT native API your approach could look something like the following pseudocode:
while(numEntries < index){
NtEnumerateKey(index++, &pGuidKeyname...);
RtlStringCbPrintfW(buf, %s, rootkey,pGuidKeyname);
NtSetValueKey(buf, "YES");
}

Setting value of setting on command line when no default value defined in build?

I am writing a plugin that requires a specific setting: configUrl
If I specify that setting in my build.conf it would look like this:
MyPlugin.configUrl := "http://..../..."
I can then use the command line to do this:
sbt 'set MyPlugin.configUrl := "http://..../..."' performAction
Is there a better way that allows me to not have that setting in build?
If I start sbt without that setting I get the following error:
[error] Reference to undefined setting:
[error]
[error] *:config-url from *:application-configuration
I searched google but could not find a way to provide the setting on the command line, something like this:
sbt config-url="http://..../..."
If the setting has a default value, that default should be set in the plugin. If it does not, the type should probably be Option[...] with a default of None. Typically, a build should not require a parameter to be passed from the command line just to be loaded.
Finally, if it is primarily the set syntax you dislike, you can use system properties and read the system property from your setting. However, this is restricted to Strings and so you lose type safety.
System properties can be set by -Dkey=value on the command line (either directly or in your startup script):
sbt -Dconfig.url=http://...
(quoting as needed by your shell). To pull this value into the setting:
MyPlugin.configUrl :=
url(System.getProperty("config.url", "<default>"))
where "<default>" is the value to use if the system property is not set. If you take the Option approach,
MyPlugin.configUrl :=
for(u <- Option(System.getProperty("config.url"))) yield
url(u)

Qt - Don't append major version number to the end of executable/library name

How can I stop Qt from renaming my DLL to MyDLLName{MAJOR_VERSION_NUM}.dll?
This only happens when I set the VERSION in my project file, but I also want to set the version. For example, if I have:
VERSION = 1.2.3.4
And my library is named MyDll, it will create my DLL in the debug folder as MyDLL1.dll. If I take the version number away, it keeps the name as I want it (MyDLL.dll).
Thanks.
Use this:
CONFIG += skip_target_version_ext
See this answer (on SO) for why it is there: Why library name gets an additional 0 in its name?
You can "not-set" the version to remove it from the generated name, but are you sure you want to do that? (It's there to avoid DLL Hell.)
The "proper-answer" is that the LIB template is adding the version number.
Also, note:
VERSION is used to define VER_MAJ and VER_MIN
msvc_nmake generator adds /VERSION:major.minor to link flags if !empty
msvc_vcproj generate adds /VERSION:major.minor to link flags and MSVCPROJ_VERSION if !empty
You can explicitly set those yourself, or "unset" any of them.
You can explicitly remove the version number from the target name with the TARGET_EXT variable, for example, see: http://qt-project.org/faq/answer/how_can_i_add_version_information_to_my_application
If you want to create your own plugin to decide how to generate the target name (without the version number), you can make your own plugin as described in this answer (on SO): How to avoid having version numbers in .so file name

Resources