156.2 + CSD. Losing gold

Thanks. It reported this error message:

Runtime Error: [string "C:\Users\Win7\Documents\My Games\Sid Meier'..."]:207: attempt to call field '?' (a nil value)

In some unknown file's line 207 there is an unknown error. The vague error report will probably make this hard to track down, but I'll start investigating. I'd recommend reporting this to Gazebo too so he can check line 207's in his files.
 
Here another case, playing Polynesia.

I keep having 0 :c5gold: although GPT is +45 or sth. Also GPT was 80+ before i reloaded the game. at some point my gold simply disappeared (had 200 or so, was never negative, did not spend)

The part of Lua.log which seems interesting to me (still the whole log is attached)

[50575.149] Runtime Error: [string "C:\Users\paul\Documents\My Games\Sid Meier'..."]:207: attempt to call field '?' (a nil value)
[50607.363] VEA_Events: INFO Turn 248 DoCityCaptureBonuses
[50607.363] VEA_Events: INFO Turn 248 CityCaptureYield Raiatea

Now what is interesting about Raiatea is that i sold the city to Arabia because i was forseeing that i could not defend it. Perhaps VEM does not account for the event of selling cities, and still thinks the city is mine? (thus trying to add the yield of a city not in the my player city list and breaking gold calculation completely?)

That sure is a far shot hint, as i am not into civ5 modding internals....

There is also that other bug thread where you cannot enter an amount of gold or gpt for city trading. Raiatea i could sell though because i was offered some GPT for it (as opposed to making my own proposal).

Perhaps the two issues are related?

EDIT: I am playing v 156 (ingame download)
@timbuktu: Have you sold a city prior to your problems Treasury/GPT problem?

The auto.zip contains the last 4 autosaves using v156, InfoAddict and Civwillard
 

Attachments

It happens without CSD?

I don't sell cities, and haven't seen this, so perhaps that is indeed the problem. If we can confirm selling is the problem that will help a lot in finding out which line 207 it's referring to. I really wish I knew the file name; it's horrible how it truncates that. I asked one of the devs and found that truncation in error messages is a lua problem, not something even firaxis has control over.
 
Definitely no CSD.

Yes that truncated file location looks horrible. Still just asking, only knowing python, and that there it would be possible:

Can't you replace the logger function with your own, and log the filename in the log message, instead on relying on the lib for this?
I can try it out myself. Just give me the pointer. Is there a Lua import/include used all over the package?

i mean sth like:

oldfunc=func
func(msg):
filename= get_it_somehow_independently()
oldfunc( "%s:%s"%filename,msg)​
 
Well i don't usually sell cities, except after capitulations of AI. This however was different. It was a sole undefended city between england and arabia on a different continent. ...
O.k. stopping this post as details would be offtopic :)
 
It happens without CSD?

I don't sell cities, and haven't seen this, so perhaps that is indeed the problem.

What do you do when winning an early war and getting 10 cities or so generating 35 unhappyness?
I'm just being curious, do you burn down cities and wait the 10-20 Turns to go green on happyness again? (I'm usually playing standard speed games with VEM and 20 turns are a lot)
 
I don't burn down cities unless they're very small and undeveloped. I reduce unhappiness in advance by halting population growth with the 'avoid growth' button.
Can't you replace the logger function with your own, and log the filename in the log message, instead on relying on the lib for this?
Is there a Lua import/include used all over the package?
Not to my knowledge.
 
So i run the game from steam, fully updated, i have the latest version of the mod installed and I keep having the gold bug on both of my computers every time I play. The game starts well but then around turn 100 something happens and the gold bug arises. I don't ever sell cities so its not that, its happened to me with only my capital. I suspect it may have something to do with purchasing building in cities, but that's just an educated guess.

I love this mod, frankly I can't even play the game without it, but I can't play it with this bug either.. oh the pain...
 
I am having the problem too and I do not sell cities. I am in an ancient time frame and loosing the same gold as I make, but not on every turn.
 
turn 8 - 42 gold (+12)
turn 9 - 32 gold (+11) but in middle of turn went up to 34
turn 10 - 30 (+11)
turn 11 - 26 (+11)
 
Long time lurker here......Getting this in 158.2 also. Gold accumulates for a while, but after 50-100 turns or so my reserves drop consistently, even though I should have a net gain for gold. If I get a bonus (from a goodie hut or other), that total shows up initially but then its gone two turns later, even though I again have a surplus.

Oh, and PS - thanks for your efforts, this mod is now an essential and indespensible part of the game for me.
 
Welcome to the forums jrxeydevil! :goodjob:

The problem you're describing is different from the original problem described earlier in the thread. I think I've fixed the second problem in v159.
 
Back
Top Bottom