Gamestudio Links
Zorro Links
Newest Posts
How to buy tomorrow at open?
by frutza. 06/01/23 19:58
Adding Position to Current Trade
by AndrewAMD. 05/30/23 10:34
Unable to change multiplier of contract
by vicknick. 05/30/23 06:56
Wrong Definition of Sharpe Ratio in Zorro?
by vicknick. 05/29/23 06:32
Backtest strategy on bitcoin/crypto
by JamesHH. 05/26/23 04:36
Return type of floor()
by AndrewAMD. 05/25/23 14:17
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (AndrewAMD), 1,065 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
BInnacle, androsa, XquicksnowX, danishinvest, Trail
18942 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Connect Visual Basic with Gamestudio #188581
03/15/08 12:44
03/15/08 12:44
Joined: Mar 2008
Posts: 5
K
kostas Offline OP
Newbie
kostas  Offline OP
Newbie
K

Joined: Mar 2008
Posts: 5
Hello

I need to connect a client program (Visual Basic) with another as a server (Gamestudio) to act on games with a lot off interfaces and separate databases.

I tried to do that using GSTNet, but I have not been able.

Is this possible?

Re: Connect Visual Basic with Gamestudio [Re: kostas] #188582
03/15/08 15:50
03/15/08 15:50
Joined: Oct 2004
Posts: 1,655
T
testDummy Offline
Serious User
testDummy  Offline
Serious User
T

Joined: Oct 2004
Posts: 1,655
Quote:

Is this possible?



not applicable to GSTNet
guess #105028
all (rel)
hypothetical: yes
practical: no
cost vs return: sux
req mad factor: med
net impl separated (netI)
Code:

VB <-> C++
3DGS <-> netI <-> VB



Re: Connect Visual Basic with Gamestudio [Re: testDummy] #188583
03/16/08 01:31
03/16/08 01:31
Joined: Mar 2008
Posts: 5
K
kostas Offline OP
Newbie
kostas  Offline OP
Newbie
K

Joined: Mar 2008
Posts: 5
I do not understand
You can better explain or give an example?

Re: Connect Visual Basic with Gamestudio [Re: kostas] #188584
03/16/08 09:20
03/16/08 09:20
Joined: Oct 2004
Posts: 1,655
T
testDummy Offline
Serious User
testDummy  Offline
Serious User
T

Joined: Oct 2004
Posts: 1,655
Quote:

I do not understand.



Neither do I, and sadly it's supposed to be MY reply.

Quote:

You can better explain or give an example?



It's labeled 'guess' and I don't recall the entire frame for it, but I suspect that it would be guessy and full of holes anyway, so I doubt it.

1. guesswork, wordy false hope mixed with ignorance

If you are using a custom net implementation (netI), like GSTNet, which is open source, or instead closed and documented adequately (GSTNet may not be), or even your own net implementation, that is, not using standard 3DGS net, or instead maybe using standard 3DGS net in the presence of a Direct X, Direct Play wiz (which might be you, if I got anything here near a mark), than, keeping in mind that existing protocols (RFCed) might be relevant, there may be a n% chance that some net protocols (netP) used are adequately known.

With a netI possibly realized and tied to 3DGS with C++, a C++ plugin, or ???, and the use of a 'known' netP, data sent from 3DGS, might be read using a custom VB service, which was built with netP in mind.

(alternates for better, for worse)
2. How about that clipboard?
3. We're talking OLE, baby?
4. Windows Messaging system funk, you dig?
5. lame file tricks, a guide
6. MSDN, go fish
7. I think I was merely stating that it should be possible, which qualifies as a dummy service \ disservice on some days, evidently.
Please upgrade from dummy to informed developer, or professional, at this 'milestone'.
8. Step educate. Refine goals, and if necessary, re-state.
9. Take a drag off of my pipe, ma'am.
10. The null response should have been preferred.
(keep crlf, n, br please)
/

Re: Connect Visual Basic with Gamestudio [Re: testDummy] #188585
03/17/08 09:36
03/17/08 09:36
Joined: Mar 2008
Posts: 5
K
kostas Offline OP
Newbie
kostas  Offline OP
Newbie
K

Joined: Mar 2008
Posts: 5
In this web address

http://www.ktthome.com/auxiliar/Client_Server.zip

You can download the file Client_Server.zip containing 3 programs: Client.exe (Visual Basic), Server.exe (Visual Basic) and client_server (Visual C + + 6) for Windows XP.

To communicate VB <-> VB:
1. Writing in Server.exe: Port = 50000 (for example), and press [Listen]. The server is ready to accept client connections.
2. Writing in Client.exe: Server = 127.0.0.1 and Port = 50000 and press [Connect]. It establishes the connection to the server.
3. Now you can send messages between client and server
A. Client: write Text2 = AAAAA and press [send]
B. Server: write Text2 = BBBBB and press [send]

To communicate VC + + <-> VC + +:
1. Open twice program client_server.exe
2. In the first mark in Socket Type option Server, write in Server Port = 50000 and press [Listen]. The server is ready to accept connections.
3. In the second, marking Socket Type option Client, write in Name Server = 127.0.0.1, Server Port = 50000 and press [Connect]. It provides connection to the server.
4. Now you can send messages between client and server
5. Client: write Message = AAAAA and press [send]
6. Server: writw Message = BBBBB and press [send]

To communicate VB (client) <-> VC + + (server)
1. Open client_server.exe program, marking Socket Type option Server, write in Server Port = 50000 and press [Listen]. The server is ready to accept connections.
2. Open program Client.exe: Server = 127.0.0.1 and Port = 50000 and press [Connect]. It establishes the connection to the server.
3. Now you can send messages between client and server
4. Client: write Text2 = FFFFF and press [send]
5. Server: Message = BBBBB write and press [send]

Now you may wonder if the connection for Windows XP is possible
1. VB (client) <-> Gamestudio (server)
2. VC + + (client) <-> Gamestudio (Server)

If you have a clear answer, I would like to try it with VB (client) and VC + + (server) that I have sent

Re: Connect Visual Basic with Gamestudio [Re: kostas] #188586
03/17/08 12:58
03/17/08 12:58
Joined: Oct 2004
Posts: 1,655
T
testDummy Offline
Serious User
testDummy  Offline
Serious User
T

Joined: Oct 2004
Posts: 1,655
Right.

(Lite-C track may be different.)

*Using:
--Delphi
--C++ -> VC++, Dev-C++, etc.
--?
--3DGS SDK
--Socket, WinSock info?
--3DGS Higher Languages Forum?
--MSDN?

Write a socket plugin for 3DGS (maybe with callbacks), or locate one?
(similarities with VB (C), VB (S), VC++ (SnC) probable?)


assumed game use (perhaps, incorrectly)
cached, opt to disregard:
VB6, VC+6, and future generations, but also for example there is:
--Dev-C++ -and-
-->>Devpaks for Dev-C++ (new) -and-
-->>--Devpaks ->Networking Category -and-
-->>-->>selected Zoidcom entry for no particular reason -and-
-->>-->>--to Zoidcom home
-->>-->>--Being the dummy that I am,
-->>-->>--I have the foolish notion that this army of 1 can,
-->>-->>-->>--wedge Zoidcom into a 3DGS C++ plugin using SDK, -and-
-->>-->>-->>--make VB talk & listen Zoidcom lang

Zoidcom (just an example), is NetI (an implementation), speaking NetP (a protocol).

Disclaimer: The author is not directly advocating the use of -_-

Re: Connect Visual Basic with Gamestudio [Re: testDummy] #188587
03/17/08 16:56
03/17/08 16:56
Joined: Mar 2008
Posts: 5
K
kostas Offline OP
Newbie
kostas  Offline OP
Newbie
K

Joined: Mar 2008
Posts: 5
Any solution more "direct"?

Re: Connect Visual Basic with Gamestudio [Re: kostas] #188588
03/18/08 23:26
03/18/08 23:26
Joined: Mar 2008
Posts: 5
K
kostas Offline OP
Newbie
kostas  Offline OP
Newbie
K

Joined: Mar 2008
Posts: 5
TestDummy, as I read your post, which is already erased (???), and do not know what to tell you more.

I have difficulty with the language, but I know what I am asking to help. There are many people who help without interest, and you have an example with GSTNet, an excellent job, even though I could not use it to my particular project, because it do not accept the connection.

I would ask the people who know if I can give a concrete solution, as GSTNet thing, but it can work with client programs that have been in my previous post.

Thanks for your interest and your time spent.

Re: Connect Visual Basic with Gamestudio [Re: kostas] #188589
03/19/08 14:47
03/19/08 14:47
Joined: Jun 2001
Posts: 1,004
Dossenbach
N
nfs42 Offline
Serious User
nfs42  Offline
Serious User
N

Joined: Jun 2001
Posts: 1,004
Dossenbach
use udp in your apps and it works with GSTSocket


Andreas
GSTools - Home of
GSTScript 0.9.8: lua scripting for A6/7/8
GSTNet 0.7.9.20: network plugin for A6/7/8
GSTsqlite 1.3.7: sql database plugin for A6/7/8
3DGS Codebase: 57 snippets || 3DGS Downloads: 248 files

Moderated by  aztec, Blink, HeelX 

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