Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are there Round logs available? #914

Open
Rolzad73 opened this issue Jan 30, 2017 · 6 comments
Open

Are there Round logs available? #914

Rolzad73 opened this issue Jan 30, 2017 · 6 comments

Comments

@Rolzad73
Copy link
Member

I was wondering if there is a flag/location to record round events. Like a replay.
If not, might not be bad to add an option for.

Just had what might be a bug in where my opponent went from 1 life to 54. And I would have noticed the card that happened on. Logs would trace that.

@xawotihs
Copy link
Member

I developed a lot of stuff around logging/replaying events in the context of the "undo" feature. Not sure what is the state of this development those days...

@Rolzad73
Copy link
Member Author

I developed a lot of stuff around logging/replaying events in the context of the "undo" feature. Not sure what is the state of this development those days...

UNDO I would like very much.....

Thanks, I will poke around and see if I can find that work

@Rolzad73
Copy link
Member Author

Rolzad73 commented Jan 30, 2017

Well, that was easy:

Found that adding the _DEBUG define via the Android Makefile includes the log trace and undo features in there, thanx @xawotihs.

UPDATE:
To clarify, I see that its actually the define "TESTSUITE" that enabled the Undo menu option in game. Itself being switched out by _DEBUG.

Although I first tested in the QT linux build and its giving me "...no match for ‘operator<<’ ..." error on TestSuiteAI.cpp, but I haven't looked at what the actual problem is.

UPDATE:
fixed that last error by adding const to end of this to match similar function saveUsedRandValues (don't know what I'm doing, just matching things....):
ostream& saveLoadedRandValues(ostream& out) const;

I can see that this DebugTrace outputs to various consoles depending on platform, was there ever a hard file log implemented as well? I may be able to make that happen now.

@xawotihs
Copy link
Member

I remember that the full set of events logged for the undo was dumped in the traces and I also remember being able to reload those dump in Wagic in the code I developed to implement undo.

@Rolzad73
Copy link
Member Author

Thanks @xawotihs, I have been playing around with it. I there any reason this feature is not included in release builds (undo that is)? I am thinking I might add a settings menu option to enable it. Possibly under the heading "experimental" if it is not quite tested fully. I REALLY like the undo. Not for cheating, just sometimes I tap mana too early in the phase cycle by accident.

@Rolzad73
Copy link
Member Author

Rolzad73 commented Apr 9, 2017

Just had what might be a bug in where my opponent went from 1 life to 54. And I would have noticed the card that happened on. Logs would trace that.

FYI. I'm an idiot. didn't read the card correctly when playing. It was something like a creature card that when it came into play, the caster gained life equal to the number in his graveyard, or something like that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants