Version 7.50.8 - Added Russian translation (Thanks to NookaS!)
Version 7.50.7 - Added new filter for Racing Ships - Added Chinese (Simplified) translation (Thanks to Dolores1714!)
Note The recent issues are being caused by Info Center passing data back to the vanilla menu_map which since 7.50 is now expecting data related to fleet to exist that Info Center doesnt need so doesnt send, this is what is causing the "Clicking Info Center doesnt open the menu" issues, hopefully fixed them all now if not should have caught most of them!
All of these recent issues I have fixed are because people are reporting them to me, I do not play X4 if you encounter issues please let me know so I can fix them otherwise I wont know there is an issue
The on/off never did anything it just made the menu unclickable but any enabled filters would still be active in info center, your screenshot also shows that the filters arent disabled and can be clicked and that you have filters enabled.
Why do you think its rendering the mod useless?
The on/off button was only there because it was originally copied over from vanilla but info center itself never needed it hence I finally removed it.
You're right. Somehow i missed the button on the left side. I was just confused, the On/Off wasn't there and assumed it would've opened the Info Screen. My bad there, sorry for the confusion. Works great!
I have quite a few mods in use and had the issue of the info center breaking, when trying to expand a station view. After a bit of debugging, i found the issue, but i don't really know what it is caused by.
For some reason on the function "createInfoCenterRow" a invalid component got passed, which caused this error: [=ERROR=] 24026.88 E:/SteamLibrary/steamapps/common/X4 Foundations/.../(): GetComponentData(): Invalid argument #1 <component> (got table, expected component ID) [General] 24026.88 ====================================== [General] 24026.88 ====================================== [=ERROR=] 24026.88 E:/SteamLibrary/steamapps/common/X4 Foundations/.../(): GetComponentData(): Invalid argument #1 <component> (got table, expected component ID) [General] 24026.88 ====================================== [General] 24026.88 ====================================== [=ERROR=] 24026.88 E:/SteamLibrary/steamapps/common/X4 Foundations/.../(): GetMacroData(): Invalid argument #1 <macro> (got nil, expected string) [General] 24026.88 ====================================== [General] 24026.88 ====================================== [=ERROR=] 24026.88 E:/SteamLibrary/steamapps/common/X4 Foundations/.../(): IsComponentClass(): Invalid argument #1 <component> (got table, expected component ID) [General] 24026.88 ====================================== [General] 24026.88 ====================================== [=ERROR=] 24026.88 E:/SteamLibrary/steamapps/common/X4 Foundations/.../(): IsComponentClass(): Invalid argument #1 <component> (got table, expected component ID) [General] 24026.88 ====================================== [General] 24026.88 ====================================== [=ERROR=] 24026.88 E:/SteamLibrary/steamapps/common/X4 Foundations/.../(): ConvertIDTo64Bit(): ConvertIDTo64Bit(): invalid id. [General] 24026.88 ====================================== [General] 24026.88 ====================================== [=ERROR=] 24026.88 E:/SteamLibrary/steamapps/common/X4 Foundations/.../(): GetComponentData(): Invalid argument #1 <component> (got table, expected component ID) [General] 24026.88 ====================================== [General] 24026.88 ====================================== [=ERROR=] 24026.88 E:/SteamLibrary/steamapps/common/X4 Foundations/.../(): IsInfoUnlockedForPlayer(): Invalid argument #1 <component> (got table, expected component ID) [General] 24026.88 ====================================== [General] 24026.88 ====================================== [=ERROR=] 24026.88 Error while executing onEvent script for event: onClick. Errormessage: [string "ui/addons/ego_detailmonitor/menu_map.xpl"]:7054: bad argument #1 to 'GetObjectIDCode' (cannot convert 'nil' to 'uint64_t') I fixed this by adding those lines of code to the beginning of the "createInfoCenterRow" function: function ic_menu.createInfoCenterRow(instance, ftable, component, iteration, commanderlocation, numdisplayed) -- Attempt to convert the component ID local componentID = ConvertIDTo64Bit(component)
-- Check if the conversion failed if not componentID or componentID == 0 then DebugError("Error: Invalid component ID") return numdisplayed end
I don't know if this is a proper approach of solving this issue, but it works for me, so i can use this mod.
Maybe you want to include this or something similiar, so others facing this issue, can also use this mod. Or people reading this, just do it on their own.
I am on the last version of the game and it work perfectly, so if anybody have issue with this mod, it doesn't come from this mod, it comes from how you istalled it or conflict with other mods.
Now, I was wandering if it would be possible to add the posibility to set a shortcut to open the Info center window ? *.* Because now I une this window insted of the basic original one that shows the things I own <3
I actually had a hotkey before although it did require SirNukes Python Pipe Server (separate .exe you needed to load separately), it worked for a while but then Egosoft released their next big update the hotkey stopped working... It would cause Egosofts vanilla map menu to break when loading via hotkey so I removed it, this was back in X4 4.20 and my changelog at the time Disabled Hotkey code because its broken in X4 4.20 (I have no idea why it makes Egosofts code fail).
I was hoping that with X4 7.50 now properly supporting lua loading they it would also allow us modders to set hotkeys too but I asked kuertee about this who spoke to egosoft and the response was "No support for native hotkeys in mods".. which to be honest is disappointing.
I would happily add it if it worked and was easy for users to just set in game
Glad you like the mod though! Any issues dont hestitate to shout at me to fix them!
Thank you so much for such a detail answer !! <3 I guess we will do without then :3
I have played with this mods for hours and literally not a single issue, I have a lot of mods too and zero conflict !! Works perfectly on last version of the game and it makes tracking ships activity soooo much better !
I installed the mod, with all the requirements for the 7.50 update. There are buttons on the left and in the "filter", nothing happens... The mod is very useful, I'm waiting for a fix
Hi, I can see the info center button but pressing it doesn't make its window appear. Property owned tab and right click is working. I do have a lot of other mods, but I recall having the same issue that was fixed by an update to info center in the past.
it is not the same issue as the filter button not appearing. My filter button was already set enabled from my save, I confirmed by fixing the button with Velvian209 code. I can see the infocenter button on the left column under manage plots. After clicking it nothing appears.
If the button appears and you can enable filters than thats another issue that I havent seen (or anyone else as far as I know), I would need logs, if you can send me a debug log from your game then I am happy to check it
To get a good log:
Launch X4 with a Launch Option (can be set in GOG or Steam) with the command: -debug all -logfile debuglog.txt
Re run the game and load Info Center menu, if the menu fails to load (which is sounds like it should in your game) the log should have errors in it, close the game after this happens
Go to the folder C:\Users\<username>\Documents\Egosoft\X4\<SteamID>\ and you should see the new file "debuglog.txt"
Upload the file somewhere and send me the download or send to me directly through nexus PM system (or whichever wa other way of sending me the file works for you!) and I can check it out, see what I find :)
I only have Kuertee's HUD mods and SirNukes' API, in addition to your mod. The icon is missing while the satellites are placed in the area of my position and the map is revealed.
waiting, I've replaced this: if menu.displayedFilterLayer ~= "layer_infocenter" then row[1]:setColSpan(2):createButton({ height = Helper.headerRow1Height, helpOverlayID = "toggle_current_filter", helpOverlayText = " ", helpOverlayHighlightOnly = true}):setIcon("menu_on_off", { color = onoffcolor }) row[1].handlers.onClick = function () return menu.buttonSetFilterLayer(menu.displayedFilterLayer, row.index, 1) end row[3]:setColSpan(numCols - 2):createText(title, Helper.headerRowCenteredProperties) else row[1]:setColSpan(numCols):createText(title, Helper.headerRowCenteredProperties)
end with this: if true then row[1]:setColSpan(2):createButton({ height = Helper.headerRow1Height, helpOverlayID = "toggle_current_filter", helpOverlayText = " ", helpOverlayHighlightOnly = true }):setIcon("menu_on_off", { color = onoffcolor }) DebugError("button ON/OFF creat ok : " .. tostring(menu.displayedFilterLayer)) row[1].handlers.onClick = function () return menu.buttonSetFilterLayer(menu.displayedFilterLayer, row.index, 1) end row[3]:setColSpan(numCols - 2):createText(title, Helper.headerRowCenteredProperties) end
in the “infocenter.lua” file in the mod's “ui” folder, it works fine.
283 comments
- Added Russian translation (Thanks to NookaS!)
Version 7.50.7
- Added new filter for Racing Ships
- Added Chinese (Simplified) translation (Thanks to Dolores1714!)
Note
The recent issues are being caused by Info Center passing data back to the vanilla menu_map which since 7.50 is now expecting data related to fleet to exist that Info Center doesnt need so doesnt send, this is what is causing the "Clicking Info Center doesnt open the menu" issues, hopefully fixed them all now if not should have caught most of them!
All of these recent issues I have fixed are because people are reporting them to me, I do not play X4 if you encounter issues please let me know so I can fix them otherwise I wont know there is an issue
i'm missing the On/Off button in the Filter menu, rendering the mod useless.
Any idea how to troubleshoot?
Why do you think its rendering the mod useless?
The on/off button was only there because it was originally copied over from vanilla but info center itself never needed it hence I finally removed it.
Somehow i missed the button on the left side. I was just confused, the On/Off wasn't there and assumed it would've opened the Info Screen.
My bad there, sorry for the confusion. Works great!
Added and uploaded appreciate it
first of all, thank you for this amazing mod.
I have quite a few mods in use and had the issue of the info center breaking, when trying to expand a station view.
After a bit of debugging, i found the issue, but i don't really know what it is caused by.
For some reason on the function "createInfoCenterRow" a invalid component got passed, which caused this error:
[=ERROR=] 24026.88 E:/SteamLibrary/steamapps/common/X4 Foundations/.../(): GetComponentData(): Invalid argument #1 <component> (got table, expected component ID)
[General] 24026.88 ======================================
[General] 24026.88 ======================================
[=ERROR=] 24026.88 E:/SteamLibrary/steamapps/common/X4 Foundations/.../(): GetComponentData(): Invalid argument #1 <component> (got table, expected component ID)
[General] 24026.88 ======================================
[General] 24026.88 ======================================
[=ERROR=] 24026.88 E:/SteamLibrary/steamapps/common/X4 Foundations/.../(): GetMacroData(): Invalid argument #1 <macro> (got nil, expected string)
[General] 24026.88 ======================================
[General] 24026.88 ======================================
[=ERROR=] 24026.88 E:/SteamLibrary/steamapps/common/X4 Foundations/.../(): IsComponentClass(): Invalid argument #1 <component> (got table, expected component ID)
[General] 24026.88 ======================================
[General] 24026.88 ======================================
[=ERROR=] 24026.88 E:/SteamLibrary/steamapps/common/X4 Foundations/.../(): IsComponentClass(): Invalid argument #1 <component> (got table, expected component ID)
[General] 24026.88 ======================================
[General] 24026.88 ======================================
[=ERROR=] 24026.88 E:/SteamLibrary/steamapps/common/X4 Foundations/.../(): ConvertIDTo64Bit(): ConvertIDTo64Bit(): invalid id.
[General] 24026.88 ======================================
[General] 24026.88 ======================================
[=ERROR=] 24026.88 E:/SteamLibrary/steamapps/common/X4 Foundations/.../(): GetComponentData(): Invalid argument #1 <component> (got table, expected component ID)
[General] 24026.88 ======================================
[General] 24026.88 ======================================
[=ERROR=] 24026.88 E:/SteamLibrary/steamapps/common/X4 Foundations/.../(): IsInfoUnlockedForPlayer(): Invalid argument #1 <component> (got table, expected component ID)
[General] 24026.88 ======================================
[General] 24026.88 ======================================
[=ERROR=] 24026.88 Error while executing onEvent script for event: onClick.
Errormessage: [string "ui/addons/ego_detailmonitor/menu_map.xpl"]:7054: bad argument #1 to 'GetObjectIDCode' (cannot convert 'nil' to 'uint64_t')
I fixed this by adding those lines of code to the beginning of the "createInfoCenterRow" function:
function ic_menu.createInfoCenterRow(instance, ftable, component, iteration, commanderlocation, numdisplayed)
-- Attempt to convert the component ID
local componentID = ConvertIDTo64Bit(component)
-- Check if the conversion failed
if not componentID or componentID == 0 then
DebugError("Error: Invalid component ID")
return numdisplayed
end
I don't know if this is a proper approach of solving this issue, but it works for me, so i can use this mod.
Maybe you want to include this or something similiar, so others facing this issue, can also use this mod. Or people reading this, just do it on their own.
This mod is just AMAZING !
I am on the last version of the game and it work perfectly, so if anybody have issue with this mod, it doesn't come from this mod, it comes from how you istalled it or conflict with other mods.
Now, I was wandering if it would be possible to add the posibility to set a shortcut to open the Info center window ? *.*
Because now I une this window insted of the basic original one that shows the things I own <3
Thank you so much !!! <3
I actually had a hotkey before although it did require SirNukes Python Pipe Server (separate .exe you needed to load separately), it worked for a while but then Egosoft released their next big update the hotkey stopped working... It would cause Egosofts vanilla map menu to break when loading via hotkey so I removed it, this was back in X4 4.20 and my changelog at the time
Disabled Hotkey code because its broken in X4 4.20 (I have no idea why it makes Egosofts code fail).
I was hoping that with X4 7.50 now properly supporting lua loading they it would also allow us modders to set hotkeys too but I asked kuertee about this who spoke to egosoft and the response was "No support for native hotkeys in mods".. which to be honest is disappointing.
I would happily add it if it worked and was easy for users to just set in game
Glad you like the mod though! Any issues dont hestitate to shout at me to fix them!
Thank you so much for such a detail answer !! <3
I guess we will do without then :3
I have played with this mods for hours and literally not a single issue, I have a lot of mods too and zero conflict !!
Works perfectly on last version of the game and it makes tracking ships activity soooo much better !
Thank you again !! <3
Update 7.50.5 has fixed my issue thanks!
UPD it turns out that you don't need to turn on all the filters at once
To get a good log:
Launch X4 with a Launch Option (can be set in GOG or Steam) with the command:
-debug all -logfile debuglog.txt
Re run the game and load Info Center menu, if the menu fails to load (which is sounds like it should in your game) the log should have errors in it, close the game after this happens
Go to the folder C:\Users\<username>\Documents\Egosoft\X4\<SteamID>\ and you should see the new file "debuglog.txt"
Upload the file somewhere and send me the download or send to me directly through nexus PM system (or whichever wa other way of sending me the file works for you!) and I can check it out, see what I find :)
I only have Kuertee's HUD mods and SirNukes' API, in addition to your mod. The icon is missing while the satellites are placed in the area of my position and the map is revealed.
if menu.displayedFilterLayer ~= "layer_infocenter" then
row[1]:setColSpan(2):createButton({ height = Helper.headerRow1Height, helpOverlayID = "toggle_current_filter", helpOverlayText = " ", helpOverlayHighlightOnly = true}):setIcon("menu_on_off", { color = onoffcolor })
row[1].handlers.onClick = function () return menu.buttonSetFilterLayer(menu.displayedFilterLayer, row.index, 1) end
row[3]:setColSpan(numCols - 2):createText(title, Helper.headerRowCenteredProperties)
else
row[1]:setColSpan(numCols):createText(title, Helper.headerRowCenteredProperties)
end
with this:
if true then
row[1]:setColSpan(2):createButton({ height = Helper.headerRow1Height, helpOverlayID = "toggle_current_filter", helpOverlayText = " ", helpOverlayHighlightOnly = true }):setIcon("menu_on_off", { color = onoffcolor })
DebugError("button ON/OFF creat ok : " .. tostring(menu.displayedFilterLayer))
row[1].handlers.onClick = function () return menu.buttonSetFilterLayer(menu.displayedFilterLayer, row.index, 1) end
row[3]:setColSpan(numCols - 2):createText(title, Helper.headerRowCenteredProperties)
end
in the “infocenter.lua” file in the mod's “ui” folder, it works fine.
i feel like half the ships are missing, I have way more unassigned ships
X4 Version 7.10
my mods
Mod Support APIs ws-2042901274 1.90
kuertee Ul Extensions and HUD kuerteeUlExtens... 7.10
It looks like Info Center is only showing traders and miners?
Can you confirm if the filters are set to show everything?