• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

cant open building panel

murray1993

Chieftain
Joined
Aug 22, 2013
Messages
13
I've been having this issue since the 3.5 and after patch...
When you click 'choose building' button nothing happens. when you open city view, there's still nothing at the bottom corner on the left...

it used to be fine so I'm pretty sure there's no other problems with my CIV.
Also i haven't been using other MODs.
I downloaded the 353 patch and problem still exists... sad....
really love this MOD~
 
That's usually a game ender.
It's usually a lua runtime error.
Reloading from main menu may help half the time.
It may also help to take a different path.
For ex. it's very common to get the bug with Wonders, new policies or techs.
They are hard to fix.
I haven't see this bug after turn 160 so it maybe part of your setup with other mods.
 
I am getting the problems too (3.53). I played the older version 3.34 for 3000 turns, without a hitch. Also, reloading does not fix the problem. (Not running any other mod besides the ai-tools thing).
 
A possibly related issue from this thread: http://forums.civfanatics.com/showthread.php?p=12807641#post12807641

To check I downloaded and booted the latest build, v3.6.1 and started the game as multiple leaders and experienced the same turn 0 building panel error as the linked post.


Shoshone error:
Code:
[27424.086] ProductionPopup: WARN   Turn 0   GetHelpTextForPromotion: stat data is nil for PROMOTION_GOODY_HUT_PICKER!
[27424.086] Runtime Error: C:\Users\Owner\Documents\My Games\Sid Meier's Civilization 5\MODS\Communitas AI and Tools (v 3)\Tools\TooltipWriter\InfoTooltipInclude.lua:135: attempt to index local 'section' (a nil value)

Netherlands/Morocco error:
Code:
[28147.790] ProductionPopup: WARN   Turn 0   GetHelpTextForPromotion: stat data is nil for PROMOTION_IGNORE_TERRAIN_COST_NOUPGRADE!
[28147.790] Runtime Error: C:\Users\Owner\Documents\My Games\Sid Meier's Civilization 5\MODS\Communitas AI and Tools (v 3)\Tools\TooltipWriter\InfoTooltipInclude.lua:135: attempt to index local 'section' (a nil value)

Maya error:
Code:
[29029.321] ProductionPopup: WARN   Turn 0   GetHelpTextForPromotion: stat data is nil for PROMOTION_WOODSMAN!
[29029.321] Runtime Error: C:\Users\Owner\Documents\My Games\Sid Meier's Civilization 5\MODS\Communitas AI and Tools (v 3)\Tools\TooltipWriter\InfoTooltipInclude.lua:135: attempt to index local 'section' (a nil value)

It looks like the game is hanging on the first promotion it can.
 
I just installed and tried a start as Indonesia and Spain.
Same error where I cannot make a production choice.
Each game was started from scratch with a new cache and log file.

109189.015] Runtime Error: C:\Users\Witt\Documents\My Games\Sid Meier's Civilization 5\MODS\Communitas AI and Tools (v 3)\Tools\TooltipWriter\TW_Init.lua:645: return cepObjectInfo.NotFeature and Locale.ConvertTextKey(GameInfo.Features[cepObjectInfo.NotFeature].Description or (cepObjectInfo.NotFeature .. “_DESCRIPTION”)):1: unexpected symbol near '“'
stack traceback:
=[C]: in function 'assert'
C:\Users\Witt\Documents\My Games\Sid Meier's Civilization 5\MODS\Communitas AI and Tools (v 3)\Tools\TooltipWriter\TW_Init.lua:645: in main chunk
=[C]: ?
[109189.015] Runtime Error: Error loading C:\Users\Witt\Documents\My Games\Sid Meier's Civilization 5\MODS\Communitas AI and Tools (v 3)\Tools\TooltipWriter\TW_Init.lua.
[109189.671] CEA_Events: CEA_Events.lua
 
@gdwitt

Although the end result is the same as before the error you are experiencing is unfortunately another minor bug resulting from some minor changes in the Tooltip writer code.

A fix is on the way.
 
I tried to start a new game and had the same problem. Does this mean that the latest 3.6.1 version of the mod is totally unplayable for everyone? Or is it possible to play?
 
It would be cool to have older versions (in this case the 3.6 that came before 3.6.1) available for download. But I guess that would be too complicated and miss the point for the developers.
 
[109189.015] Runtime Error: C:\Users\Witt\Documents\My Games\Sid Meier's Civilization 5\MODS\Communitas AI and Tools (v 3)\Tools\TooltipWriter\TW_Init.lua:645: return cepObjectInfo.NotFeature and Locale.ConvertTextKey(GameInfo.Features[cepObjectInfo.NotFeature].Description or (cepObjectInfo.NotFeature .. “_DESCRIPTION”)):1: unexpected symbol near '“'
stack traceback:
=[C]: in function 'assert'
C:\Users\Witt\Documents\My Games\Sid Meier's Civilization 5\MODS\Communitas AI and Tools (v 3)\Tools\TooltipWriter\TW_Init.lua:645: in main chunk
=[C]: ?
[109189.015] Runtime Error: Error loading C:\Users\Witt\Documents\My Games\Sid Meier's Civilization 5\MODS\Communitas AI and Tools (v 3)\Tools\TooltipWriter\TW_Init.lua.
[109189.671] CEA_Events: CEA_Events.lua

This error is probably unrelated to the building panel error. It seems like in TW_BuildingStats.sql line 164, the quotation marks used were incorrect but it has already been fixed in the latest version.
 
The building panel not opening error is coming from the TW_Init.lua file in the ToolTipWriter folder. In version 3.6 of CAT I found it producing this error every time I start a game. When I changed this file back to a previous version (such as 3.5), then the problem went away. The code causing the issue is:

elseif lineType == "NotFeature" then
lineValue = string.format("{%s}", GameInfo.Features[lineValue].Description or GameInfo.Features[lineValue].Type)
InsertBuildingSubStat()--]]
--
elseif lineType == "NearbyTerrainRequired" or lineType == "ProhibitedCityTerrain" then
lineValue = string.format("{%s}", GameInfo.Terrains[lineValue].Description or GameInfo.Terrains[lineValue].Type)
InsertBuildingSubStat()--]]

There are some end comments end there (the --]]). In the older version of the file, those lines are commented out entirely.

In the latest version that I retrieved from Github, this file is much different. When I use that file, then the game doesn't crash at all. I wanted to make that change and upload it so people could play, but it appears that other changes are being made. The version from Github will probably shortly be available on the wikia.com download page.

In the meantime, there are 2 ways to get your game to stop crashing.


1. Go to Github and download the zip file. Retrieve the TW_Init.lua file. Copy it over the corresponding file in on your system in the MODS folder.

2. Edit the file yourself. Find those lines of code. They are around line 400 in the file. Comment out the code in question.
 
Back
Top Bottom