Custom project
by Yoni · in Torque 3D Professional · 08/04/2011 (8:14 am) · 3 replies
I am trying to learn the engine by making my own custom empty project.
Im trying to start a mission without a server-client but it doesn't really seem to work.
I have the code above in a function binded to a button in the main gui, when i click the button, i land in a black screen, which should be the empty room, but i cant seem to rotate and see the floor, the gray floor.
Could someone tell me what im missing ?
Thanks.
Im trying to start a mission without a server-client but it doesn't really seem to work.
echo("startlevel");
loadMission("levels/Empty Room.mis", true);
clientStartMission();
Canvas.setContent(PlayGui);I have the code above in a function binded to a button in the main gui, when i click the button, i land in a black screen, which should be the empty room, but i cant seem to rotate and see the floor, the gray floor.
Could someone tell me what im missing ?
Thanks.
#2
08/04/2011 (8:55 am)
@Yoni - You will not be able to. The entire engine is built on client-server architecture. Datablocks, movement, pack/unpack updates and so on. Even if you are wanting a single player game, you still want to have the required client code working as if it were in a sever communication mode.
#3
08/04/2011 (1:02 pm)
Perhaps start with the docs. I know they're not perfect, but they're very helpful. Also, if you create a "Full Project" and look at how it initializes a game session you can learn a lot. Use echo() and your console and logs to trace it through and you'll see how it all comes together.
Associate Steve Acaster
[YorkshireRifles.com]