1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-07-10 03:40:24 +02:00

Merge server with github repository

Pas mal de changement n’ont pas été pushé sur le github du serveur,
voici l’occasion de faire une bonne synchronisation :)
This commit is contained in:
Ombridride
2014-11-16 22:23:16 +01:00
parent 87b1cd745f
commit 2e895a7790
4474 changed files with 1121 additions and 1097 deletions

0
mods/mesecons/mesecons/VERSION Executable file → Normal file
View File

0
mods/mesecons/mesecons/actionqueue.lua Executable file → Normal file
View File

0
mods/mesecons/mesecons/depends.txt Executable file → Normal file
View File

7
mods/mesecons/mesecons/init.lua Executable file → Normal file
View File

@ -131,12 +131,11 @@ function mesecon:receptor_off(pos, rules)
mesecon.queue:add_action(pos, "receptor_off", {rules}, nil, rules)
end
print("[OK] Mesecons")
--The actual wires
dofile(minetest.get_modpath("mesecons").."/wires.lua");
--Services like turnoff receptor on dignode and so on
dofile(minetest.get_modpath("mesecons").."/services.lua");
if minetest.setting_getbool("log_mods") then
minetest.log("action", "Carbone: [mesecons] loaded.")
end

8
mods/mesecons/mesecons/internal.lua Executable file → Normal file
View File

@ -367,6 +367,7 @@ end
function mesecon:turnon(pos, rulename, recdepth)
recdepth = recdepth or 2
if (recdepth > STACK_SIZE) then return end
local node = minetest.get_node(pos)
if(node.name == "ignore") then
@ -417,6 +418,7 @@ end)
function mesecon:turnoff(pos, rulename, recdepth)
recdepth = recdepth or 2
if (recdepth > STACK_SIZE) then return end
local node = minetest.get_node(pos)
if(node.name == "ignore") then
@ -477,7 +479,9 @@ function mesecon:connected_to_receptor(pos, rulename)
return false
end
function mesecon:find_receptor_on(pos, checked, rulename)
function mesecon:find_receptor_on(pos, checked, rulename, recdepth)
recdepth = recdepth or 2
if (recdepth > STACK_SIZE) then return true end -- ignore request
local node = minetest.get_node(pos)
if mesecon:is_receptor_on(node.name) then
@ -501,7 +505,7 @@ function mesecon:find_receptor_on(pos, checked, rulename)
local rulenames = mesecon:rules_link_rule_all_inverted(pos, rule)
for _, rname in ipairs(rulenames) do
local np = mesecon:addPosRule(pos, rname)
if mesecon:find_receptor_on(np, checked, mesecon:invertRule(rname)) then
if mesecon:find_receptor_on(np, checked, mesecon:invertRule(rname), recdepth + 1) then
return true
end
end

0
mods/mesecons/mesecons/legacy.lua Executable file → Normal file
View File

0
mods/mesecons/mesecons/oldwires.lua Executable file → Normal file
View File

0
mods/mesecons/mesecons/presets.lua Executable file → Normal file
View File

0
mods/mesecons/mesecons/services.lua Executable file → Normal file
View File

2
mods/mesecons/mesecons/settings.lua Executable file → Normal file
View File

@ -10,3 +10,5 @@ MESECONS_RESUMETIME = 4 -- time to wait when starting the server before
OVERHEAT_MAX = 20 -- maximum heat of any component that directly sends an output
-- signal when the input changes (e.g. luacontroller, gates)
-- Unit: actions per second, checks are every 1 second
STACK_SIZE = 3000 -- Recursive functions will abort when this is reached. Therefore,
-- this is also limits the maximum circuit size.

BIN
mods/mesecons/mesecons/textures/jeija_fiber.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 431 B

After

Width:  |  Height:  |  Size: 592 B

BIN
mods/mesecons/mesecons/textures/jeija_glue.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 434 B

After

Width:  |  Height:  |  Size: 487 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 288 B

After

Width:  |  Height:  |  Size: 341 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 287 B

After

Width:  |  Height:  |  Size: 340 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 254 B

After

Width:  |  Height:  |  Size: 307 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 254 B

After

Width:  |  Height:  |  Size: 307 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 537 B

After

Width:  |  Height:  |  Size: 743 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 514 B

After

Width:  |  Height:  |  Size: 725 B

BIN
mods/mesecons/mesecons/textures/jeija_mesecon_off.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 151 B

After

Width:  |  Height:  |  Size: 204 B

BIN
mods/mesecons/mesecons/textures/jeija_mesecon_on.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 143 B

After

Width:  |  Height:  |  Size: 196 B

BIN
mods/mesecons/mesecons/textures/jeija_mesecon_plug.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 533 B

After

Width:  |  Height:  |  Size: 713 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 580 B

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 546 B

After

Width:  |  Height:  |  Size: 737 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 505 B

After

Width:  |  Height:  |  Size: 598 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 618 B

After

Width:  |  Height:  |  Size: 692 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 253 B

After

Width:  |  Height:  |  Size: 553 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 277 B

After

Width:  |  Height:  |  Size: 330 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 266 B

After

Width:  |  Height:  |  Size: 319 B

BIN
mods/mesecons/mesecons/textures/jeija_silicon.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 636 B

After

Width:  |  Height:  |  Size: 867 B

BIN
mods/mesecons/mesecons/textures/wires_bump_off.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 307 B

After

Width:  |  Height:  |  Size: 347 B

BIN
mods/mesecons/mesecons/textures/wires_bump_on.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 346 B

After

Width:  |  Height:  |  Size: 386 B

BIN
mods/mesecons/mesecons/textures/wires_full_off.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 378 B

After

Width:  |  Height:  |  Size: 465 B

BIN
mods/mesecons/mesecons/textures/wires_full_on.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 366 B

After

Width:  |  Height:  |  Size: 464 B

BIN
mods/mesecons/mesecons/textures/wires_inv.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 124 B

After

Width:  |  Height:  |  Size: 167 B

BIN
mods/mesecons/mesecons/textures/wires_off.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 379 B

After

Width:  |  Height:  |  Size: 454 B

BIN
mods/mesecons/mesecons/textures/wires_on.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 381 B

After

Width:  |  Height:  |  Size: 492 B

BIN
mods/mesecons/mesecons/textures/wires_vertical_off.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 315 B

After

Width:  |  Height:  |  Size: 373 B

BIN
mods/mesecons/mesecons/textures/wires_vertical_on.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 338 B

After

Width:  |  Height:  |  Size: 396 B

0
mods/mesecons/mesecons/util.lua Executable file → Normal file
View File

0
mods/mesecons/mesecons/wires.lua Executable file → Normal file
View File