Search found 17 matches

  • 1
  • 2
Search found 17 matches Page 1 of 2
by aMoistKite
Thu Jun 06, 2019 6:36 am
Forum: TorqueScript
Topic: How would you get a point that is a distance from another? (2D Vectors)
Replies: 6
Views: 713
// Initial data %npcPosition = %talkingNPC.getPosition(); %playerPosition = %clickingPlayer.getPosition(); %interactionDistance = 4; // Get the vector between the NPC and the player %separationVector = VectorSub(%playerPosition, %npcPosition); // Eliminate the z component of the vector (only becaus...
by aMoistKite
Tue Jun 04, 2019 12:11 pm
Forum: TorqueScript
Topic: How would you get a point that is a distance from another? (2D Vectors)
Replies: 6
Views: 713
So I am making a game with a diablo style of movement and when the player clicks on an npc to say talk to them i need to get the point that is between the player and the npc that is a set distance from the npc to move the player to. I am honestly bad at math so if anyone could help me with this? I h...
by aMoistKite
Sun Apr 14, 2019 11:06 am
Forum: Beginner
Topic: Unable to join test server
Replies: 10
Views: 494
Update: I was able to connect. The tutorial does not mention you need to use:

Code: Select all

setNetPort();
on the client as well.
by aMoistKite
Sun Apr 14, 2019 10:44 am
Forum: Beginner
Topic: Unable to join test server
Replies: 10
Views: 494
So there is your problem. I would use something else, either the full template or the new base game template if you want to hop on the latest trends, other templates are not that well supported. Surely it is down to be something the tutorial I followed is missing and not because I am not using one ...
by aMoistKite
Sat Apr 13, 2019 11:17 am
Forum: Beginner
Topic: Unable to join test server
Replies: 10
Views: 494
Sure the empty template is a lot different, but the server connection system should not be that different.
I am actually using this blank/empty template that does not have any networking.
by aMoistKite
Sat Apr 13, 2019 6:46 am
Forum: Beginner
Topic: Unable to join test server
Replies: 10
Views: 494
Why does what work? All I know is that previously you could host and join multiple instances from the same machine and now with the latest version it does not work anymore. Don't ask me why. If I test with the full game template (using the same compiled exe) I can run a dedicated server and join fr...
by aMoistKite
Fri Apr 12, 2019 3:45 pm
Forum: Beginner
Topic: Unable to join test server
Replies: 10
Views: 494
Don't worry networking still works fine, just not if you try to host and join from the same machine.
Then why does work if I say use the full game template?
by aMoistKite
Fri Apr 12, 2019 1:37 pm
Forum: Beginner
Topic: Unable to join test server
Replies: 10
Views: 494
I have been trying to get a basic network test going following this tutorial and i have been unable to get it to work (they are on the same machine). The client just gets stuck saying "Sending Connect challenge Request". I know it can't be a network issue since if i launch a dedicated server and a c...
by aMoistKite
Sat Mar 23, 2019 2:13 am
Forum: C++
Topic: Define a 2D array in C++ and passing to TS
Replies: 17
Views: 1063
You can already define a 2d array in torquescript. Why are you fixated on thunking back and forth to C++? http://www.roostertailgames.com/TorqueRef/index.html I am well aware. I need to DEFINE the array in C++ THEN pass it to torquescript. I am using MySQL and I have to access it in C++ then pass i...
by aMoistKite
Fri Mar 22, 2019 9:03 pm
Forum: C++
Topic: Define a 2D array in C++ and passing to TS
Replies: 17
Views: 1063
Okay, can we get the actual use-case? You can't find any examples of this because there is no need to do this. TorqueScript has multi-dimensional arrays. Why are you not just using them? What is the perceived bottleneck? %username = %mydata["row", "collum"]; something along those lines. I can't fin...
  • 1
  • 2
Search found 17 matches Page 1 of 2