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 / ok multiplayer colde from ages ago local machine whats wrong it worked before but not anymore

Author
Message
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 19th Jul 2003 16:21
this is some code that ianm wrote for me ages agoi changed it and now it doesnt work. and i cant see why

This is the Host which creates a game called Chat and your player name is Server and there is a maximum of 2 players on the 127.0.0.1 address. This works fine. Ready for connections and sends packets fine.



This is the Client which looks for a game called Chat and your player name is Client and you fill up the maximum of 2 players on the 127.0.0.1 address. This doesnt work. Says it "Cannot locate Chat on the server". Cant see whats wrong.



soooo.....
wadoidowidis
Reset
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 19th Jul 2003 20:08
Quote: "i changed it and now it doesnt work"


Well change it back then

The thing that jumps out at me straight away is the lack of a sync in your loop. This is *required* for message sending - you can only send one message per sync.

If it still doesn't work, I'll load up your code and actually try it
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 20th Jul 2003 16:17
its not the messange sending that doesnt work
it cant find Chat on the 127.0.0.1 and before you ask yes i have got the host runing and yes the ip's are the same (as you can see from the code). *sigs* ill change it back then

Reset

Login to post a reply

Server time is: 2026-07-21 20:53:32
Your offset time is: 2026-07-21 20:53:32