[Mod] Player Monoids [player_monoids]

Post Reply
Byakuren
Member
Posts: 818
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri
In-game: Raymoo + Clownpiece

[Mod] Player Monoids [player_monoids]

by Byakuren » Post

This is a library for managing player status. It acts as a layer between mods and raw player state (e.g. physics overrides, player object properties), by keeping track of what changes have been made and combining them. It is essentially the "combining" and "state management" distilled out of monoidal_effects so that it can be used separately. player_monoids and playereffects can achieve the main goal of monoidal_effects when used together, so this mod deprecates monoidal_effects.

This mod could be used as a standalone library if you renamed init.lua and removed the dofile calls, if you really wanted.

Check out the readme for a usage introduction.

Download:
master

Also available on Minetest Bower (as player_monoids).

Source: https://github.com/minetest-mods/player_monoids
License: Apache 2.0 (No non-code assets)
Dependencies: None
API: https://github.com/minetest-mods/player ... ter/API.md

Mods that support player_monoids (mention any that aren't already in the list):
Last edited by Byakuren on Wed Jul 12, 2017 00:59, edited 8 times in total.
Every time a mod API is left undocumented, a koala dies.

drkwv
Member
Posts: 102
Joined: Thu Jun 28, 2012 13:48
GitHub: aa6

Re: [Mod] Player Monoids [player_monoids]

by drkwv » Post

API link points to error page.

Byakuren
Member
Posts: 818
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri
In-game: Raymoo + Clownpiece

Re: [Mod] Player Monoids [player_monoids]

by Byakuren » Post

drkwv wrote:API link points to error page.
Sorry, fixed.
Every time a mod API is left undocumented, a koala dies.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Player Monoids [player_monoids]

by azekill_DIABLO » Post

looks like a good mod!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

Byakuren
Member
Posts: 818
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri
In-game: Raymoo + Clownpiece

Re: [Mod] Player Monoids [player_monoids]

by Byakuren » Post

Added to Minetest Bower.
Every time a mod API is left undocumented, a koala dies.

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [Mod] Player Monoids [player_monoids]

by texmex » Post

Byakuren wrote:It acts as a layer between mods and raw player state (e.g. physics overrides, player object properties), by keeping track of what changes have been made and combining them.

Does this mean I can use playereffects and a sprint mod at the same time?

Byakuren
Member
Posts: 818
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri
In-game: Raymoo + Clownpiece

Re: [Mod] Player Monoids [player_monoids]

by Byakuren » Post

texmex wrote:
Byakuren wrote:It acts as a layer between mods and raw player state (e.g. physics overrides, player object properties), by keeping track of what changes have been made and combining them.

Does this mean I can use playereffects and a sprint mod at the same time?
Only if both the sprint mod and the playereffects effects you are using implement player_monoids support. I'm pretty sure sprint mod does not, but when you make an effect in playereffects you can program it to use player_monoids instead of directly setting overrides.
Every time a mod API is left undocumented, a koala dies.

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [Mod] Player Monoids [player_monoids]

by texmex » Post

Byakuren wrote:Only if both the sprint mod and the playereffects effects you are using implement player_monoids support. I'm pretty sure sprint mod does not, but when you make an effect in playereffects you can program it to use player_monoids instead of directly setting overrides.
Okay! I thought it somehow automatically acted as an intermediate layer.

Byakuren
Member
Posts: 818
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri
In-game: Raymoo + Clownpiece

Re: [Mod] Player Monoids [player_monoids]

by Byakuren » Post

It would be nice if it could, but even if I could override set_physics_override I still would have no way of knowing which mod it came from, which means I wouldn't know whether to cancel out a previous change.
Every time a mod API is left undocumented, a koala dies.

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [Mod] Player Monoids [player_monoids]

by texmex » Post

Got it. Is there any mod apart from 3d_armor that supports this mod currently?

Byakuren
Member
Posts: 818
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri
In-game: Raymoo + Clownpiece

Re: [Mod] Player Monoids [player_monoids]

by Byakuren » Post

Some of the magic stuff I haven't worked on in a while uses it, but nothing that's both complete and not abandoned.
Every time a mod API is left undocumented, a koala dies.

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [Mod] Player Monoids [player_monoids]

by texmex » Post


Post Reply

Who is online

Users browsing this forum: geomagas and 18 guests