Problem in EDF_DbContext.Create() - Unable to initialize database driver of type 'NULL'. #45
Unanswered
FilliFilli
asked this question in
Q&A
Replies: 1 comment
-
Hello,
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Arkensor and everyone,
I'm working on a Arma AI with learning capabilities and i need to connect to a MySQL Database for that.
It's like my long time dream but i'm stuck by days, also having some programming experience but not professional.
I explain below, thanks in advance for any help =)
The problem is that at the moment i call:
EDF_DbContext dbContext = EDF_DbContext.Create(connectionInfo);
it returns me "Unable to initialize database driver of type 'NULL'."
Investigating furthermore, the problem is probably above during the constructor of
new EDF_DbConnectionInfoDriverType(EDF_WebProxyDbDriver);
cause seems that inside it uses a method EDF_ReflectionUtils.GetAttributeParent().
This is used to detect a superior class in the stack, and to do the mapping between ConnectionInfo and DbDriver which is what i'm trying to achieve.
In particular this function is not being able to find the "#CreateAttributes" word inside the stacktrace, and for that reason returns -1 as startRead. Cant print the stacktrace to console since its inside your mod files and i can't edit.
Further info:
Is the problem of wrong stacktrace related to where/how i am launching the script? should it be launched in another manner?
What am i getting wrong to make the DbContext creation work?
Really THANKS in advance for any help :)
The launching of InitializeDatabase() inside SCR_BaseGameMode -> OnWorldPostProcess:
`class GAIA_GameMode_Class: SCR_BaseGameMode
{
// user script
// code here
The script:
ConnectToDB.txt
Beta Was this translation helpful? Give feedback.
All reactions