Search found 82 matches

  • 1
  • 2
  • 3
  • 4
  • 5
  • 9
Search found 82 matches Page 1 of 9
by irei1as
Sat Apr 13, 2019 10:00 am
Forum: TorqueScript
Topic: using script to access UI elements
Replies: 10
Views: 1319
First you need to give the pair of gui objects global names (there are other ways to do it but global names are the easiest). To set the name write it in its place in the gui editor. http://docs.garagegames.com/torque-3d/official/content/documentation/GUI%20Editor/Overview/Introduction.html You can ...
by irei1as
Sun Mar 24, 2019 1:19 pm
Forum: Beginner
Topic: GuiCrossHair recognize the subject/item automatically
Replies: 14
Views: 463
If you're in a single player environment (server=client) you can use the shortcuts LocalClientConnection.player and LocaClientConnection.camera to get the id for the control player and camera. Like: (LocalClientConnection.camera).getEyeVector(); But it's only for single player use. Do not use them i...
by irei1as
Wed Mar 20, 2019 6:49 pm
Forum: Beginner
Topic: GuiCrossHair recognize the subject/item automatically
Replies: 14
Views: 463
I think I would do: 1st. Tag the objects with a dynamic entry. Something like: BoxObject13.checkData = "Ammo box"; Ah, make sure dynamic entries are set to save. 2nd. Make a function that takes the id of an object and writes in a guiText in the screen that checkData variable. 3rd. Make a ScriptTickO...
by irei1as
Wed Mar 20, 2019 6:28 pm
Forum: C++
Topic: Define a 2D array in C++ and passing to TS
Replies: 17
Views: 807
If you need C++ you can just copy what array does. Having access to the code is quite convenient. Define a struct with as many elements as you need. Array has strings key and value (you can set whatever values, types and quantity for your need) and then use the class Vector to set the, uh, vector. E...
by irei1as
Tue Feb 12, 2019 8:19 pm
Forum: C++
Topic: guiCopyContainer and guiBitmapShader
Replies: 0
Views: 214
These are a pair of gui objects. guiCopyContainer is a container that can render its contents to a named texture for use in other objects. guiBitmapShader is a child of bitmap control that lets use up to 8 textures (8 seems to work for most modern graphic cards) with a shader similar to how PostEffe...
by irei1as
Thu Jan 24, 2019 10:38 am
Forum: Beginner
Topic: CMake error
Replies: 5
Views: 278
The name of the project can cause problems, too.
Don't use "test" inside the name and avoid using spaces and see if it works.
by irei1as
Mon Apr 09, 2018 9:37 am
Forum: TorqueScript
Topic: Expose decal road nodes
Replies: 2
Views: 1039
You can use Point3F DecalRoad::getNodePosition( U32 idx ) instead. It's also located in decalRoad.cpp. Then you only need to show it to TorqueScript with a DefineEngineMethod. If you don't want to change the engine you could also create a Path and add various Marker to it that follows the decal road...
by irei1as
Thu Mar 22, 2018 9:39 am
Forum: C++
Topic: SDL_Joystick and SDL_GameController
Replies: 13
Views: 2722
Thanks a lot for the effort. It works well for my Trust compact gamepad gtx24. It detects it as joystick. All the buttons work as normal except, the horizontal of the right stick is detected as both "zaxis" and "rxaxis". But that may be because some faulty drivers I tried to install for an old contr...
by irei1as
Tue Mar 13, 2018 10:58 am
Forum: Beginner
Topic: Compiler Problems with new Computer
Replies: 13
Views: 2323
If you're using Visual Studio 2017 (the one recommended for Windows 10) for CMake to work you need desktop c++ (warning: it's like 5 GB) https://userdeck-api.s3.amazonaws.com/files/LUHboih732iHV6xl-C%252B%252B-Tutorial%252C-Installing-C%252B%252B.png I got a new computer and I only needed that to co...
by irei1as
Fri Feb 02, 2018 11:34 am
Forum: C++
Topic: HitBox resource help.
Replies: 23
Views: 6061
I think the problem comes from mixing collision and nodes (armature bone is a kind of node). See, when looking for a node transform you get the root value and not the position it should take from the current animation. I think that can be fixed using in the server mShapeInstance->animateNodeSubtrees...
  • 1
  • 2
  • 3
  • 4
  • 5
  • 9
Search found 82 matches Page 1 of 9