User:Twoelk/sandbox1

From Luanti Wiki
< User:Twoelk
Revision as of 12:35, 15 September 2017 by Twoelk (talk | contribs) (added links to old minetest-homepage versions)
Jump to navigation Jump to search

This shall be my sandbox

folder structure playtree

Folder structure examples

based on the run-in-place builts for Windows


  • File structure as installed by minetest-0.4.9-65d1cb8 compiled by sfan5 (2014-03-30)
minetest/
├── bin/
├── builtin/
├── client/
│   ├── serverlist/
│   └── shaders/
│       ├── alpha_shader/
│       ├── leaves_shader/
│       ├── liquids_shader/
│       ├── plants_shader/
│       └── solids_shader/
├── doc/
├── fonts/
├── games/
│   ├── minetest_game/
│   └── minimal/
├── locale/ 
│   └── (lots of language folders)
├── mods/ 
├── testsounds/
└── textures/
    └── base/
        └── pack/


  • File structure with the folders Minetest adds after some usage as client and server, as well as the positions (...) that costum made content goes.
minetest/
├── bin/
├── builtin/
├── cache/
│   ├── media/
│   └── tmp/
├── client/
│   ├── serverlist/
│   └── shaders/
│       ├── alpha_shader/
│       ├── leaves_shader/
│       ├── liquids_shader/
│       ├── plants_shader/
│       └── solids_shader/
├── doc/
├── fonts/
├── games/
│   ├── minetest_game/
│   ├── minimal/
│   └── ... (installed extra games)
├── locale/ (lots of language folders)
├── mods/
│   └── ... (installed extra mods and modpacks)
├── testsounds/ (soundpack folder)
├── textures/
│   ├── base/
│   │   └── pack/
│   └── ... (installed extra texturepacks)
└── worlds/
    └── ... (saved worlds. Some with exclusive world mods)


  • Folder structure with extra folders for screenshots and minetest-mapper
minetest/
├── bin/
├── builtin/
├── cache/
│   ├── media/
│   └── tmp/
├── client/
│   ├── serverlist/
│   └── shaders/
│       ├── alpha_shader/
│       ├── leaves_shader/
│       ├── liquids_shader/
│       ├── plants_shader/
│       └── solids_shader/
├── doc/
├── fonts/
├── games/
│   ├── minetest_game/
│   ├── minimal/
│   └── ... (installed extra games)
├── locale/ (lots of language folders)
├── mods/
│   └── ... (installed extra mods and modpacks)
├── screenshots/
├── testsounds/ (soundpack folder)
├── textures/
│   ├── base/
│   │   └── pack/
│   └── ... (installed extra texturepacks)
├── util/
│   └── mapper/
└── worlds/
    └── ... (saved worlds. Some with exclusive world mods)

Details of file structures within a mod

In this example the mods "carts" and "tnt" are installed:

    mods/
    ├── carts/
    │   ├── depends.txt
    │   ├── init.lua
    │   ├── functions.lua
    │   ├── README.txt
    │   ├── textures/
    │   │   ├── carts_top.png
    │   │   └── ...
    │   └── models/
    │       ├── cart.x
    │       └── ...
    ├── tnt/
    │   ├── init.lua
    │   ├── depends.txt
    │   ├── README.txt
    │   ├── textures/
    │   │   ├── tnt_side.png
    │   │   └── ...
    │   └── sounds/
    │       ├── tnt_explode.ogg
    │       └── ...
    └── modname/
        ├── bower.json (used by the Minetest-Bower project)
        ├── init.lua
        ├── depends.txt
        ├── description.txt 
        ├── mod.conf
        ├── README.txt or README.md
        ├── screenshot.png
        ├── textures/
        │   ├── modname_stuff.png
        │   ├── modname_something_else.png
        │   └── ...
        ├── sounds/
        │   ├── some_sound.ogg
        │   └── ...
        ├── media/
        │   ├── some_media
        │   └── ...
        ├── models/
        │   ├── some_model.x
        │   └── ...
        └── <custom data>/
            ├── some_data
            └── ...

Details of file structures within a game

This example has the default games "minetest_game" and "minimal" installed and shows a possible structure of an own game in "my_game":

    games/
    ├── minetest_game/
    │   ├── game.conf
    │   ├── README.txt
    │   ├── menu/
    │   │   ├── header.png
    │   │   └── icon.png
    │   └── mods/
    │       ├── some mod
    │       ├── some other mod 
    │       └── ...
    ├── minimal/
    │   ├── game.conf
    │   ├── menu/
    │   │   ├── background.png
    │   │   ├── icon.png
    │   │   └── ...
    │   └── mods/
    │       ├── some mod
    │       ├── some other mod
    │       └── ...
    ├── my_game/
    │   ├── game.conf
    │   ├── minetest.conf
    │   ├── README.txt
    │   ├── license.txt
    │   ├── menu/
    │   │   ├── background.png
    │   │   ├── footer.png
    │   │   ├── header.png
    │   │   ├── icon.png
    │   │   ├── overlay.png
    │   │   └── ...
    │   └── mods/
    │       ├── license.txt
    │       ├── some mod
    │       ├── some other mod
    │       └── ...
    └── some more games


Details of file structures within a world

This commented example shows the location and structure of a world called "someworld":

    minetest/
    ├── bin/ (contains the executable program file)
    ├── builtin/
    ├── cache/
    ├── client/
    ├── doc/
    ├── fonts/
    ├── games/  (collection of mods tweacked or designed to work well together)
    │   ├── minetest_game/
    │   ├── minimal/
    │   └── … (installed extra games)
    ├── locale/ (language files)
    ├── mods/
    │   └── … (installed extra mods and modpacks)
    ├── textures/
    │   ├── base/
    │   │   └── pack/
    │   └── … (installed extra texturepacks)
    │
    ├── worlds/   (this folder will be created when the first local/singleplayer world is created
    │   ├── someworld  (the name given to the world by the user when it is created)
    │   │   ├── players/     (ingame data for each player)
    │   │   ├── worldmods/   (create this folder for world exclusive mods)
    │   │   ├── auth.txt     (player login data)
    │   │   ├── env_meta.txt (contains mostly time related information)
    │   │   ├── map.sqlite   (database containing the map. The name may differ depending on backend used)
    │   │   ├── map_meta.txt (defines which mapgen is used and how)
    │   │   └── world.mt     (should at least contain the subgame-id without which the world 
    │   │                     will not show up in the singleplayer tab)
    │   └── … (more saved worlds. Some with exclusive world mods)
    ├── minetest.conf   (will be created with first start of Minetest)
    └── minetest.conf.example   (a list of all possible settings)

Folder structure according to CMakeLists.txt

based on the building scripts in CMakeLists.txt on github

DirVariable WIN32 APPLE UNIX/Linux/BSD RUN_IN_PLACE UNIX/Linux/BSD Description
SHAREDIR . ${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME} . ${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME} Directory to install data files into
BINDIR bin bin bin ${CMAKE_INSTALL_PREFIX}/bin Directory to install binaries into
DOCDIR doc share/doc/${PROJECT_NAME} doc ${CMAKE_INSTALL_PREFIX}/share/doc/${PROJECT_NAME} Directory to install documentation into
EXAMPLE_CONF_DIR . ${DOCDIR} . ${DOCDIR} Directory to install example config file into
MANDIR unix/man ${CMAKE_INSTALL_PREFIX}/share/man Directory to install manpages into
XDG_APPS_DIR unix/applications ${CMAKE_INSTALL_PREFIX}/share/applications Directory to install .desktop files into
APPDATADIR ${CMAKE_INSTALL_PREFIX}/share/appdata
ICONDIR unix/icons ${CMAKE_INSTALL_PREFIX}/share/icons Directory to install icons into
LOCALEDIR locale locale locale ${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME}/locale Directory to install l10n files into


Category tree (as of early 2014)


Alphabet Blocks


for Apple

  • ~/Library/Application Support/minetest/mods/
  • ~/Library/Application Support/minetest/games/
  • ~/Library/Application Support/minetest/worlds/

source

Links to old versions of the Homepage


Notes

limit to the number of nodes types loaded = 32766 (as said on irc )

<categorytree>Blocks</categorytree>