Dominion Strategy Forum

Dominion => Dominion General Discussion => Topic started by: Deadlock39 on May 26, 2016, 11:01:50 pm

Title: I made a randomizer
Post by: Deadlock39 on May 26, 2016, 11:01:50 pm
I'm sure this is the millionth randomizer or so, but I wanted something that could bias like Dominion Online does, and didn't find anything.

It's just on the web. http://makingmorefun.com/dominion/randomizer/ (http://makingmorefun.com/dominion/randomizer/)

It includes all the cards. (Including Empires)

Use the new UI.  Hooray, it is easier to use now!

ToDo:
Alternate Colony/Shelter bias options
Way to show cards in split piles
Permanent links for Kingdoms
Add input option for requiring specific cards
Add input option for custom cards.



You can still do the manual stuff.  Here it is for posterity:
Code: [Select]
It can bias sets. This makes cards from those sets 3x more likely to be chosen
[url=http://makingmorefun.com/dominion/randomizer/?bias=adventures,empires]http://makingmorefun.com/dominion/randomizer/?bias=adventures,empires[/url]

It can excludes sets, because maybe you don't have something...
[url=http://makingmorefun.com/dominion/randomizer/?bias=adventures,empires&exclude=base,alchemy]http://makingmorefun.com/dominion/randomizer/?bias=adventures,empires&exclude=base,alchemy[/url]

You can adjust the bias multiplier
[url=http://makingmorefun.com/dominion/randomizer/?bias=empires.10]http://makingmorefun.com/dominion/randomizer/?bias=empires.10[/url]

You can exclude or bias individual cards
[url=http://makingmorefun.com/dominion/randomizer/?bias=alchemy.100&exclude=possession]http://makingmorefun.com/dominion/randomizer/?bias=alchemy.100&exclude=possession[/url]
[url=http://makingmorefun.com/dominion/randomizer/?bias=enchantress.100]http://makingmorefun.com/dominion/randomizer/?bias=enchantress.100[/url]

You can bias or exclude based on card types
[url=http://makingmorefun.com/dominion/randomizer/?exclude=attack]http://makingmorefun.com/dominion/randomizer/?exclude=attack[/url]
[url=http://makingmorefun.com/dominion/randomizer/?bias=duration.100]http://makingmorefun.com/dominion/randomizer/?bias=duration.100[/url]

You can bias or exclude based on cost (not sure this is very useful, but why not)
[url=http://makingmorefun.com/dominion/randomizer/?exclude=cost5&bias=cost7,cost8d,cost3p]http://makingmorefun.com/dominion/randomizer/?exclude=cost5&bias=cost7,cost8d,cost3p[/url]

You can change the limit for events/landmarks.
If you provide a one number, it sets the limit for total events/landmarks:
http://makingmorefun.com/dominion/randomizer/?bias=empires,adventures&el-limit=3
If you provide 2 numbers, the first is the max for each type individually, and the second is the total limit:
http://makingmorefun.com/dominion/randomizer/?bias=event,landmark&el-limit=2,3
If you provide 3 numbers, the first is the max number of events, the second is the max number of landmarks, and the third is the total limit:
http://makingmorefun.com/dominion/randomizer/?bias=event.5,landmark.5&el-limit=4,3,6
Use 0 for no limit (if you actually want 0, use exclude=event,landmark):
http://makingmorefun.com/dominion/randomizer/?bias=event.10,landmark.10&el-limit=0
Title: Re: I made a randomizer
Post by: Aleimon Thimble on May 27, 2016, 03:51:59 am
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...
Title: Re: I made a randomizer
Post by: Beyond Awesome on May 27, 2016, 04:24:02 am
One thing I've noticed from this is that the larger Empires text looks so so nice.
Title: Re: I made a randomizer
Post by: Davio on May 27, 2016, 08:58:52 am
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!
Title: Re: I made a randomizer
Post by: Deadlock39 on May 27, 2016, 10:09:13 am
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.
Title: Re: I made a randomizer
Post by: werothegreat on May 27, 2016, 10:42:48 am
Beware: Not all cards have all resolutions, for instance Worker's Village only has 120 and 180px!

Wait, what?  Why the fuck is that?  It's a 1200x2000 pixel file!  That's so arbitrary and weird...
Title: Re: I made a randomizer
Post by: Deadlock39 on May 27, 2016, 11:26:00 am
Beware: Not all cards have all resolutions, for instance Worker's Village only has 120 and 180px!

Wait, what?  Why the fuck is that?  It's a 1200x2000 pixel file!  That's so arbitrary and weird...

Well, this probably depends on how and why the thumb versions of the file are generated. 

The 1200x2000 file can be resized to whatever size a webpage wants it in, but the problem is, that resolution comes with a giant file size, so it takes longer for the images to load. I am displaying the files at a maximum size of 180x235, so it is much more efficient if I can download images that are already resized rather than pulling in the huge one and letting the browser resize it.

Not sure if I answered your question at all, or said anything you didn't already know.
Title: Re: I made a randomizer
Post by: Deadlock39 on May 27, 2016, 11:52:42 am
Well, actually I think this is just a confusion.

There are only 120px and 180px versions in this directory:
http://wiki.dominionstrategy.com/images/thumb/e/e4/Workers_VillageArt.jpg/

but Workers_VillageArt is not the correct name for the card on the Wiki, it is Worker's_Village, and that directory:
http://wiki.dominionstrategy.com/images/thumb/1/12/Worker's_Village.jpg/

has all the usual sizes.

I'll see if I can do the MD5 thing when I get a chance, it will really improve loading times if it works.

I noticed that you can specify cards on the wiki like:
[[File:Tactician.jpg|200px]]
which makes me thing there might be another parameter that could be passed to the filepath link, but "resolution" doesn't work, and I don't have any other guesses.
Title: Re: I made a randomizer
Post by: Deadlock39 on May 27, 2016, 07:47:26 pm
I updated with Promos, Young Witch, and bias/exclude options for individual cards.

Young Witch!
http://makingmorefun.com/dominion/randomizer/?bias=youngwitch.100 (http://makingmorefun.com/dominion/randomizer/?bias=youngwitch.100)

Promos!
http://makingmorefun.com/dominion/randomizer/?bias=promo.100 (http://makingmorefun.com/dominion/randomizer/?bias=promo.100)
Title: Re: I made a randomizer
Post by: Infthitbox on May 27, 2016, 09:58:55 pm
Are there any plans for an interface to choose this stuff rather than directly inputting the parameters into the url?
Title: Re: I made a randomizer
Post by: Deadlock39 on May 27, 2016, 10:12:21 pm
Are there any plans for an interface to choose this stuff rather than directly inputting the parameters into the url?

Yeah, I will probably do that eventually.  It's not really part of my primary skill set, so it takes longer and is less fun, but I used the parameters this way so it is easy to submit from a form.  Actually, anyone could create a tool that submits to it I suppose.
Title: Re: I made a randomizer
Post by: Deadlock39 on June 06, 2016, 10:13:51 pm
Empires cards are all added!

The Wiki where it pulls the cards from is really slow due to the extra traffic. If that continues to be a problem, I may copy the images over to my site instead of pulling them live from the wiki. (Edit: It is suddenly much faster, so that is good)
Title: Re: I made a randomizer
Post by: Aleimon Thimble on June 07, 2016, 04:24:25 am
This is awesome! I'm already generating kingdoms and thinking about what I would do if I were to play that kingdom. Thanks!

One suggestion: is it possible to do something with Black Market? Currently, it just shows that Black Market is in the kingdom, but there is no way of finding out which cards are in the Black Market deck. Maybe a small list to the bottom or the side that lists which cards should be in the BM deck, whenever it is included?
Title: Re: I made a randomizer
Post by: Deadlock39 on June 07, 2016, 09:51:29 am
This is awesome! I'm already generating kingdoms and thinking about what I would do if I were to play that kingdom. Thanks!

One suggestion: is it possible to do something with Black Market? Currently, it just shows that Black Market is in the kingdom, but there is no way of finding out which cards are in the Black Market deck. Maybe a small list to the bottom or the side that lists which cards should be in the BM deck, whenever it is included?

Yep, I will add it to my TODO list. I hadn't thought about doing that.
Title: Re: I made a randomizer
Post by: J Reggie on June 07, 2016, 12:15:27 pm
Not super important, but do you have plans for what to do about Obelisk?
Title: Re: I made a randomizer
Post by: Deadlock39 on June 07, 2016, 01:22:02 pm
Not super important, but do you have plans for what to do about Obelisk?

I put a blue border around the Young Witch Bane. I plan to do the same thing for Obelisk, but with a green border.  It would be nice to do something graphically fancier, but I'm no html wizard, so at least for now I'll keep it simple.

Until I get that done, if you get Obelisk, you'll have to choose the random action yourself I suppose.

Edit: Obelisk is done. (If it picks Ruins, there won't be any indicator.)

Also I apparently left Farmland out, so that is fixed now.
Title: Re: I made a randomizer
Post by: Deadlock39 on June 07, 2016, 11:57:55 pm
New updates are added to allow bias/exclude cards based on types and cost.



...and now it actually picks Colony/Shelters as it should, and shows all the extra setup cards below the kingdom.
Title: Re: I made a randomizer
Post by: RevanFan on June 15, 2016, 05:32:16 am
Any chance for an update that allows for more than 2 events/landmarks? I like to play with a max of 3 rather than 2.
Title: Re: I made a randomizer
Post by: Deadlock39 on June 15, 2016, 09:15:14 am
Any chance for an update that allows for more than 2 events/landmarks? I like to play with a max of 3 rather than 2.

Yes!  I did this 2 days ago, but haven't gotten it pushed up the the site yet because I ran out of time, and didn't have time to work on it last night. I will be pushing those updates tonight. 

You will be able to change the limit, for events/landmarks combined, and individually.  Setting a limit of 3 will allow up to 3 of any type, but setting the limit to "2,3" will allow 3 total, but only 2 of any one type.  It will also be possible to do something crazy like "4,2,5" to set a limit of 4 events, 2 landmarks, and 5 total.

I plan to use a max of 3 with the "2,3" setting. I think one of the playtesters said they tested that way.  I will post sample links when I push it live. (and I promise a user interface is getting closer to the top of my TODO list...)

Edit: This update is live. Examples in the first post.
Title: Re: I made a randomizer
Post by: Chris is me on June 15, 2016, 10:34:48 am
This is a neat randomizer.

How hard would it be to make a little page with a basic HTML form that lets you type in prameters, which then generates a URL to use to trigger the randomizer? Without this thread I have no idea what my options are, and it doesn't seem like it would be very hard to have a few text boxes and some basic php logic or somethin'.
Title: Re: I made a randomizer
Post by: Deadlock39 on June 15, 2016, 10:42:48 am
This is a neat randomizer.

How hard would it be to make a little page with a basic HTML form that lets you type in prameters, which then generates a URL to use to trigger the randomizer? Without this thread I have no idea what my options are, and it doesn't seem like it would be very hard to have a few text boxes and some basic php logic or somethin'.

Probably not very hard, and that is my plan.  I just don't like that type of development, so I am procrastinating it.  (Actually, with the way it works, anyone could create a form that throws to this.)  I was also scrambling to get the features I wanted done to use this for our KC meetup, so UI was low on my priority list. I've gotten the key features done now, so I'll be trying to get at least a basic input form done next.
Title: Re: I made a randomizer
Post by: RevanFan on June 16, 2016, 02:44:42 pm
Thanks for the event/landmark settings. Works great!
Title: Re: I made a randomizer
Post by: Deadlock39 on June 23, 2016, 12:33:27 am
Now it has a UI!

Going to the base link will bring up the interface. Refreshing a generated kingdom will reroll with the same settings. You can save the link to your favorites still.

The UI doesn't let you change the bias from the default 3x yet, so you still need to do that manually if you want it.
Title: Re: I made a randomizer
Post by: werothegreat on June 23, 2016, 12:35:47 am
Hmm.  This always takes a fair few seconds to load for me, and I'm not sure if it's a computational thing sorting through the randomizing, or if the site is inefficiently loading pictures from the wiki, or what.
Title: Re: I made a randomizer
Post by: Deadlock39 on June 23, 2016, 12:44:44 am
The pictures on the wiki are enormous, so it takes a while to load.  It actually only takes about a second on my Google Fiber, but takes quite a while if I am on mobile or something.

I intend to eventually connect to the smaller images on the wiki, or (more likely) copy them locally so it doesn't stop working when the wiki goes down.
Title: Re: I made a randomizer
Post by: werothegreat on June 23, 2016, 08:57:19 am
when the wiki goes down.

:(

You just made my morning very sad...
Title: Re: I made a randomizer
Post by: Deadlock39 on June 23, 2016, 09:06:55 am
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)
Title: Re: I made a randomizer
Post by: Awaclus on June 23, 2016, 09:16:33 am
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.
Title: Re: I made a randomizer
Post by: LibraryAdventurer on July 06, 2016, 04:09:02 pm
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
Title: Re: I made a randomizer
Post by: Deadlock39 on July 06, 2016, 06:15:18 pm
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.
Title: Re: I made a randomizer
Post by: gkrieg13 on July 07, 2016, 02:00:12 am
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
Title: Re: I made a randomizer
Post by: Deadlock39 on July 07, 2016, 09:34:30 am
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.
Title: Re: I made a randomizer
Post by: GendoIkari on July 07, 2016, 03:31:16 pm
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
Title: Re: I made a randomizer
Post by: Deadlock39 on July 07, 2016, 05:28:36 pm
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.
Title: Re: I made a randomizer
Post by: Garth One-eye on July 19, 2016, 03:32:15 pm
Would it be possible to create an option to just list the cards picked in text form?
Title: Re: I made a randomizer
Post by: Chris is me on July 19, 2016, 03:44:15 pm
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.
Title: Re: I made a randomizer
Post by: Deadlock39 on July 19, 2016, 04:17:52 pm
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.
Title: Re: I made a randomizer
Post by: Deadlock39 on July 20, 2016, 11:25:38 pm
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.
Title: Re: I made a randomizer
Post by: Deadlock39 on July 26, 2016, 11:23:46 pm
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 (http://makingmorefun.com/dominion/randomizer/?&el-limit=2,2,2&bias=blackmarket.10000)

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.
Title: Re: I made a randomizer
Post by: Deadlock39 on August 05, 2016, 12:02:58 am
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.
Title: Re: I made a randomizer
Post by: BlackHole on August 07, 2016, 04:33:42 pm
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!! ;)
Title: Re: I made a randomizer
Post by: Deadlock39 on August 07, 2016, 05:26:21 pm
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.
Title: Re: I made a randomizer
Post by: BlackHole on August 08, 2016, 04:59:29 am
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
Title: Re: I made a randomizer
Post by: Deadlock39 on August 08, 2016, 09:33:19 am
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.
Title: Re: I made a randomizer
Post by: Chris is me on August 08, 2016, 09:36:09 am
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.
Title: Re: I made a randomizer
Post by: Deadlock39 on August 08, 2016, 09:43:29 am
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.
Title: Re: I made a randomizer
Post by: BlackHole on August 08, 2016, 10:20:29 am
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
Title: Re: I made a randomizer
Post by: Deadlock39 on August 08, 2016, 02:06:06 pm
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.
Title: Re: I made a randomizer
Post by: LibraryAdventurer on August 08, 2016, 07:58:16 pm
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?
Title: Re: I made a randomizer
Post by: Deadlock39 on August 08, 2016, 08:45:17 pm
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.
Title: Re: I made a randomizer
Post by: LibraryAdventurer on August 08, 2016, 08:54:25 pm
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.
okay, it started working after I refreshed.
(I didn't expect refreshing to make a difference since I've restarted by browser since your update.)
Title: Re: I made a randomizer
Post by: RevanFan on September 26, 2016, 12:21:57 am
How are you going to handle the changes to Base and Intrigue? I'd still like the removed cards to be available, but the new cards should be listed in their sets.
Title: Re: I made a randomizer
Post by: Chris is me on September 26, 2016, 09:12:25 am
I'd suggest making "Base" and "Intrigue" the defaults, but if you whitelist "Old Base" and "Old Intrigue", it replaces the new sets with the old ones. I do not think you need to be able to mix the two together.
Title: Re: I made a randomizer
Post by: werothegreat on September 26, 2016, 09:27:37 am
I'd suggest making "Base" and "Intrigue" the defaults, but if you whitelist "Old Base" and "Old Intrigue", it replaces the new sets with the old ones. I do not think you need to be able to mix the two together.

I think mixing is fine - you could have Base/Intrigue, 1stBase/1stIntrigue, MixBase/MixIntrigue.
Title: Re: I made a randomizer
Post by: Aleimon Thimble on September 26, 2016, 09:49:49 am
I'd suggest making "Base" and "Intrigue" the defaults, but if you whitelist "Old Base" and "Old Intrigue", it replaces the new sets with the old ones. I do not think you need to be able to mix the two together.

I think mixing is fine - you could have Base/Intrigue, 1stBase/1stIntrigue, MixBase/MixIntrigue.

I would like to play New Base and Old or Mixed Intrigue!
Title: Re: I made a randomizer
Post by: Deadlock39 on September 26, 2016, 07:14:24 pm
By default, I'll definitely remove the removed stuff and update to the new.

I was thinking about adding a check box to revert to first editions. I like the whitelist idea, but I don't have a section for it yet, and it seems strange to add one just for these changes. I would like to allow whitelisting individual cards, or completely reverting easily, so I'll have to think about it some more.

I am, however, on vacation this week, so I won't be able to start updating until next week.
Title: Re: I made a randomizer
Post by: RevanFan on September 26, 2016, 07:46:35 pm
The way I'd do it is put the new ones as base and intrigue. The old cards could be a separate set, I guess.
Title: Re: I made a randomizer
Post by: Deadlock39 on October 09, 2016, 11:23:04 pm
I did a quick barebones update tonight because I've been putting it off and realized "oh crap, I want to play with these new cards tomorrow!"

The new cards are just added under the sets "New Base" and "New Intrigue", so you can bias them up if desired with those labels for now.

I have not resized the images, and pushed them to my site, so they are loading the enormous images from the wiki for now.


http://makingmorefun.com/dominion/randomizer/?&el-limit=2,2,3&bias=newbase,newintrigue
Title: Re: I made a randomizer
Post by: RevanFan on October 09, 2016, 11:34:04 pm
Thanks! Your randomizer is one of my favorites. If you want to look at it again in the future, though, I'd probably recommend putting the new cards into Base and Intrigue, and making "Old Base" and "Old Intrigue" for the removed cards.
Title: Re: I made a randomizer
Post by: werothegreat on October 09, 2016, 11:40:49 pm
I did a quick barebones update tonight because I've been putting it off and realized "oh crap, I want to play with these new cards tomorrow!"

The new cards are just added under the sets "New Base" and "New Intrigue", so you can bias them up if desired with those labels for now.

I have not resized the images, and pushed them to my site, so they are loading the enormous images from the wiki for now.


http://makingmorefun.com/dominion/randomizer/?&el-limit=2,2,3&bias=newbase,newintrigue

I'd recommend resizing and repushing the rest of the Base and Intrigue cards as well.  :)
Title: Re: I made a randomizer
Post by: Deadlock39 on October 09, 2016, 11:44:40 pm
I did a quick barebones update tonight because I've been putting it off and realized "oh crap, I want to play with these new cards tomorrow!"

The new cards are just added under the sets "New Base" and "New Intrigue", so you can bias them up if desired with those labels for now.

I have not resized the images, and pushed them to my site, so they are loading the enormous images from the wiki for now.


http://makingmorefun.com/dominion/randomizer/?&el-limit=2,2,3&bias=newbase,newintrigue

I'd recommend resizing and repushing the rest of the Base and Intrigue cards as well.  :)

Oh yeah, I'll get the images with the updated text done at some point.  Thanks again for the awesome scans.
Title: Re: I made a randomizer
Post by: werothegreat on October 09, 2016, 11:54:58 pm
I did a quick barebones update tonight because I've been putting it off and realized "oh crap, I want to play with these new cards tomorrow!"

The new cards are just added under the sets "New Base" and "New Intrigue", so you can bias them up if desired with those labels for now.

I have not resized the images, and pushed them to my site, so they are loading the enormous images from the wiki for now.


http://makingmorefun.com/dominion/randomizer/?&el-limit=2,2,3&bias=newbase,newintrigue

I'd recommend resizing and repushing the rest of the Base and Intrigue cards as well.  :)

Oh yeah, I'll get the images with the updated text done at some point.  Thanks again for the awesome scans.

You're quite welcome!
Title: Re: I made a randomizer
Post by: ThetaSigma12 on October 10, 2016, 07:40:35 am
I'd also have an option to ban only "old base" and "old intruige".
Title: Re: I made a randomizer
Post by: Deadlock39 on October 10, 2016, 09:23:31 am
I'd also have an option to ban only "old base" and "old intruige".

I'll definitely be supporting the new cards in a more official way. I just realized at 10pm last night that I wanted them in today, and did the bare minimum to get them running.

The new cards will be included in the official sets. I'll add some sort of option to easily revert to the old versions, but I'll remove them from use by default. There will also be a way to use both at the same time.
Title: Re: I made a randomizer
Post by: Chris is me on October 10, 2016, 09:29:22 am
So as of right now, if I type in "New Base", is that referring to just the new cards? Or is that the entire Base set, minus old cards, plus new cards?

I'm sure this will all get cleaner and more sorted out over time, but I just wanted to see how it works for the next few days.
Title: Re: I made a randomizer
Post by: Deadlock39 on October 10, 2016, 10:02:25 am
"New Base" is just the 7 new cards, and the same for "New Intrigue".
Title: Re: I made a randomizer
Post by: RevanFan on October 11, 2016, 07:57:16 pm
There is one feature I'd very much like: the ability to sort results alphabetically, rather than by cost. Sorting by cost helps setup, but my cards are all organized alphabetically.