aboutsummaryrefslogtreecommitdiff
path: root/src/database
Commit message (Expand)AuthorAge
* (se)SerializeString: Include max length in the nameSmallJoker2020-10-01
* Record player existence in dymmy database.Lars2020-09-20
* Fix build due to revert errorrubenwardy2020-07-07
* Revert "Verify database connection on interval (#9665)"rubenwardy2020-07-07
* Add LevelDB player database (#9982)luk3yx2020-06-12
* Add PostgreSQL authentication backend (#9756)Loïc Blot2020-04-27
* Add LevelDB auth database. (#9476)luk3yx2020-04-23
* Verify database connection on interval (#9665)Loïc Blot2020-04-15
* PostgreSQL: Fix listAllLoadableBlocks returning the same blockSmallJoker2020-04-14
* Move PlayerSAO to dedicated filesLoic Blot2020-04-11
* Consistent HP and damage types (#8167)SmallJoker2019-02-10
* Fix on_successful_save -> onSuccessfulSaveLoïc Blot2019-01-04
* Fix various player save issues (performance penalty on sql backends + bugs)Loïc Blot2019-01-04
* Player file directory must be only created when using file backend.Loïc Blot2019-01-04
* Add Lua methods 'set_rotation()' and 'get_rotation()' (#7395)CoderForTheBetter2018-11-28
* Replace auth.txt with SQLite auth database (#7279)Ben Deutsch2018-08-05
* Add player:get_meta(), deprecate player attributes (#7202)rubenwardy2018-04-06
* Move files to subdirectories (#6599)Vitaliy2017-11-08
10 = easy, 4 = hard #define CONNECTION_TIMEOUT 30 #define RESEND_TIMEOUT_MIN 0.333 #define RESEND_TIMEOUT_MAX 3.0 // resend_timeout = avg_rtt * this #define RESEND_TIMEOUT_FACTOR 4 /* Server */ // This many blocks are sent when player is building #define LIMITED_MAX_SIMULTANEOUS_BLOCK_SENDS 0 // Override for the previous one when distance of block is very low #define BLOCK_SEND_DISABLE_LIMITS_MAX_D 1 /* Map-related things */ // The absolute working limit is (2^15 - viewing_range). // I really don't want to make every algorithm to check if it's going near // the limit or not, so this is lower. #define MAP_GENERATION_LIMIT (31000) // Size of node in floating-point units // The original idea behind this is to disallow plain casts between // floating-point and integer positions, which potentially give wrong // results. (negative coordinates, values between nodes, ...) // Use floatToInt(p, BS) and intToFloat(p, BS). #define BS (10.0) // Dimension of a MapBlock #define MAP_BLOCKSIZE 16 // This makes mesh updates too slow, as many meshes are updated during // the main loop (related to TempMods and day/night) //#define MAP_BLOCKSIZE 32 /* Old stuff that shouldn't be hardcoded */ // Size of player's main inventory #define PLAYER_INVENTORY_SIZE (8*4) // Maximum hit points of a player #define PLAYER_MAX_HP 20 /* Environmental condition constants */ #define HEAT_UNDEFINED (-0x7fff-1) #define HUMIDITY_UNDEFINED (-0x7fff-1) #endif