Sid Meier's Civilization V

Sid Meier's Civilization V

R.E.D. WWII Edition
Urzahil 2015 年 8 月 31 日 下午 2:31
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
< >
正在显示第 1 - 8 条,共 8 条留言
Gedemon  [开发者] 2015 年 9 月 4 日 上午 6:40 
Hi Urzahil,

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

thx
Urzahil 2015 年 9 月 5 日 上午 9:37 
Many thanx - you can find the files in our mediafire exchange
Gedemon  [开发者] 2015 年 9 月 7 日 上午 8:54 
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 2015 年 9 月 16 日 上午 3:00 
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  [开发者] 2015 年 9 月 16 日 下午 9:51 
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 2015 年 9 月 18 日 上午 9:28 
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.
最后由 Urzahil 编辑于; 2015 年 9 月 18 日 上午 9:30
Gedemon  [开发者] 2015 年 9 月 19 日 上午 3:20 
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  [开发者] 2015 年 9 月 22 日 下午 3:52 
ok, should be fixed in next beta build, thanks for the report :)
< >
正在显示第 1 - 8 条,共 8 条留言
每页显示数: 1530 50