Water missing, then reapears? + trigger problem
by Mike Rowley · in Torque Game Engine · 01/28/2007 (9:16 am) · 2 replies
Ok, I'm porting my chatroom over from 1.4 to 1.5 (in 1.4 everything eccept sound works)
Now, I have already ported 2 other demo games over without a problem. This one has me scratching my head.
When the player enters the world, they are presented with a door. When the walk up to the door, it slides open. Works great in 1.4, but in 1.5 I'm getting the error:
Now, I know this engine knows what get and set Transform is.
Here's the code:
It works great in 1.4, so why not in 1.5??
Also, I have a default waterblock. (starter.fps waterblock). When the player enters and goes to the pool, the water is not there. If the player walks away and gets near the fireplace (other side of building) and comes back, the water is there. It's the oddest thing I've ever seen.
So that you know, I am modifying the starter.fps game. I've removed the terrain and all objects. The only cs file I've modified is server/scripts/game.cs where I added the door trigger code. The rest is stock 1.5 starter.fps. tge1.5 has not been changed in my version. I'm using the stock lib.
Anyone have a clue?
Now, I have already ported 2 other demo games over without a problem. This one has me scratching my head.
When the player enters the world, they are presented with a door. When the walk up to the door, it slides open. Works great in 1.4, but in 1.5 I'm getting the error:
Homeworld/server/scripts/entryDoorTrigger.cs (29): Unknown command getTransform. Object Door(1522) SimGroup -> SimSet -> SimObject Homeworld/server/scripts/entryDoorTrigger.cs (34): Unknown command setTransform. Object Door(1522) SimGroup -> SimSet -> SimObject
Now, I know this engine knows what get and set Transform is.
Here's the code:
Parent::onEnterTrigger(%this,%trigger,%obj);
%trans = nameToId("Door").getTransform();
%rot = getWord(%trans, 3)
SPC getWord(%trans, 4)
SPC getWord(%trans, 5)
SPC getWord(%trans, 6);
nameToId("Door").setTransform("180.247 133.527 200.575" SPC %rot );It works great in 1.4, so why not in 1.5??
Also, I have a default waterblock. (starter.fps waterblock). When the player enters and goes to the pool, the water is not there. If the player walks away and gets near the fireplace (other side of building) and comes back, the water is there. It's the oddest thing I've ever seen.
So that you know, I am modifying the starter.fps game. I've removed the terrain and all objects. The only cs file I've modified is server/scripts/game.cs where I added the door trigger code. The rest is stock 1.5 starter.fps. tge1.5 has not been changed in my version. I'm using the stock lib.
Anyone have a clue?
#2
Oh, and forget about the trigger problem. I've fixed that.
01/31/2007 (3:48 pm)
I'll give that a try. Thanks. :)Oh, and forget about the trigger problem. I've fixed that.
Torque Owner Mark Barner
mbarnatl