-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add dirty flag and integrate #1725
Conversation
A few questions I have for this: Also, would it be good practice to include non-time based overrides for Lastly, how do I run with debugging using Visual Studio Code? I make changes to a file and run, but it ignores my breakpoints. |
Where would you need to pass the clock? You very likely only need to pass the time value but the clock is not necessary IMO.
That would kind of counteract introducing dirty flags, so I'm not sure if this is a good idea. In fact, I'm not really sure why we should just always pass a time. Initialization does not always happen at time zero.
It should just work out of the box. What is your start configuration and output? |
Perhaps that's a better question. How to get the time (or any time) into the Map subsystem. |
The update time comes from events in the event system that will trigger a map update. However, I wouldn't worry about that right now, since it is not implemented yet. |
If you are talking about the configurations in launch.json, it says: That's probably my problem lol. What should it say? |
Something like this should work as a configuration:
|
So to clarify, I should put this in launch.json? I am used to Visual Studio with C#. |
You should put it in the |
[workspace]/bin/run does not exist |
Well, you need to build the project before running :D |
https://github.com/SFTtech/openage/blob/master/doc/building.md has info on the build procedure. |
I can't seem to get this process working on windows. I can run using python openage, following the info on this page: But I don't see a bin folder built in openage following the Windows instructions. |
Marking as ready for review, as most of the ground work is laid. There is a seg fault on demo 1 I cannot track using breakpoints, because I cannot get debugging to work with the demo tests using the Windows Build Instructions page. I assume there is a simple error I am making with c++ unordered maps, but I cannot use breakpoint tools at the moment. The seg fault occurs when accessing the Field Cache in the is_cached method. Aside from that, we are looking pretty good here. |
Building via
|
0300cf5
to
b971a7b
Compare
I fixed your segfault and a few other things. The segfault happened because the field cache was not initialized in the The only thing left to do for you now is to add yourself (and your commit mail) to copying.md and we can merge :) |
Added to copying.md! |
Co-authored-by: Christoph Heine <[email protected]>
Co-authored-by: Christoph Heine <[email protected]>
Co-authored-by: Christoph Heine <[email protected]>
Co-authored-by: Christoph Heine <[email protected]>
Co-authored-by: Christoph Heine <[email protected]>
Co-authored-by: Christoph Heine <[email protected]>
Co-authored-by: Christoph Heine <[email protected]>
It should only be checked from the cost field.
- Make read-only methods const - Add get(..) method for getting entire field entry to avoid two lookups - Simplify lookup of entries - Add more docstrings
66e4004
to
0645469
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we go!
fixes #1679. First time working with c++. Been struggling to update a test and getting it to build. Any advice will be helpful. I am using Visual Studio Code.
Please offer much critique. Complain with vigor. Correct with fervor.