Back to Epicmafia

Fixing roles and mafia features

about 8 years

Everyone wants their role to be added. This isn't for everyone.

While lucid is actually active at present, this thread is for fixing roles and mafia-related features. Improving the game itself is more important than adding a bunch of role clones.


Some role fixes

Some mafia features (emjack does all of these)

What should be focused on
30
Impeaching Bebop
17
Fixing bugs and role issues
12
The next Dino Quest chapter
8
Adding my role suggestion
7
Adding minigames
4
Adding QOL features to the base game
about 8 years
also remember to shift bits i forgot

r = (hex & 0xff0000) >> 16
g = (hex & 0x00ff00) >> 8
b = (hex & 0x0000ff) >> 0
about 8 years

cub says


desta says


nepenthe says


admin says

some of those colors are definitely too light..



nepenthe says

Just add a full colour picker (can be done in 1 line thanks to HTML5) and mark any colour that isn't dark enough as invalid imo


this is still the best solution

in fact, i made my own colour picker that excludes the too light colours and came to the conclusion that anything with the luminance (https://en.wikipedia.org/wiki/Relative_luminance) of 180 or less is definitely readable, but the threshold could go as far as 200

seriously, just include a colour picker please thanks


will lead to people using white as a colour or some other stuff thats gonna be annoying such as extremely bright colors


optimized luminosity formula

L = (r+r+g+g+g+b)/6

from a single hexadecimal value,
r = hex & 0xff0000
g = hex & 0x00ff00
b = hex & 0x0000ff

restrict L to < 100

alternatively, a compressed accurate luminosity formula from a hex value

L = (hex & 0xff0000) * 0.2126 + (hex & 0x00ff00) * 0.7152 + (hex & 0x0000ff) * 0.0722


yeah i guess i could just use the luminosity formula..
about 8 years

cub says


fartsnackle says

ok, some things about the cthulhu fix.

1. If you hold down a letter (O), it'll show up more in the message. this can still lead to cthulu being outted.
2. you are still mad in gy


string.replace(/(.)\1{2,}/g, "$1");

truncates characters repeating more than twice


ok, i just made the speech completely random
about 8 years
i think a more effective formula for role probability would be rolling dice on chance to roll first

if you have 6 probability on angel and 4 probability on lover, you get two rolls

assume each point of probability adds 2% chance for a maximum of 20%

first check 6/50 && angel open, if success roll angel

if fail check 4/50 && lover open, if success roll lover

if fail roll random
about 8 years

fartsnackle says

someone also said that to fix role probability, because apparently it doesn't work at all.


it works

its just so low probability that if you dont put all your beans on one role its an insignificant change
about 8 years

fartsnackle says

someone also said that to fix role probability, because apparently it doesn't work at all.


it does work it's just blindingly insignificant in large setups

role probability should probably scale to the number of roles in a setup since it's most common in sandbox yet works almost 100% of the time with classic setups
about 8 years

desta says


nepenthe says


admin says

some of those colors are definitely too light..



nepenthe says

Just add a full colour picker (can be done in 1 line thanks to HTML5) and mark any colour that isn't dark enough as invalid imo


this is still the best solution

in fact, i made my own colour picker that excludes the too light colours and came to the conclusion that anything with the luminance (https://en.wikipedia.org/wiki/Relative_luminance) of 180 or less is definitely readable, but the threshold could go as far as 200

seriously, just include a colour picker please thanks


will lead to people using white as a colour or some other stuff thats gonna be annoying such as extremely bright colors


optimized luminosity formula

L = (r+r+g+g+g+b)/6

from a single hexadecimal value,
r = hex & 0xff0000
g = hex & 0x00ff00
b = hex & 0x0000ff

restrict L to < 100

alternatively, a compressed accurate luminosity formula from a hex value

L = (hex & 0xff0000) * 0.2126 + (hex & 0x00ff00) * 0.7152 + (hex & 0x0000ff) * 0.0722
about 8 years
someone also said that to fix role probability, because apparently it doesn't work at all.
about 8 years

fartsnackle says

ok, some things about the cthulhu fix.

1. If you hold down a letter (O), it'll show up more in the message. this can still lead to cthulu being outted.
2. you are still mad in gy


string.replace(/(.)\1{2,}/g, "$1");

truncates characters repeating more than twice
about 8 years

nepenthe says


admin says

some of those colors are definitely too light..



nepenthe says

Just add a full colour picker (can be done in 1 line thanks to HTML5) and mark any colour that isn't dark enough as invalid imo


this is still the best solution

in fact, i made my own colour picker that excludes the too light colours and came to the conclusion that anything with the luminance (https://en.wikipedia.org/wiki/Relative_luminance) of 180 or less is definitely readable, but the threshold could go as far as 200

seriously, just include a colour picker please thanks


will lead to people using white as a colour or some other stuff thats gonna be annoying such as extremely bright colors

edit: nvm didnt read all of it
about 8 years
ok, some things about the cthulhu fix.

1. If you hold down a letter (O), it'll show up more in the message. this can still lead to cthulu being outted.
2. you are still mad in gy
about 8 years

admin says

some of those colors are definitely too light..



nepenthe says

Just add a full colour picker (can be done in 1 line thanks to HTML5) and mark any colour that isn't dark enough as invalid imo


this is still the best solution

in fact, i made my own colour picker that excludes the too light colours and came to the conclusion that anything with the luminance (https://en.wikipedia.org/wiki/Relative_luminance) of 180 or less is definitely readable, but the threshold could go as far as 200

seriously, just include a colour picker please thanks
about 8 years



sorry it looks messy lol. im not the best photoshop user
about 8 years
Wait, why would monkey work on non-visiting?

The monkey does as it sees. If it doesn't see anything...

Idk, either way works I guess but if it were up to me then I wouldn't have it work on non-visiting roles.

EDIT: Also, @Lucid: User Fred wants to know if you took a look at an email he sent you 2 weeks ago, he says he sent you some new assets.
about 8 years
ok, fixed cthulhu speech and made monkey work on non-visiting
about 8 years
about 8 years

hito says

adjust the height of mobile games so it fills the full screen. with whatever height it's currently set to menus get cut off when there's more than 8-9 people alive. real awful if you roll ww


posted in wrong thread oops repostin here
about 8 years

coolkidrox123 says













some of those colors are definitely too light..
about 8 years
when speccing, could you make it so that the different meetings show up in different "tabs"? like if you're maf at a party, you could switch between your maf meeting and party.
about 8 years

fartsnackle says

remove graphical mode,
fix the cthulu speech pattern and make it so people still arent cthulu'd in gy.


cthulhu should be pretty easy to fix, just make it use the whole alphabet instead of only a,b,c,d,e and not allow capital letters
about 8 years
remove graphical mode,
fix the cthulu speech pattern and make it so people still arent cthulu'd in gy.
about 8 years
at the moment it's very hard to get stickers that arent just the basic roles (villager,cop ect) because the chances of both playing a ranked game with uncommon roles, getting that role and winning with it are very low.

currently both the sticker giver and receiver have to have won as the role 8 times

lowering the win number for stickers would make them much more accessable

tldr; i want stickers lucid pls
deletedabout 8 years
https://epicmafia.com/game/5549604 monkey not working on watcher? watcher doesn't visit but the monkey description says it's by action not visit
deletedabout 8 years

nepenthe says


admin says


admin says

i'll also be upgrading text colors tomorrow. can someone come up with a decent palette of about 49 text colors that are visible


i'll give out 20 tokens for someone who can screenshot the palette of colors (making sure they are visible and samples the full spectrum)


Just add a full colour picker (can be done in 1 line thanks to HTML5) and mark any colour that isn't dark enough as invalid imo


agree
about 8 years

admin says


admin says

i'll also be upgrading text colors tomorrow. can someone come up with a decent palette of about 49 text colors that are visible


i'll give out 20 tokens for someone who can screenshot the palette of colors (making sure they are visible and samples the full spectrum)


Just add a full colour picker (can be done in 1 line thanks to HTML5) and mark any colour that isn't dark enough as invalid imo