Game Development Community

Housing?

by AzraelK · in Torque Game Engine · 09/27/2001 (1:50 pm) · 6 replies

How can you add or substract buildings to the map? during real time?
this could be very useful for housing in an online world.
=)

#4
09/28/2001 (5:20 am)
A hint, anything in the .mis files can be added through script dynamically I'm not sure about terrain though.

You could even add a new sun, or even make the sun so it moves across the sky.

There's virtually no limit to the things you can add.


Dark
#1
09/28/2001 (8:47 am)
yes you can.

--Rick
#5
09/28/2001 (9:11 am)
That's weird, I wrote that after I read Rick and Labrat's replies, but for some reason it put it before their posts.


Dark

*Edit: The time on this post is totally screwed. I posted this at about 4:30 PM, and it says it was posted at 9:11 MST. It looks like it doesn't know the differenct between AM and PM? I'm not sure.
#2
09/28/2001 (9:50 am)
Er.. thanks, but I was expecting perhaps a more elaborate answer? not too elaborate though just a hint on how to do it.
#3
09/28/2001 (10:19 am)
%house = new InteriorInstance() {
position = "-30.7149 -428.03 112.265";
rotation = "0 0 -1 8.59438";
scale = "1 1 1";
interiorFile = "~/interiors/test/maps/test3.dif";
showTerrainInside = "0";
}
#6
09/29/2001 (7:25 am)
There are several issues with adding interiors "on-fly": they will not be mission lit (so unless they provide their own exterior lights, they'll be black), they won't cast shadows onto the terrain, and there is a crash problem with clients.

The client crash occurs because the new interior doesn't know where to find it's non-existing mission lighting data. There is a work-around which allows it to work if your in the mission editor, but any other client connected to the server will probably crash. This problem could be fixed.

The mission lighting system does light each object one at a time, a good project would be to provide an interface to re-light a single object. This would address all the issues.