Giter VIP home page Giter VIP logo

Comments (7)

TimZaman avatar TimZaman commented on August 26, 2024

Thanks for you report, I'll look into it. Some observations:

  • You can only run 1 instance of dota at the same time
  • In order to render the dota GUI, you need to have steam on (so it can find the steam DLL)
  • Running Dota dedicated (without rendering) without having steam on will result into warnings that can be ignored, it doesn't actually use.

That doesn't help your issue though does it? You also list "Observe:: cout (..) Observe:: cerr" what are those?

from dotaservice.

gomiss avatar gomiss commented on August 26, 2024

Thanks for you report, I'll look into it. Some observations:

  • You can only run 1 instance of dota at the same time
  • In order to render the dota GUI, you need to have steam on (so it can find the steam DLL)
  • Running Dota dedicated (without rendering) without having steam on will result into warnings that can be ignored, it doesn't actually use.

That doesn't help your issue though does it? You also list "Observe:: cout (..) Observe:: cerr" what are those?

  1. Yes, i only run one instance.
  2. When the steam is on, it will load stem DLL. I think the problem may caused by this. E.g. New steam DLL doesn't match cause DOTA_GAMERULES_STATE_PRE_GAME failed?
  3. Without steam on, i can get the world state successfully.
  4. I think the "Observe:: cout (..) Observe:: cerr" is come from the Observe function in dotaservice/botcpp_dire.cpp. I compile this file and copy the .so to dota/scripts/vscripts/bots/ to load when init bots.

By the way, the logs with steam on print a lot of "FS: Tried to Write NULL file handle!", which i think is just warning and should not influence other jobs. Doesn't check.

I guess the block may caused by loaded steam DLL. Since this is one difference between the logs of with and without steam on that i found. I didn't find other difference until now.

from dotaservice.

TimZaman avatar TimZaman commented on August 26, 2024

Interesting. How did you compile the botcpp_dire.so? Command and compiler v?

from dotaservice.

gomiss avatar gomiss commented on August 26, 2024

Interesting. How did you compile the botcpp_dire.so?

Use this command g++ -shared -o botcpp_dire.so -fPIC botcpp_radiant.cpp. Same as shown in dotaservice/botcpp/README.md

from dotaservice.

TimZaman avatar TimZaman commented on August 26, 2024

That cannot be the right command. You're missing includes.. Anyway I think I figured that part out.

from dotaservice.

gomiss avatar gomiss commented on August 26, 2024

That cannot be the right command. You're missing includes.. Anyway I think I figured that part out.

I am not quite understand what to includes? Do you mean protobuf? I already exported it. It did not show any warning or error during compiling.
Besides, these .so can work when steam is off. Maybe the bot .so is not the problem?

from dotaservice.

TimZaman avatar TimZaman commented on August 26, 2024

I can confirm steam only needs to be turned on (or even installed!) when you want the graphical interface. It runs fine on a docker container without steam..

from dotaservice.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.