Dominion Strategy Forum

Please login or register.

Login with username, password and session length
Pages: 1 [2] 3  All

Author Topic: I made a randomizer  (Read 18167 times)

0 Members and 2 Guests are viewing this topic.

werothegreat

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 8172
  • Shuffle iT Username: werothegreat
  • Let me tell you a secret...
  • Respect: +9630
    • View Profile
Re: I made a randomizer
« Reply #25 on: June 23, 2016, 08:57:19 am »
0

when the wiki goes down.

:(

You just made my morning very sad...
Logged
Contrary to popular belief, I do not run the wiki all on my own.  There are plenty of other people who are actively editing.  Go bother them!

Check out this fantasy epic adventure novel I wrote, the Broken Globe!  http://www.amazon.com/Broken-Globe-Tyr-Chronicles-Book-ebook/dp/B00LR1SZAS/

Deadlock39

  • Torturer
  • *****
  • Offline Offline
  • Posts: 1722
  • Respect: +1758
    • View Profile
Re: I made a randomizer
« Reply #26 on: June 23, 2016, 09:06:55 am »
0

when the wiki goes down.

:(

You just made my morning very sad...

To clarify, I am only referring to temporary outages, like a few days ago when the unexpected forum migration happened.

Also, to mitigate issues like the massive slow down that occurred when everyone was here checking out the new Empires stuff. (or maybe that one was just the French/Chinese DOS attack that happened, I don't remember)

Awaclus

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 11817
  • Shuffle iT Username: Awaclus
  • (´。• ω •。`)
  • Respect: +12870
    • View Profile
    • Birds of Necama
Re: I made a randomizer
« Reply #27 on: June 23, 2016, 09:16:33 am »
+3

when the wiki goes down.

:(

You just made my morning very sad...

Plot twist: the official Dominion wiki has been licensed to Goko and now w.ds has to be shut down.
Logged
Bomb, Cannon, and many of the Gunpowder cards can strongly effect gameplay, particularly in a destructive way

The YouTube channel where I make musicDownload my band's Creative Commons albums for free

LibraryAdventurer

  • Torturer
  • *****
  • Offline Offline
  • Posts: 1799
  • Shuffle iT Username: LibraryAdventurer
  • I wish my username had the links like it once did.
  • Respect: +1686
    • View Profile
Re: I made a randomizer
« Reply #28 on: July 06, 2016, 04:09:02 pm »
0

Cool, I didn't notice till now that the UI has been added. I'll have to put this to use.

Only thing that would make it perfect for me would be the ability to give it a list of fan cards to throw into the randomizer. (No need for pictures of fan cards when it gives the result, just having it print the name would work fine.)
EDIT: and save previous settings
« Last Edit: July 06, 2016, 06:32:44 pm by LibraryAdventurer »
Logged

Deadlock39

  • Torturer
  • *****
  • Offline Offline
  • Posts: 1722
  • Respect: +1758
    • View Profile
Re: I made a randomizer
« Reply #29 on: July 06, 2016, 06:15:18 pm »
+2

It should work, but it would seem my first pass on the design didn't pass usability testing. ;)

The trick is, you need to press enter after typing something in. Pressing enter will always select the top most suggestion at that moment, so you can bias Empires by just entering "e" and pressing enter. (Sets are sorted above cards) The issue I will get fixed is that I don't consume the values in the input boxes when you click "Randomize", so that is probably why it isn't working for you.  I also plan to make it pull in values automatically when a ',' is typed because the auto complete gets a bit laggy when the string gets long.

Adding support for inputting Fan cards isn't something that would be too tricky, so I'll look into doing it when I get a few other things finished.

Definitely let me know if anyone has suggestions that aren't already in my ToDo list in the first post.

Edit: I've pushed the usability updates.  Any input that contains a comma is immediately processed. Input left in the boxes is processed before transferring to the randomizer.

Edit 2: I also pushed an update to save the most recent settings in local storage so they are automatically populated when you return to the page.
« Last Edit: July 06, 2016, 10:53:10 pm by Deadlock39 »
Logged

gkrieg13

  • Minion
  • *****
  • Offline Offline
  • Posts: 509
  • Shuffle iT Username: gkrieg
  • Respect: +463
    • View Profile
Re: I made a randomizer
« Reply #30 on: July 07, 2016, 02:00:12 am »
+1

I tried to use this today and I excluded cornucopia (which was spelled wrong?) and still got tournament in my randomization. The bug may be caused by an extra u in cornucopia
Logged

Deadlock39

  • Torturer
  • *****
  • Offline Offline
  • Posts: 1722
  • Respect: +1758
    • View Profile
Re: I made a randomizer
« Reply #31 on: July 07, 2016, 09:34:30 am »
+1

I tried to use this today and I excluded cornucopia (which was spelled wrong?) and still got tournament in my randomization. The bug may be caused by an extra u in cornucopia

Thanks.  You are correct.  I misspelled Cornucopia in the list the autocomplete uses, but it is spelled correct in the randomizer.  If you adjust the URL it produces to remove the extra 'u', it will generate properly. I'll probably be able to get it fixed sometime today.

Edit: The Cornucopia bug is fixed.
« Last Edit: July 07, 2016, 02:06:57 pm by Deadlock39 »
Logged

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 9709
  • Respect: +10765
    • View Profile
Re: I made a randomizer
« Reply #32 on: July 07, 2016, 03:31:16 pm »
0

The one I always use is this one: http://www.hiwiller.com/dominion/

But it doesn't have Events and also the card Prince is missing for some reason. I would use any randomizer that is actually complete, and yours seems to be, so thanks! :)

Edit: Oh, except that the bias and exclude functions don't seem to work, I just get no cards when I try that out...

Oh wow, you've made me realize I stupidly forgot to add the promos. I'll probably get them added in this evening, and might add logic for Young Witch.

Do the links I posted with bias/exclude work for you?  Can you post a link that isn't giving you any cards?  (I'm not sure my error handling is very good right now.)

Here's a little trick:

The images are stored in cryptic locations, but there's a way to find out where.

First, we need the base URL which is http://wiki.dominionstrategy.com/images/thumb/
Then we need the filename, including .jpg, for instance Village.jpg
This filename is hashed with MD5 and displayed as hex, in this case we get 5ab681de1aca02763ed2d6a4d1ce8839
The first 2 characters are the only ones that matter, we need to append them to te URL like so: http://wiki.dominionstrategy.com/images/thumb/firstChar/first2Chars -> http://wiki.dominionstrategy.com/images/thumb/5/5a
Then we use the filename as a subfolder: http://wiki.dominionstrategy.com/images/thumb/5/5a/Village.jpg
Finally, we can pick the right sized one: http://wiki.dominionstrategy.com/images/thumb/5/5a/Village.jpg/76px-Village.jpg

Beware: Not all cards have all resolutions, for instance Worker's Village only has 120 and 180px!

That sounds useful.  Do you know why the file finding link can't find those thumb files?  If they all have 180px versions, I'd be set, but if some of them are missing, it might be more trouble than it is worth.

Sorry I didn't see this sooner. I needed the images for my extension; michaeljb gave me the answer:

Quote
http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Artificer.jpg
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

Deadlock39

  • Torturer
  • *****
  • Offline Offline
  • Posts: 1722
  • Respect: +1758
    • View Profile
Re: I made a randomizer
« Reply #33 on: July 07, 2016, 05:28:36 pm »
+1

Sorry I didn't see this sooner. I needed the images for my extension; michaeljb gave me the answer:

Quote
http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Artificer.jpg

Yeah, I got to that solution, and it is working, but I am not totally happy with how long the large files take to load. Unfortunately, attempting to pass a thumb file to that link does not work.

Davio outlined a method that can be used to find the thumb files, which I am considering implementing, but I am also considering just copying them locally so it can continue running even if the blog is down for whatever reason.

Garth One-eye

  • Chancellor
  • ***
  • Offline Offline
  • Posts: 20
  • Respect: +22
    • View Profile
Re: I made a randomizer
« Reply #34 on: July 19, 2016, 03:32:15 pm »
0

Would it be possible to create an option to just list the cards picked in text form?
Logged

Chris is me

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2745
  • Shuffle iT Username: Chris is me
  • What do you want me to say?
  • Respect: +3458
    • View Profile
Re: I made a randomizer
« Reply #35 on: July 19, 2016, 03:44:15 pm »
0

If you want to add a fun feature that is probably kind of difficult, some way to either swipe out cards, or to reshuffle while "holding" certain piles in place, would be invaluable to me.
Logged
Twitch channel: http://www.twitch.tv/chrisisme2791

bug me on discord

pm me if you wanna do stuff for the blog

they/them

Deadlock39

  • Torturer
  • *****
  • Offline Offline
  • Posts: 1722
  • Respect: +1758
    • View Profile
Re: I made a randomizer
« Reply #36 on: July 19, 2016, 04:17:52 pm »
+2

Would it be possible to create an option to just list the cards picked in text form?

Yeah, a "low bandwidth" mode is something I've been considering, but I'm not sure it will be high on my priority list too soon.

If you want to add a fun feature that is probably kind of difficult, some way to either swipe out cards, or to reshuffle while "holding" certain piles in place, would be invaluable to me.

This is definitely in my plans. It will be one of the next few features I add in.

I'm not finding as much time to put into it as I'd like, but I do have some UI updates that I've finished up, plus an "include only" list to add versatility to setting up the card pool. I expect to update with those changes as soon as I finish some work to use lower resolution image sources.

Deadlock39

  • Torturer
  • *****
  • Offline Offline
  • Posts: 1722
  • Respect: +1758
    • View Profile
Re: I made a randomizer
« Reply #37 on: July 20, 2016, 11:25:38 pm »
+1

New updates are live. Images now load from my site instead of from the wiki, and are sized appropriately, so the kingdoms will load much faster.

New "Include Only" option has been added. If you only own a couple sets, or want to randomize from just a few sets this makes things easier on you. Add the cards you want to use to the include only list instead of adding everything else to Exclude.  Exclusions will still be applied after the Inclusions.

Cards are styled to look like cards now. I'm sure this is subjective since it makes the art smaller, but I like it better this way.

Deadlock39

  • Torturer
  • *****
  • Offline Offline
  • Posts: 1722
  • Respect: +1758
    • View Profile
Re: I made a randomizer
« Reply #38 on: July 26, 2016, 11:23:46 pm »
+1

I pushed an update to the site tonight.

The major addition to the picker is that it will select the Black Market deck now.
To see an example, click here

I also have a really (really really) rough Virtual Black Market up that will open if you click on "Black Market Deck" from the randomizer.
I've got some significant rework to do to share my card resources between the two pages for displaying the images.

Deadlock39

  • Torturer
  • *****
  • Offline Offline
  • Posts: 1722
  • Respect: +1758
    • View Profile
Re: I made a randomizer
« Reply #39 on: August 05, 2016, 12:02:58 am »
+2

Hey guys, I finally had some time to add one of the most glaring deficiencies in this thing (after I side tracked to create the Black Market simulator). 

You can now repick cards after the Kingdom has been generated. Now you get rid of Rebuild even if you didn't put it in the exclude list without re-rolling the entire board.

I also made some cosmetic improvements to the way I mark the Obelisk card and the Young Witch Bane card.

BlackHole

  • Baron
  • ****
  • Offline Offline
  • Posts: 50
  • Respect: +57
    • View Profile
Re: I made a randomizer
« Reply #40 on: August 07, 2016, 04:33:42 pm »
+2

Those updates are awesome!

However I have to report a few bugs:
- it appeares like you cant repick the bane card
EDIT: wrong, is only the case if you pick: 'include only: cornucopia'
- the shelters dont disappear after repicking even if there are no more dark ages cards in the kingdom, looks like the condition isnt checked again, same with colony/platinum
- the 'obelisk marker' (very nice idea!) seems to appear on cards even if obelisk isnt in play. it doesnt go away if you repick the chosen card. Only when you finally get to play with obelisk (after repicking a landmark until it finally appears :D) and then repick obelisk, the marker disappears, too.

And I think it would be quite nice that if you repick an event it can change to a landmark and the other way round.
I really appreciate the simulator!! ;)
« Last Edit: August 07, 2016, 04:44:18 pm by BlackHole »
Logged

Deadlock39

  • Torturer
  • *****
  • Offline Offline
  • Posts: 1722
  • Respect: +1758
    • View Profile
Re: I made a randomizer
« Reply #41 on: August 07, 2016, 05:26:21 pm »
+1

Thanks for the report.

The Bane thing is a result of having no valid cards left in the picker to select for the Bane. Now, maybe the Bane should go away in this case, because the ruling on having no valid Banes is that there just isn't one for that board. I am seeing a bug here though because there is a null reference occurring when it tries to add Young Witch when there are no valid Banes.  I am pretty sure that was previously working, so it should be a quick fix.

The Shelter/Colony thing is a known thing.  I intend to tag the card that was picked for the Shelter/Colony selection, and re-roll for them if that card is vetoed, but just haven't done it yet.

I am not seeing the Obelisk maker issue. Maybe one of the scripts is cached on your machine.  If you can, try pressing ctrl+f5 to force a reload. If you're using a phone, I'm not sure how to trigger it.  I will make sure I add a new version tag to all the scripts when I fix the bane bug. It might also be a browser difference or something. I pretty much only test this on Windows/Chrome, so let me know what you are using if you can't get it to clear up.

I'll think about the event/landmark thing.  The way it is was most intuitive to me, but there are lots of different ways it could be handled. (e.g. Jack of All Dominion adds more events in when cards are repicked as if you were just continuing through the randomizer.)  It might be nice to have a way to "re-roll" the entire set of events/landmarks.

BlackHole

  • Baron
  • ****
  • Offline Offline
  • Posts: 50
  • Respect: +57
    • View Profile
Re: I made a randomizer
« Reply #42 on: August 08, 2016, 04:59:29 am »
+1

I am not seeing the Obelisk maker issue. Maybe one of the scripts is cached on your machine.  If you can, try pressing ctrl+f5 to force a reload. If you're using a phone, I'm not sure how to trigger it.  I will make sure I add a new version tag to all the scripts when I fix the bane bug. It might also be a browser difference or something. I pretty much only test this on Windows/Chrome, so let me know what you are using if you can't get it to clear up.
The Error still occurs, on my Phone (Chrome, Android) and in Firefox on my PC. I did the cltr+f5 thing, but it still occurs (ok, I used 'Empires only' and max Events/Landmarks to increase the chance that it happens again, but I dont think thats the reason and it even occured thrice).
Edit: checked it again, now after having the 'ghost Obelisk marker' a second marker on a different card spawned :o :D when I repicked landmarks untill obelisk came, they changed when I repicked one of them and disappeared both when I repicked Obelisk.

I'll think about the event/landmark thing.  The way it is was most intuitive to me, but there are lots of different ways it could be handled. (e.g. Jack of All Dominion adds more events in when cards are repicked as if you were just continuing through the randomizer.)  It might be nice to have a way to "re-roll" the entire set of events/landmarks.
yup, that was the direction in which I thought too, I really like Jack of all Dominion, but I am missing the pictures there, which you have implemented
« Last Edit: August 08, 2016, 05:08:40 am by BlackHole »
Logged

Deadlock39

  • Torturer
  • *****
  • Offline Offline
  • Posts: 1722
  • Respect: +1758
    • View Profile
Re: I made a randomizer
« Reply #43 on: August 08, 2016, 09:33:19 am »
0

Can you post a URL for where you are getting the Ghost Obelisk marker.  I think I might have an idea of what might be happening. I thought you were saying you got an Obelisk marker every single time you rolled, but I guess it sounds like it only happens some of the time?

I think I might be running setup rules for Events/Landmarks that get picked but not included because of the limits. I'll be able to confirm the next time I get a chance to work on it.

Chris is me

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2745
  • Shuffle iT Username: Chris is me
  • What do you want me to say?
  • Respect: +3458
    • View Profile
Re: I made a randomizer
« Reply #44 on: August 08, 2016, 09:36:09 am »
0

Just wanted to post again about how great this randomizer is, particularly for iOS users who are currently without a quality Empires randomizer. Randominion was my go to but now it is not.
Logged
Twitch channel: http://www.twitch.tv/chrisisme2791

bug me on discord

pm me if you wanna do stuff for the blog

they/them

Deadlock39

  • Torturer
  • *****
  • Offline Offline
  • Posts: 1722
  • Respect: +1758
    • View Profile
Re: I made a randomizer
« Reply #45 on: August 08, 2016, 09:43:29 am »
0

Thanks Chris.
Do you happen to be using Safari? I found out that it does not support the datalist structure that I use for the autocomplete on the entry page. It makes that page less easy to use, but I am not sure what my best option is for resolving it. If it is causing you any trouble, I could try to put more effort into investigating.

I remembered that I can just debug by pulling up the site since it is all JS. It is definitely adding setup rules for Events/Landmarks that are skipped over due to limits, so that should be an easy fix.  I also noticed that it is using the Event limit for Landmarks when I was in there, so that needs fixed too.

BlackHole

  • Baron
  • ****
  • Offline Offline
  • Posts: 50
  • Respect: +57
    • View Profile
Re: I made a randomizer
« Reply #46 on: August 08, 2016, 10:20:29 am »
0

Can you post a URL for where you are getting the Ghost Obelisk marker.  I think I might have an idea of what might be happening. I thought you were saying you got an Obelisk marker every single time you rolled, but I guess it sounds like it only happens some of the time?
oh s***, I forgot to mention that  ;D

http://makingmorefun.com/dominion/randomizer/?&el-limit=10,0,10&include=empires
try this one, it happens ~ once in 15 attempts or so
actually I dont think you need the empires include only rule, I did it nevertheless
Logged

Deadlock39

  • Torturer
  • *****
  • Offline Offline
  • Posts: 1722
  • Respect: +1758
    • View Profile
Re: I made a randomizer
« Reply #47 on: August 08, 2016, 02:06:06 pm »
0

Fixed those bugs over lunch, and they are live.

*Having no valid Bane options doesn't cause a null reference error
*Repicking the Bane can now recycle previously vetoed cards
*Setup rules are not added for Events/Landmarks that were skipped
*Landmarks use the Landmark limit, not the Event limit.

LibraryAdventurer

  • Torturer
  • *****
  • Offline Offline
  • Posts: 1799
  • Shuffle iT Username: LibraryAdventurer
  • I wish my username had the links like it once did.
  • Respect: +1686
    • View Profile
Re: I made a randomizer
« Reply #48 on: August 08, 2016, 07:58:16 pm »
0

You can now repick cards after the Kingdom has been generated. Now you get rid of Rebuild even if you didn't put it in the exclude list without re-rolling the entire board.

How do you do this? I can't figure out how. Is there supposed to be a button for it that isn't appearing for me?

Deadlock39

  • Torturer
  • *****
  • Offline Offline
  • Posts: 1722
  • Respect: +1758
    • View Profile
Re: I made a randomizer
« Reply #49 on: August 08, 2016, 08:45:17 pm »
0

There should be red X's in the upper right corner of every card on the results page. If you aren't seeing them. Maybe try refreshing (Ctrl+f5 if possible)? If refreshing doesn't fix it, let me know browser and platform you are on, and I can attempt to investigate.
Pages: 1 [2] 3  All
 

Page created in 2.044 seconds with 20 queries.