Possible bug with TTmod_addTrigger(GeoID...

1
I have just started using the addTrigger (thank you very much btw, very helpful), and have now run into this a few times where it doesn't seem the GeoID is properly being converted to the correct X, Y and Z coordinates, specifically the Z coordinates.

Here's an example of two attempts at adding a trigger based on a GeoID

Code: Select all

INFO 2018-09-08 05:43:48.015 {02} <TTmod_addTrigger> [96974] TTmod | Registered new trigger at position 1856 1196 0 with radius 12
INFO 2018-09-08 05:43:48.015 {02} <TTmod_addTrigger> [96974] TTmod | Registered new trigger at position 476 1032 0 with radius 12
I have had success using the actual X, Y, and Z coordinates but for this specific instance, I only have the GeoID.

The documentation states:
%position
“X Y Z” position or GeoID of the trigger center
Thank you in advance!

Re: Possible bug with TTmod_addTrigger(GeoID...

4
You are correct, the conversion of X and Y is broken when using GeoIDs. My apologies. Thanks for pointing this out.
I've attached a fixed triggers.cs.dso file that you can replace. This will fix the problem. It'll also add the Z information based on the terrain at the X and Y coordinates (surface height).
I will of course include this in the next TTmod update.
cron