[Mod] Pride Flags [pride_flags]

Locked
User avatar
sorcerykid
Member
Posts: 1841
Joined: Fri Aug 26, 2016 15:36
GitHub: sorcerykid
In-game: Nemo
Location: Illinois, USA

[Mod] Pride Flags [pride_flags]

by sorcerykid » Post

New forum topic: viewtopic.php?f=9&t=28469

Spoiler
Image

Pride Flags Mod v1.0
pride_flags (by sorcerykid)

Pride Flags adds a variety of eight animated flags to celebrate pride in Minetest. The flags will wave faster or slower pver time based on the wind speed, which is determined using a perlin noise algorithm.

The flags and poles are non-craftable and intended for placement by an administrator in a conspicuous location, such as along a promenade.
  • /giveme pride_flags:mast_lower
  • /giveme pride_flags:mast_upper
By default, a rainbow pride flag will appear when the upper mast is placed. Right-click the node to select one of the other flags.

Repository:

https://bitbucket.org/sorcerykid/pride_flags

Download Archive (.zip)
Download Archive (.tar.gz)

Source Code License:

GNU Lesser General Public License v3 (LGPL-3.0)

Multimedia License:

Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)

User avatar
Napiophelios
Member
Posts: 1035
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [Mod] Pride Flags [pride_flags]

by Napiophelios » Post

do I have to have a bitbucket account?
none of the links work for me

edit: woops never mind. it works fine :)

User avatar
Onyx
Member
Posts: 132
Joined: Fri Sep 25, 2015 08:36
In-game: Onyx
Location: On your planet

Re: [Mod] Pride Flags [pride_flags]

by Onyx » Post

Amazing, thx for sharing your work
"One chunk, two chunks, three chunks..."

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: [Mod] Pride Flags [pride_flags]

by rubenwardy » Post

Nice, this is really cool! I love the animation
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: [Mod] Pride Flags [pride_flags]

by rubenwardy » Post

Suggestions:
  • Add crafting recipes and allow digging
  • Allow rotation
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: [Mod] Pride Flags [pride_flags]

by rubenwardy » Post

Image
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
Burkha
New member
Posts: 5
Joined: Mon Jun 27, 2022 18:09
In-game: Burkha

Re: [Mod] Pride Flags [pride_flags]

by Burkha » Post

Based mod; based moderator

User avatar
Wuzzy
Member
Posts: 4786
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Re: [Mod] Pride Flags [pride_flags]

by Wuzzy » Post

I forked this mod and added a lot of more flags:

Image

I also did some minor improvements for the existing flags because they had bad pixel borders.

And yes, these are all real pride flags already in use, every flag means something.

https://codeberg.org/Wuzzy/pride_flags/ ... h/newflags

I would really like it if you merge the "newflags" branch, thanks. :-)

And I might post a small feature/bugfix update later (including rotation). Or not (not sure).

User avatar
Wuzzy
Member
Posts: 4786
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Re: [Mod] Pride Flags [pride_flags]

by Wuzzy » Post

A new mergable branch is available on my pride_flags fork: "stuff". This contains a couple of technical updates.

https://codeberg.org/Wuzzy/pride_flags/ ... anch/stuff

Changelog (compared to sorcerykid's version 1):

* Added screwdriver support
* Fix crash when rightclicking flag if entity is gone (due to /clearentities)
* If the flag entity is missing, it will be respawned when the flag pole is punched/rightclick or if the chunk is loaded
* Fix deprecation warning
* Punching flag will cycle through flags backwards
* Fix flag animation sometimes causing "jumps" (does not work for MT 0.4) (This is because set_animation restarts the animation but newer Minetest versions allow to set the anim speed without resetting the animation with set_animation_frame_speed)
* Added inventory/wield images
* Added German translation
* Made flag poles easier to dig
* Added crafting recipes
* Changing the flag no longer requires the "server" privilege (instead, protection is checked)

Tested in both MT 0.4.17 and 5.5.0.
Last edited by Wuzzy on Mon Jul 04, 2022 16:50, edited 3 times in total.

User avatar
Eris
Member
Posts: 175
Joined: Thu Nov 19, 2020 23:12
IRC: definitelya Ovalo
In-game: Eris_still_crafts

Re: [Mod] Pride Flags [pride_flags]

by Eris » Post

Oh cool! This is important for awareness about diversity in Minetest, great job sorcerykid, rubenwardy and Wuzzy.
Jump in the caac

User avatar
Wuzzy
Member
Posts: 4786
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Re: [Mod] Pride Flags [pride_flags]

by Wuzzy » Post

OK, I combined all my updates in the "all_wuzzy_updates" branch.

Use this to test my latest version. https://codeberg.org/Wuzzy/pride_flags/ ... zy_updates

Complete changelog (compared to version 1):
  • Add dozens of new flags
  • Added screwdriver support
  • Fix crash when rightclicking flag if entity is gone (due to /clearentities)
  • If the flag entity is missing, it will be respawned when the flag pole is punched/rightclick or if the chunk is loaded
  • Fix deprecation warning
  • Punching flag will cycle through flags backwards
  • Fix flag animation sometimes causing "jumps" (does not work for MT 0.4) (This is because set_animation restarts the animation but newer Minetest versions allow to set the anim speed without resetting the animation with set_animation_frame_speed)
  • Added inventory/wield images
  • Added German translation
  • Made flag poles easier to dig
  • Added crafting recipes
  • Flag Pole with Flag node now occupies 3 blocks vertically
  • Fix collision bugs with Flag Pole with Flag
  • Flag now faces you after placement
  • Added screenshot
Image

User avatar
Napiophelios
Member
Posts: 1035
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [Mod] Pride Flags [pride_flags]

by Napiophelios » Post

Troodon wrote:
Sat Jul 09, 2022 01:01
Terrible
I think it's pretty neat and very creative.
And easy enough to add more flags.

Nice job sorcerykid :)

GIF 7-9-2022 11-02-20 PM.gif
GIF 7-9-2022 11-02-20 PM.gif (981.94 KiB) Viewed 5673 times

Emojiminetest
Member
Posts: 38
Joined: Sat Jun 06, 2020 00:21
GitHub: Emojigit

Re: [Mod] Pride Flags [pride_flags]

by Emojiminetest » Post

Converting this to an API library is in my to-do list. Nice job!

AmyMoriyama
Member
Posts: 107
Joined: Wed Jun 30, 2021 14:53
GitHub: AmyMoriyama

Re: [Mod] Pride Flags [pride_flags]

by AmyMoriyama » Post

2022-07-15 00:40:21: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod '' in callback item_OnPlace(): /home/username/worlds/world/worldmods/pride_flags/init.lua:160: attempt to index a nil value
2022-07-15 00:40:21: ERROR[Main]: stack traceback:
2022-07-15 00:40:21: ERROR[Main]: /home/username/worlds/world/worldmods/pride_flags/init.lua:160: in function 'on_rightclick'
2022-07-15 00:40:21: ERROR[Main]: /home/username/multicraft/bin/../builtin/game/item.lua:424: in function </home/username/multicraft/bin/../builtin/game/item.lua:417>
I had placed every flag and a few have since vanished. So, I went up to an apparently empty pole and right clicked it and this error happened and server crashed.

User avatar
Wuzzy
Member
Posts: 4786
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Re: [Mod] Pride Flags [pride_flags]

by Wuzzy » Post

I had placed every flag and a few have since vanished. So, I went up to an apparently empty pole and right clicked it and this error happened and server crashed.
I fixed this in my fork of the mod which I posted above. I'm still waiting for sorcerykid to include it. I had hoped this will become official. :-(

@sorcerykid: Do you still intend to maintain this or do I actually have to release a "pride_flags_2"? :-(

By the way: LGBT+ people are everywhere, including in the Minetest community, whether you like it or not. It's not an ideology, it's a FACT. If you still have a problem with that, you're obviously just trolling/flaming. I don't know to which religious or political pundits you listen to, but chances are, you're being LIED to. Go watch some mythbusting here: https://www.youtube.com/watch?v=izTyAdfEnqs (great YT channel btw) and stop believing in laughably absurd anti-LGBT+ conspiracy theories.

And I'm doubling down here, I think every single flag I (and sorcerykid) added to the mod is totally valid and you can cry all you want, the pride flags are going to stay! :P

User avatar
Wuzzy
Member
Posts: 4786
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Re: [Mod] Pride Flags [pride_flags]

by Wuzzy » Post

The most recent flags in my fork:

Image

Left to right: bigender, trigender, demiboy, demigirl.

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: [Mod] Pride Flags [pride_flags]

by rubenwardy » Post

I've decided to clean up this thread. Any further homo/transphobic comments will result in bans. Please remind yourselves of rules 3 and 4:
No personal attacks: Members of this forum should not be insulted or otherwise attacked on the basis of who or what they are. If you wish to criticize someone for their actions, it should be constructive. Please remember this is a game forum. You should be polite when possible and leave political and other unrelated opinions elsewhere if they might prove disruptive.

Excessive trolling/baiting and/or toxic behavior is not welcome
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
MCL
Member
Posts: 654
Joined: Mon Aug 20, 2018 00:44
GitHub: MCLx86
IRC: migdyn
In-game: singleplayer
Contact:

Re: [Mod] Pride Flags [pride_flags]

by MCL » Post

The links are broken :(

I really wanted to fork this mod and add country flags and maybe even some special interest flags so this is bad news to me :(
2014-02-14 - 2024-02-14 TEN YEARS OF MCL

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: [Mod] Pride Flags [pride_flags]

by rubenwardy » Post

MCL wrote:
Mon Jul 18, 2022 20:07
The links are broken :(

I really wanted to fork this mod and add country flags and maybe even some special interest flags so this is bad news to me :(
Wuzzy's fork can be found here: https://codeberg.org/Wuzzy/pride_flags/ ... zy_updates
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

AmyMoriyama
Member
Posts: 107
Joined: Wed Jun 30, 2021 14:53
GitHub: AmyMoriyama

Re: [Mod] Pride Flags [pride_flags]

by AmyMoriyama » Post

Wuzzy wrote:
Sat Jul 16, 2022 14:12
I had placed every flag and a few have since vanished. So, I went up to an apparently empty pole and right clicked it and this error happened and server crashed.
I fixed this in my fork of the mod which I posted above. I'm still waiting for sorcerykid to include it. I had hoped this will become official. :-(

@sorcerykid: Do you still intend to maintain this or do I actually have to release a "pride_flags_2"? :-(

By the way: LGBT+ people are everywhere, including in the Minetest community, whether you like it or not. It's not an ideology, it's a FACT. If you still have a problem with that, you're obviously just trolling/flaming. I don't know to which religious or political pundits you listen to, but chances are, you're being LIED to. Go watch some mythbusting here: https://www.youtube.com/watch?v=izTyAdfEnqs (great YT channel btw) and stop believing in laughably absurd anti-LGBT+ conspiracy theories.

And I'm doubling down here, I think every single flag I (and sorcerykid) added to the mod is totally valid and you can cry all you want, the pride flags are going to stay! :P
Thank you for fixing this :) The flags are back on the poles on my server.

User avatar
Wuzzy
Member
Posts: 4786
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Re: [Mod] Pride Flags [pride_flags]

by Wuzzy » Post

I have now officially released my fork of this mod here:
viewtopic.php?f=9&t=28469

Version 2.0.3 has the following updates (compared to my previous post):
  • API added. Programmers can now add custom flags, set/get the flag of a node, set the wind speed and get a list of all flags.
  • Flag ordering is now more logical
  • Fix flag waving speed being constant

Locked

Who is online

Users browsing this forum: No registered users and 1 guest