[API/GUIDE] How to mod the UI (_G Workaround and Right Click API) v0.32 (02/27/19))

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

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

Berserk Knight
Posts: 398
Joined: Tue, 17. Dec 13, 01:34
x4

Re: [API/GUIDE] How to mod the UI (_G Workaround and Right Click API) v0.32 (02/27/19))

Post by Berserk Knight » Thu, 17. Oct 19, 15:22

Uploaded an updated Right Click API v0.34 for patch 2.60, at Nexus.
Only minor changes made by EgoSoft this time. (Exclusion of drones when giving orders.)

XTC0R
Posts: 401
Joined: Sat, 1. Dec 18, 19:58
x4

Re: [API/GUIDE] How to mod the UI (_G Workaround and Right Click API) v0.32 (02/27/19))

Post by XTC0R » Thu, 21. Nov 19, 18:07

Berserk Knight wrote:
Thu, 17. Oct 19, 15:22
Uploaded an updated Right Click API v0.34 for patch 2.60, at Nexus.
Only minor changes made by EgoSoft this time. (Exclusion of drones when giving orders.)
Since Beta 3.0 the Right Click API mod prevents the right click on ship context menu to show up. I had to remove the mod to get the contetx menu back.

ErdeFB
Posts: 22
Joined: Sun, 20. Oct 13, 21:49
x4

Re: [API/GUIDE] How to mod the UI (_G Workaround and Right Click API) v0.32 (02/27/19))

Post by ErdeFB » Sun, 24. Nov 19, 23:07

Can confirm non-functional. Hopefully this gets updated or even better, Egosoft makes it redundant with a patch. Here's hoping. :D

sdfg
Posts: 23
Joined: Mon, 14. Oct 13, 22:40

Re: [API/GUIDE] How to mod the UI (_G Workaround and Right Click API) v0.32 (02/27/19))

Post by sdfg » Tue, 11. Feb 20, 16:41

Does anyone know any workaround for 3.0?

Berserk Knight
Posts: 398
Joined: Tue, 17. Dec 13, 01:34
x4

Re: [API/GUIDE] How to mod the UI (_G Workaround and Right Click API) v0.32 (02/27/19))

Post by Berserk Knight » Tue, 31. Mar 20, 18:12

Uploaded an updated Right Click API v0.35 for patch 3.00, at Nexus.

Godis
Posts: 28
Joined: Thu, 20. Feb 20, 20:33

Re: [API/GUIDE] How to mod the UI (_G Workaround and Right Click API) v0.32 (02/27/19))

Post by Godis » Tue, 31. Mar 20, 22:15

Unfortunately the rightclick contextmenu is not working, when using RC API. That means, when I want to rightclick on any ship, no menu shows up anymore. For example I cannot teleport to ships anymore.
I removed all mods that rely on it and started a new game - can confirm it's caused by RC API. But then I select any of my ships and then rightclick somewhere on the map, the contextmenu shows up. So it's only the normal contextmenu that is broken. Also when trying to open the contextmenu, instead the game "thinks" I'm holding down the right mousebutton and rotates the map.
I'm using 3.0 with Split Vendetta.

xavifox
Posts: 19
Joined: Mon, 2. Dec 19, 19:37

Re: [API/GUIDE] How to mod the UI (_G Workaround and Right Click API) v0.32 (02/27/19))

Post by xavifox » Tue, 31. Mar 20, 22:32

Godis wrote:
Tue, 31. Mar 20, 22:15
Unfortunately the rightclick contextmenu is not working, when using RC API. That means, when I want to rightclick on any ship, no menu shows up anymore. For example I cannot teleport to ships anymore.
I removed all mods that rely on it and started a new game - can confirm it's caused by RC API. But then I select any of my ships and then rightclick somewhere on the map, the contextmenu shows up. So it's only the normal contextmenu that is broken. Also when trying to open the contextmenu, instead the game "thinks" I'm holding down the right mousebutton and rotates the map.
I'm using 3.0 with Split Vendetta.
I tried it too and it doesn't work with the new update 3.0. :(

Godis
Posts: 28
Joined: Thu, 20. Feb 20, 20:33

Re: [API/GUIDE] How to mod the UI (_G Workaround and Right Click API) v0.32 (02/27/19))

Post by Godis » Tue, 31. Mar 20, 22:57

xavifox wrote:
Tue, 31. Mar 20, 22:32
Godis wrote:
Tue, 31. Mar 20, 22:15
Unfortunately the rightclick contextmenu is not working, when using RC API. That means, when I want to rightclick on any ship, no menu shows up anymore. For example I cannot teleport to ships anymore.
I removed all mods that rely on it and started a new game - can confirm it's caused by RC API. But then I select any of my ships and then rightclick somewhere on the map, the contextmenu shows up. So it's only the normal contextmenu that is broken. Also when trying to open the contextmenu, instead the game "thinks" I'm holding down the right mousebutton and rotates the map.
I'm using 3.0 with Split Vendetta.
I tried it too and it doesn't work with the new update 3.0. :(
Yes, and I hope this will be noticed, since Berserk also didn't answer to questions on nexus... no offense though ;)

Berserk Knight
Posts: 398
Joined: Tue, 17. Dec 13, 01:34
x4

Re: [API/GUIDE] How to mod the UI (_G Workaround and Right Click API) v0.32 (02/27/19))

Post by Berserk Knight » Tue, 31. Mar 20, 23:30

Sorry, my fault. Probably messed up a bracket while updating. Fixed and uploaded v0.36.

Godis
Posts: 28
Joined: Thu, 20. Feb 20, 20:33

Re: [API/GUIDE] How to mod the UI (_G Workaround and Right Click API) v0.32 (02/27/19))

Post by Godis » Tue, 31. Mar 20, 23:46

Berserk Knight wrote:
Tue, 31. Mar 20, 23:30
Sorry, my fault. Probably messed up a bracket while updating. Fixed and uploaded v0.36.
THANK YOU! :)

Berserk Knight
Posts: 398
Joined: Tue, 17. Dec 13, 01:34
x4

Re: [API/GUIDE] How to mod the UI (_G Workaround and Right Click API) v0.32 (02/27/19))

Post by Berserk Knight » Fri, 5. Jun 20, 04:23

Uploaded an updated Right Click API v0.37 for patch 3.20, at Nexus.

MiFoludek
Posts: 64
Joined: Wed, 18. May 11, 21:06
x3tc

Re: [API/GUIDE] How to mod the UI (_G Workaround and Right Click API) v0.32 (02/27/19))

Post by MiFoludek » Fri, 5. Jun 20, 20:38

Berserk Knight wrote:
Fri, 5. Jun 20, 04:23
Uploaded an updated Right Click API v0.37 for patch 3.20, at Nexus.
Works very nice. Thank you

siriusscepter
Posts: 1
Joined: Fri, 1. May 20, 23:55
x4

Re: [API/GUIDE] How to mod the UI (_G Workaround and Right Click API) v0.32 (02/27/19))

Post by siriusscepter » Sat, 6. Jun 20, 04:36

I am assuming that all right click mods are FUBAR now with the new 3.20 Patch?

User avatar
Snowfious
Posts: 45
Joined: Wed, 26. Jun 19, 00:49
x4

Re: [API/GUIDE] How to mod the UI (_G Workaround and Right Click API) v0.32 (02/27/19))

Post by Snowfious » Sun, 7. Jun 20, 04:39

Berserk Knight Thank you for your work on updating your mods. The Subordinate one is a great mod and it's so much harder to play without it. Everything works fine, but bugs before are gone. Thanks again.

Snow

user1679
Posts: 756
Joined: Fri, 20. Jul 18, 23:20

Re: [API/GUIDE] How to mod the UI (_G Workaround and Right Click API) v0.32 (02/27/19))

Post by user1679 » Tue, 25. Aug 20, 11:17

I'm getting an error in my debug log on game 3.30 with Enhanced Holomap 3 (I posted this on their nexus too):
[=ERROR=] 0.00 Error while executing onEvent script for event: RegisterAddon.
Errormessage: [string "ui/addons/ego_movie/G_Work_Around.lua"]:6: module 'extensions.EHM3_factionObj_and_Sect_Colours.EHM3_factionObj_and_Sect_Colours' not found:
no field package.preload['extensions.EHM3_factionObj_and_Sect_Colours.EHM3_factionObj_and_Sect_Colours']
no file 'extensions\EHM3_factionObj_and_Sect_Colours\EHM3_factionObj_and_Sect_Colours.txt'
no file '.\extensions\EHM3_factionObj_and_Sect_Colours\EHM3_factionObj_and_Sect_Colours.lua'
no file 'D:\Games\x_series\x4_foundations\lua\extensions\EHM3_factionObj_and_Sect_Colours\EHM3_factionObj_and_Sect_Colours.lua'
no file 'D:\Games\x_series\x4_foundations\lua\extensions\EHM3_factionObj_and_Sect_Colours\EHM3_factionObj_and_Sect_Colours\init.lua'
no file 'ui\core\lualibs\extensions\EHM3_factionObj_and_Sect_Colours\EHM3_factionObj_and_Sect_Colours_64.dll'
no file 'ui\core\lualibs\extensions_64.dll'
The mods are installed to the proper "gamedir\extensions" folder so I'm not sure why it says "no file"...

user1679
Posts: 756
Joined: Fri, 20. Jul 18, 23:20

Re: [API/GUIDE] How to mod the UI (_G Workaround and Right Click API) v0.32 (02/27/19))

Post by user1679 » Thu, 27. Aug 20, 03:57

user1679 wrote:
Tue, 25. Aug 20, 11:17
I'm getting an error in my debug log on game 3.30 with Enhanced Holomap 3 (I posted this on their nexus too):
[=ERROR=] 0.00 Error while executing onEvent script for event: RegisterAddon.
Errormessage: [string "ui/addons/ego_movie/G_Work_Around.lua"]:6: module 'extensions.EHM3_factionObj_and_Sect_Colours.EHM3_factionObj_and_Sect_Colours' not found:
no field package.preload['extensions.EHM3_factionObj_and_Sect_Colours.EHM3_factionObj_and_Sect_Colours']
no file 'extensions\EHM3_factionObj_and_Sect_Colours\EHM3_factionObj_and_Sect_Colours.txt'
no file '.\extensions\EHM3_factionObj_and_Sect_Colours\EHM3_factionObj_and_Sect_Colours.lua'
no file 'D:\Games\x_series\x4_foundations\lua\extensions\EHM3_factionObj_and_Sect_Colours\EHM3_factionObj_and_Sect_Colours.lua'
no file 'D:\Games\x_series\x4_foundations\lua\extensions\EHM3_factionObj_and_Sect_Colours\EHM3_factionObj_and_Sect_Colours\init.lua'
no file 'ui\core\lualibs\extensions\EHM3_factionObj_and_Sect_Colours\EHM3_factionObj_and_Sect_Colours_64.dll'
no file 'ui\core\lualibs\extensions_64.dll'
The mods are installed to the proper "gamedir\extensions" folder so I'm not sure why it says "no file"...
Ok so I figured out what went wrong: you can't rename the mod folder when you install it.

It wasn't clear from the mod page and the API page that you can't rename the mod folder which I did (I called it 'mapColors' instead of 'EHM3_factionObj_and_Sect_Colours'. After unpacking the CAT files and inspecting how the LUA modules are registered, I named the folder back to the original and the mod registered properly.

user1679
Posts: 756
Joined: Fri, 20. Jul 18, 23:20

Re: [API/GUIDE] How to mod the UI (_G Workaround and Right Click API) v0.32 (02/27/19))

Post by user1679 » Tue, 9. Feb 21, 07:27

Seems to not work at all with 3.30 hotfix 2. When starting a new game, it crashes at 99%. Debug log shows that g_workaround is trying to load Righc Click API but nothing after that (no error message or anything).

kmunoz
Posts: 444
Joined: Sun, 25. Feb 07, 19:59
x4

Re: [API/GUIDE] How to mod the UI (_G Workaround and Right Click API) v0.32 (02/27/19))

Post by kmunoz » Tue, 9. Feb 21, 18:42

What still uses G_Workaround and Right Click API?
Let's Play Poorly! - Suboptimal X4 Playthroughs

user1679
Posts: 756
Joined: Fri, 20. Jul 18, 23:20

Re: [API/GUIDE] How to mod the UI (_G Workaround and Right Click API) v0.32 (02/27/19))

Post by user1679 » Fri, 19. Mar 21, 16:53

kmunoz wrote:
Tue, 9. Feb 21, 18:42
What still uses G_Workaround and Right Click API?
The only mod I have that uses it is Enhanced Holomap 3 which adds faction colors to ships in the map. But I don't think it's needed anymore because you can turn on faction colors in the filter menu.

User avatar
Phinixa
Posts: 320
Joined: Sun, 4. Apr 10, 01:47
x4

Re: [API/GUIDE] How to mod the UI (_G Workaround and Right Click API) v0.32 (02/27/19))

Post by Phinixa » Fri, 19. Mar 21, 20:09

For me its "Immediate Orders". Stopped working with 4.0
***modified*** 4 life!

Post Reply

Return to “X4: Foundations - Scripts and Modding”