Author Topic: tno.Send target.All/target.others apparently not being sent/called  (Read 5921 times)

Shifty Geezer

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 9
  • Posts: 226
    • View Profile
An RFC isn't getting called. To test, I'm deliberately making the wrong call to generate an error. The RFC is called UpdatePlayerList. If I try calling UpdatePlayList with a specific player, it generates an error as you'd expect.
  1.         tno.Send ("UpdatePlayList", p, isNetAdventurer[1], isNetAdventurer[2], isNetAdventurer[3], 4);
However, if I set the target to '.all' or '.others', there's no error thrown.
  1.         tno.Send ("UpdatePlayList", Target.All, isNetAdventurer[1], isNetAdventurer[2], isNetAdventurer[3], 4);

And if I use the correct call, it never happens even when a call prior works...

  1.         tno.Send ("SetMyPlayerNumber", p, joiningPlayNum);
  2.         tno.Send ("UpdatePlayerList", Target.All, isNetAdventurer[1], isNetAdventurer[2], isNetAdventurer[3], isNetAdventurer[4]);
  3.  
  4.         [RFC]
  5.         void UpdatePlayerList(bool p1, bool p2, bool p3, bool p4){
  6.                 // updates list of networked players
  7.                 print ("updateplayerlist "+p1+"  "+p2+"  "+p3+"   "+p4);
  8.                 isNetAdventurer[1] = p1;
  9.                 isNetAdventurer[2] = p2;
  10.                 isNetAdventurer[3] = p3;
  11.                 isNetAdventurer[4] = p4;
  12.         }
  13.  
Again, change the target from Target.All to a specific player and it's called.

Edit: I can call UpdatePlayerList 'manually' if I send it to each player in the channel.
« Last Edit: July 24, 2016, 02:42:12 PM by Shifty Geezer »

voncarp

  • Jr. Member
  • **
  • Thank You
  • -Given: 13
  • -Receive: 2
  • Posts: 91
    • View Profile
Re: tno.Send target.All/target.others apparently not being sent/called
« Reply #1 on: July 24, 2016, 11:11:06 PM »
This is an issue I am having too.  Where none of my target.All are working while using TNet3.

You might have a similar problem as in this thread:

http://www.tasharen.com/forum/index.php?topic=14171.0

Try checking your channel number on your TNobject and see if its 0 and your not actually in channel 0 anymore.


Shifty Geezer

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 9
  • Posts: 226
    • View Profile
Re: tno.Send target.All/target.others apparently not being sent/called
« Reply #2 on: July 25, 2016, 10:03:29 AM »
Surely that would affect all the other RFCs as well? RFCs are working, just not with wider targets. I had the same with Target.Others but didn't investigate further.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: tno.Send target.All/target.others apparently not being sent/called
« Reply #3 on: July 26, 2016, 10:44:57 PM »
It this something I can reproduce on my end? Do TNet's examples work as expected?