Page 2 of 2 FirstFirst 1 2
Results 21 to 33 of 33

  Click here to go to the first staff post in this thread.   Thread: Factions Randomizer

  1. #21
    Senior Member Butters's Avatar
    Join Date
    Nov 2012
    Location
    Tokyo, Japan
    Posts
    303
    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.

  2. #22
    Skald Aleonymous's Avatar
    Join Date
    Mar 2013
    Location
    Greece
    Posts
    2,444
    Quote Originally Posted by Rensei View Post
    JAVAAAA!!!

    https://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).

  3. #23
    Senior Member Rensei's Avatar
    Join Date
    Mar 2013
    Location
    Wrocław
    Posts
    237
    Quote Originally Posted by Butters View Post
    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.

  4. #24
    Skald Aleonymous's Avatar
    Join Date
    Mar 2013
    Location
    Greece
    Posts
    2,444
    Quote Originally Posted by Rensei View Post
    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?

  5. #25
    Senior Member Butters's Avatar
    Join Date
    Nov 2012
    Location
    Tokyo, Japan
    Posts
    303
    Quote Originally Posted by Rensei View Post
    random inception.

    Last edited by Butters; 05-26-2013 at 05:16 PM.

  6. #26
    Senior Member Butters's Avatar
    Join Date
    Nov 2012
    Location
    Tokyo, Japan
    Posts
    303
    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.

  7. #27
    Member AnotherPersona's Avatar
    Join Date
    Apr 2013
    Location
    USA, Michigan
    Posts
    84
    Yea, go for it. Re-name away.

  8. #28
    Community Moderator Guğmundr's Avatar
    Join Date
    May 2012
    Location
    Skogr, Setterlund
    Posts
    822
    Thread renamed.
    Án brynju, mağur er varnarlaus. Án styrks, er hann ekkert.

  9. #29
    Skald Aleonymous's Avatar
    Join Date
    Mar 2013
    Location
    Greece
    Posts
    2,444
    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?

  10. #30
    Skald Aleonymous's Avatar
    Join Date
    Mar 2013
    Location
    Greece
    Posts
    2,444
    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:


    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?". If you have Java v7, you can try to download this version, which is stripped of SFX at the moment. Anyway, if everything works right, a window like the following should appear:


    (*) Installing the game's default font (Vinque) 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:

    Code:
    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, for future referemce.
    Last edited by Aleonymous; 03-28-2018 at 09:03 AM. Reason: typos; ERBz! ; Link was broken
    Together we stand, divided we fall.

  11. #31
    Factions veteran stoicmom's Avatar
    Join Date
    May 2012
    Location
    Oak Ridge, TN
    Posts
    290
    AWESOME ALEO

  12.   This is the last staff post in this thread.   #32
    Art Director Arnie's Avatar
    Join Date
    Apr 2012
    Posts
    319
    Wow, this is totally cool, Aleo! Grrr, I wanna get Factions supported pretty bad now. We're working on it...

  13. #33
    Skald Aleonymous's Avatar
    Join Date
    Mar 2013
    Location
    Greece
    Posts
    2,444
    Trying to tease you guys into pouring some water in this mill too!
    Together we stand, divided we fall.

Page 2 of 2 FirstFirst 1 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •