Out of space map gen bug

For people working on the C++ code.
Post Reply
User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Out of space map gen bug

by rubenwardy » Post

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

Update

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.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

irksomeduck
Member
Posts: 224
Joined: Tue Aug 28, 2012 21:45
Location: Littleroot town, Hoenn region

by irksomeduck » Post

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 » Post

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

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

by rubenwardy » Post

I have done a temporary solution.

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

I will do a c++ safer version
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

by rubenwardy » Post

* bump *
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

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

by 4aiman » Post

Wanna screenshots with this :)

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

by rubenwardy » Post

Half way through
Image


After
Image
Last edited by rubenwardy on Fri Jan 25, 2013 19:33, edited 1 time in total.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

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

by 4aiman » Post

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
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

by rubenwardy » Post

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
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests