Not intended as a guide for newbies, more like a "cheat sheet" for the somewhat experienced IRC user, especially one who wields some power over a channel.
/join #channel
- Joins the specified channel.
/part #channel
- Leaves the specified channel.
2018-04-11 07:18:41: INFO[Main]: Selected world: Aluminum [C:\Minetest\bin\..\worlds\Aluminum] | |
2018-04-11 07:18:41: INFO[Main]: SourceImageCache::getOrLoad(): Loading path "C:\Minetest\bin\..\textures\base\pack\progress_bar.png" | |
2018-04-11 07:18:41: INFO[Main]: SourceImageCache::getOrLoad(): Loading path "C:\Minetest\bin\..\textures\base\pack\progress_bar_bg.png" | |
2018-04-11 07:18:41: INFO[Main]: Attempting to use OpenAL audio | |
2018-04-11 07:18:41: INFO[Main]: Audio: Initializing... | |
2018-04-11 07:18:41: INFO[Main]: Audio: Initialized: OpenAL 1.1 ALSOFT 1.15.1, using OpenAL Soft | |
2018-04-11 07:18:41: INFO[Main]: Server created for gameid "minetest" in simple singleplayer mode | |
2018-04-11 07:18:41: INFO[Main]: - world: C:\Minetest\bin\..\worlds\Aluminum | |
2018-04-11 07:18:41: INFO[Main]: - game: C:\Minetest\bin\..\games\minetest_game | |
2018-04-11 07:18:41: INFO[Main]: Initializing world at C:\Minetest\bin\..\worlds\Aluminum |
core.register_chatcommand("hasprivs", { | |
params = "<priv>", | |
description = "Returns a list of all online players with the priv passed as param. e.g. /hasprivs fly", | |
privs = {server = true}, | |
func = function(caller, param) | |
param = param:trim() | |
if param == "" then | |
return false, "Invalid parameters (see /help hasprivs)" | |
end | |
local param_privs = core.string_to_privs(param) |
local pos1 = ... | |
local pos2 = ... | |
local lvm = VoxelManip(lvm_p1, lvm_p2) -- or minetest.get_voxel_manip(pos1, pos2) | |
lvm:write_to_map(true) |
enum EntityType { EntityType_Entity = 0, EntityType_Player, EntityType_Enemy }; | |
class Entity | |
{ | |
public: | |
Entity() : type(EntityType_Entity) {} | |
// This would generally be private, with a public getter | |
EntityType type; | |
}; |
This script allows you to very easily create PRs for MT-CTF/maps.
There are a couple of hard-coded variables in the script, which need to be set before the first run. I didn't bother to make these configurable via command-line args because these variables usually need to be set only once.
MAPSREPO
(L7): This should contain the path to the local maps repository. This needs to be an absolute path. e.g. /home/test_user/new_super_duper_awesome_map_that_will_get_rejected_immediately/
USERNAME
(L8): This should contain your GitHub username. You'll need to authenticate, as the PR will be made in your name.Also, don't forget to mark the script as executable.