Sid Meier's Civilization V

Sid Meier's Civilization V

R.E.D. WWII Edition
Urzahil 31 Aug, 2015 @ 2:31pm
Resourceproblems when playing via E-Mail
Dear Gedemon,
I try to play the Europe1940 scenario with a friend. We play a HotSeatGame, all players are
human. All is working, except the resources (personal, material, oil). It shows correctly the
income, but the sum is always at 0 for personal and material or at 5000 for oil.
We exchange the savefile via dropbox.
The debug log doesn't show anything valuable. Any idea?

I hope you can help.

Regards Urzahil
< >
Showing 1-8 of 8 comments
Gedemon  [developer] 4 Sep, 2015 @ 6:40am 
Hi Urzahil,

Can you post the save and the log, I'll have a look asap

thx
Urzahil 5 Sep, 2015 @ 9:37am 
Many thanx - you can find the files in our mediafire exchange
Gedemon  [developer] 7 Sep, 2015 @ 8:54am 
I don't have the issues here using v.43, how many turns have you done ?

It may be possible that the first turn materiel didn't register (counting as turn 0 in hotseat), but numbers seems to be ok beginning at turn 2.
Urzahil 16 Sep, 2015 @ 3:00am 
The problem is stable, even in v.45 after several turns... As far as I can see, its the toppanel.lua.
There I find:
local resourceData = MapModData.RED.ResourceData
These values seems not to be found in the normal savegame. Do you know, where the values are saved? Maybe somewhere in a cache-data?
In the lualogs I find:
[695.109] RedMain: Cache scenario AI Strategic values...

We are now talking about v.45.

Thanx Urzahil


Gedemon  [developer] 16 Sep, 2015 @ 9:51pm 
Are the resources correctly shown when you display the diplomacy panel on the right ?

It happens once you load the save, or also if you test an hotseat game locally on your computer only ?

MapModData is an element that is shared between "contexts" (like the "RedMain" context of the mod and the vanilla civ5 context like "TopPanel"), it's initialized in RedDefinesGlobal.lua and loaded in the function LoadAllTable() defined in RedUtils.lua and called during game initialization in RedInitFunctions.lua

in the lua.log sharing happens in each context at the line
"context: Loading Red Defines..." ("TopPanel: Loading Red Defines..." for example)
and loading at the line
"RedMain: Game is initialized, calling OnGameInit() for loaded game ..."
Urzahil 18 Sep, 2015 @ 9:28am 
No, only for Greece.
I am playing France, UK, USSR and Greece, my friend the Axis. Greece is shown correctly, but this turn is made after my USSR turn on the same computer.
Strange thing... I guess the key is the sending of the files and the three values are somehow
not transported correctly.
Last edited by Urzahil; 18 Sep, 2015 @ 9:30am
Gedemon  [developer] 19 Sep, 2015 @ 3:20am 
Thanks for the details, looking at it, I may need to check that the table are ready to be saved in the hotseat "next player" menu
Gedemon  [developer] 22 Sep, 2015 @ 3:52pm 
ok, should be fixed in next beta build, thanks for the report :)
< >
Showing 1-8 of 8 comments
Per page: 1530 50