Page 1 of 1

Map Size

PostPosted: Thu Dec 06, 2012 07:22
by streondj
Hey, i'm interested in smaller size maps,
so that I could play on my laptop without making it sound like a hovercraft.
Typically I don't walk more than a few hundred squares from center anyways.
Could also allocate said resources to more interesting things like AI's later.

An Idea I had is if we have small maps, we could do p2p minetest, so people could have their own minetest set up, and then connect the worlds temporarily during a p2p session.
Anyways but ya, lots of possibility.

So I'm working on being able to set the map size in the create world gui section.
Already have the gui part actually, now just gotta figure out where the map is being set, make it into variables, and update the mods to use it, rather than 31000 as a constant.

If you like this idea, or have some suggestions please feel free to comment.

btw, i'm curious if you know why in some places in the source like farmesh.cpp it says 1000000 in juxtaposition with the 31000
Also is farmesh.cpp the new standard? as it says
farmesh.cpp
include "mapgen.h" // Shouldn't really be done this way
farmesh.cpp

if there is some docs related to this I'd love to know, thanks :-).

PostPosted: Thu Dec 06, 2012 13:55
by Calinou
It doesn't work like that.

Smaller maps would mean less potential disk space used by maps. It would not reduce RAM, CPU and GPU usage.
It is possible to "limit" where players will be able to go (when disk space is limited) using a simple Lua mod which generates unbreakable (and maybe invisible) walls.

streondj wrote:An Idea I had is if we have small maps, we could do p2p minetest, so people could have their own minetest set up, and then connect the worlds temporarily during a p2p session.

You can host your own server if you want, just go to the "Advanced" tab then put no address in the address field. You will have to forward port 30000 in UDP, which is the default if you're behind a router with NAT enabled, though.

streondj wrote:so that I could play on my laptop without making it sound like a hovercraft.


There are other ways to make your laptop not sound like a hovercraft, try limiting framerate with this setting in minetest.conf:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
fps_max = 30


Also, to improve performance, try disabling desktop effects/compositing. You can also reduce view distance with the + and - keys, maybe also tweak settings in the Settings menu in the main menu (disabling shaders and fancy trees should help quite a lot).

This limits to 30 FPS, which keeps the game playable but makes resource usage much lower (this assumes your laptop is powerful enough to render at least 30 frames per second).

PostPosted: Thu Dec 06, 2012 19:29
by streondj
oh okay, thanks, guess, that clears it up. thanks :-)
guess i'll work on some other mod ideas.