
-----------------------------------
eggplant_burger
Wed Jul 02, 2003 3:04 am

Internet
-----------------------------------
I have always wondered if Turing (preferably 3.1, that's the one I like to use) supports TCP/IP or LAN multiplayer. 

If it does, can someone please direct me to a module or something I can check out in the reference??

PS:I like swords

-----------------------------------
PaddyLong
Wed Jul 02, 2003 8:22 am


-----------------------------------
the Net module is what you're after...  but I'm not sure if it's in 3.1 ... I think it might be, but there is no documentation for it in 3.1

-----------------------------------
eggplant_burger
Wed Jul 02, 2003 2:04 pm


-----------------------------------
hmmmmm, Net module.

Well, if there's no documentation for it, can you give a list of commands available in it??

-----------------------------------
PaddyLong
Wed Jul 02, 2003 2:59 pm


-----------------------------------
WaitForConnection   Waits until a client connects to a specified port. 
OpenConnection   Opens a connection to a specified machine. 
OpenURLConnection   Opens a connection to a file specified by a URL. 
CloseConnection   Closes a specified connection. 
BytesAvailable   Returns the number of bytes available to be read from a net stream. 
CharAvailable   Returns true if there is a character available to be read from a net stream. 
LineAvailable   Returns true if there is a line of text available to be read from a net stream. 
TokenAvailable   Returns true if there is a token available to be read from a net stream. 
HostAddressFromName   Returns a host's address given its host name. 
HostNameFromAddress   Returns a host's name given its address. 
LocalAddress   Returns the host name of the local machine. 
LocalName   Returns the TCP/IP address of the local machine.

-----------------------------------
Tony
Wed Jul 02, 2003 3:26 pm


-----------------------------------
Net module is documented with GUI on holtsoft's site...

Dont expect to have a real-time game over the network though... Net commands will be able to transfer data like scores or whatnot, but it is too slow to play a real-time game (I've tried that with Darkness already).

You could make a chat program though, we already have atleast one submited (with source code I belive), so go check it out.

-----------------------------------
eggplant_burger
Wed Jul 02, 2003 3:37 pm


-----------------------------------
So the Net module is useless for actual multiplayer gaming... great. But what if it's a turn-based game??

and, uh, I got lost at the holtsoft site. :oops:  Can you please direct me to the section on Net??

-----------------------------------
SilverSprite
Wed Jul 02, 2003 4:10 pm


-----------------------------------
yeah it works fine with turn-based games...

-----------------------------------
Catalyst
Wed Jul 02, 2003 4:14 pm


-----------------------------------
the speed isnt too bad (by turing's standards) but it is prone to glitches
i once wrote a whiteboard program, and it would constantly draw in random places and in random colors

-----------------------------------
Tony
Wed Jul 02, 2003 4:23 pm


-----------------------------------
documentation is located at http://www.holtsoft.com/turing/tech/GUIOver.pdf

scroll pass all of GUI stuff...

and yeah, Net module is screwed up... not only is it slow, its also very unreliable and was known to cut out parts of incomming data :?

-----------------------------------
Asok
Wed Jul 02, 2003 5:01 pm


-----------------------------------
If you're going to work with the Net stuff in Turing, be aware it's SLOW!!!

Me and JSBN were making an MMO in Turing but it's too slow to support it.

-----------------------------------
Andy
Wed Jul 02, 2003 5:18 pm


-----------------------------------
dun even expect file transfer, turing tend to loose a couple of lines on its own. plus sometimes if u paste some stuff, extra lines gets pastes with it... weird

-----------------------------------
eggplant_burger
Wed Jul 02, 2003 11:32 pm


-----------------------------------
Well, since you all seem to be saying that Net is a piece of crap, does anyone have a home-grown module/class for internet use??

-----------------------------------
Tony
Thu Jul 03, 2003 12:14 am


-----------------------------------
no, since turing would not allow you to load DLLs, so there's no way of writing a custom function(s) elsewhere :?

-----------------------------------
eggplant_burger
Thu Jul 03, 2003 12:21 am


-----------------------------------
That's bullshit



..... Am I allowed to say that??

-----------------------------------
Asok
Thu Jul 03, 2003 1:48 am


-----------------------------------
no.

*arrests eggplant_burger for foul language*

NOTE: You can swear provided it's not directed at anyone so it's not offensive. Same rules that apply to daytime TV apply here generally. Just remember, I'm Neo, some of these rules can be bent, others can be broken.  :lol:

-----------------------------------
eggplant_burger
Thu Jul 03, 2003 2:31 am


-----------------------------------
I didn't know Neo was a drunken panda

Well, I gues we learn something new every day

-----------------------------------
Andy
Thu Jul 03, 2003 9:48 am


-----------------------------------
lol neo idolizes him juss like the rest of us here...
