Hmmm...
Are you building both a server and a client or just a client. In other words
C2S or C2C
My code, Yes I would gladly explain it.
Rem Created By YOBAR INTERACTIVE
ip$="YOUR IP ADDRESS GOES HERE"
sync on : sync rate 0
do : cls : sync
input "What Is Your Username: ";user$
sync : cls
Center Text 320,240,"CONNECTING TO SERVER"
Center Text 320,240,"PLEASE WAIT...."
sync
perform checklist for net connections
for start=1 to checklist quantity()
if "Internet TCP/IP Connection For DirectPlay"=checklist string$(start)
set net connection start,ip$
endif
next start
startgame=default net game("YOUR GAME NAME",user$,255,1)
goto `WHERE-EVER YOU WANT TO GO FROM HERE
sync : loop
That would be the code.
1. At the beginning the IP$ represents the IP to connect to.
2. You must input a username because it will not connect unless there is a username.
3. After inputing, it will show its connecting. Did this so users dont think there PC froze.
4. Performed A Checklist For net connections to see how many are available for use.
5. The for/to loop is a quick way of finding out the three net connections after performing the checklist.
6. "Internet TCP/IP Connection For DirectPlay" is one of the three net connections.
7. If that is one of them then set the connection
8. The default net game is the same as it was before except now it wont prompt you for an ip when you try to play. Its like that now becuase of directions 4-7.
9. Your now connected so you must goto a new loop because beleive me you dont want to get caught in the repeative state of connection.
Ok now that we've got that taken care of. Congradulations your connected.
In this new loop you can have whatever you want to have. Just got to know the very simple net commands. (Hardest net command you'll find is the receiving command, which isnt too hard when you get used to it.)
Um... that should cover it. If you need some more help let me know.
If you have MSN Messeger then you can IM me. I think I might make up a full net deal for my site. Maybe add the code for a chat program or something.
Hope I helped.
Nicolas