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 / Running network game on one computer

Author
Message
andreas 542
20
Years of Service
User Offline
Joined: 19th Nov 2005
Location:
Posted: 4th Dec 2005 00:24
So ive read in the help files that if you run several applications a network game can be simulated. I have no network at home and ive been trying to get the network game to run on my computer, but to no avail.

The first problem is that the PERFORM CHECKLIST FOR CONNECTIONS command returns no results, because my laptop has no connection to an outside source

So when i try to CREATE NET GAME it pops up with a box where i can choose between COM1 -> COM4

Whatever one I choose (as obvious as it is) it fails to create it

So im wondering wether a different method is required to run on a single machine

Help greatly appriceated

Thanks

Total DB n00b
TDK
Retired Moderator
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 4th Dec 2005 07:05
You can quite easily run two programs on the same PC which talk to each other - you just set the client to the IP address of the machine it's running on. See if this is any help.

http://forum.thegamecreators.com/?m=forum_view&t=59539&b=10

TDK_Man

SimSmall
21
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 4th Dec 2005 13:19 Edited at: 4th Dec 2005 13:41
for same machine, try using:

Internet TCP/IP For DirectPlay - most machines these days come with a network card and your IP already set up...

On the machine that creates the session, leave the IP parameter blank, and on client(s) set the IP as 127.0.0.1

Don't try and set two different connection types, like TCP THEN serial, that just crashes DB without fail.

Edit:

just read this:

Quote: "PERFORM CHECKLIST FOR CONNECTIONS command returns no results"
this will be your problem, set net connection must use one of those results. it could be because you missed the word 'net' out (perform checklist for net connections) - secondly, it looks like you haven't 'set net connection' a net connection must be set before you can 'create net game' - create net game wants a number, the number of the connection type in the checklist.

so, rounded up:

perform checklist for net connections
for x=1 to checklist quantity()
print x + " - " + checklist string$(x)
next x

this shows all the net connetions you have and numbers them.



what I've done in the CLI sets the connection as IPX, NOW I can do create net game with the usual parameters

if perform checklist blah blah still return nothing - do you have any machines with a network card in them, or friends who have such machines, those two will be your best bet.

...maybe one day I'll finish a project
andreas 542
20
Years of Service
User Offline
Joined: 19th Nov 2005
Location:
Posted: 5th Dec 2005 22:54
thanks a lot guys, got it working now

Total DB n00b

Login to post a reply

Server time is: 2026-07-22 06:01:49
Your offset time is: 2026-07-22 06:01:49