Game Development Community

Mounted Image Bug?

by J.C. Smith · in Torque Game Engine Advanced · 02/15/2008 (4:18 am) · 3 replies

It appears to me that mountimage is bugged in TGEA 1.03. All images seem to mount at the transform for the first mountpoint0.

#1
02/18/2008 (3:19 am)
Although I have had my share of trauma with mountpoints, I haven't seen a difference between TGE and TGEA, and I have ported back and forth a couple times.

I'd search through other people's (and Torque stock) mounting code and see what you're doing wrong. On the whole, I have faith that it is actually completely logical, even if it sometimes doesn't seem so to me :-)
#2
02/18/2008 (5:20 pm)
Have you tried mounting something into mountpoint 1, 2, 3 etc (assuming your model has them)? They'll mount fine for me but they wind up iwith the same transform as mountpoint0. If I use getmountedimage(1); it will return the datablock correctly, but it's not transforming to the correct place. If I load up an unmodified 1.03 and use the space kork model for example, viewing him in showtool pro, he has mounts 0, 1 and 2, at different areas. If I mount an crossbow in slot1 or two though, they get mounted in the exact same position as the crossbow which I have mounted in 0.
#3
02/18/2008 (6:30 pm)
Man, I'm not sure. I'm gonna follow this thread and hopefully we'll find out. Like I said, i've had issues.

Sometimes it seems like it mounts on the mounpoint number you designate; other times it's like the first available, like it's a queue. I'm not sure what the deal is, I just keep jacking with it until it works right.

If you check my profile and download my game, you can play with the scripts and models I have there--I'm definitely using multiple mountpoints successfully, for example mounting weapons to vehicles and such.

But now that I think about it, I have a little weirdness in my FlyingVehicles, where when the weapon is mounted in ::onAdd, it mounts in one place, but when I fly through a powerup it gets mounted elsewhere (but close enough for my unrefined tastes). Also I have issues, for example, when I mount a CTF flag to a player's weaponmount the appearance changes whether your in first or third person view. It's even more extreme when I mount it to a vehicle. In first person you see it out in front of you, in third it sticks straight up out of the top of the car. And this is despite changing the various joints in the Image model! I'm pretty confused by it.

As it happens, it's serendipitous and the way I would have it work anyway, but I do not understand it. Like I said, though, I believe I'm just not grasping the system.