[Mod] Cooperative Factions [coop_factions]

Post Reply
skiscratcher
New member
Posts: 6
Joined: Mon Oct 04, 2021 01:05
GitHub: CodeScratcher
In-game: skiscratcher

[Mod] Cooperative Factions [coop_factions]

by skiscratcher » Post

Cooperative Factions [coop_factions]

A mod that allows players to team together
Usage:

Grant yourself the faction_add and set_faction privilege. Then, create a faction with the

Code: Select all

/add_faction
command and use the

Code: Select all

/set_faction
command to set the faction one user, the leader of the faction, to the newly added faction. Grant them the faction_leader privilege. They can invite people with the

Code: Select all

/invite_to_faction
command, and others can join the faction (if they're invited) with the

Code: Select all

/join_faction
command

Caveats
  • Displaying factions in usernames can clash with other mods that mess with the username displaying UI
  • Displaying factions in chat can clash with chat altering mods
  • In order to use faction protection, you must change the optional dependencies of the protector mod.
Github:
https://github.com/CodeScratcher/factions-mod

License: GPL-2 only
Media license: CC-BY-SA 3.0
Attachments
Faction chests and colored chat
Faction chests and colored chat
FactionsChestsa.png (292.03 KiB) Viewed 803 times
Colored and stylized usernames
Colored and stylized usernames
FactionsMod.png (682.03 KiB) Viewed 803 times
cdb_27a6e10b04ca

AngryWookie
New member
Posts: 3
Joined: Mon Feb 19, 2024 01:03

Re: [Mod] Cooperative Factions [coop_factions]

by AngryWookie » Post

Having a major issue. Factions is crashing our server a little help here?

There is no specific trigger for the crash that I can see. It just happens randomly. The only error logs are below.


2024-02-23 23:03:00: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'coop_factions' in callback on_chat_message(): ....\mods\coop_factions\init.lua:568: attempt to index local 'rgb' (a nil value)
2024-02-23 23:03:00: ERROR[Main]: stack traceback:
2024-02-23 23:03:00: ERROR[Main]: ....\mods\coop_factions\init.lua:568: in function 'rgb_to_hex'
2024-02-23 23:03:00: ERROR[Main]: ....\mods\coop_factions\init.lua:608: in function <...4710\g608903\minetest\bin\..\mods\coop_factions\init.lua:588>
2024-02-23 23:03:00: ERROR[Main]: ....\..\builtin\common\register.lua:26: in function <...4710\g608903\minetest\bin\..\builtin\common\register.lua:12>


[Edit] Missed this in initial post:
2024-02-23 22:37:14: WARNING[Server]: Deprecated call to get_attribute, use MetaDataRef methods instead. (at ...4710\g608903\minetest\bin\..\mods\coop_factions\init.lua:405)
2024-02-23 22:37:14: WARNING[Server]: Deprecated call to set_attribute, use MetaDataRef methods instead. (at ...4710\g608903\minetest\bin\..\mods\coop_factions\init.lua:406)
2024-02-23 22:37:14: WARNING[Server]: Deprecated call to get_attribute, use MetaDataRef methods instead. (at ...4710\g608903\minetest\bin\..\mods\coop_factions\init.lua:409)
2024-02-23 22:37:14: WARNING[Server]: Deprecated call to get_attribute, use MetaDataRef methods instead. (at ...4710\g608903\minetest\bin\..\mods\coop_factions\init.lua:413)
2024-02-23 23:02:53: ACTION[Server]: Deity_ [172.59.80.215] joins game. List of players: Praised Deity_
2024-02-23 23:02:53: WARNING[Server]: Deprecated call to get_attribute, use MetaDataRef methods instead. (at ...4710\g608903\minetest\bin\..\mods\coop_factions\init.lua:405)
2024-02-23 23:02:53: WARNING[Server]: Deprecated call to set_attribute, use MetaDataRef methods instead. (at ...4710\g608903\minetest\bin\..\mods\coop_factions\init.lua:406)
2024-02-23 23:02:53: WARNING[Server]: Deprecated call to get_attribute, use MetaDataRef methods instead. (at ...4710\g608903\minetest\bin\..\mods\coop_factions\init.lua:409)
2024-02-23 23:02:53: WARNING[Server]: Deprecated call to get_attribute, use MetaDataRef methods instead. (at ...4710\g608903\minetest\bin\..\mods\coop_factions\init.lua:413)
2024-02-23 23:02:59: WARNING[Server]: Deprecated call to get_attribute, use MetaDataRef methods instead. (at ...4710\g608903\minetest\bin\..\mods\coop_factions\init.lua:607)
2024-02-23 23:02:59: ACTION[Main]: Server: Shutting down

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests