Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (RealSerious3D, AndrewAMD, chsmac85, dr_panther, TedMar), 942 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Server: Delphi - Client: Lite-C... Possible? #318318
04/07/10 02:27
04/07/10 02:27
Joined: Apr 2010
Posts: 2
Lunacore Offline OP
Guest
Lunacore  Offline OP
Guest

Joined: Apr 2010
Posts: 2
English:
Hello community,

I'd like to create a simple networkgame, but I don't like the acknex-engine to program the server. I use delphi to make one.
My question is:
How can I connect with my client to an external server written in another language? Whiche commands/parameters have I to use? Is this possible?


German:
Hallo Community,

zu Lernzwecken möchte ich gerne ein einfaches Netzwerkspiel programmieren. Dazu sollten ersteinmal nur 2 Clients (je eine Figur) und ein Kreis als zu bekämpfendes Monster erstellt werden. Soweit so gut, erscheint recht einfach.

Nun zum eigentlich Problem:
Ich würde gerne den Server in Delphi schreiben, da mir die Funktionen in Lite-C etwas umständlich und zu oberflächlich erscheinen. Der Server läuft auf einem anderen Rechner als die Clients. Diese müssen sich also mit dem Server verbinden.
In den Tutorials ist nur angegeben, wie man Clients und Server mit der Acknex-Engine aufbaut und miteinander verbindet, aber es ist nicht erläutert (für mich zumindest unauffindbar), wie man einen Client mit einem externen Server verbinden kann, der nicht in Lite-C geschrieben ist. Dazu werden ja eigentlich mindestens IP und Port benötigt.

Meine Frage ist:
Mit welchen Befehlen/Parametern kann ich mich mit einen Server verbinden, der in einer anderen Sprache geschrieben ist? Geht dies überhaupt?


Last edited by Lunacore; 04/07/10 03:36.
Re: Server: Delphi - Client: Lite-C... Possible? [Re: Lunacore] #318353
04/07/10 09:31
04/07/10 09:31
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
Look into socket_connect() laugh


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: Server: Delphi - Client: Lite-C... Possible? [Re: Lunacore] #318648
04/08/10 23:07
04/08/10 23:07
Joined: Dec 2003
Posts: 521
LazyDog Offline
User
LazyDog  Offline
User

Joined: Dec 2003
Posts: 521
why bother using lite-c for the client if you use delphi for the server?

I'd use Delphi for Both!


www.LazyDogSoftware.com
Delphi SDK Homepage

A7 Pro 780
Delphi 5 through 2010
Re: Server: Delphi - Client: Lite-C... Possible? [Re: LazyDog] #318870
04/10/10 15:05
04/10/10 15:05
Joined: Apr 2010
Posts: 2
Lunacore Offline OP
Guest
Lunacore  Offline OP
Guest

Joined: Apr 2010
Posts: 2
I use Gamestudio, because i tried DirectX in C++ without any success. I don't know, how to render my models in a language by using DirectX or OpenGL. In Gamestudio you have to use on or two commands, in other languages it is very difficult.

Re: Server: Delphi - Client: Lite-C... Possible? [Re: Lunacore] #318951
04/10/10 23:10
04/10/10 23:10
Joined: Dec 2003
Posts: 521
LazyDog Offline
User
LazyDog  Offline
User

Joined: Dec 2003
Posts: 521
no, please look at my sdk and the 14 samples written all in Delphi, it is very easy to use delphi instead of lite-c!!!

you don't have to touch directX.


www.LazyDogSoftware.com
Delphi SDK Homepage

A7 Pro 780
Delphi 5 through 2010

Moderated by  HeelX, Spirit 

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