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 Discussion / Can DarkBASIC do online games?

Author
Message
ADGamer
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location:
Posted: 22nd Feb 2005 23:13 Edited at: 1st Jul 2009 08:48
2

Robot
21
Years of Service
User Offline
Joined: 27th May 2004
Location:
Posted: 22nd Feb 2005 23:16
to put it simply, yes

The happenings of tommorow are behind us now
ADGamer
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location:
Posted: 23rd Feb 2005 00:32 Edited at: 1st Jul 2009 08:48
3

Advancement Games
20
Years of Service
User Offline
Joined: 6th Jan 2005
Location:
Posted: 23rd Feb 2005 00:48
DBClassic can make online games. You would have to just order the DarkBasic Enhancement Package that comes with DarkMatter. I do not have to worry about this since I have DarkBasic Pro!

Coming to www.mworks4me.bravehost.com:
Warlords of Earth: Shadows of the Past
ADGamer
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location:
Posted: 23rd Feb 2005 03:23 Edited at: 1st Jul 2009 08:48
4

Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 23rd Feb 2005 04:37
Check out a 3rd party plugin first. The enhancement pack's net commands use directplay, which isn't that pretty .


"Lets migrate like bricks" - Me
ADGamer
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location:
Posted: 23rd Feb 2005 05:36 Edited at: 1st Jul 2009 08:48
5

Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 23rd Feb 2005 06:08
I mean the enhancement pack.


"Lets migrate like bricks" - Me
Random 69
20
Years of Service
User Offline
Joined: 24th Aug 2004
Location: Marshmellowland
Posted: 23rd Feb 2005 06:45
He doesnt want them to see each other im pretty sure he means to put it on a website like flash ........


I dont think THAT is possible with db but i could be totaly wrong

Low Res Sig
ADGamer
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location:
Posted: 23rd Feb 2005 07:49 Edited at: 1st Jul 2009 08:48
6

Osiris
20
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 23rd Feb 2005 20:09
what kind of game is on the badnose web page?

ADGamer
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location:
Posted: 24th Feb 2005 05:55 Edited at: 1st Jul 2009 08:48
7

3beth
21
Years of Service
User Offline
Joined: 13th Feb 2004
Location: Good ole Kentucky
Posted: 24th Feb 2005 14:29
Well everybody now says it can. Well seeing is believing so show me 1 online game in dbc. I'll then believe that it can be done, even if it is as simple as just a rotating 3ds model in an exe.,just post a url.

sincerely

Beth

PS Im not being smart, everybody just told me it couldn't be done, and to give up trying.

Beth=The ditsy blonde. I like men and programming, but mainly programmed men!
Los
20
Years of Service
User Offline
Joined: 3rd Jan 2005
Location:
Posted: 24th Feb 2005 17:58 Edited at: 24th Feb 2005 17:59
Quote: "you mean darkmatter 3?"


no I think he means THE 3rd party plugin to handle all multisyncing net controlling commands but he's removed his link.

" Ahh to finish something! My boy, have you ever accomplished anything? "
The Wendigo
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: A hole near the base of a tree in the US
Posted: 24th Feb 2005 18:37
3beth, im not absolutely sure on this, but there was a game made a while back ago called Star Wraith (it's generated sequals!). It was a space sim made, i believe, in DBC and I also think it had a multiplayer component. plus, I've created an online multiplayer game in DBP. I used the exact same commands as the DBC enhancement pack uses. Alas, I lost the code (most of it anyways... not sure how). Making an online game IS possible with Dark Matter 1 (i think it is) enhancement pack and DBC, but making an embedded one in a web page (like a flash game) is not. You might check out Jamagic or Jet3D for that kind of stuff, but in my honest opinion, i think sticking to DBP would be better (performance-wise and ease of coding).


Home of DOOP, Strata Works, and Height
Qweeg
20
Years of Service
User Offline
Joined: 23rd Sep 2004
Location: Kent
Posted: 24th Feb 2005 21:56 Edited at: 24th Feb 2005 21:57
There was a newcommers thread - see below - relating to online (web deployed) games recently, and I think Clueless explained the situation pretty well. It related to DBPro - but since the outcome is that you can't do this it applies equally to DB classic, and so may be of some use in terms of explaining why it can't be done.

[href]
http://forum.thegamecreators.com/?m=forum_view&t=46946&b=7
[/href]
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 24th Feb 2005 22:05
Quote: "but he's removed his link."

Nah, the site I had it on is stupid and keeps going offline. Anyway I was talking about the DBC enhancement pack


"Lets migrate like bricks" - Me
ADGamer
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location:
Posted: 25th Feb 2005 02:20 Edited at: 1st Jul 2009 08:48
9

blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 25th Feb 2005 02:24
No.

Mr Blanky - This Time, It's Personal
Monty87
21
Years of Service
User Offline
Joined: 8th Dec 2003
Location: not very deep in the west country, eng
Posted: 25th Feb 2005 03:59 Edited at: 25th Feb 2005 03:59
ok?

huzzar! now lets move on. what do you put on your scone first, the clotted-cream or the jam?

Monty
ADGamer
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location:
Posted: 25th Feb 2005 05:29 Edited at: 1st Jul 2009 08:49
0

data 98junkiee
20
Years of Service
User Offline
Joined: 19th Jan 2005
Location: England
Posted: 4th Mar 2005 16:52
It can also make networkable games
ADGamer
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location:
Posted: 4th Mar 2005 23:07 Edited at: 1st Jul 2009 08:49
-

Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 4th Mar 2005 23:14
Games that are networkable. He probably means LAN games. Speaking of which, my DLL can be used for LAN games as well as online games


"Lets migrate like bricks" - Me
robo cat
21
Years of Service
User Offline
Joined: 23rd Feb 2004
Location: In a cat litter tray, near you...
Posted: 5th Mar 2005 00:43
You can make an online game in DBPro, not sure about DBC. Although it has its problems, such as the net buffer not working properly, its really not a problem if the game is stucture to compensate for these problems. However, avoiding this issue with multiple players generally requires a non-player server.

Simple... yet fun!
data 98junkiee
20
Years of Service
User Offline
Joined: 19th Jan 2005
Location: England
Posted: 5th Mar 2005 02:51
Thanks that is what I meant like say you have 4 computers connected together you can make multiplayer games that you can play on them.
Ollivier
20
Years of Service
User Offline
Joined: 27th Feb 2005
Location:
Posted: 5th Mar 2005 06:31
Once upon a time a student who had headaches... Why? Cause he worked... he worked... It's not mine, thanks to Gougou1, Cause if you have a brain, with this code, it's near 7 computers which are connected! It was two years ago...

SERVER:


PLAYER:


I say you again it's not mine.
D a r k
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: In ur fridge, eatin ur foodz.
Posted: 5th Mar 2005 13:12
This might be possible but im not too sure, If it were really commited into putting a game online, but a server but a download for the game on a website, then make all the people who run the game connect to your server, so everyone who is playing the game can play together through your server. Just an idea, it might not be possible im still simi new to DB and I haven't done any online things yet. One thing though runing your own server is very expensive so I hear so unless your game is really good I wouldn't recommend this.
D a r k
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: In ur fridge, eatin ur foodz.
Posted: 5th Mar 2005 13:16
^^^^^ EDIT ^^^^^^

This might be possible but im not too sure, but if you were really commited into putting a game online. Put a download link for the game on a website, then make all the people who run the game connect to your server, so everyone who is playing the game can play together through your server. Just an idea, it might not be possible im still semi-new to DB and I haven't done any online things yet. One thing though runing your own server is very expensive. So unless your game is really good I wouldn't recommend this.

*I was half asleep the first time I posted this so, i reposted it to make it more clear*
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 5th Mar 2005 17:52
Ph34r the french comments in that code. Ph33334r them.


"Lets migrate like bricks" - Me
Call me coder
20
Years of Service
User Offline
Joined: 5th Mar 2005
Location:
Posted: 5th Mar 2005 22:11
Ok. putting a game oinline is simple. make the game an exe file, use website creating software (such as bravenet), and upload it to the site. This is not multiplayer, but that is how to put games on a site.

P.S. Is there some free dl of darkmatter 2 or 3? If so please post link. all i got is Game Space Light and it is very complicated for me.



TO ALL THOSE PROGRAMING PEOPLE OUT THERE!
Ollivier
20
Years of Service
User Offline
Joined: 27th Feb 2005
Location:
Posted: 5th Mar 2005 23:31
I don't use net commands to create an online game. I use it to communicate viewing informations in schematics structures (trees, arrays, etc...)
If anybody could translates frenchs comments, I think it'd be better for you.

A game is a program in which a field of information is used when you stop the game. Datas field is saved on the disk. When you load an old game, the program load field and prepare the game exactly like it was before being stopped.
Online send and receive fields via the modem.
If anybody posts a short game there. I'll show you how to structure datas to create a field type. Then it'll be possible to integrate the net source code!
ADGamer
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location:
Posted: 6th Mar 2005 23:23 Edited at: 1st Jul 2009 08:49
11

Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 7th Mar 2005 02:10 Edited at: 7th Mar 2005 02:14
I have translated the server version of that code into English:



I would do the client code too but I'm a bit busy at the moment


"Lets migrate like bricks" - Me
ADGamer
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location:
Posted: 22nd Mar 2005 10:29
.....

Mantis-Games© (Game in progress)
http://img181.exs.cx/my.php?loc=img181&image=banner7yd.jpg
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 22nd Mar 2005 10:52
I'll bloody ... you damnit! You only joined a couple of months ago, why the hell are you attempting to make an online game, when you probably can't even make an offline game, huh? WELL?


"Lets migrate like bricks" - Me
ADGamer
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location:
Posted: 22nd Mar 2005 10:58 Edited at: 1st Jul 2009 08:49
132

Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 22nd Mar 2005 11:03
Oh okay, that makes a tiny bit more sense.


"Lets migrate like bricks" - Me
ADGamer
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location:
Posted: 22nd Mar 2005 11:19 Edited at: 1st Jul 2009 08:50
1234

waffle
22
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 26th Mar 2005 13:30
DBC can do multiplayer games. DBPro seems to be having minor DX issues with connecting, but it works too. Also, you do not need DM enhancement to do online stuff. DB113 will work fine. The enhancement pack with DM simply adds memblocks and DLL access and a few other minor widgets.

On the note about buffer problems ... that is usually caused by sending data faster than it can be recieved ... Fast CPU (50 FPS) sending to a Slow CPU (10 FPS). DBPro is generally faster than DBC most of the time, depending on code, media, and so on. I have found some times when DBC was faster, but I think thats mostly a system issue where my CPU does not meet the DBPro standard, but excedes the DBC standard. Also, packet loss for online gaming should be expected and planed for.

Locking the thread ...
A thread like this seldom atracts any real attentions from mods,
unless you place MMOLRPG in the title, but then they lock those as soon as they are spotted. Here, you are actually talking about the possibity on getting two people to play the same game .... Thats not MMXXXX and so is a good topic.

Dedicated server ...
Not required. Neither DBC nor DBPro support game lobbies. A game lobby is a bit more than a chat room. Its an app that runs on its own server that keeps track of other games that are in progress. These other games could be peer to peer games like DB/DBPro supports. A lobbyable game would register with your OS so that no matter which game lobby you visit, if that lobby supports your game, your game could be launched from within the lobby. The lobby would then list you as hosting and permit others to connect to your game directly. As you continue to play your game, your game will continue to inform the lobby of important game changes (user come-go, banned, block new entries, end the game, host changes ). When the game exits, control is returned to the lobby to await new games and so on...

But for DB/DBPro, your better off offering commandline support for connections. Example: your in a chat room ICQ ? and are ready to play you game with someone. You decide who hosts and who joins ...
the hosts goes:
start - run - yourgame /h
the joiner goes:
start - run - yourgame /j 123.123.123.123
to connect to the IP of the host.

then, in code you just handle all the details ....

Login to post a reply

Server time is: 2025-05-31 05:41:48
Your offset time is: 2025-05-31 05:41:48