Random Generator (Mafia Scum Tools) is complete!

This forum is for discussion related to the game.
User avatar
NerdNetworkAdmin
NerdNetworkAdmin
Townie
User avatar
User avatar
NerdNetworkAdmin
Townie
Townie
Posts: 26
Joined: May 26, 2004
Location: Australia
Contact:

Random Generator (Mafia Scum Tools) is complete!

Post Post #0 (ISO) » Thu Jun 24, 2004 7:57 pm

Post by NerdNetworkAdmin »

MAFIA SCUM TOOLS is finally released!!!


As promised, I have released Mafia Scum Tools version 1.0. This features all of the changes from the development versions, and a nicer layout of the code.

For those not familiar with this project, it provides the following features. It:
- Randomly allocates a name to a title, which are specified throught the input process
- Allows users to specify the names and titles immediately from a list of names, each on a new line, which makes it easy to copy from forums, such as this one.
- Displays data in a format suitable to copying back into a forum
- Alerts you of any errors that have occured, which makes it less likely for you to make a mistake.
- Is free, with a GPL license.
- Can be hosted on YOUR site as well, just follow the link at the bottom of this post, or the mafia scum tool's footer.

To try out this client, go here: http://users.quickfox.org/~nerd-network/mafia/
To download the source and run it on your own server, go here: http://users.quickfox.org/~nerd-network/
**These servers may be a little slow, due to quickfox's popularity.

NOTE TO ALL: If anyone is willing to mirror the download files on a reasonably fast server, please let me know.

NOTE TO JEZ, MITH AND ANY OTHER DEV'S: You are more than welcome to run this on your server, seeing as I made it for this forum in particular. :wink:

IF THERE ARE ANY PROBLEMS WITH IT, PLEASE POST THEM HERE ASAP!
User avatar
Guest
Guest
User avatar
User avatar
Guest

Post Post #1 (ISO) » Fri Jun 25, 2004 8:15 pm

Post by Guest »

Mozilla wrote: The connection was refused when attempting to contact users.quickfox.org
User avatar
NerdNetworkAdmin
NerdNetworkAdmin
Townie
User avatar
User avatar
NerdNetworkAdmin
Townie
Townie
Posts: 26
Joined: May 26, 2004
Location: Australia
Contact:

Post Post #2 (ISO) » Sat Jun 26, 2004 1:48 pm

Post by NerdNetworkAdmin »

Hmmm.... Sounds like QuickFox.org was down (again). It's working again now.

Has anyone else had any troubles with it?
Mafia Scum Tools is now available at: http://adv-random-gen.sf.net/rand-gen/mafia/ .
User avatar
NerdNetworkAdmin
NerdNetworkAdmin
Townie
User avatar
User avatar
NerdNetworkAdmin
Townie
Townie
Posts: 26
Joined: May 26, 2004
Location: Australia
Contact:

Post Post #3 (ISO) » Mon Jul 12, 2004 8:15 pm

Post by NerdNetworkAdmin »

If anyone is still interested :? , I have hosted the mafia scum tools download site on a FAST server, now available for download and use.

Please see: http://nerd-network.au.tt/mafia .

Is anyone still interested?
User avatar
mathcam
mathcam
Captain Observant
User avatar
User avatar
mathcam
Captain Observant
Captain Observant
Posts: 6116
Joined: November 22, 2002

Post Post #4 (ISO) » Mon Jul 12, 2004 8:56 pm

Post by mathcam »

Hey, pretty cool. I'll probably use for it modding chat games if nothing else.

Cam
User avatar
NerdNetworkAdmin
NerdNetworkAdmin
Townie
User avatar
User avatar
NerdNetworkAdmin
Townie
Townie
Posts: 26
Joined: May 26, 2004
Location: Australia
Contact:

Post Post #5 (ISO) » Mon Jul 12, 2004 9:28 pm

Post by NerdNetworkAdmin »

Thanks... That's the first real bit of feedback I've had since I released version 1.0 :wink: .

Everyone please remember that I would like to hear of suggestions too.
Mafia Scum Tools is now available at: http://adv-random-gen.sf.net/rand-gen/mafia/ .
User avatar
shadyforce
shadyforce
U-S-E_T-H-E_F-O-R-C-E
User avatar
User avatar
shadyforce
U-S-E_T-H-E_F-O-R-C-E
U-S-E_T-H-E_F-O-R-C-E
Posts: 951
Joined: August 21, 2003
Location: Dublin

Post Post #6 (ISO) » Tue Jul 13, 2004 4:13 am

Post by shadyforce »

Yeah, I always use it for chat games, but I haven't started a full game since it's completion. It's cool.
[size=75][color=darkblue]I'm never wrong... well I was wrong once but that was when I thought I'd made a mistake but hadn't.[/color][/size]
User avatar
PolarBoy
PolarBoy
Sir Not-Appearing-In-This-Mafia
User avatar
User avatar
PolarBoy
Sir Not-Appearing-In-This-Mafia
Sir Not-Appearing-In-This-Mafia
Posts: 358
Joined: February 28, 2003

Post Post #7 (ISO) » Tue Jul 13, 2004 6:09 am

Post by PolarBoy »

I used it for a couple of chat games actually. It worked very effectively.
MUNSCM Delegate for the United Kingdom
Check out the [url=http://www.mafiascum.net/cgi-bin/wiki.pl?HomePage]ScumWiki[/url], and while you're at it, check out [url=http://www.mafiascum.net/cgi-bin/wiki.pl?DocumentModeMafia]DocumentModeMafia[/url]
User avatar
mathcam
mathcam
Captain Observant
User avatar
User avatar
mathcam
Captain Observant
Captain Observant
Posts: 6116
Joined: November 22, 2002

Post Post #8 (ISO) » Tue Jul 13, 2004 8:26 am

Post by mathcam »

Here's a suggestion. One way that I like to run games is to randomly distribute roles from a superset.

For example, I'd like to have a "deck" of 2 cop roles, 2 doc roles, 10 townie, and 4 mafia, or something like this. Then when I specify that there are 7 players, it should randomly pick 7 of these roles and assign them.

So my suggestion is that if there are more roles than players, randomly pick a subset of them (equal in size to the number of players) and then match up roles and players as usual.

Cam
User avatar
Norinel
Norinel
Not Voting (3)
User avatar
User avatar
Norinel
Not Voting (3)
Not Voting (3)
Posts: 1684
Joined: March 2, 2003
Location: My computer

Post Post #9 (ISO) » Tue Jul 13, 2004 1:50 pm

Post by Norinel »

It looks like it already does that, just not very prettily.
User avatar
NerdNetworkAdmin
NerdNetworkAdmin
Townie
User avatar
User avatar
NerdNetworkAdmin
Townie
Townie
Posts: 26
Joined: May 26, 2004
Location: Australia
Contact:

Post Post #10 (ISO) » Tue Jul 13, 2004 4:54 pm

Post by NerdNetworkAdmin »

mathcam: If I understand what you want correctly, I see a problem. What happens if it doesn't specify any cops? Or mafia scum? It is feasible that it might exclude them. If you clarify your idea, I will be more than happy to attempt to incorporate it.

Thanks for all the feedback guys :wink: .
Mafia Scum Tools is now available at: http://adv-random-gen.sf.net/rand-gen/mafia/ .
User avatar
Lord Gurgi
Lord Gurgi
Mostly Harmless
User avatar
User avatar
Lord Gurgi
Mostly Harmless
Mostly Harmless
Posts: 3369
Joined: March 26, 2004

Post Post #11 (ISO) » Tue Jul 13, 2004 5:18 pm

Post by Lord Gurgi »

how about making it so at least one of everything is included, then random distribution afterward.
(11:26:07 PM) thesheamuffin: I'm counting gurgi because I would probably make out with him if I were drunk enough
User avatar
mathcam
mathcam
Captain Observant
User avatar
User avatar
mathcam
Captain Observant
Captain Observant
Posts: 6116
Joined: November 22, 2002

Post Post #12 (ISO) » Tue Jul 13, 2004 7:52 pm

Post by mathcam »

Norinel, it tells me I have too many roles to be distributed, unless you found a neat way of bypassing this.

Nerd: No cops is fine, but the mafia would indeed be a problem. I guess this is more elaborate a suggestion that I originally, thought, then. If you wanted to do this full force, though, you could specify a range for each role...

Between 1 and 2 cops.
Between 1 and 1 docs.
Between 2 and 4 mafia.
Between 6 and 10 townies,
with a total of 12 people.

And then run an algorithm which randomly assigns the roles within those parameters.

Again, this isn't a huge deal, but if you're looking for something to do...

Cam
User avatar
ralphmerridew
ralphmerridew
Goon
User avatar
User avatar
ralphmerridew
Goon
Goon
Posts: 229
Joined: May 7, 2002

Post Post #13 (ISO) » Wed Jul 14, 2004 2:28 pm

Post by ralphmerridew »

You can use sourceforge.net as a distribution point.
User avatar
NerdNetworkAdmin
NerdNetworkAdmin
Townie
User avatar
User avatar
NerdNetworkAdmin
Townie
Townie
Posts: 26
Joined: May 26, 2004
Location: Australia
Contact:

Post Post #14 (ISO) » Wed Jul 14, 2004 2:50 pm

Post by NerdNetworkAdmin »

Lord Gurgi:
how about making it so at least one of everything is included, then random distribution afterward.
That is very easy to put in, but it could annoy a few people. By leaving it unset, it allows people an easier task of putting other values in. If you press "Validate and Submit Data", any number field that isn't entered into becomes 0. If the majority of people out there want it, I can make this 1.
Mathcam:
Norinel, it tells me I have too many roles to be distributed, unless you found a neat way of bypassing this.
When I put javascript validation into the code, it disallowed this. It will be a minor change to make it a query instead of an alert. If you want this, let me know.
mathcam
Nerd: No cops is fine, but the mafia would indeed be a problem. I guess this is more elaborate a suggestion that I originally, thought, then. If you wanted to do this full force, though, you could specify a range for each role...

Between 1 and 2 cops.
Between 1 and 1 docs.
Between 2 and 4 mafia.
Between 6 and 10 townies,
with a total of 12 people.

And then run an algorithm which randomly assigns the roles within those parameters.

Again, this isn't a huge deal, but if you're looking for something to do...

Cam
If I made the change specified above, this would be obselete. The problem with this suggestion is that it allows for a greater human error. However, with the query above, it should then work fine.
ralphmerridew
You can use sourceforge.net as a distribution point.
Should I? It is up to you as the reader to decide. Is this project big enough to be hosted there? :?:

Regards,
Nerd Network Administrator
User avatar
ralphmerridew
ralphmerridew
Goon
User avatar
User avatar
ralphmerridew
Goon
Goon
Posts: 229
Joined: May 7, 2002

Post Post #15 (ISO) » Thu Jul 15, 2004 2:04 pm

Post by ralphmerridew »

A project doesn't have to be big to be distributed from sourceforge.
User avatar
NerdNetworkAdmin
NerdNetworkAdmin
Townie
User avatar
User avatar
NerdNetworkAdmin
Townie
Townie
Posts: 26
Joined: May 26, 2004
Location: Australia
Contact:

Post Post #16 (ISO) » Thu Jul 15, 2004 3:39 pm

Post by NerdNetworkAdmin »

MAFIA SCUM TOOLS WILL BE HOSTED AT SOURCEFORGE


The project has been accepted and is located at : adv-random-gen.sourceforge.net.

May take a while to put it there, but just so you know.
User avatar
NerdNetworkAdmin
NerdNetworkAdmin
Townie
User avatar
User avatar
NerdNetworkAdmin
Townie
Townie
Posts: 26
Joined: May 26, 2004
Location: Australia
Contact:

Post Post #17 (ISO) » Sat Jul 17, 2004 8:42 pm

Post by NerdNetworkAdmin »

Ok everyone... It is hosted at sourceforge.net

URL = http://adv-random-gen.sourceforge.net
Project url = http://sourceforge.net/projects/adv-random-gen

I look forward to having you suggest improvements and such, whether it be throught the website, this forum, or my email.

Thankyou for your interest.
Mafia Scum Tools is now available at: http://adv-random-gen.sf.net/rand-gen/mafia/ .
User avatar
bigbenwd
bigbenwd
got thread?
User avatar
User avatar
bigbenwd
got thread?
got thread?
Posts: 826
Joined: November 18, 2003
Location: Chicago, IL
Contact:

Post Post #18 (ISO) » Tue Nov 16, 2004 2:16 pm

Post by bigbenwd »

none of the links are working right now, although it was great when it was made.
"Plato is a lot of fun. It comes in many colors. You can put it through the plato fun factory, and make spaghetti out of it. You shouldn't eat it, but if you do, your poop turns different colors."
-Werebear
User avatar
Malaprop
Malaprop
Goon
User avatar
User avatar
Malaprop
Goon
Goon
Posts: 231
Joined: September 30, 2003
Location: Chi-town
Contact:

Post Post #19 (ISO) » Tue Nov 16, 2004 7:30 pm

Post by Malaprop »

The copy of the tools hosted on sf.net isn't working, it's complaining about missing files.

If you'd like a hand, drop me a pm or im, I've been on a few sf.net projects and know my way around there decently. And I'm a big, big PHP geek.
[size=84]gim sumun.bi shà-thir-ma u ba-rì[/size]
User avatar
Macros
Macros
Fear the Random Hobos
User avatar
User avatar
Macros
Fear the Random Hobos
Fear the Random Hobos
Posts: 715
Joined: April 6, 2002
Location: everywhere

Post Post #20 (ISO) » Thu Nov 18, 2004 2:26 am

Post by Macros »

i used it the other day fine
Oh the huge manatee!!
User avatar
bigbenwd
bigbenwd
got thread?
User avatar
User avatar
bigbenwd
got thread?
got thread?
Posts: 826
Joined: November 18, 2003
Location: Chicago, IL
Contact:

Post Post #21 (ISO) » Thu Nov 18, 2004 2:36 pm

Post by bigbenwd »

maybe it's just a cool chicago people thing? :lol: :P
"Plato is a lot of fun. It comes in many colors. You can put it through the plato fun factory, and make spaghetti out of it. You shouldn't eat it, but if you do, your poop turns different colors."
-Werebear
User avatar
Malaprop
Malaprop
Goon
User avatar
User avatar
Malaprop
Goon
Goon
Posts: 231
Joined: September 30, 2003
Location: Chi-town
Contact:

Post Post #22 (ISO) » Thu Nov 18, 2004 7:25 pm

Post by Malaprop »

The front page loads up fine, but when I click "Mafia Scum Tools" from the list at the left, the main frame reloads to read:
Warning: Failed opening 'rand-gen/mafia.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/groups/a/ad/adv-random-gen/htdocs/index.php on line 52
[size=84]gim sumun.bi shà-thir-ma u ba-rì[/size]
User avatar
Macros
Macros
Fear the Random Hobos
User avatar
User avatar
Macros
Fear the Random Hobos
Fear the Random Hobos
Posts: 715
Joined: April 6, 2002
Location: everywhere

Post Post #23 (ISO) » Fri Nov 19, 2004 2:07 am

Post by Macros »

click random generator shell, then mafiascum tools version 1.2, click the use it! button.
Oh the huge manatee!!
User avatar
NerdNetworkAdmin
NerdNetworkAdmin
Townie
User avatar
User avatar
NerdNetworkAdmin
Townie
Townie
Posts: 26
Joined: May 26, 2004
Location: Australia
Contact:

Post Post #24 (ISO) » Tue Dec 07, 2004 6:26 pm

Post by NerdNetworkAdmin »

Hey! :)

Sorry for my delayed message, but as you might have noticed (if you read the news on the site), I have lost the use of my computer for quite a while now, and have not been able to remedy the problem. Even now, I cannot - seeing as I am using my dad's computer, and my files are on my 200GB hd which was in my (now deceased) computer.

I will fix the problem ASAP (most likely shortly after New Year).

I'm glad you like the utilty too.

Regards,
Matthew (Nerd Nation Admin <- Notice change in name)
Mafia Scum Tools is now available at: http://adv-random-gen.sf.net/rand-gen/mafia/ .
Post Reply

Return to “Mafia Discussion”