Problem with movement

The place to discuss scripting and game modifications for X²: The Threat.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

User avatar
Sandalpocalypse
Posts: 4447
Joined: Tue, 2. Dec 03, 22:28
x4

Problem with movement

Post by Sandalpocalypse »

Alright. It USED to work. But now, it seems that no matter what I do (call the move to position script, follow an object, move to position fly command), my ships will fly to the target, stop, and then start flying in little circles. Except, yknow, sometimes they don't. ARGH.

I've tried wildly varying precision settings, so I don't think thats it.

View the current editions of the scripts:
SentryPost, which calls the script that's borked.
LayLTTri, which is borked.
kryptyk
Posts: 483
Joined: Fri, 5. Dec 03, 20:19
x4

Post by kryptyk »

I think this might be a new feature for 1.3 because in the previous versions the ships would fly to the point and sit there. I've only noticed the ships moving to position and flying around if they were smaller than capships....I think it might be flying around to avoid being hit by patrolling capships or so they can avoid general traffic.
User avatar
Sandalpocalypse
Posts: 4447
Joined: Tue, 2. Dec 03, 22:28
x4

Post by Sandalpocalypse »

Hmmm...

Well, I just watched the ships closely, and while they are flying in little circles, the script is still executing and they are "moving to position". But it isn't getting to the rest of the script, it's stuck on the move command. :cry:
kryptyk
Posts: 483
Joined: Fri, 5. Dec 03, 20:19
x4

Post by kryptyk »

Sandalpocalypse wrote:Hmmm...

Well, I just watched the ships closely, and while they are flying in little circles, the script is still executing and they are "moving to position". But it isn't getting to the rest of the script, it's stuck on the move command. :cry:
even on capital ships? everytime I use the command for them they move to and stop....
User avatar
Kailric
Posts: 985
Joined: Sun, 7. Dec 03, 05:15
x3

Post by Kailric »

I guess you will just have to add an extra command to tell them to stop if you are scriting
kryptyk
Posts: 483
Joined: Fri, 5. Dec 03, 20:19
x4

Post by kryptyk »

Kailric wrote:I guess you will just have to add an extra command to tell them to stop if you are scriting
I'm pretty sure Sandalpocalypse is talking about the Navigation command "Move to Position"

.....I guess it's time to take it apart and see what's up :D
User avatar
Sandalpocalypse
Posts: 4447
Joined: Tue, 2. Dec 03, 22:28
x4

Post by Sandalpocalypse »

lol yes, but i've ALSO tried calling the move to position script and a couple other things.

and i've tried adding an idle script, it just never gets to it, its stuck on the move :/
User avatar
moggy2
Posts: 5505
Joined: Wed, 6. Nov 02, 20:31
x3ap

Post by moggy2 »

what value are you using for precision?

the command will never finish if it's too small as the ship will never be able to get close enough, the collision avoidance kicks in and they fly round in circles trying to find a way to get closer.

For small objects you can use a precision of a a few hundred meters, for larger objects it needs to be in kilometers, for gates I think it's over 5000m

For fly to position if it's too small some ships overshoot and continually circle trying to get into position, again you need to use a precision of at least a couple of hundred I think.

Return to “X²: The Threat - Scripts and Modding”