Skip to content

Commit

Permalink
clean up, will test this before doing the PR
Browse files Browse the repository at this point in the history
  • Loading branch information
JJJHolscher committed Aug 23, 2023
1 parent cd17158 commit f5bedf4
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 13 deletions.
9 changes: 5 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
[submodule "lib/irrlichtmt"]
path = lib/irrlichtmt
url = https://github.com/EleutherAI/irrlicht
url = git@github.com:EleutherAI/irrlicht.git
branch = headless-rendering

[submodule "lib/zmqpp"]
path = lib/zmqpp
url = https://github.com/zeromq/zmqpp
url = git@github.com:zeromq/zmqpp.git
[submodule "games/minetest_game"]
path = games/minetest_game
url = https://github.com/minetest/minetest_game
url = git@github.com:minetest/minetest_game.git
[submodule "lib/SDL"]
path = lib/SDL
url = https://github.com/libsdl-org/SDL
url = git@github.com:libsdl-org/SDL.git
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SDL2_CMAKE_FILE := lib/SDL/build/lib/cmake/SDL2/sdl2-config.cmake
ZMQPP_LIB_FILE := lib/zmqpp/build/max-g++/libzmqpp.a
MINETEST_BINARY := bin/minetest
DEBUG_BINARY := bin/minetest_debug
MINETESTER_WHEEL := build/package/wheel/minetester-$(MINETESTER_VERSION)-py3-none-any.whl
MINETESTER_WHEEL := build/package/wheel/minetester-$(MINETESTER_VERSION)-py3-none-manylinux_2_35_x86_64.whl

default: minetest

Expand Down
2 changes: 1 addition & 1 deletion minetester/minetest_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def reset(self):
byte_obs = self.socket.recv()
obs, _, _, _, _ = unpack_pb_obs(byte_obs)
self.last_obs = obs
logging.debug("Received first obs, obs: {}".format(obs))
logging.debug("Received first obs: {}".format(obs.shape))
return obs

def step(self, action: Dict[str, Any]):
Expand Down
2 changes: 1 addition & 1 deletion mods/info/mod.conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
name = treechop_v2
name = info
3 changes: 0 additions & 3 deletions mods/info/settingtypes.txt

This file was deleted.

2 changes: 1 addition & 1 deletion src/client/recorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void Recorder::setTerminal(bool & terminal) {
void Recorder::sendObservation() {
pb_objects::Observation obsToSend;
obsToSend.set_reward(rewardToSend);
obsToSend.set_info(infoToSend);
obsToSend.set_info(infoToSend);
obsToSend.set_terminal(terminalToSend);
obsToSend.set_allocated_image(&imgToSend);
obsToSend.set_allocated_action(&actionToSend);
Expand Down
5 changes: 3 additions & 2 deletions util/minetester/build_minetester.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ python -m build

#Update RPATHS and add relevant libraries to wheel
cd dist
# auditwheel repair minetester-*.*.*-py3-none-any.whl --plat manylinux_2_35_x86_64
auditwheel repair minetester-*.*.*-py3-none-any.whl --plat manylinux_2_35_x86_64

cd ../../..

mkdir build/package/wheel

cp build/package/dist/minetester-*.*.*-py3-none-manylinux_2_35_x86_64.whl build/package/wheel
cp build/package/dist/wheelhouse/minetester-*.*.*-py3-none-manylinux_2_35_x86_64.whl build/package/wheel

0 comments on commit f5bedf4

Please sign in to comment.