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

Test McThings with the last version of Minecraft #141

Open
acs opened this issue Apr 17, 2021 · 2 comments
Open

Test McThings with the last version of Minecraft #141

acs opened this issue Apr 17, 2021 · 2 comments

Comments

@acs
Copy link
Contributor

acs commented Apr 17, 2021

Follow the steps described at: https://github.com/Voxelers/mcthings/blob/develop/USAGE.md

acs@lsp-022:~/devel/minecraft$ java -jar BuildTools.jar --rev latest
Success! Everything completed successfully. Copying final .jar files now.
Copying spigot-1.16.5-R0.1-SNAPSHOT.jar to /home/acs/devel/minecraft/./spigot-1.16.5.jar
  - Saved as ./spigot-1.16.5.jar
  • Start the server (accept eula.txt):
acs@lsp-022:~/devel/minecraft$  java -Xms2G -Xmx2G -XX:+UseG1GC -jar spigot-1.16.5.jar nogui
[09:07:47] [Server thread/INFO]: Done (23.103s)! For help, type "help"
  • Check if the Python API plugin works
acs@lsp-022:~/devel/minecraft$ cp ~/Downloads/raspberryjuice-1.12.1.jar plugins/
acs@lsp-022:~/devel/minecraft$ java -Xms2G -Xmx2G -XX:+UseG1GC -jar spigot-1.16.5.jar nogui
...
[09:09:03] [Server thread/WARN]: Initializing Legacy Material Support. Unless you have legacy plugins and/or data this is a bug!
[09:09:06] [Server thread/WARN]: Legacy plugin RaspberryJuice v1.12.1 does not specify an api-version.
[09:09:06] [Server thread/INFO]: [RaspberryJuice] Loading RaspberryJuice v1.12.1
...
[09:09:16] [Server thread/INFO]: Done (10.007s)! For help, type "help"

Cool, it is working.

  • Download the Minecraft client for the last version (Launcher)
acs@lsp-022:~/devel/minecraft$ sudo dpkg -i Minecraft.deb 
acs@lsp-022:~/devel/minecraft$ minecraft-launcher 
  • Test McThings and check with the Minecraft client that it is working: cool, I have executed the tests and they work!

So we are on track! (Just 30 min to have all working from scratch)

To avoid losing the focus in minecraft launcher:

vi ~/.minecraft/options.txt
pauseOnLostFocus:false

To make a player op in the server ...

@acs
Copy link
Contributor Author

acs commented Apr 18, 2021

Ok, let's fix a missing test ...

ERROR: test_build (test_schematic.TestSchematic)
....
  File "/usr/lib/python3.8/gzip.py", line 173, in __init__
    fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'schematics/vxs.schematic'

strange because it worked in Travis: https://travis-ci.org/github/Voxelers/mcthings/builds/716076064 and it was the same version (0.60.0) but the number of tests (24 vs 16 is different).

@acs
Copy link
Contributor Author

acs commented May 8, 2021

I have rexecuted the tests and all is working:

(venv) ✔ ~/devel/mcthings/tests/integration [develop|…2] 
09:36 $ PYTHONPATH=../..:.. ./run_tests.py
....
----------------------------------------------------------------------
Ran 25 tests in 9.231s

OK

So I am not sure what I did wrong last time. In any case we are ready for the development of new features in McThings!

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

No branches or pull requests

1 participant