Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
5 registered members (miwok, AndrewAMD, Quad, TipmyPip, fairtrader), 601 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Lite-C and SDK plug-in problem #310910
02/17/10 16:46
02/17/10 16:46
Joined: Jan 2010
Posts: 3
Dominican Republic
Dartacan Offline OP
Guest
Dartacan  Offline OP
Guest

Joined: Jan 2010
Posts: 3
Dominican Republic
Hi guys.
I compile the “GStudio7\sdk_pugin\sampledll” and copy the sampledll.dll in the “acknex_plugins” folder. I build a application (test.exe) to communicate between Game Studio project (shooter_Demo) and test.exe. I don’t have any problem if I try to call some DLL function inside game studio, but I have problem when I try to call this function inside the test.exe. To probed this DLL I create other simple function inside this sampledll.dll, the function is “int Sum(long a, long b);” when I call this function in the test.exe it function work perfect.
I try to change the mouse coordinate in the game studio project and I want to use other external .exe software to do that, but I always have “Access Violation”.
Look this sample:
****** sampledll.dll ****
….
DLLFUNC void ZoomIn(var value)
{
// decrease the camera FOV by the value
v(camera).arc -= value;
}
DLLFUNC int Sum(long a, long b)
{
// I create this simple function
Return a+b;
}

******* test.exe ********

extern "C" _declspec(dllimport)void ZoomIn(long value);
extern "C" _declspec(dllimport)int Sum(long a, long b);


Void TForm1::ButtonClick(TObject *Sender)
{
Int aux=Sum(2,3);// It work PERFECT
ZoomIn(30);// It have a access violation message. Yes, the gstudio A7 project (shooter_demo) is working.
}
Anybody knows what happening here?


**********
ANIME3D
3DS Max
**********
Re: Lite-C and SDK plug-in problem [Re: Dartacan] #310918
02/17/10 17:04
02/17/10 17:04
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
Please don't make double posts. I removed your other thread, which was in the wrong forum anyway.

To set the coordinates of the mouse, you can include windows.h and use SetCursorPos(x,y). You needn't create a plugin for this.

Re: Lite-C and SDK plug-in problem [Re: Lukas] #310926
02/17/10 17:21
02/17/10 17:21
Joined: Jan 2010
Posts: 3
Dominican Republic
Dartacan Offline OP
Guest
Dartacan  Offline OP
Guest

Joined: Jan 2010
Posts: 3
Dominican Republic
Sorry about double post. blush

My real problem is try to change any Entity, Var, Panel or Vector property in the game studio through an external .exe application. For sample, If I call, in the .exe application, the ZoomIn() function to change the camera parameters(in the sampledll.dll I use the DLLFUNC void ZoomIn(var value) function) then I have an access violation message. I want change any game studio vector through an external .exe application. Yes ,I use a DLL plug-in to do that but all function send me an access violation message.


Last edited by Dartacan; 02/17/10 17:23.

**********
ANIME3D
3DS Max
**********
Re: Lite-C and SDK plug-in problem [Re: Dartacan] #310930
02/17/10 18:11
02/17/10 18:11
Joined: Sep 2009
Posts: 987
Budapest
Aku_Aku Offline
User
Aku_Aku  Offline
User

Joined: Sep 2009
Posts: 987
Budapest
Interesting subject.

Re: Lite-C and SDK plug-in problem [Re: Aku_Aku] #310944
02/17/10 19:55
02/17/10 19:55
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
Well, I don't know much about this topic, but the access violation message is propably because Windows prevents programs to manipulate other programs or accessing their memory. You will somehow have to make Gamestudio allow your other exe to access it, if that is possible.

But what about just writing a text file which is read and interpreted by the Gamestudio program?


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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