Open sharma-n opened 4 years ago
Update!
I have further narrowed the problem down to the LaneRewarder that is instantiated during the initialization of the Dataset. For some reason, the lanerewarder is not able to load the paths.xml
file properly.
LaneRewarder::LaneRewarder(const char* pathsfile) {
log("Starting LaneRewarder constructor");
while (nodes.size() == 0) {
if (PATHFIND::_0xF7B79A50B905A30D(-8192.0f, 8192.0f, -8192.0f, 8192.0f)) {
populateNodes(pathsfile);
}
WAIT(0);
}
log("Finished LaneRewarder constructor");
}
From the code above, I am able to log the start message, but not the finish message. To be more specific, the error occurs somewhere near this line in LaneRewarder.cpp
. I have not been able to log the error though.
My guess is that the error is related to the fact that my GTA version is much more ahead of what was used to code DeepGTA (even though I updated ScriptHookV and other stuff accordingly).
My workaround this issue was to just skip the loading of the paths.xml file entirely. It is used in DeepGTA to perform some sort of reward calculation. But for getting the PreSIL dataset I don't think this is really required. So I just removed the reward=[15.0, 0.0],
from lines 139 and 158 in VPilot/dataset
Doing this skips the loading of the paths.xml
file and then the rest of the code runs smoothly! Able to collect the dataset now. Hopefully someone can solve this issue at a later stage, but since it works without, I'm not going to pursue this.
Hope this helps someone in the future!
Hi, Thanks for sharing your work! WHile trying to run the code, I'm facing the following issue (error from Client side) once i run
python dataset
:Once I run
python dataset
, the game freezes and is forcefully closed. Thedeepgta.log
file shows:The last log entry I can get from the code by inserting my own log comments is in the
void Server::checkClient()
function.Any help would be much appreciated!