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.

DarkBASIC Professional Discussion / help with my fairly basic game idea

Author
Message
finnbenson99
12
Years of Service
User Offline
Joined: 18th Sep 2013
Location:
Posted: 18th Sep 2013 14:36
hello, i'm quite new to dark basic and programming in general although i do have a bit of java experience. having come across dark basic, i must say i think it's great although finding help can be difficult because it seems that it has only a small community of users. i have a really great idea for a very simple game though i won't share the actual idea until further down the line of development. in fact i think this game could be developed in a few hours. so what it needs is

-console pops out to two or more players over a network by whatever protocol

-player 1 and player 2 and player 3 (3 players for example) are prompted to write a phrase (one or more words), so player 1 has written string 1, player 2 has written string 2, player 3 has written string 3. string 1 is stored in file 1, string 2 in file 2, and string 3 in file 3 (not visible to the player for the time being).

-next player 1, player 2 and player 3 are prompted to write another phrase, player 1 writes string 4 which is stored in file 2 next to string 2, player 2 writes string 5 which is stored in file 3 next to string 3. player 3 writes string 6 which is placed in file 1 next to string 1.

-next player 1 player 2 and player 3 are prompted to write another phrase. player 1 writes string 7 which is stored in file 3, player 2 writes string 8 which is stored in file 1, player 3 writes string 9 which is stored in file 2. you get the idea.

then this effectively repeated
-player 1 string 10 to file1
-player 2 sting 11 to file2
-player 3 string 12 to file3

-player 1 string 13 to file2
-player 2 sting 14 to file3
-player 3 string 15 to file1

-player 1 string 16 to file3
-player 2 sting 17 to file1
-player 3 string 18 to file2

finally- print file1 to player 2
-print file2 to player 3
-print file3 to player 1


i have no idea how to use network connectivity in dark basic, could someone explain how i would do this? or help me develop it?
SamKM
17
Years of Service
User Offline
Joined: 25th May 2009
Location:
Posted: 18th Sep 2013 19:15
Hi, welcome to the forums
Ok, network connectivity... To be honest I've never really made anything networked myself, so I'm not going to be much help, but I'll try to help
DBPro does have built-in network commands that use the DirectPlay API, but it's probably best not to go using them... DirectPlay is an outdated system, and in my experience the build in commands can be very buggy. Try downloading one of the free network plugins (The two I know of are Tempest and Multisync), and having a play around with the commands in that.
Good luck, post again if you get stuck :3
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 19th Sep 2013 08:21
You would need to create a server to handle the communications between all the players and store the "files" on the server.

Depending on what you're trying to accomplish, if each playing creates their own initial file, then each player would need to know who comes after them and then send a message to that next player with the new phrase to be appended to their file and so on. (centralized server for files sounds best)

finnbenson99
12
Years of Service
User Offline
Joined: 18th Sep 2013
Location:
Posted: 19th Sep 2013 12:50
thanks, i will start developing now and will return if/when i get stuck, thanks again SamKM and Phaelax

Login to post a reply

Server time is: 2026-07-06 16:49:54
Your offset time is: 2026-07-06 16:49:54