Game Development Community

Doors and elevators implementation question

by Dave Potter · in Torque Game Engine · 07/15/2004 (2:46 pm) · 11 replies

Just going to start with a 'Hi' to everyone.

Very recent purchaser of Torque Indie licence here in the UK and after reading the relevant threads in the forums I have one question....

Are there any plans for doors and elevators (ie. child Interiors and paths) to be officially supported in the next Torque release? I purchased the TGE after messing around with Darkbasic etc. because I wanted something faster and more flexible (I am an experienced coder by profession, albeit in the business sector, with ambitions to produce an FPS game which I have been designing for some time), and whilst I am more than happy with 98% of what TGE has to offer, I find myself a little disappointed that support for door and lift entities is missing from the engine.

Having read the threads regarding this issue it is proving quite a minefield and it appears that I am going to have to spend alot of time wading through the engine source code to add basic functionality that I would expect a commercial game engine would already have.

So I suppose what I'm asking is if I spend the next few weeks modifying the engine to add pathed interiors am I wasting my time because it will be added during the next Torque release? Or are all modifications to the engine now community driven?

By the way, thanks to everyone who has posted tutorials and code examples here in the forums etc - it has enabled me to get a base application up and running within 4 days of purchasing the engine! I will make a point of sharing all my discoveries with the community.

About the author

Having another go at this game dev thing


#1
07/15/2004 (4:19 pm)
We do do official upgrades, but most of our energy is focused into TSE, TNL, and making/selling games. I don't think that time spent on pathed interiors would be wasted. I assume you've looked at the resources for them? You might not have to spend that long to get them to do what you want.
#2
07/15/2004 (10:05 pm)
There is a working implementation here: www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=4980
it doesn't work with the current HEAD anymore, though, so it would be awesome if you could look into updating it and providing a new patch file :)
#3
07/15/2004 (11:24 pm)
I got the Updated pathed interiors working a few months ago using HEAD and I have to say it's a very impressive resource. It has few kinks in it, but nothing a guru couldn't fix in a few hours.

This is a very good reason why to never use patch files for resources instead they should provide instructions on how to implement the changes. Patch files are evil! ;)

Ohh yeah I forgot to mention it took a good half day to get around the failed patch areas.
#4
07/16/2004 (12:12 am)
It works also for the latest head. I implemented this 2 days ago. Most hunk failures in the patch are because of changed formatting (inserting tabs instead of the "dumb 3 spaces") and such.

If you check the resource, I posted some information on what file can be ignored and which one has to be patched by hand.
#5
07/16/2004 (1:25 am)
Thanks for the replies everyone.

Stefan, I must have missed Mark Harmon's Pathed Interiors solution, so cheers for the link, and I'll be using that as base to start with.

As the patch doesn't work fully with the current HEAD I think I'll document what needs to be changed / added and post the instructions at the end of his post thread (if anything is different to the info that Thomas posted). I agree with Nathan - patch files are evil things and instruments of the devil... :)

I've got a couple of days off work so I hope to get this working by the weekend (if I can drag myself away from watching the golf that is).
#6
07/18/2004 (6:43 am)
OK. got this working now and have sent Mark Harmon a patch file that will work with the current HEAD, which hopefully he'll post as part of his resource. In the meantime if anyone wants the file just email me and I'll forward it on to you.

Thanks again all.
#7
07/18/2004 (1:36 pm)
David, I seem to be having a problem with your email (keep getting a bounce). Would you be so kind to share your patch with me at ldgeeek@yahoo.com?

Thanks!

Luke D
#8
07/18/2004 (3:31 pm)
Luke,

E-mail address should be working now. (Sorry about that). But I've mailed you a copy of the patch file as requested.

Dave
#9
07/18/2004 (4:01 pm)
Excellent, thanks a lot! I'm grabbing the latest head and attempting to patch as we speak. :)


Luke
#10
07/23/2004 (9:03 am)
Patch file available from resource www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=6109

Unfortunately I was getting a bounce from Mark Harmon's email and cannot contact him to put the patch file in the original resource, so I have posted it in a new resource page.

His implementation is excellent and deserves to live on!
#11
07/27/2004 (10:46 am)
Just to let you know that I've enhanced the pathed interior resource so that the magicButton call is not used. I.e. pathed interiors are added as children of their parent interior at mission load time.

Check out the resource linked in the post above for details.

Have fun all!