Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add image + action recording #17

Merged
merged 11 commits into from
Jan 1, 2023
Merged

Conversation

rk1a
Copy link

@rk1a rk1a commented Dec 30, 2022

Adds action recording

To do

This PR is a Work in Progress

  • some keys (mouse buttons, sneak, esc) are only recorded once when pressed, but we want to record the isDown state at every step

How to test

  1. bash hacking_testing/server.sh
  2. bash hacking_testing/record_client.sh
  3. python data_recorder.py

@@ -1891,6 +1891,18 @@ void Client::makeScreenshot()
raw_image->drop();
}

float Client::getReward() {
float reward = 0.0;
//ClientScripting *scr = getScript();
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is commented because it is throwing LUA errors. @neverix I guess this is because I don't have the reward mod installed that you used?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably, maybe the issue is in the config

@rk1a rk1a marked this pull request as ready for review December 31, 2022 14:39
@rk1a rk1a requested a review from neverix December 31, 2022 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants