GithubHelp home page GithubHelp logo

torchcraft-py's Issues

what kind of parameter should I send if I want to move unit rather than attack?

As in the example attack_weakest.py :
else:
for uid, ut in client.state.d['units_myself'].iteritems():
target = utils.get_weakest(client.state.d['units_enemy'])
if target != -1:
actions.append(
proto.concat_cmd(
proto.commands['command_unit_protected'], uid,
proto.unit_command_types['Attack_Unit'], target))

it append four parameters to actions and consequently send the action, if I want to move the unit to a position, excecpt changing ['Attack_Unit']to ['Move'], what else should I change ?

Server(bwapi) crashes immediately after launching torchcraft-py

On client side I have a following message:
ZMQ:server::connect(): invalid message

Also protocol version must be changed as TorchCraft now using v17 instead of v16
bwapi errors file:

//////////////////////////////////////////////////
TIME: Mon Apr 10 13:53:27 2017

VERSION: 1.16.1.1
BWAPI:
REVISION: 4708
BUILD: RELEASE
ERROR: None
LOCATION: Single Player
MAP: marines_1v1
m5v5_c_far.scm

EXCEPTION: 0xC0000005 EXCEPTION_ACCESS_VIOLATION
FAULT: 0x0F424F78 czmq.dll
REGISTERS:
EDI: 04986C80
ESI: 00000000
EBX: 00000000
EDX: 00000000
ECX: 00000000
EAX: 00000000
EBP: 0019F928
EIP: 0F424F78
ESP: 0019F928
STACK:
czmq.dll 0x0F424F78 zsock_is
czmq.dll 0x0F4255D0 zsock_resolve
czmq.dll 0x0F4219E6 zmsg_send
czmq.dll 0x0F42643E zsock_vsend
czmq.dll 0x0F425642 zsock_send
BWEnv.dll 0x0FED6713 newAIModule
BWEnv.dll 0x0FEC32F0 ----
BWEnv.dll 0x0FEC8A48 newAIModule
BWAPI.dll 0x1003471E ----
BWAPI.dll 0x1003496A ----
BWAPI.dll 0x10041BC9 ----
BWAPI.dll 0x100345E7 ----

How to get map_data in Python?

Hi, how can I get map_data?
They are torch.ByteTensor in Torch, and I find that map_data is just a string 'torch.ByteTensor({{2' in Python.
Hope there are some methods to get map_data in np.array format :)
Thank you!

Windows application crashes after running the example of torchcraft-py

After I run python ./examples/attack_weakest.py then Windows application crashes and I get messages:

BroodWar Instance 2: Windows - Application Error
The instruction at 0x6fa84f78 referenced memory at 0x00000000. The memory could not be read.

Does someone else meet with the same problem?

Python3 not support

Hi, This package currently seems not support for python3?
If I want to do some contribution, what is coding style and convention should I follow?

Thank you.

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.