[mod] Minetest Systemd (API) [minetest_systemd]

User avatar
Linuxdirk
Member
 
Posts: 1791
Joined: Wed Sep 17, 2014 11:21
Location: Germany
In-game: Linuxdirk

Re: [mod] Minetest Systemd (API) [minetest_systemd]

by Linuxdirk » Sun Dec 09, 2018 15:11

Mantar wrote:What trolling? Linuxdirk only posted a silly image,

Which is btw. absolutely correct according to one of systemd’s manpages.

This just show the complexity of systemd and that is is not a good idea to copy a system like this for Minetest.

Mantar wrote:I seriously doubt anyone's going to get mad about it.

Except Mr. No Fun Allowed.
 

User avatar
Piezo_
Member
 
Posts: 185
Joined: Fri Jul 20, 2018 21:36
Location: a steaming pile of JoJokes
GitHub: is proprietary I use NotABug
In-game: Piezo_ or TheRealPiezo_

Re: [mod] Minetest Systemd (API) [minetest_systemd]

by Piezo_ » Sun Dec 09, 2018 20:10

Linuxdirk wrote:Except Mr. No Fun Allowed.


Ok, please, stop. There's a place for fun here, and it's this board.

Any comments not about the API will be ignored by me, and possibly dealt with by the moderators.
while (true) { suffer(); }
 

User avatar
Piezo_
Member
 
Posts: 185
Joined: Fri Jul 20, 2018 21:36
Location: a steaming pile of JoJokes
GitHub: is proprietary I use NotABug
In-game: Piezo_ or TheRealPiezo_

Re: [mod] Minetest Systemd (API) [minetest_systemd]

by Piezo_ » Fri Dec 21, 2018 09:46

Update
  • minetestd.utils.check_item_match now understands minetest:node, which matches all nodes.
  • Added minetestd.register_on_teleportplayer(function(player, old_pos, new_pos)). If the function returns true (er, technically, non-nil), then the teleport fails.
  • Moved some code around in playerctl.lua. Tell me if I broke something.
Unfortunately, this update does require a full restart.
while (true) { suffer(); }
 

User avatar
Piezo_
Member
 
Posts: 185
Joined: Fri Jul 20, 2018 21:36
Location: a steaming pile of JoJokes
GitHub: is proprietary I use NotABug
In-game: Piezo_ or TheRealPiezo_

Re: [mod] Minetest Systemd (API) [minetest_systemd]

by Piezo_ » Wed Jan 09, 2019 20:54

Update
  • Added a way for services to list other services as dependencies
  • added minetestd.register_on_killplayer(function(killer, victim, item))
Last edited by Piezo_ on Tue Jan 22, 2019 20:03, edited 1 time in total.
while (true) { suffer(); }
 

User avatar
Piezo_
Member
 
Posts: 185
Joined: Fri Jul 20, 2018 21:36
Location: a steaming pile of JoJokes
GitHub: is proprietary I use NotABug
In-game: Piezo_ or TheRealPiezo_

Re: [mod] Minetest Systemd (API) [minetest_systemd]

by Piezo_ » Wed Jan 16, 2019 23:00

Update
  • GravityCTL has become deprecated in favor of PhysicsCTL, which now handles speed, jump, gravity, and more if you desire.
  • Added minetestd.utils.get_light_info(pos), which returns a table with useful info about the light at the current position.
  • Added minetestd.playerctl.register_metatable_change(name, doChange(metatable)), which can be used to queue changes to the player metatable once it's available.
  • Added chat commands to change default gravity, speed and jump server-wide (need privilege: setphysics)
  • Added nearly-complete documentation

A restart is required for this update
while (true) { suffer(); }
 

User avatar
Piezo_
Member
 
Posts: 185
Joined: Fri Jul 20, 2018 21:36
Location: a steaming pile of JoJokes
GitHub: is proprietary I use NotABug
In-game: Piezo_ or TheRealPiezo_

Re: [mod] Minetest Systemd (API) [minetest_systemd]

by Piezo_ » Mon Feb 04, 2019 05:35

Update
  • Improved dependency handling and service start/stop behavior
  • Fixed a few bugs
  • minetestd.tables.merge_tables can now be passed a third parameter, a function that will determine what to do when a key is shared by both tables.
  • Added minetestd.tables.smart_merge_values, a function designed for use with minetestd.tables.merge_tables, that will "intelligently" add two values of nearly any type.
  • Added a utility for converting position vectors to short, filename-friendly strings containing only characters [0-9_]
A restart is required for this update.
while (true) { suffer(); }
 

User avatar
Piezo_
Member
 
Posts: 185
Joined: Fri Jul 20, 2018 21:36
Location: a steaming pile of JoJokes
GitHub: is proprietary I use NotABug
In-game: Piezo_ or TheRealPiezo_

Re: [mod] Minetest Systemd (API) [minetest_systemd]

by Piezo_ » Thu Feb 14, 2019 04:00

Update
  • Added minetestd.utils.is_solid_block(pos)
  • Improved syntax/structure in a few places
  • Fixed some uses of the /minetestd command not displaying errors properly.
  • Cleaned up documentation
while (true) { suffer(); }
 

Previous

Return to WIP Mods



Who is online

Users browsing this forum: No registered users and 2 guests