Compiling for powerpc (Darwin 9/OS X 10.5)
#21
(03-11-2012, 06:42 PM)xoft Wrote: That was before MC "upgraded" to double the build height, and was slightly under-estimated.

Right now just the chunks for a single player take up around 64 MiB, and since they are not unloaded very often, it can get to twice that amount fast. Sure, unloading them as soon as they go "out of sight" is possible but still you won't be able to fit more than 3 players.

Just a thought: Is it possible to have a settings.ini file variable to define the build height server side? That would allow lower ram configurations to have more potential.

Back on topic:

I've gotten it to build and report status, but I can never actually login. Here's what I had to do (and obviously this will break it on non-darwin platforms). This is all done on SVN 400.

Change line 87 of CMonster.cpp to: "*Spawn->m_Pos = (Vector3i) m_Pos * 32;" (build issue)
comment out line 28 and line 31 in cEvent.cpp (build issue)
change line 125 of cSocket.cpp to "char * res = (char*)strerror_r( errno, buffer, ARRAYCOUNT(buffer) );" (build issue)
change every instance of MSG_NOSIGNAL to SO_NOSIGPIPE in WebServer/Socket.cpp (build issue, MSG_NOSIGNAL not present in Darwin)
disable/commentout the check function of cSocketThreads.cpp at line #448. (crash on login if not done)
comment out entire if at line 634 cSocketThreads.cpp (crash on login if not done)

When doing this, it disconnects users saying something about a unknown packet "0x7E" but does not crash.

Server log:

Quote:[15:50:26] Client "127.0.0.1" connected!
[15:50:26] New ClientHandle created at 0x83d800
[15:50:26] Creating a new cSocketThread (currently have 0)
[15:50:26] Error on shutting down socket ()
[15:50:26] Error on shutting down socket (127.0.0.1)
[15:50:26] Deleting client "" at 0x83d800
[15:50:26] ClientHandle at 0x83d800 deleted
[15:50:28] Client "127.0.0.1" connected!
[15:50:28] New ClientHandle created at 0x83d800
[15:50:28] HANDSHAKE Memphesian2007
[15:50:28] User "Memphesian2007" was sent a handshake
[15:50:28] LOGIN Memphesian2007
[15:50:28] Added Memphesian2007 to group Default
[15:50:28] Player Memphesian2007 has permissions:
[15:50:28] core.help
[15:50:28] core.playerlist
[15:50:28] core.pluginlist
[15:50:28] core.spawn
[15:50:28] Streaming chunks centered on [28, -1], view distance 9
[15:50:32] Unknown packet type 0x7e from client "Memphesian2007"
[15:50:33] chunk [28, -1] destroying entity #1 for player "Memphesian2007"
[15:50:33] Error on shutting down socket (127.0.0.1)
[15:50:33] Error 9 while writing to client "127.0.0.1", disconnecting. "Error 9 while getting error string for error #9!"
[15:50:33] Error on shutting down socket (127.0.0.1)
[15:50:33] Error closing socket (127.0.0.1)
[15:50:33] Deleting client "Memphesian2007" at 0x83d800
[15:50:33] ClientHandle at 0x83d800 deleted
[15:50:33] Destroying entity #1
[15:50:33] Deleting cPlayer "Memphesian2007" @ 0x205b90
[15:50:33] DESTROY WINDOW
[15:50:33] DESTROY WINDOW
[15:50:33] Player 0x205b90 deleted
[15:50:33] Deleting entity 1 at pos {463.00, -9.00} ~ [28, 0]; ptr 0x205b90

Any ideas? I'd make diffs but it seems pretty pointless right now. Also, I'm using client 1.2.3. I assume that's right?
Reply
Thanks given by:


Messages In This Thread
RE: Compiling for powerpc (Darwin 9/OS X 10.5) - by R-T-B - 03-12-2012, 08:08 AM



Users browsing this thread: 1 Guest(s)