Cuberite Forum
Android tests - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: Android tests (/thread-530.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24


RE: Android tests - xoft - 08-20-2012

You can send any data through the pipe. And you can have many pipes. So perhaps one pipe from the server carrying logs, another pipe to the server carrying commands, and another pipe from the server carrying command responses. or status, or whatever. Or even combine everything onto a single pipe in each direction.


RE: Android tests - FakeTruth - 08-20-2012

Then I guess I don't know what pipes are.. Sad


RE: Android tests - xoft - 08-21-2012

Pipe, in a Unix environment, is a an object that supoprts one-way character-based FIFO communication. You create a pipe using pipe() function, it returns two file descriptors, one for writing and one for reading. What you write to the write-end, you can read on the read end. You can even pass those file descriptors to other processes; that's how inter-process output redirection works (schematically). So next time you use "ls -al | grep MCS", know that the pipe character ("|") means that you're creating a pipe between the two processes.
For our purposes, both ends of the pipe would stay inside the app, just the write end would be used by the logger and the read end by the java thread that would poll it for data (the reading function blocks when there's no data to read, so it's effective).

http://www.cse.ohio-state.edu/~mamrak/CIS762/pipes_lab_notes.html


RE: Android tests - Taugeshtu - 08-21-2012

Could we have a simple step-by-step "Installing and running on Android" instruction?
I would like to test MCS on my new Ainol Aurora 2 (1 Gb, 2 cores, wowowow!)


RE: Android tests - xoft - 08-22-2012

Download APK attached to FakeTruth's post above to phone, install. Run. That's it Wink
If you want to tinker with the config, it's on the SD card in mcserver folder


RE: Android tests - FakeTruth - 08-22-2012

Pretty much yes.. Just install the APK and run it once. It will create the folders it needs (unfortunately it uses a really slow world gen by default).
Then stop the server, and change the settings that are stored on you SD card


RE: Android tests - Taugeshtu - 08-22-2012

Interesting... With default world.ini I get 2.7 chunks/s generation speed, with fine-tuned config like that:
Code:
[Storage]
Schema=Anvil

[Generator]
BiomeGen=DistortedVoronoi
DistortedVoronoiCellSize=250
DistortedVoronoiBiomes=
BiomeGenCacheSize=64
HeightGen=Biomal
HeightGenCacheSize=64
CompositionGen=Biomal
BiomalSeaLevel=40
Structures=DualRidgeCaves,OreNests,Trees
Finishers=SprinkleFoliage,Ice,Snow,Lilypads,BottomLava
BottomLavaLevel=10
DualRidgeCavesThreshold=0.300000
I got only 0.7 chunks/s Smile
All done with "normal" cpu mode settings.
With "perfomance" cpu mode setting I got 1.3 chunk/s on same "fine" config.

And one more thing: WebAdmin is running perfectly, accessable from mobile device too Smile


RE: Android tests - FakeTruth - 08-22-2012

You're using DualRidgeCaves, aren't those supposed to be super slow?


RE: Android tests - NiLSPACE - 08-22-2012

yes why are you using dualridge?Tongue if you use wormnestcaves it will be much faster.Big Grin


RE: Android tests - Taugeshtu - 08-22-2012

Well, because I canBig Grin
Here's test result in Perfomance CPU mode with wormnestcaves:
17 chunks per second !!!

Awesome, I thinkBig Grin Now I have a proof that I choosed the right tabletTongue