Jump to content


Community Newbie
  • Posts

  • Joined

  • Last visited

SimonV's Achievements


Tiro (1/14)



  1. Oh, I made a mistake, I'm sorry. We're working on a monitor to detect bugs in video games while it is running. It works by using a LTL formula to specify the actions of some elements and see if the game acts the way it should. For example, we could say that when a unit has 0 health, it should die. If it doesn't, then it goes against the specification and should be reported as a bug. Thanks for your answer, we're gonna look there.
  2. I would have a question about the code. My co-researchers and I are working on a monitor to detect bugs at runtime in a video games. We've already been successful with other games, but we want to try it on a bigger one like 0 A.D. The first step is to examine the code to see where we can get the information we want, but this step seems to be harder than we thought in 0 A.D. To be precise, none of us are really at ease with scripting and it has been quite difficult to get what we want. Since our deadline is near, we decided to ask for help on the forum. The information we want is about the units and structures in the game. We rapidly found that these informations are mostly done in the Javascript as it's the only place we found information about health, armor, attack, etc. Alas, we still haven't found how to access it in the C++ code, something we would really like. We also found that this information is stocked in XML or JSON (we already use XML for our monitor, so it was a really nice discovery). He are some questions we still have : 1. Is there a way to access information like a unit's health in the C++? We're pretty sure it should be possible, but this still eludes us. 2. If it is possible, can we get the XML structure with it? It's not as important because we could still make our own XML and put the information we want, bu since we saw there is a really neat one already done, it would be nice to get it. 3. Is there some way to get access to all units/structures a player controls like in a array or something else? In Player.cpp or Player.h (if I remember correctly), we couldn't find anything like it. Thanks in advance for any information. When we start working in the game, we're gonna create our own fork so that it doesn't change anything in the source code.
  • Create New...