[MOD HELP] The drone mode is left as 'pending' on startup or teleport?

The place to discuss scripting and game modifications for X4: Foundations.

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

User avatar
thomassanford
Posts: 73
Joined: Tue, 17. Sep 13, 01:43
x4

[MOD HELP] The drone mode is left as 'pending' on startup or teleport?

Post by thomassanford » Sun, 28. Jan 24, 21:28

Hi all!
I have been working on a drone mod for a while now and I hit a snag. I am currently working on the UI for it by editing the file ui/core/lua/crosshair_handling.lua to add some icons and interactions for my new drones. It appears that even in an un-modded game when the game starts up or you teleport to a ship you haven't been to during the current session and also changed the drone modes on that ship they will sit in a 'pending' state indefinitely. It is hard to even tell with the default colors of gray and white looking so close together. I have tried the obvious stuff of calling updateDronePanel() and reinitialize the whole panel. I can't seem to get the drone mode color to match it's actual mode. Unless it is intended to stay pending until you change it, if so however it still shows pending even while the drones are working properly deploying and such. I know this is all very specific but any help would be great. Thanks.

Return to “X4: Foundations - Scripts and Modding”