For$
<!-- begin site header -->
<div id=

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Timatooth

Pages: [1]
1
Servers / Forgotten Dynasties Mineserver
« on: August 23, 2012, 08:55:48 am »
I just put up a testing server since no one else has:

mc.forgottendynasties.net:25567

It's running Mineserver at commit d48d6e4f29  https://github.com/fador/mineserver/commit/d48d6e4f29220fdf1bf70f88646edb314a39c3f1

Running without Minecraft.net verification so anyone can try it out.

2
Development / Issue tracker down replacement suggestion
« on: August 08, 2012, 02:10:37 pm »
I noticed the Minserver bug tracker is down not that I think redmine is that great.

May I suggest Flyspray http://flyspray.org/? Its pretty awesome I think and easy to setup just a simple PHP/MySQL app.

Cheers.

3

It took quite a while but here is the output of the build  :)

Code: [Select]
pi@raspberrypi ~/src/mineserver/bin $ ./mineserver
Parser opening file /home/pi/src/mineserver/bin/config.cfg
Parser opening file /home/pi/src/mineserver/bin/item_alias.cfg
mineserver.cpp:251::Mineserver(): Using config: /home/pi/src/mineserver/bin/config.cfg
[11:52:30] mineserver.cpp:289::Mineserver(): Welcome to Mineserver v0.1.18 (Alpha)
[11:52:30] mineserver.cpp:290::Mineserver(): Using zlib 1.2.7 libevent 2.0.19-stable
[11:52:30] mineserver.cpp:292::Mineserver(): Generating RSA key pair for protocol encryption
[11:52:31] mineserver.cpp:300::Mineserver(): RSA key pair generated.
[11:52:31] mineserver.cpp:333::Mineserver(): ServerID: 93cfbe92c73bbbeb
[11:52:31] Plugin: Loading: plugins/commands.so
[11:52:31] plugin.commands: Loaded commands!
[11:52:31] Plugin: Loading: plugins/filelog.so
[11:52:31] plugin.filelog: Loaded Filelog
[11:52:31] plugin.filelog: Logging to mineserver.log
[11:52:31] plugin.filelog: Logging chat to mineserver_chat.log
[11:52:31] Plugin: Loading: plugins/flatpermissions.so
[11:52:31] plugin.flatpermissions: Loaded flatpermissions!
[11:52:31] Plugin: Loading: plugins/nBreak.so
[11:52:31] plugin.nBreak: Loaded nBreak!
[11:52:31] Plugin: Loading: plugins/nether.so
[11:52:31] plugin.nether: Loaded nether!
[11:52:31] Plugin: Loading: plugins/passiveMobs.so
[11:52:31] plugin.passiveMobs: Loaded passiveMobs!
[11:52:31] map.cpp:228::init(): Using world: A-world
[11:52:31] Map: Warning: Map directory not found, creating it now.
[11:52:31] Map: Warning: level.dat not found, creating it now.
[11:52:31] Map: No Trees in level.dat, creating..
[11:52:31] mineserver.cpp:514::run(): Generating spawn area...
[11:52:46] mineserver.cpp:549::run(): 11/121 done. 1305ms per chunk
[11:52:46] mineserver.cpp:549::run(): 22/121 done. 69ms per chunk
[11:52:47] mineserver.cpp:549::run(): 33/121 done. 66ms per chunk
[11:52:58] mineserver.cpp:549::run(): 44/121 done. 944ms per chunk
[11:53:00] mineserver.cpp:549::run(): 55/121 done. 174ms per chunk
[11:53:00] mineserver.cpp:549::run(): 66/121 done. 63ms per chunk
[11:53:02] mineserver.cpp:549::run(): 77/121 done. 125ms per chunk
[11:53:03] mineserver.cpp:549::run(): 88/121 done. 90ms per chunk
[11:53:04] mineserver.cpp:549::run(): 99/121 done. 129ms per chunk
[11:53:06] mineserver.cpp:549::run(): 110/121 done. 159ms per chunk
[11:53:12] mineserver.cpp:549::run(): 121/121 done. 519ms per chunk
[11:53:12] Map: Spawn area ready!
[11:53:12] mineserver.cpp:622::run(): Listening on:
[11:53:12] mineserver.cpp:633::run(): 127.0.1.1:25565

Connecting, breaking/placing blocks and chat all work fine. When generating new chunks it uses about 97% CPU and constantly stays at about 46% memory usage. If you stand in one place only 1.6% cpu usage. Meaning as long as chunks aren't being generated, its perfectly playable.

It might be possible to add a throttle to limit the chunk generation to a certain radius to remove the issue completely.

If you want to try install Mineserver your Raspberry Pi check out the article I've written.
https://mineserver.be/wiki/Raspberry_Pi



4
Development / (Re)-Porting to MacOS
« on: August 01, 2012, 12:02:32 pm »
Spent a bit of time fiddling in the man pages to try make ms1 build on mac. Fixed to files but simply changing

Code: [Select]
#ifdef linux //adding mac ifdefs
#endif

Couldn't find a suitable function for tools.cpp:392 clock_gettime(CLOCK_MONOTONIC, &now); as the CLOCK_MONOTONIC and clock_gettime functions aren't there. Just made the function return 0 for now. After getting it to compile and link I was rewarded with a Bus Error  >:(

Code: [Select]
(gdb) run
Starting program: /Users/tim/src/mineserver/bin/mineserver
Reading symbols for shared libraries +++++. done
Config not found
Parser opening file
Couldn't open file:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x0000000100000008
0x00000001000052a8 in __gnu_cxx::__atomic_add (__mem=0x100000008, __val=1) at atomicity.h:55
55   { __sync_fetch_and_add(__mem, __val); }
(gdb) bt
#0  0x00000001000052a8 in __gnu_cxx::__atomic_add (__mem=0x100000008, __val=1) at atomicity.h:55
#1  0x00000001000052d6 in __gnu_cxx::__atomic_add_dispatch (__mem=0x100000008, __val=1) at atomicity.h:98
#2  0x0000000100005b80 in std::tr1::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_add_ref_copy (this=0x100000000) at boost_shared_ptr.h:134
#3  0x0000000100005bb8 in std::tr1::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count (this=0x7fff5fbff458, __r=@0x1005002a0) at boost_shared_ptr.h:307
#4  0x0000000100022e4d in std::tr1::__shared_ptr<Logger, (__gnu_cxx::_Lock_policy)2>::__shared_ptr (this=0x7fff5fbff450) at boost_shared_ptr.h:504
#5  0x0000000100022e6d in std::tr1::shared_ptr<Logger>::shared_ptr (this=0x7fff5fbff450) at boost_shared_ptr.h:974
#6  0x0000000100022e93 in Mineserver::logger (this=0x100500110) at mineserver.h:196
#7  0x0000000100080c93 in main (argc=1, argv=0x7fff5fbff548) at /Users/tim/src/mineserver/src/mineserver.cpp:132
(gdb)

Well meh.

5
Off Topic / Test
« on: December 22, 2011, 02:37:49 pm »
this is a test

Pages: [1]