Replay Button

Replay Button 2.0.1

I download the file

Move it to -> Documents -> My Games -> Sid Meier's Civilization VI -> Mods

Then extract the file

Also have tried extracting first, and then moving it to the Mods folder
 
Anyone having an issue with this where it works for a bit but stops at some point during the game? I make a point of testing it when a game starts to make sure it comes up but at a certain point it stops and I don't know why yet. (basically I just click the button and it highlights but does nothing at all)

I have a hunch that i may have "interrupted" the turn-by-turn snapshots by loading from an autosave, but it's just a hunch. I'm running a lot of other stuff so thought I'd ask here to see if a) anyone already knows what it is and b) if there's a way to tweak the code so it stops (or at least if I should stop loading from autosaves)
 
Hi, the autosave should not be a problem, do you have the last version of the game and the mod?
if you could load a save (where it doesn't work), click on the button and then send me the lua.log file it is in the log folder beside the mod folder I could may be see what's the problem.
 
Code:
Runtime Error: bad argument #2 to 'kEntry.m_pfnThunk' (string expected, got boolean)
stack traceback:
    [C]: in function 'kEntry.m_pfnThunk'
    C:\Users\Jim\Documents\My Games\Sid Meier's Civilization VI\Mods\ReplayHistory\ReplayHistory.lua:313: in function 'PlotInfo:SetPlotColorsIcon'
    C:\Users\Jim\Documents\My Games\Sid Meier's Civilization VI\Mods\ReplayHistory\ReplayHistory.lua:1945: in function 'DisplayTurn'
    C:\Users\Jim\Documents\My Games\Sid Meier's Civilization VI\Mods\ReplayHistory\ReplayHistory.lua:184: in function 'SetHistoryView'
    C:\Users\Jim\Documents\My Games\Sid Meier's Civilization VI\Mods\ReplayHistory\ReplayHistory.lua:1815: in function 'OnOpenHistoryView'
    [C]: in function '(anonymous)'
Lua callstack:
Runtime Error: bad argument #2 to 'kEntry.m_pfnThunk' (string expected, got boolean)
stack traceback:
    [C]: in function 'kEntry.m_pfnThunk'
    C:\Users\Jim\Documents\My Games\Sid Meier's Civilization VI\Mods\ReplayHistory\ReplayHistory.lua:313: in function 'PlotInfo:SetPlotColorsIcon'
    C:\Users\Jim\Documents\My Games\Sid Meier's Civilization VI\Mods\ReplayHistory\ReplayHistory.lua:1945: in function 'DisplayTurn'
    C:\Users\Jim\Documents\My Games\Sid Meier's Civilization VI\Mods\ReplayHistory\ReplayHistory.lua:184: in function 'SetHistoryView'
    C:\Users\Jim\Documents\My Games\Sid Meier's Civilization VI\Mods\ReplayHistory\ReplayHistory.lua:1815: in function 'OnOpenHistoryView'
    [C]: in function '(anonymous)'
Lua callstack:
Runtime Error: bad argument #2 to 'kEntry.m_pfnThunk' (string expected, got boolean)
stack traceback:
    [C]: in function 'kEntry.m_pfnThunk'
    C:\Users\Jim\Documents\My Games\Sid Meier's Civilization VI\Mods\ReplayHistory\ReplayHistory.lua:313: in function 'PlotInfo:SetPlotColorsIcon'
    C:\Users\Jim\Documents\My Games\Sid Meier's Civilization VI\Mods\ReplayHistory\ReplayHistory.lua:1945: in function 'DisplayTurn'
    C:\Users\Jim\Documents\My Games\Sid Meier's Civilization VI\Mods\ReplayHistory\ReplayHistory.lua:184: in function 'SetHistoryView'
    C:\Users\Jim\Documents\My Games\Sid Meier's Civilization VI\Mods\ReplayHistory\ReplayHistory.lua:1815: in function 'OnOpenHistoryView'
    [C]: in function '(anonymous)'
Lua callstack:

yea I have the latest versions of both the game and the mod. This looks to be the issue. I think it's repeated because i hit the button a few times. But like I said basically what happens in-game is I click the button and it highlights (and stays that way even if I click it again)

I'm wondering if it's another mod that's on? otherwise why would something's type get changed like this from string to boolean? Again, it works for a while in-game and I usually test it each time I load up the save from the last time I played.

If you have a suspicion of what it might be and how to fix lmk, if I have time before you do I'll try to fix it myself and post back here if it works or not
 
Hey, so the problem come from my mod, I already had this kind of error, I can dodge the error but the data will be lost, I mean I saved a string and when I load it's a bool, I have no idea why.
you can try this version, and load your save and click again, this should open it
 

Attachments

Hey, so the problem come from my mod, I already had this kind of error, I can dodge the error but the data will be lost, I mean I saved a string and when I load it's a bool, I have no idea why.
you can try this version, and load your save and click again, this should open it
Hm, still not working. It's definitely a slightly different version of your mod (the button is in a different spot now) but same issue, same lua.log errors. Those particular lines don't look different in the code from the other version
 
oh sorry my bad, try this one should be better
I moved the button to the center cause I think it's better here and cause I added a button for one of my other mod and there is more place in the center, if you want to move it I can help you.
 

Attachments

Last edited:
YES it works again. thanks so much for your help (and for making the mod in the first place)

I actually figured out how to move the button a while back, looks good in the middle though
 
got another bug:

Code:
Runtime Error: C:\Users\USER1\Documents\My Games\Sid Meier's Civilization VI\Mods\ReplayHistory\ReplayHistory.lua:804: attempt to index a nil value

stack traceback:
    C:\Users\USER1\Documents\My Games\Sid Meier's Civilization VI\Mods\ReplayHistory\ReplayHistory.lua:804: in function 'MakeWarInfoInstance'
    C:\Users\USER1\Documents\My Games\Sid Meier's Civilization VI\Mods\ReplayHistory\ReplayHistory.lua:725: in function 'SetWarTurnInformation'
    C:\Users\USER1\Documents\My Games\Sid Meier's Civilization VI\Mods\ReplayHistory\ReplayHistory.lua:501: in function 'SetTurnInformations'
    C:\Users\USER1\Documents\My Games\Sid Meier's Civilization VI\Mods\ReplayHistory\ReplayHistory.lua:1962: in function 'DisplayTurn'
    C:\Users\USER1\Documents\My Games\Sid Meier's Civilization VI\Mods\ReplayHistory\ReplayHistory.lua:1974: in function 'DisplayNextTurn'
    C:\Users\USER1\Documents\My Games\Sid Meier's Civilization VI\Mods\ReplayHistory\ReplayHistory.lua:1895: in function 'OnRefreshTimeTick'

this shows up in game as the playback stopping - it won't start again if you hit it again, but it will allow you to manually click the "next turn" button to advance, and the "year" display number gets stuck

not a big deal just figured I'd let you know
 
Hi, their is multiple tables on the line so I can't know wich one is nil, if it doesn't bother you to get the error again with this version, thx for reporting it
 

Attachments

Hi, I'm looking for the location of the replay data since I would like to analyze a game that was played with this mod. Where can I find the data on my system? Is it included in the .Civ6Save file?
 
hi, I don't know where it is save exactly and if it is readable, the only thing I can say you is that I save with "GameConfiguration.SetValue(sSlotName, Value);" in lua, it's surely in the .Civ6Save file but I don't know.

what do you want to analyze exactly?
 
I'm currently interested in the dates of first contact between all the civs and city-states, the dates of completion of each civic, technology, and production, as well as all cities' loyalty and religion values over time.
 
there is a research bar on the top, have you tried it?
or if you prefer to have everything in a txt file I could do it, as you wish.

+ my mod does not register first contact, productions exept wonders neither loyalty.

for religions there is a religion lens on top.
 
Hey! Love the idea of the mod

Only problem I find is the cheat options are available in multiplayer. Is there a possibility ye could release a version without the cheat options (show whole map, show all resources, show last 5 turns) taken out?
 
Back
Top Bottom