Page 1 of 1

Out of space map gen bug

PostPosted: Sat Sep 29, 2012 18:21
by rubenwardy
I am going to try and add a fail safe for the map gen bug that happens when there is no hard drive space left.

I am in server.cpp, in the map saving part, at line 246. (is this the right line?, is there a better place?)

What i would like to know is how much space should there be less than to start the gracefull exit?

I think 50 KB is about right.

What is the problem?

the blocks are not saved properly, and so the map generator thinks the block is blank, and so re-generates

[h]Update[/h]

I have done a temporary solution, but it might not be enough.

https://gist.github.com/3807215/

I would like someone (a developer) to make a fix for the core

PostPosted: Sat Sep 29, 2012 19:18
by irksomeduck
I don't think many people will know how to help you here

PostPosted: Mon Oct 01, 2012 10:00
by wieszak
Try maybe in function SaveBlock in map.cpp, and 50kb is safe i think

PostPosted: Mon Oct 01, 2012 12:17
by rubenwardy
I have done a temporary solution.

https://gist.github.com/3807215/

I will do a c++ safer version

PostPosted: Fri Jan 25, 2013 18:07
by rubenwardy
* bump *

PostPosted: Fri Jan 25, 2013 18:34
by 4aiman
Wanna screenshots with this :)

PostPosted: Fri Jan 25, 2013 19:29
by rubenwardy
Half way through
Image


After
Image

PostPosted: Fri Jan 25, 2013 19:34
by 4aiman
rubenwardy wrote:Look through the Redcrab 0.4.4 server forum thread, around September last year

Where's the "Thank you!" button? ;)
I'll go and check that out. Thanks.

PostPosted: Fri Jan 25, 2013 19:44
by rubenwardy
4aiman wrote:
rubenwardy wrote:Look through the Redcrab 0.4.4 server forum thread, around September last year

Where's the "Thank you!" button? ;)
I'll go and check that out. Thanks.


I edited the above post