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 / I can't figure out what i'm doing wrong

Author
Message
smartypants
21
Years of Service
User Offline
Joined: 27th Apr 2004
Location: At is computer
Posted: 9th Jan 2005 05:14
I'm trying to send information from one computer to the other, i got them to join the same game, but when i try to send a string nothing gets sent... or recived.. or displayed i don't know whats going wrong. The examples that DBC came with arnt helping, this is what i got...



can anyone tell me what i'm doing wrong? or point me at a good tutoral?

King of the asked question
Mr Pointless
20
Years of Service
User Offline
Joined: 17th Oct 2004
Location: Stuck in the UK
Posted: 9th Jan 2005 05:28 Edited at: 9th Jan 2005 05:30
I'm not sure what "always active" does but try putting this code in place of the current "if net message exists()" command

Also try:
adding "Sync on"
and "Sync Rate XX" (where XX is the number of times you want the screen to redraw itself.)
near the start of the code. Sync Rate 30 should do the trick.

next add "cls" after "do".
then add "Sync" before your "loop" command.

Then see what happens.

[EDIT] Sorry, my inability to use this forum properly has resulted in just a link to the code I added. Here it is.


"I shall avenge your death!"
"Er, I'm not dead!"
smartypants
21
Years of Service
User Offline
Joined: 27th Apr 2004
Location: At is computer
Posted: 9th Jan 2005 10:26
Its just saying "No Message". When one computer joins the session the message "Player 2" appears above "Player 1" so they must be in the same game.


King of the asked question
Mr Pointless
20
Years of Service
User Offline
Joined: 17th Oct 2004
Location: Stuck in the UK
Posted: 10th Jan 2005 06:42
I didn't mean replace the "always active" command with the sync commands, just add the sync commands near the top. I looked in DBPro help for "always active on/off". I don't think the command's available in the pro version but it still explained what it did, so try adding "always active on" again.

Don't worry, I know you're using DB Classic but since I work in Pro, I'm suggesting stuff that's likely to work in DBC.

"I shall avenge your death!"
"Er, I'm not dead!"

Login to post a reply

Server time is: 2025-05-24 19:11:35
Your offset time is: 2025-05-24 19:11:35