Quote: "I'm operating behind a router, and I've tried giving it my LAN IP, WAN IP, the LAN IP of my router, and "127.0.0.1" and none of them have worked"
What exactly do you mean none of them have worked? Does it fail to host, or does the client fail to join?
Quote: "Im building my own FPS Multiplayer. I would like to know how the best way for making a chat function and make use of it?"
This is normally how I do it:
Create some global variables to store the text and to indicate when the return key is pressed:
global TEXT_ENTERED as string
global RETURNKEY_DOWN as boolean
Then add this function at the end of the code to process input:
function HandleEntry()
new$=entry$()
length = len($new)
for a=1 TO length
if asc(mid$(new$,a))=8
TEXT_ENTERED = left$(TEXT_ENTERED,len(TEXT_ENTERED)-1)
else
TEXT_ENTERED = TEXT_ENTERED+mid$(new$,a)
endif
next a
clear entry buffer
endfunction
This function is called from the main loop, and won't pause execution of the program. Then all you need to do is check for the return key, and reset the text when it is pressed:
if returnkey()
if RETURNKEY_DOWN=0
`Do stuff with text here, like..
TPutString TEXT_ENTERED
TSendAll
`Reset text variable and return key variable
TEXT_ENTERED = ""
RETURNKEY_DOWN = 1
endif
else
RETURNKEY_DOWN = 0
endif
You can display the currently entered text on the screen by outputting TEXT_ENTERED.
Quote: "That is very purdy of you ben. Good job and stuff."
Thanks, it's nice to see you here again.