Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Help with dbText

Author
Message
MultiyPlayer game
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Watching you!
Posted: 9th Feb 2008 06:16
What am i doing wrong here
dbText ( dbGetFTPDir () );
kBessa
18
Years of Service
User Offline
Joined: 8th Nov 2006
Location: Manaus, Amazonas, Brazil
Posted: 9th Feb 2008 07:28
From the help files:

Quote: "dbText
This command will output the provided string using the current text settings at the specified coordinates on the screen.

Syntax
void dbText ( int iX, int iY, char* szString ) "


Id suggest you to take a look at the included documentation. It might not be complete but it's of great help!
MultiyPlayer game
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Watching you!
Posted: 9th Feb 2008 07:58
this is the code im useing and im still not geting my file directory.
Todd Riggins
20
Years of Service
User Offline
Joined: 29th Oct 2004
Location: Texas, USA
Posted: 9th Feb 2008 10:37
see if this works, try:
dbSync();
after
dbText ( 10, 10,dbGetFTPDir() );

Inspirational Music: Descent ][ Redbook Audio CD Soundtrack
MultiyPlayer game
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Watching you!
Posted: 9th Feb 2008 14:51
this is my new code still not geting the directory.
Todd Riggins
20
Years of Service
User Offline
Joined: 29th Oct 2004
Location: Texas, USA
Posted: 9th Feb 2008 23:37 Edited at: 9th Feb 2008 23:38
I keep "assuming" and it keeps biting me in the arse.

I have no FTP experience with DBPro/DarkGDK at all. So I did the best I could for a little code snippet type thing. The code below seems to do what your code wanted to above. I dont know if "password" and "username" needs to be changed to finally get "connected". So I guess it's up to you to supply that.

Hopefully this will work for ya:



Inspirational Music: Descent ][ Redbook Audio CD Soundtrack
Oneka
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location: Hampton,VA
Posted: 10th Feb 2008 02:07
I personally would not recommend using FTP as a source of access a list of multiplayer servers due to the speed of the FTP commands in Darkbasic / DarkGDK, as an alternative I would use a central server in which clients would connect to find other servers, I am pretty sure this is the method many games use such as Battlefield 2, World of Warcra[ft(p)], and other online games.


Making dreams possible, one line at a time...
MultiyPlayer game
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Watching you!
Posted: 10th Feb 2008 20:35
It is connecting but im still not geting my directory. Im am useing yahoo web hosting how whould i set it as a central server in which clients would connect to find other servers. not useing ftp.
Paul08
16
Years of Service
User Offline
Joined: 20th Feb 2008
Location: Oxford, UK
Posted: 26th Feb 2008 13:16
..are you sure a 1 second wait is long enough for an ftp connection to be stable??

why do you care what directory your in? just grab whatevers in that folder?

and lastly, did you say your pointing your fancy domain name at some crap web hosting server? - never going to work dude.

a web hosting server - namely yahoo the one your using has millions of users accessing it, even if you could run apps on it it would be slow.

To get a list of current servers why don't you just call up a webpage that has the details on it (or even a txt file) using a tcp connection, grab the contents of that file,
stick them into a variable.
parse them.
print to screen available options.
setup a select case statement.
depending upon there input, connect to specified server..

sound ok?

Login to post a reply

Server time is: 2024-11-20 03:38:57
Your offset time is: 2024-11-20 03:38:57