Author Topic: TNET Problem, RFC not working  (Read 2497 times)

blueagardq15

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 23
    • View Profile
TNET Problem, RFC not working
« on: July 26, 2015, 10:30:18 PM »
TNServerInstance.Start(5127, 5128, 5129, "server.dat");
___________________________________________________

TNManager.Connect ("127.0.0.1:5129");

I used that to connect and join the player,but the problem is when I am connected and when I call RFC's they do not work. For Example :

tno.Send ("AddToDelta",Target.AllSaved, PlayerName, Rank, Prestige);

Please help and Thank you.
__________________________________________________________________
EDIT:

Ok I see that I would need to create a channel in order to send messages, but what parameters do I need for TNManager.CreateChannel(??)

Thanks for your time

« Last Edit: July 27, 2015, 12:45:53 AM by blueagardq15 »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TNET Problem, RFC not working
« Reply #1 on: July 27, 2015, 11:49:48 AM »
Again please don't email me the question you are asking here. It simply wastes my time having to answer both with the same response.

127.0.0.1 is a loopback address pointing to the same machine you run the code on. You need the actual IP of the PC you are connecting to.

To join a channel use TNManager.JoinChannel. Look at the example that comes with TNet.

Doomlazy

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 1
  • Posts: 28
    • View Profile