Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lua error related to BTS integration #369

Open
davidm88 opened this issue Sep 19, 2024 · 0 comments
Open

Lua error related to BTS integration #369

davidm88 opened this issue Sep 19, 2024 · 0 comments

Comments

@davidm88
Copy link

Describe the bug
I am encountering a few issues and I'm trying to narrow down the causes (could be multiple mods). The issues in particular are my hotkeys stop working (e.g. space to skip turn for unit), among a few other things like the lenses breaking, can't swap or buy tiles in city view (icons missing), obsolete cards still plugged in when new civic researched and have to manually remove and add the new one -- these issues are not the focus the bug report, but maybe it can help determine what behaviour (if any) the below error is causing.

To Reproduce
Steps to reproduce the behavior:
I have a save file which I can provide, but I am not sure how that works given I am running a ton of mods. I encountered the hotkeys breaking issue, so I looked in the Lua.log file and found the error was MAYBE caused by:

  • opened civilopedia and read the page on alliances
  • opened the trade screen and selected available routes > india, brazil, france (may or may not be relevant that france had no available routes)
  • Error appears in log:
CivilopediaScreen: Received a request to open the Civilopedia
CivilopediaScreen: Navigating to CONCEPTS:INTRO
CivilopediaScreen: Navigating to CONCEPTS:ALLIANCES_1
Runtime Error: E:\SteamLibrary\steamapps\workshop\content\289070\2115302648\Integrations\BTS\UI\TradeOverview.lua:1486: operator # is not supported for # nil
stack traceback:
	E:\SteamLibrary\steamapps\workshop\content\289070\2115302648\Integrations\BTS\UI\TradeOverview.lua:1486: in function 'GroupRoutes'
	E:\SteamLibrary\steamapps\workshop\content\289070\2115302648\Integrations\BTS\UI\TradeOverview.lua:482: in function 'ViewAvailableRoutes'
	E:\SteamLibrary\steamapps\workshop\content\289070\2115302648\Integrations\BTS\UI\TradeOverview.lua:229: in function 'Refresh'
	E:\SteamLibrary\steamapps\workshop\content\289070\2115302648\Integrations\BTS\UI\TradeOverview.lua:1862: in function 'OnFilterSelected'

I then had the hotkey issue so I saved and re-loaded, opened the civilopedia and the trade screen as before, the error appeared in the log again but I didn't have they hotkey issue.

Expected behavior
Nothing out of the ordinary

Screenshots
I can attach the save file but again I don't know how it will work if you don't have the same mod list.

General informations

  • OS: Windows 11
  • Version 1.0.12.68 (1023995)
  • Expansion what's the latest one? I got everything and the frontier pass
  • Other mods - I hope this list is in the save file somewhere? not sure how else to get it, it's too long to type out.

Save game and logs
Literally can't attach the save file, file type not allowed. I'll try zip.
LAUTARO 167 1060 AD.zip

Additional context
So I hope I explained this well, basically I can't pinpoint or reproduce the exact issue but I have found an error in the log that I can reproduce which may be causing an issue and if you guys can reproduce it too then maybe it will help. If not, perhaps you can find why nil is being passed in to that function, and if that will actually cause any problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant