Author Topic: Some questions about linking...  (Read 3547 times)

0 Members and 1 Guest are viewing this topic.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Some questions about linking...
« on: November 29, 2010, 12:32:03 pm »
Hi,

I was wondering if it's possible to make a game that uses the I/O port for calc linking. I know the Get and Send command, but I dont really understand how to use them, as the get command lasts very short, so really good timing is required, or am I wrong?
please explain it me!
« Last Edit: November 29, 2010, 12:32:19 pm by aeTIos »
I'm not a nerd but I pretend:

Offline Ti-DkS

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 143
  • Rating: +21/-1
  • In retro, we trust !
    • View Profile
Re: Some questions about linking...
« Reply #1 on: November 29, 2010, 02:23:13 pm »
hum ... If I understood the Axe documentation, Send takes two arguments :
-byte : the byte you want to send to the other calculator,
-time : the time the calculator has to wait the reception confirm of the other. If timed-out this function returns 0. If the other calculator received this function returns 1

Get command checks if the other calculator tries to send something. If it is, function returns the received byte otherwise it returns -1.
Did you understood ? ;D

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Some questions about linking...
« Reply #2 on: November 29, 2010, 02:48:05 pm »
yes, thanks.
***aeTIos steals Ti-DkS's axe signature :)
I'm not a nerd but I pretend:

Offline Ti-DkS

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 143
  • Rating: +21/-1
  • In retro, we trust !
    • View Profile
Re: Some questions about linking...
« Reply #3 on: November 30, 2010, 05:02:54 pm »
*** Ti-DkS is happy aeTIos like his axe sig and is also happy to allow him to steal it ;D
/!\ However I advice you to copy the file because datas in my perso page move a lot, and I may erase it or rename it later
« Last Edit: November 30, 2010, 05:06:45 pm by Ti-DkS »

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Some questions about linking...
« Reply #4 on: November 30, 2010, 05:05:28 pm »
About linking.
Note: i make up my own terms Wink.

1. Touch to touch
    each calc. Sends and receives the previous getkey
Pro.  Small and easy. Only need one program
Cons.  More likely to obtain the 4 error*

2. Update- Send/Receive
    You have an option in your game that lets the user send or receive data.
Pro.  Not much really.
Cons.  Well, you probably can see them...

3. Update- full
    Update as much as you want but only after a period of time (recommended about 10 sec.)
Pro.  Great for data transfer.  Not terrible to program in.
Cons.    Might not be how you want your game to look...  all depends on your game.
            Chances are that the programmer will screw up a couple of times before succeeding so back up the program.



*4 Error*
   An error which occurs when the linking cord has some interference which makes the receiving calculator get 4
Note:  The longer the cord the more this error occurs
       -7 foot cord.
              Almost unusable. (1 out of 5-10)
       -3 foot cord.
              Tons better than the 7 foot cord.  But still shouldn't be used with touch to touch multilayer. (1 out of 50-100)
       -6 inch cord.
               Works great and  only gets the four error (once in about 1000)

Note: My calculations are done by observation and have not been tested.



About the attached.  This is a two player shooter game.  It is unplayable with out a 2nd calc.

The way i have it set up is by my first method, so both players are player one.
« Last Edit: November 30, 2010, 05:37:51 pm by happybobjr »
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________