AIPlayer mod
by Matthew W · in Torque Game Engine · 02/25/2008 (3:23 pm) · 28 replies
We want to setup an AIPlayer bot for our player character so that left-clicking on the screen moves the player character to the clicked spot on the field. It should be an AIPlayer bot so that we can call
We found that method on this resource.
We don't understand what to do - like what code could we change or where should we insert our own code?
AIPlayer::setMoveDestination("x y z");We found that method on this resource.
We don't understand what to do - like what code could we change or where should we insert our own code?
#22
03/24/2008 (3:04 am)
Every time i try to use the tutorial.rts folder it gives me the same error, "Hardware failed to switch to the specified mode." What did you change from the tutorial.base folder? Maybe just copying only the changed files over to my game folder would work? Maybe.
#23
--
Ok. Are you using a Mac or PC?
I'm currently using vista. I did change one thing in the prefs file that made torque render better on vista. Although the change shouldn't of caused problems with other systems, try copying the pref file from the tutorial.base, into the tutorial.rts folder.
Sometime today I will try to see what exactly causes that error.
03/24/2008 (5:29 am)
I don't have much time this morning, but let me see if I can't think of something. . . . .--
Ok. Are you using a Mac or PC?
I'm currently using vista. I did change one thing in the prefs file that made torque render better on vista. Although the change shouldn't of caused problems with other systems, try copying the pref file from the tutorial.base, into the tutorial.rts folder.
Sometime today I will try to see what exactly causes that error.
#24
i'm using Windows Vista too. :)
03/24/2008 (10:37 am)
A ha! After restoring the pref.cs file to it's original state the game runs with torqueDemo_DEBUG.exe again! :) Yeay! It loads, with out giving the #2 error, but now it pauses forever on the start of LOADING MISSION (after clicking new game). What other things did you change (it's important to me that you dont feel that your coding skill are being judged; im just trying to not be confused)? :)i'm using Windows Vista too. :)
#25
I would try replacing any default.cs or pref.cs files in the entire folder with the ones in tutorial.base. I was just guessing about the pref file though. Everything works fine on my main computer. As a test, I followed my own instructions to the letter on a fresh build on my laptop. The reason I'm so confused with your problem, is that everything works fine on a fresh build of torque for me. Since I can't make something 100% compatible with everybody, I guess there was bound to be some problems.
03/24/2008 (4:46 pm)
After clicking new game? How's your menu setup?I would try replacing any default.cs or pref.cs files in the entire folder with the ones in tutorial.base. I was just guessing about the pref file though. Everything works fine on my main computer. As a test, I followed my own instructions to the letter on a fresh build on my laptop. The reason I'm so confused with your problem, is that everything works fine on a fresh build of torque for me. Since I can't make something 100% compatible with everybody, I guess there was bound to be some problems.
#26
03/25/2008 (7:44 pm)
Caleb, after some long struggling i started with a fresh torque engine, copied your files into the folders, deleted pref.cs (which fixed the hardware failed problem), made the engine code changes, built the engine in release mode (which solved the GuiControlProfile problem), and it works! The little blue guy is running around! YEAY THANK YOU!!!!!!!!! :)
#27
03/25/2008 (8:00 pm)
I'm glad you found what you needed.
#28
03/27/2008 (4:19 pm)
Hi Caleb. How do you make ' Drop player at camera' work again? i'm trying to have the blue guy for a player character. Well, i have to go, but i thought i'd ask you about this while im away.
Torque Owner Matthew W
i guess so.. yes. Building in release mode solves problem 2! Thank you! :) Well, i dont understand why either and am confused too.
Also i thought maybe changing the flat.mis file to the original one might cure problem 1, but that didnt help. .