TI 83/84
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Dev Hardware ForumsSOFTWARETI 83/84

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Hardware Forums Sponsor:
  Trader Rating: 0 · #1  
Old October 9th, 2007, 06:49 PM
skipperwarlock skipperwarlock is offline
Contributing User
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Posts: 45 skipperwarlock User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 9 m 14 sec
Reputation Power: 3
MultiPlayer Through Link Cable?

I've been working on a game for quite some time on my calculator, and have recently become bored with adding the same old lines to do the same old stuff. I noticed that the I/O section of the programming functions has the commands "Get(" and "Send(" so I decided I would try to utilize these to attempt to create a multiplayer feater for my game.
On my first attempt, I wrote a very simple code just as a Proof Of Concept to see if these would work, and it looked like this:
Code:
:Lbl A
:ClrHome
:randInt(1,10)->A
:Get(B)
:Pause
:Send(A)
:Pause
:If B>5:Then:Output(4,8,"YES"):End
:If B<5:Then:Output(4,8,"NO"):End
:If B=5:Then:Output(5,9,"MAYBE")
:End
:Output(3,9,B)
:Pause
:Goto A
:End
:Stop

I transfered this program to another calculator and ran it simontaniously on both of them and resulted with both calculators returning:
0
NO
and I was able to refresh both calculators by using one. (by refresh I mean the result disappear and reappear) and I made sure that both calculators were responding the the single one. So through this test, I know data can be sent, but I'm not sure exactly how to control it.
I attempted a "trading" program where I would possibly be able to exchange the contents of a string or a variable, but it was unsuccessful in having any result whatsoever. It looked like this:
Code:
:Menu("TRADE CENTER", "SEND", SE, "REVIEVE", RE)
:ClrHome
:Lbl SE
:For(A,1,3)
:If A=1:Then:ClrTable:Shade(3,3):End
:Send(Str1)     //I also tried with the variable "B" in place of Str1
:End
:Disp "SENT"
:Pause
:Stop
:Lbl RE
:For(A,1,3)
:If A=1:Then:ClrTable:Shade(3,3):End
:End
:Get(Str1)   //same variable attempt as above ^
:End
:Disp "RECIEVED"
:Stop

So if anyone has any idea exactly how you are supposed to use the "Send(" and "Get(" commands and could tell me how it would be greately appriciated

Reply With Quote
  Trader Rating: 0 · #2  
Old October 30th, 2007, 07:00 AM
Tezza_05 Tezza_05 is offline
Contributing User
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 30 Tezza_05 User rank is Sergeant (500 - 2000 Reputation Level)Tezza_05 User rank is Sergeant (500 - 2000 Reputation Level)Tezza_05 User rank is Sergeant (500 - 2000 Reputation Level)Tezza_05 User rank is Sergeant (500 - 2000 Reputation Level)Tezza_05 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 17 m
Reputation Power: 17
a liitle note

just a little thing... i tried making a link msn messenger..
and i encountered the same problem.. i then found out that if
you pause the receiving calculator and then send the data it works

Reply With Quote
  Trader Rating: 0 · #3  
Old November 2nd, 2007, 02:36 AM
skipperwarlock skipperwarlock is offline
Contributing User
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Posts: 45 skipperwarlock User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 9 m 14 sec
Reputation Power: 3
could you give me an example?
Do you mean just to do
Get(A)
PAUSE
and then send?


and thnx for the reply

Reply With Quote
  Trader Rating: 0 · #4  
Old November 3rd, 2007, 01:52 AM
Tezza_05 Tezza_05 is offline
Contributing User
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 30 Tezza_05 User rank is Sergeant (500 - 2000 Reputation Level)Tezza_05 User rank is Sergeant (500 - 2000 Reputation Level)Tezza_05 User rank is Sergeant (500 - 2000 Reputation Level)Tezza_05 User rank is Sergeant (500 - 2000 Reputation Level)Tezza_05 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 17 m
Reputation Power: 17
...

i think so...
i think that you say
Clac 1 Clac2
1->x
pause get(x)

hope this helps..
i don't know how to send it to the other calculator, but i know how to get a variable from another calc (get(x)).

Reply With Quote
  Trader Rating: 0 · #5  
Old November 3rd, 2007, 01:56 AM
Tezza_05 Tezza_05 is offline
Contributing User
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 30 Tezza_05 User rank is Sergeant (500 - 2000 Reputation Level)Tezza_05 User rank is Sergeant (500 - 2000 Reputation Level)Tezza_05 User rank is Sergeant (500 - 2000 Reputation Level)Tezza_05 User rank is Sergeant (500 - 2000 Reputation Level)Tezza_05 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 17 m
Reputation Power: 17
omg... yeah your right... (unco reading moment) what i just said was correct but you already have it... so never mind

Reply With Quote
  Trader Rating: 0 · #6  
Old November 4th, 2007, 12:15 AM
skipperwarlock skipperwarlock is offline
Contributing User
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Posts: 45 skipperwarlock User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 9 m 14 sec
Reputation Power: 3
Quote:
Originally Posted by Tezza_05
omg... yeah your right... (unco reading moment) what i just said was correct but you already have it... so never mind


it's kool Thanks for the attempt though

Reply With Quote
  Trader Rating: 0 · #7  
Old November 15th, 2007, 08:21 PM
skipperwarlock skipperwarlock is offline
Contributing User
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Posts: 45 skipperwarlock User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 9 m 14 sec
Reputation Power: 3
WOOOT! Figured it out
The Get() function does not need to be in a loop, nor does the Send() function need to be running simultaneously. You simply connect the link cable and do:
Code:
Get(A)

and it will get the Variable "A" from the other calculator. This also works with strings and most likely works with Lists.

Good luck, and happy programming

Reply With Quote
  Trader Rating: 0 · #8  
Old February 1st, 2009, 12:25 PM
skipperwarlock skipperwarlock is offline
Contributing User
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Posts: 45 skipperwarlock User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 9 m 14 sec
Reputation Power: 3
I know it's been awhile. I back to work on my multiplayer game though :P I have a small problem though that is really bugging me. When I wrote my program on a TI-83, everything worked perfect, because when using the Get() command it will automatically unpause the other calculator. When I ported my program to the TI-84 however, it remains paused until enter is pressed. I have used both the Get() and the GetCalc() commands but they both work the same basic way. I was wondering if anyone knew how to get the TI-84 to automatically unpause the transmitting calculator in the same way the TI-83 does?

Reply With Quote
  Trader Rating: 0 · #9  
Old November 18th, 2009, 05:02 PM
Regular Joe Regular Joe is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Nov 2009
Posts: 17 Regular Joe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 15 m 30 sec
Reputation Power: 0
just wondering about this....
which cord would you need to run a multiplayer program?
do you need the TI-83 cord
(the one with the earphone cords on the end)
or the TI-84 cord
(the cord that goes into almost any device)
thanks for your help

Reply With Quote
  Trader Rating: 0 · #10  
Old November 20th, 2009, 11:28 AM
skipperwarlock skipperwarlock is offline
Contributing User
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Posts: 45 skipperwarlock User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 9 m 14 sec
Reputation Power: 3
I think it's called the analogue cord but not sure. It's the cord that's got 2 jacks that look like the headphone conecter ^^

Reply With Quote
Reply

Viewing: Dev Hardware ForumsSOFTWARETI 83/84 > MultiPlayer Through Link Cable?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
     
 




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 9 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek