Out of space map gen bug

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Out of space map gen bug

by rubenwardy » Sat Sep 29, 2012 18:21

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
Last edited by rubenwardy on Fri Jan 25, 2013 18:06, edited 1 time in total.
 

irksomeduck
Member
 
Posts: 224
Joined: Tue Aug 28, 2012 21:45

by irksomeduck » Sat Sep 29, 2012 19:18

I don't think many people will know how to help you here
I love exploring minetest worlds :D
If you have a good seed let me know
--------------------------------------------------
My world/house pack- http://minetest.net/forum/viewtopic.php?id=3066
 

wieszak
Member
 
Posts: 40
Joined: Mon Feb 20, 2012 17:00

by wieszak » Mon Oct 01, 2012 10:00

Try maybe in function SaveBlock in map.cpp, and 50kb is safe i think
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Mon Oct 01, 2012 12:17

I have done a temporary solution.

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

I will do a c++ safer version
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Fri Jan 25, 2013 18:07

* bump *
 

4aiman
Member
 
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

by 4aiman » Fri Jan 25, 2013 18:34

Wanna screenshots with this :)
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Fri Jan 25, 2013 19:29

Half way through
Image


After
Image
Last edited by rubenwardy on Fri Jan 25, 2013 19:33, edited 1 time in total.
 

4aiman
Member
 
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

by 4aiman » Fri Jan 25, 2013 19:34

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.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Fri Jan 25, 2013 19:44

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
 


Return to Minetest Engine

Who is online

Users browsing this forum: No registered users and 4 guests

cron