Game Development Community

Ch 2 - unable to find function runhelloworld

by Richard Preziosi · in Torque Game Engine · 01/28/2007 (11:13 am) · 2 replies

Hi, just got the book and got to chapter two after i built my .cs file for hello world, i get the .cs file to exec in the console but when i type runhelloworld(); as the book says, i get a message saying, unable to find function runhelloworld. i have also tried helloworld, hello, world, functionrunhelloworld, etc. nothing is seeming to work. any help would be greatly appreciated, here is my .cs file code.

// ========================================================================
// HelloWorld.cs
//
// This module is a program that prints a simple greeting on the screen.
//
// ========================================================================

function hello()
// ----------------------------------------------------
// Entry point for the program.
// ----------------------------------------------------
{
echo("Hello World");
}

#1
01/28/2007 (9:34 pm)
I figured it out, and will post my solution, incase anyone else had a dumb attack as I did. First, I had the file saved in the 3D2E folder instead of the demo folder inside of that folder. I did not know this would be a big issue since the I had the .cs file saved in the same folder as the demo.exe. also the text did not say, when making the .cs file to type: function RUNhelloworld(), so i did not know to not type the run when i tried to start that function. Those were the two problems I had that I wa able to resolve, maybe this will help someone else.
#2
08/02/2007 (1:58 am)
Hi there


i have the 3D Game Programming All in One (Finney 2004) &the cd

[image] C:\Documents and Settings\Master\Desktop\untitled.bmp [\image]

this an image of the cd's contents


what you mean by 3D2E folder i have 3DGPAi1 folder

but others tell to runhelloworld() and they said it worked


the book said

type tge -ch2 HelloWorld.cs. A Torque window will open up, and you
should see something like Figure 2.10, with "Hello World" in yellow at the upper
left of the screen. Cool, huh?


plz help if you can i spend alot of time in this
thanx