Yandros on 14/8/2019 at 13:58
The code here is not a DML, it's a Squirrel script, so try saving it as a .nut file and see if it works. It should effectively replace the TrapTeleporter script.
Unna Oertdottir on 14/8/2019 at 14:07
In this case, it's not a dml, but a squirrel script.
You already installed T2fix. This will load squirrel script. Good.
First, you need to find a folder "sq_scripts" in game root folder/OSM. Create it there if it doesn't already exist.
You can also create this folder in the root folder.
Then copy the code and paste it in a txt file. Save it in the sq_scripts folder as "teleport.nut" (or just create a txt file first and rename it later). The file extension has to be "nut", but not txt or whatever.
The FM has to be restarted then.
ffox on 14/8/2019 at 14:26
Many thanks both. It works! :D (I'm ashamed to admit that I needed Unna's longer instructions .)
I think we need a link to instructions for this sort of thing in the FM forum (or if they are there already make it clear where to find them). Otherwise the fixes that you good people post in there are wasted on the majority.
Yandros on 14/8/2019 at 16:25
Well for the majority, this and similar fixes will be integrated into T2Fix so they only need to worry about running that.
Unna Oertdottir on 17/8/2019 at 18:29
Note that Jax has just updated the code. Whoever downloaded it needs to replace the other nut.
john9818a on 3/8/2022 at 02:03
Quote Posted by Yandros
Thanks everyone for your work on this. I would still advise authors moving forward to be wary of this, since plenty of players will not be using T2Fix and thus will not have this fox in place to work around the issue. I for one will begin dynamically adding the links via a conversation on sim start or something similar.
Sorry to resurrect this thread, but I have discovered something. Whenever an AI is teleported in from solid space, the
AICurrentPatrol link is changed to the nearest
TrolPt, so to make an AI go to a specific
TrolPt, create one right next to the
TeleportTrap and then
AIPatrol link the new
TrolPt to the desired
TrolPt. I started looking at one my old missions that has this problem and forgot that there was a fix in T2Fix. Since AI with
M-DoesPatrol or
Patrol: Does Patrol: True added it isn't necessary to add an
AICurrentPatrol link to the AI in dromed. The AI simply starts with the nearest
TrolPt.