Thalassicus / cep-bnw

Civ V Communitas Expansion Pack
32 stars 22 forks source link

3.16 LUA Error #261

Closed ghost closed 10 years ago

ghost commented 10 years ago

Just fired up a game and played a few turns and checked the LUA log and found this entry a couple times:

Runtime Error: \Users\WarEagleUser\Documents\Aspyr\Sid Meier's Civilization 5\MODS\Communitas AI and Tools (v 3)\AI\CEAI_Events.lua:176: attempt to call global 'PurchaseUnitOfFlavor' (a nil value)

GrantSP commented 10 years ago

Can you provide a bit more detail? What civs were involved, map size, other mods, etc. I cannot replicate this without further background. The game I just loaded using the latest release, as opposed to a build from source, works with no errors at all.

ghost commented 10 years ago

Just did another game and had the same error. It was epic speed, standard size communitas map, 6 civs (Korea, Byzantine, Greece, Aztecs, Vikings, India (Me)), using info addict light, colored religions, city limits, and EUI in addition to 3.16.

GrantSP commented 10 years ago

Interesting. So you prefer City Limits' CityView.lua over EUI? InfoAddict or the lite version shouldn't have any impact, neither should Coloured Religions.

I'll set up a game with the same details minus the mods I don't have and see what happens.

ghost commented 10 years ago

I just started using EUI i did not know it had the same capabilities! Attached is my latest lua.log. lua

GrantSP commented 10 years ago

Can you give me a copy of your CEG_Options.sql or at the least tell me what you have selected in it? The logs show it isn't loading in your game.

ghost commented 10 years ago

Here is my CEG_Options.sql

ceg_options

ghost commented 10 years ago

Here is another lua.log file from a game i played a little while longer.

lua

GrantSP commented 10 years ago

OK found it. The commit that fixes it can been seen here. You can either edit the CEAI_Events.lua yourself, copy the file from the repo or compile a new build from source. It's just the *.lua file, the other file just happened to be committed at the same time.

GrantSP commented 10 years ago

I forgot to mention, you are missing a ) at the end of one of the lines in your CEG_Options.sql. After the Barbarians upgrade I think. Currently away from my computer.

ghost commented 10 years ago

Thanks!