Closed codehz closed 6 years ago
You need to extract the prepare a special working directory for the server to run it: extract the assets into a directory manually, extract lib/x86/libminecraftpe.so to libs/libminecraftpe.so into the directory with the assets and then run the server binary with that assets directory as the working dir.
@MCMrARM I am trying to follow those step before
root@e2a3ff1794ec:~/test# ls
AndroidManifest.xml game.zip lib resources.arsc
META-INF games libs server
assets invalid_known_packs.json org valid_known_packs.json
classes.dex keep.txt res
root@e2a3ff1794ec:~/test# ls libs
libminecraftpe.so
now(just copy the server and libs to assets)
root@e2a3ff1794ec:~/test/assets# ls
animation resource_packs
behavior_packs server
def_action_test.json shaders
definitions skin_packs
fonts store
games structures
invalid_known_packs.json texture_backwards_compatibility_mapping.json
libs uniforms.json
profanity_filter.wlist valid_known_packs.json
And I got another crash
[MTU] Max MTU Size 1492 bytes
create psuedo-app
create automation client
create server
[IPv6] multicast listen on interface 0
sendto failed with code Cannot assign requested address (99) for char 0 and leng
th 4.
initialized lib
Signal 11 received
Segmentation fault
This problem seems to be related to networking.(And it is running inside a Docker container on Virtual Machine)
I will test it on a physical machine later(pure IPv4).
PS: I made some changes to make this project compile and run in a headless environment.
Nevermind -- the crash is caused by me being silly and pushing a last-second change in the command handling code. I'll push a fix in a while.
@MCMrARM
[IPv6] multicast listen on interface 0
sendto failed with code Cannot assign requested address (99) for char 0 and leng
This problem is still there after 3 commit. And it is not possible to connect server via IPv6.
Waiting for a test on a real machine :)
@MCMrARM It works! Sorry for not reply for such a long time.
Minecraft apk version: 1.2.8 x86 System version: i686/ubuntu from docker hub Command:
./server
LOG