These are chat archives for ikkentim/SampSharp

25th
Jun 2016
BryanHitchcock
@BryanHitchcock
Jun 25 2016 02:10
@SomeDevil I'll try it again, I originally tried it with Microsoft's SQL. I use code first though
BryanHitchcock
@BryanHitchcock
Jun 25 2016 02:43
@SomeDevil Alright so the issue seems to be when Entity has to create the database if it doesn't exist. This works perfectly fine with a console application project, but when I try to use it in a SampSharp class library project, it gives me this mono error:
I'm using MySQL btw
If I run my other project however (it's identical, except it's a console application and doesn't have a SampSharp gamemode class) to create the database, and then run my SampSharp project, it successfully saves new objects into the database.
This message was deleted
SomeDevil
@SomeDevil
Jun 25 2016 07:03
did you install mono by yourself or downloaded zip from s# website?
BryanHitchcock
@BryanHitchcock
Jun 25 2016 07:03
S#
SomeDevil
@SomeDevil
Jun 25 2016 07:04
I had the same error and the only thing i had to do was to copy file "libMonoPosixHelper.dll" to server directory
I installed mono from their website so I actually don't know if you can find it in s# zip archive
mono/lib/libMonoPosixHelper.dll
or not.. wait a sec, can't actually remember where from i got this file
yep. it was mono/bin/libMonoPosixHelper.dll
BryanHitchcock
@BryanHitchcock
Jun 25 2016 07:09
Hmm, I will try it real quick
Thanks
I'm still getting the error unfortunately =/ I'll try restarting my computer real quick
SomeDevil
@SomeDevil
Jun 25 2016 07:17
did you put it in server env? where samp-server.exe is located?
BryanHitchcock
@BryanHitchcock
Jun 25 2016 07:17
Yes
Maybe it's because my mono version no longer matches?
Where is the Mono .dll located in C:?
The version from the official website
SomeDevil
@SomeDevil
Jun 25 2016 07:18
C:\Program Files (x86)\Mono
BryanHitchcock
@BryanHitchcock
Jun 25 2016 07:18
nvm found it
was in bin
I replaced mono folder in the server directory as well, still no luck
same error
SomeDevil
@SomeDevil
Jun 25 2016 07:21
and replaced mono-2.0.dll?
BryanHitchcock
@BryanHitchcock
Jun 25 2016 07:21
yep
Is there anything that you don't have in your context class that I do have? Or vice versa?
SomeDevil
@SomeDevil
Jun 25 2016 07:23
oh well I did recreate this situation on my pc
and it happens when I give wrong libMonoPosixHelper.dll file
BryanHitchcock
@BryanHitchcock
Jun 25 2016 07:23
Interesting
I put the one in bin into my server directory
from the website download
SomeDevil
@SomeDevil
Jun 25 2016 07:24
i renamed mono-2.0.dll to libMonoPosixHelper.dll (for testing purpose ofc :D) and got the same exception
but with libMonoPosixHelper.dll it works fine :o
BryanHitchcock
@BryanHitchcock
Jun 25 2016 07:24
so I should have both in server directory?
where .exe is?
SomeDevil
@SomeDevil
Jun 25 2016 07:24
yes
BryanHitchcock
@BryanHitchcock
Jun 25 2016 07:25
yeah im still getting the error, tried putting it in plugins folder too and it doesn't work
SomeDevil
@SomeDevil
Jun 25 2016 07:26
your file is 778KB big?
BryanHitchcock
@BryanHitchcock
Jun 25 2016 07:26
no..
SomeDevil
@SomeDevil
Jun 25 2016 07:26
libMonoPosixHelper.dll i mean
BryanHitchcock
@BryanHitchcock
Jun 25 2016 07:26
790
mono is 2921
SomeDevil
@SomeDevil
Jun 25 2016 07:27
well not a big deal.. must be new version of mono
BryanHitchcock
@BryanHitchcock
Jun 25 2016 07:27
I'm just not understanding why it isn't working
Are you using latest entity version?
SomeDevil
@SomeDevil
Jun 25 2016 07:28
yep
BryanHitchcock
@BryanHitchcock
Jun 25 2016 07:28
ugh wtf
SomeDevil
@SomeDevil
Jun 25 2016 07:29
you can try my file, but well, i'm 99% sure it won't help :D
BryanHitchcock
@BryanHitchcock
Jun 25 2016 07:29
Do your classes look simlar to mine?
I posted them up a bit
SomeDevil
@SomeDevil
Jun 25 2016 07:33
not actually, but it's just an another approach, shouldn't be an issue
BryanHitchcock
@BryanHitchcock
Jun 25 2016 07:36
Yeah I have no idea, thanks for trying to help though
BryanHitchcock
@BryanHitchcock
Jun 25 2016 07:43
can you show me what your app.config looks like?
BryanHitchcock
@BryanHitchcock
Jun 25 2016 08:04
What do server groups do? Just multiple server connections?
SomeDevil
@SomeDevil
Jun 25 2016 08:06
yep
that's mysql fabric package, actually useless here, don't know why i installed it
BryanHitchcock
@BryanHitchcock
Jun 25 2016 08:11
hmm.. yeah idk..
thanks for the help, may try to mess with it again tomorrow
cya later
BryanHitchcock
@BryanHitchcock
Jun 25 2016 17:29
It seems that xyyy018 is having the same exact problem (page 22 on the forums)
SomeDevil
@SomeDevil
Jun 25 2016 18:31
Yep, this is why I asked you before, but I was able to fix it :(