PDA

View Full Version : Factions Randomizer



AnotherPersona
05-13-2013, 11:54 PM
Sir Brendan has some good concepts. I watch his stream and there these gems come cascading from him. While he has all this experience and game time and can never remember what anything is called :p. So we have the new banner idea covered in another thread - I am starting this one, so those who watch him can post his ideas for him. ^^ I'll start - He had the idea of a "random" button being applied to matches. Where it'd make your team just that - random. I believe the button should have a rank option, obviously, so that when you say... click on random at rank 6, it composes a team that will add up to 6 with what you currently own. So, if you have 3 raiders.. you might end up with one in your layout. I can also see discrediting that idea and forcing rank 1 for each unit, so as to not handicap a player.

I do like the idea for QM. Say it only chooses rank 2s for lvl 12, just takes it from the stock you have. While this could be exploited by having only so many rank 2s - so you know what your line-up will be; something you can work with, it wouldn't be that big of a deal, since it's only QM. It'd give some freshness to the game. I am, at points, bored with the limited options; yet I know that eventually there will be so many units.. it'll be hard to predict or prepare for anyone. And, when that time comes: this idea will be even that much better. :)

SeraphimLoki
05-14-2013, 01:23 PM
Honestly man, or stop drinking or start making some sense. Everytime i read your post i think i get what you are talking about but somehow in the middle i get lost. I read this post three times, i understand the beggining but in the middle im just lost.

Rensei
05-14-2013, 03:40 PM
He had the idea of a "random" button being applied to matches. Where it'd make your team just that - random. I believe the button should have a rank option, obviously, so that when you say... click on random at rank 6, it composes a team that will add up to 6 with what you currently own.

Here You go! Used up my last trial day productively :]

http://rensei.webs.com/FactionsRandomizer.swf - left-click to open in browser (it will be scaled up in size), right-click and "save target as" to have it on Your PC.
http://rensei.webs.com - open in browser (it won't be scaled).

Enable sounds - fun sounds will be played if enabled :]
Equal levels - all units will have the same level if enabled.

MinPower - minimum power of the randomized team. If "Equal levels" is enabled it will only jump between 0,6,12 and 18. If it gets bigger than max, the max slider will be pulled along.
MaxPower - maximum power of the randomized team. If "Equal levels" is enabled it will only jump between 0,6,12 and 18. If it gets smaller than min, the min slider will be pulled along.

If the two above are not equal a random power level will be taken from the min-max set.

AnotherPersona
05-14-2013, 03:50 PM
Loki, it's not *that* hard to understand.. and it is nice to give you a challenge. Your inability to comprehend my writing style delights me. Perhaps you should have a few drinks and enlightenment may ensue. :P Also.. Honestly Man, is that my super hero name? I shall destroy you.. with the truth! ^^

Rensei - That is pretty cool, gonna have to link Bold to that when he gets online. Did you make that?

Slimsy Platypus
05-14-2013, 06:51 PM
Here You go! Used up my last trial day productively :]


Holy cow this is soooooooo awesome! I can't wait to use this... now I just have to figure out how to get the web browser to show up on my stream! (someone techie help me!)

I love you guys!

Butters
05-14-2013, 07:13 PM
Here You go! Used up my last trial day productively :]

You are a magician !

Slimsy Platypus
05-14-2013, 07:43 PM
Ok I just used the random team generator for the first time! Since I cannot defy the gods of randomness (I dare not test what the Bloody Flail repercussions might be!), I went into battle with a rank 0 Shieldbanger! Would be nice for possibly a future version to have an option to prevent rank 0s!

thickenergy
05-14-2013, 07:59 PM
If you check the Equal Levels box you can only move the Min Power slider up to 6, 12, or 18, and will never get 0 rank units.

Slimsy Platypus
05-14-2013, 08:08 PM
Me and butters just did a Random v Random match, I ended up with only one Varl against him! (would be nice to add in a feature to force two Varl :) )

Butters
05-14-2013, 09:52 PM
You can see Slimsy crush me with his random p12 team here (http://www.twitch.tv/boldbrendan/c/2285452) :
I did a couple of random-team p6 matches after that, here (http://www.twitch.tv/butters_tbs/b/403656498) they are.

Butters
05-14-2013, 10:17 PM
Two more things I'd like to see in the randomizer (which is awesome, thanks a bunch Rensei !) :
1. Force 2 varls
2. exclude rank 0 units from pl>6 compos
For the moment I'm just ignoring the results that do not follow these rules. Hope that does not anger the RNG gods.
Although I guess with your trial period over, you're not going to be able to do anything about it are you ?
Somebody get her a Flash license already ! :)

Rensei
05-15-2013, 04:54 AM
Will publish the source code in this thread, when I'm back from work. Managed to make it nice and compact, while still easy to read.

I'm quite proud of it considering the tight schedule and fact, that it's actually working as intended :)

Keep the ideas/bug reports coming. I'm working on getting back into it, so if nobody steps in... I'll be back :]

EDIT: 3 raiders, 3 archers right off the bat... nice one Butters.

raven2134
05-15-2013, 07:08 AM
I have to really applaud you guys. A lot of suggestions came out in beta like this random team generator or new tourney formats, and you know what, you guys took the initiative to make them happen, even if it's from outside the game. I do a slow clap for that <clap><clap><clap>. Really awesome how people have stepped up on many occasions to not just give a suggestion, but make an idea happen :).

AnotherPersona
05-15-2013, 04:03 PM
*joins in slow clap*

Rensei
05-15-2013, 04:21 PM
http://www.sendspace.com/file/hmph75 - zipped *.exe file
(doesn't require browser involved ლ(ಠ益ಠლ) But at what cost? Will You trust me?).

http://www.sendspace.com/file/1l5l2o - source.

Aleonymous
05-18-2013, 07:53 AM
Another fun idea, another awesome applet! Cheers Slimsy/Rensei/Persona for making this happen. ;)

This would indeed be a really cool "mode" to have in-game, e.g. as an alternative to friendly-match (FM)! It will greatly help improve one's global view of the game's units and synergies etc, making FM-training much more fun & rewarding.

Rensei
05-21-2013, 07:54 AM
Update:
- two new checkboxes: "allow basic units" (disable to have no level 0 units randomized, also automatically increases minimum level to 6) and "force 2 Varls".
- testing new fonts
- testing new sounds

Butters
05-21-2013, 07:58 AM
oh Glob, the sounds... :rolleyes:

Rensei
05-21-2013, 08:09 AM
I'm thinking bout combining each unit with sound (banger - wookie roar, BB - "meep meep", WH - "doublekill!" from UT, level 0 unit - Adam Jensen "I never asked for this" etc. etc.).

Feel free to throw in Your ideas (and soundfiles).

Tinkering the option to use user provided sounds/images should the app find them in it's folder, and standard otherwise.

Rensei
05-26-2013, 12:32 PM
JAVAAAA!!!

http://rensei.webs.com/BSFRandomizer.jar - testing will be appreciated. No sounds or funky animations - Java sucks this way :(

Butters
05-26-2013, 01:21 PM
This is slightly less groovy than the flash version, but it does work.
On slight problem is that "force 2 varls" seems to put the varls in slots 1 and 2 systematically.

Aleonymous
05-26-2013, 02:00 PM
JAVAAAA!!!

http://rensei.webs.com/BSFRandomizer.jar - testing will be appreciated. No sounds or funky animations - Java sucks this way :(

Seems to work fine. :)

One small issue: The sliders are tied to what you've selected in the checkboxes "allow Rank0 units" and "force equal Ranks", in a manner that at first seems a little weird... I mean that the way they are inter-locked together is correct, but the "lock" they force on the sliders (the basic feature of this program) frustrates me. I would suggest that when attempting to change the sliders to an "invalid" setting, the program responds by highlighting the checkbox-criterion violated (or checks/unchecks it).

Rensei
05-26-2013, 03:22 PM
This is slightly less groovy than the flash version, but it does work.
On slight problem is that "force 2 varls" seems to put the varls in slots 1 and 2 systematically.

It's a side effect of an hotfix - for some reason with force 2 varls, every 4-5 spins would produce an additional level 3 Provoker... the damn guy forced me to make it a bit more solid.
I will either find the cause or put the randomized units in random slots... for some random inception.

Aleonymous
05-26-2013, 04:00 PM
It's a side effect of an hotfix - for some reason with force 2 varls, every 4-5 spins would produce an additional level 3 Provoker...

RNG returns as the source of trouble, eh? :D

Butters
05-26-2013, 05:14 PM
random inception.


http://i.imgur.com/fGpossd.png

Butters
06-14-2013, 04:43 AM
If AP agrees, would you mind renaming this thread to something more relevant to the (awesome, memes aside) content here ? "Rensei's Team Randomizer" or something of the sort.
I fear people not particularly following the forums may have trouble finding this fantastic tool, which would be a shame.

AnotherPersona
06-14-2013, 06:20 AM
Yea, go for it. Re-name away.

Guğmundr
06-14-2013, 06:53 PM
Thread renamed.

Aleonymous
06-28-2013, 01:43 AM
I've been using this randomizer app for some fun matches, and I would like to express a suggestion: How about a option/tickbox that forbids same-type units?

Aleonymous
11-07-2014, 09:06 AM
Inspired by Rensei's work, and trying to hone my own Java skills, I undertook the same project, adding a little extra functionality. Here is the result:


Aleo's TBSF RBG (Random Build Generator) (https://www.dropbox.com/s/m1chxqtwf3b9krz/Aleo_TBSF_RBG_v3.jar?raw=1)

Instructions: Download that Java-executable file (Aleo_TBSF_RBG_v3.JAR, it's about 1.5MB) to your computer, and double click to open it, just like a regular program. You need Java JRE v8 installed in your system to run this; chances are it's already installed for some reason or other, but you can check that here: "Do I have Java?" (http://java.com/en/). If you have Java v7, you can try to download this version (https://www.dropbox.com/s/6n8vs9ilwakvwp8/Aleo_TBSF_RBG_v3_Java7_noSFX.jar?raw=1), which is stripped of SFX at the moment. Anyway, if everything works right, a window like the following should appear:


https://www.dropbox.com/s/68qpxh23q8dg867/Aleo_TBSF_RBG_v3_Snapshot.png?raw=1

(*) Installing the game's default font (Vinque (http://www.dafont.com/vinque.font)) on your system is required to produce those viking fonts up there ;)

I hope everything is pretty self-explanatory there, but I'll take some time to guide you through it:

'Randomize' button (top right, blue) generates a random build; that's all you need to know :)
'Reset' button resets the RBG in it's initial state
'Shuffle' button randomly shuffles the current build order
'Snapshot' button stores the current build in a PNG file with a time-stamp (e.g. TBSF_Build_20141107_160755.png) in the same folder as the JAR file
There is a message-box below the buttons, displaying info about the state of the RBG.
The min-max range of the build Power is set with the slider in the top-left panel. In that panel there's also check-boxes to allow Rank-0 units and to force same ranks.
The min-max range of units of each of the four base-classes can be set in the with the 2x4=8 sliders in the middle-panel. In that panel there's also check-boxes to force 2 Varl units (min=0 & max=2 for Warriors & Shieldbangers) and to forbid same-promoted-class units. Finally, there's a button that sets the mix to 'Standard Build', i.e. two Raiders, two Archers, one Warrior and one Shieldbanger.
The RBG should take care of any invalid choices you make (an error message should appear in the window, and the sliders should be reset), but please remember these restrictions: (1) No more than 2 Varl units, (2) No less than 4 human units, (3) No more than 3 Raiders or 3 Archers.


Finally, a note on how my RBG algorithm works: It finds all the valid combinations of units, taking into account the user restrictions too (i.e. the sliders in middle-panel), and then randomly selects one of those combinations. For the record, leaving everything unrestricted yields exactly 14 different valid combinations (e.g. [3R 3A], [1W 1SB 2R 2A], [2W 3A 1R] and so on), whereas the order of the units is not taken into account (i.e. [3R 3A] is the same as [3A 3R]). Here is a list of all 14 valid combinations:



W SB R A
-------------------
2 0 3 1
2 0 2 2
2 0 1 3
0 2 3 1
0 2 2 2
0 2 1 3
1 1 3 1
1 1 2 2 <-- "Standard" build
1 1 1 3
...................
1 0 3 2
1 0 2 3
0 1 3 2
0 1 2 3
...................
0 0 3 3


The ranks of the units are generated in much the same way. So, for a power-6 build, it might produce the {3,3,0,0,0,0} rank-set with equal probability as the more "regular" {1,1,1,1,1,1} or {2,1,1,1,1,0} rank-sets.

That's all. Enjoy & comment! :)

PS -- Cross-linking to my "Equiprobable Random Build" (ERB) set definition (http://stoicstudio.com/forum/showthread.php?3414-Next-Factions-Community-Tournament-Discussion&p=30826&viewfull=1#post30826), for future referemce.

stoicmom
11-07-2014, 07:24 PM
AWESOME ALEO :cool:

Arnie
11-08-2014, 09:54 AM
Wow, this is totally cool, Aleo! Grrr, I wanna get Factions supported pretty bad now. We're working on it...

Aleonymous
11-08-2014, 06:54 PM
Trying to tease you guys into pouring some water in this mill too! :p