Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, exile, Ayumi), 836 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 4
Page 24 of 24 1 2 22 23 24
Re: CSmySQL New functions (SSL comming soon) [Re: joh] #319098
04/12/10 11:37
04/12/10 11:37
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline
User
Carlos3DGS  Offline
User

Joined: Oct 2008
Posts: 513
Hi I am trying to use this but i get the error "E1512 Empty prototype called in main"

Mabe I am not putting the files in the correct folder or am missing some files?
I placed "A6mySQL.dll" and "libmysql.dll" in "C:\3D GameStudio A7\sdk_plugin"

If it helps, here is my very basic test code:
Code:
dllfunction mySQL_Connectdb(w,x,y,z);
dllfunction mySQL_Closedb();
dllfunction mySQL_ExecQuery(string);
dllfunction mySQL_GetVal(x,y);
dllfunction mySQL_GetStr(string,x,y);
dllfunction mySQL_RowNumber();
dllfunction mySQL_IsConnected();

void main()
{
	int hr;
	hr = mySQL_Connectdb('mydb','localhost','root','passblablabla');
}


Am I missing some include or something here?

Any help would be greatly apreciated, thanks in advance

Last edited by Carlos3DGS; 04/12/10 11:39.
Re: CSmySQL New functions (SSL comming soon) [Re: Carlos3DGS] #319104
04/12/10 12:07
04/12/10 12:07
Joined: Nov 2002
Posts: 913
Berlin, Germany
S
SchokoKeks Offline
User
SchokoKeks  Offline
User
S

Joined: Nov 2002
Posts: 913
Berlin, Germany
"sdk_plugin "is not the right directory, place the files either in the "acknex_plugin" folder or in your game folder if its just this game that's supposed to use this plugin.

Re: CSmySQL New functions (SSL comming soon) [Re: SchokoKeks] #319116
04/12/10 13:04
04/12/10 13:04
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline
User
Carlos3DGS  Offline
User

Joined: Oct 2008
Posts: 513
Thanks for your reply, I tried your solution but am still having problems.

I deleted from "sdk_plugin" folder and put both files into "acknex_plugin" and now when I run it gives no error message, it only cancels and shuts down.

In debug mode here is what i got in my "acklog.txt":
Quote:
C:\3D GameStudio A7\acknex_plugins\A6mySQL.dll - can't load DLL
Program aborted
ackwii.dll opened
t7.dll opened
Compiling SERVER.C - [Esc] to abort.......
mySQL_Closedb: function not found
mySQL_Connectdb: function not found
mySQL_ExecQuery: function not found
mySQL_GetStr: function not found
mySQL_GetVal: function not found
mySQL_IsConnected: function not found
mySQL_RowNumber: function not found.... 0.150 sec
Running SERVER.C.
Cancelled
Program aborted
Shutdown





If i delete the files from "acknex_plugin" and place them into my work folder I get this error:
Quote:
Error E1513 Crash in main

and the "acklog.txt" says this:
Quote:
A6mySQL.dll opened
ackwii.dll opened
t7.dll opened
Compiling SERVER.C - [Esc] to abort........... 0.148 sec
Running SERVER.C.
2 objects
Main started at 2.233 in debug mode
Error E1513: Crash in main
def_startup started
D3D_Init Window: 800x600 -> Window: 1x800x600x32
Video memory found: 740 MB
Main loop at 44.325...
Server started at 44.326
Client started at 44.326.
1st frame with 740 MB at 44.326
Normal exit at 46.004
Close level,DLL,objects
Free input,funcs,panels,defs,syns,views,strings,vars..ok
Free sounds,bmaps,fonts,hash,defs1,script..ok
Close dx,multimedia,D3D,engine,physics,nexus..ok
A7 Engine - Commercial Edition V7.82.3 - Jan 7 2010
Close window at 46.019


Any Ideas of what I am doing wrong?

Re: CSmySQL New functions (SSL comming soon) [Re: Carlos3DGS] #320833
04/25/10 09:50
04/25/10 09:50
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
Cool!
I had some troubles with starting but now it works.
Its a cool system for highscores or also mmo games!
i will try a onlinegame only based on a mysql database
if it works, it would be a good alternative to the normal multiplayer games

EDIT:

my first test works with three different player models with no frame rate loss.
my test:
3 clients running with server on the same computer nearley
30% cpu usage by 3 GHz dual core.
i will try to reduce this to use more connections at one time but i am looking forward for better performance


Last edited by Richi007; 04/25/10 20:28.

Visit my site: www.masterq32.de
Re: CSmySQL New functions (SSL comming soon) [Re: Carlos3DGS] #329988
06/24/10 14:58
06/24/10 14:58
Joined: Nov 2002
Posts: 913
Berlin, Germany
S
SchokoKeks Offline
User
SchokoKeks  Offline
User
S

Joined: Nov 2002
Posts: 913
Berlin, Germany
Very late reply, but i now know the solution: to Carlos3DGS Problem: you also need to copy libmysql.dll into the same folder (acknex_plugin) where you put A6mySQL.dll

If you already did that, your system is missing another dll that A6mySQL or libmysql need to function.

Page 24 of 24 1 2 22 23 24

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1