# Internet dice button

**URL:** <https://forum.vassalengine.org/t/internet-dice-button/6752>\
**Category:** Module Design\
**Created:** [April 11, 2014, 7:00pm UTC](https://forum.vassalengine.org/t/internet-dice-button/6752 "2014-04-11T19:00:22Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![panther\_2010](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/p/9f8e36/32.png) [@panther\_2010](https://forum.vassalengine.org/u/panther_2010)\
**Post date:** [April 11, 2014, 7:00pm UTC](https://forum.vassalengine.org/t/internet-dice-button/6752/1 "2014-04-11T19:00:22Z")

</div>

Hi to all.

There is a way to add a internet dice button?  
I remember that in some old modules there was one, but it is no more working.

Thanks.

---

<div class="post-metadata">

**Author:** ![KenH1967](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/kenh1967/32/3551_2.png) [@KenH1967](https://forum.vassalengine.org/u/KenH1967)\
**Post date:** [May 14, 2014, 2:54pm UTC](https://forum.vassalengine.org/t/internet-dice-button/6752/2 "2014-05-14T14:54:54Z")

</div>

Hello,

I don’t know the answer, but am just getting started here with exactly the same question.

Within the ASL (Advanced Squad Leader) world, I see that there is a broken extension by the name of, “WebDice”. When I try it, it simply states, “Internet dice roll attempt failed.” However, it does show an attempt to send a confirmation email to my personal address along with a subject line that includes the previous chat line contents. So, someone at least tried to get it working in the past and, perhaps, it even worked at one time.

My requirements are the same as the WebDice, it seems:

1. User clicks a button for either one die or two,
2. VASSAL sends the request to a web dice roller and retrieves results for display within the module,
3. Webdice also sends confirmation emails to both players with results (and includes previous line of text in chat area as subject)

I found an excellent web dice roller that might work well: [rpglibrary.org/software/securedice/](http://www.rpglibrary.org/software/securedice/)

This site is set up so that if you add certain text to the end of the URL, the dice roller will adjust to the parameters needed.

For example: …/securedice/?op=&dq=2&ds=6&mds=6&dt=1&to=bob\_jones@gmail.com&sub=test

This will automatically roll 2d6 and send the results to [bob\_jones@gmail.com](mailto:bob_jones@gmail.com) with the subject of “test”. This site also includes in the email a confirmation/validation code to ensure that it hasn’t been hacked. Very nice.

If there are any veteran extension creators out there that wish to create this extention- I would appreciate the help. Or, any hints in how to proceed would also be welcomed. As I said, just getting started. Not even sure if this is possible.

Ken

---

<div class="post-metadata">

**Author:** ![KenH1967](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/kenh1967/32/3551_2.png) [@KenH1967](https://forum.vassalengine.org/u/KenH1967)\
**Post date:** [May 14, 2014, 5:38pm UTC](https://forum.vassalengine.org/t/internet-dice-button/6752/3 "2014-05-14T17:38:27Z")

</div>

In the case that anyone is interested:

I’ve searched through the history of this forum and see that there are several threads discussing this issue over the years. Most seem focused on live play, not PBeM. I am personally focused on coming up with a way to validate dice rolls via a 3rd party dice roller during PBeM logs. However, I have not found anything focused on this issue, nor any solutions. I get the idea, though, that this is not a quick fix or even possible without major programming intervention… (btw, I am fairly clueless when it comes to Java)

The only hope that I have is to learn from the old extension called, “Webdice” (can be found here: [vasl.info/extensions.htm](http://vasl.info/extensions.htm))

When I run it within the Advanced Squad Leader module (VASL), and after typing “test” into the chat window then hitting the webdice button, this is what I get:

- Roll sent to Bones Dice Server
- Emailing [ken@gmail.com](mailto:ken@gmail.com) (Subject: test)
- Internet dice roll attempt test failed.

So, it is trying to connect to the internet. And, it somehow knows my email address ([ken@gmail.com](mailto:ken@gmail.com) isn’t my real one-- I changed it for this post). It also grabs the text out of the chat window perfectly. I just need to figure out how to modify the internet address that it is trying to connect to, assuming the “Bones Dice Server” is no longer active…

Will keep learning as I go. If anyone can give me some pointers or feedback, much appreciated.

Ken

---

<div class="post-metadata">

**Author:** ![uckelman](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/uckelman/32/10020_2.png) [@uckelman](https://forum.vassalengine.org/u/uckelman)\
**Post date:** [May 14, 2014, 5:47pm UTC](https://forum.vassalengine.org/t/internet-dice-button/6752/4 "2014-05-14T17:47:07Z")

</div>

Thus spake KenH1967:

> - Roll sent to Bones Dice Server

If says it was using Bones, that _might_ be my dice server, though it’s  
also possible that there was another with the same name. Bones is a  
project that I’ve been intending to return to for quite a while, but  
it’s a lower priority for me than VASSAL 4, so it might be some time  
before I get back to it.

–  
J.

---

<div class="post-metadata">

**Author:** ![KenH1967](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/kenh1967/32/3551_2.png) [@KenH1967](https://forum.vassalengine.org/u/KenH1967)\
**Post date:** [May 14, 2014, 8:00pm UTC](https://forum.vassalengine.org/t/internet-dice-button/6752/5 "2014-05-14T20:00:16Z")

</div>

Greetings, Joel.

Interesting on the possible connection to Bones. Thank you very much for VASSAL. Without it, I would not be able to squeeze ASL back into my busy life. Now that I see it’s value, a donation is forthcoming.

Cheers.

Ken

---

<div class="post-metadata">

**Author:** ![KenH1967](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/kenh1967/32/3551_2.png) [@KenH1967](https://forum.vassalengine.org/u/KenH1967)\
**Post date:** [May 14, 2014, 9:46pm UTC](https://forum.vassalengine.org/t/internet-dice-button/6752/6 "2014-05-14T21:46:46Z")

</div>

After a little poking around (including the blog here: [vassalengine.org/wiki/Developer%27s\_Blog](http://www.vassalengine.org/wiki/Developer%27s_Blog)), I now believe that the extension “Webdice” relied on a function called, “Internet Dice Button”, which was removed from VASSAL when the “ShadowDice” server went offline or became a subscription service.

At least some of the code, authored by Brent Easton, is visible here: [github.com/caiusb/vassal/blob/m … utton.java](https://github.com/caiusb/vassal/blob/master/src/VASSAL/build/module/InternetDiceButton.java)

Also, it seems that getting a new internet/3rd party dice roller (re-)integrated into VASSAL has been on the to-do list for a few years. I urge the developers to take a look at the dice roller I mentioned in the earlier post.

At this point, I do not believe someone like myself (novice coder) could tackle this issue.

---

<div class="post-metadata">

**Author:** ![uckelman](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/uckelman/32/10020_2.png) [@uckelman](https://forum.vassalengine.org/u/uckelman)\
**Post date:** [May 15, 2014, 10:14am UTC](https://forum.vassalengine.org/t/internet-dice-button/6752/7 "2014-05-15T10:14:02Z")

</div>

Thus spake KenH1967:

> After a little poking around (including the blog here:  
> [vassalengine.org/wiki/Developer%27s\_Blog](http://www.vassalengine.org/wiki/Developer%27s_Blog)[1]), I now believe  
> that the extension “Webdice” relied on a function called, “Internet Dice  
> Button”, which was removed from VASSAL when the “ShadowDice” server went  
> offline or became a subscription service.

I remember when we removed Internet Dice Button. You’re correct that  
the dice server it used wasn’t available anymore.

> Also, it seems that getting a new internet/3rd party dice roller  
> (re-)integrated into VASSAL has been on the to-do list for a few years.  
> I urge the developers to take a look at the dice roller I mentioned in  
> the earlier post.

VASSAL 4, which we’re working on now, will have a facility for making  
verifiable die rolls.

–  
J.

---

<div class="post-metadata">

**Author:** ![Brent\_Easton](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/brent_easton/32/10_2.png) [@Brent\_Easton](https://forum.vassalengine.org/u/Brent_Easton)\
**Post date:** [May 15, 2014, 11:49am UTC](https://forum.vassalengine.org/t/internet-dice-button/6752/8 "2014-05-15T11:49:34Z")

</div>

I have been looking for a decent Internet die roller ever since shadowdice died. Securedice is the first one I have seen in that time that provides all the features we need. Once I finish the GTS D-Day module, I will look into resurecting the Internet Die Roller. All of the code is still in Vassal, it has just been disabled. I just need to build a new Driver for the Securedice site.

Brent

---

<div class="post-metadata">

**Author:** ![uckelman](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/uckelman/32/10020_2.png) [@uckelman](https://forum.vassalengine.org/u/uckelman)\
**Post date:** [May 15, 2014, 12:04pm UTC](https://forum.vassalengine.org/t/internet-dice-button/6752/9 "2014-05-15T12:04:55Z")

</div>

Thus spake Brent Easton:

> I have been looking for a decent Internet die roller ever since  
> shadowdice died. Securedice is the first one I have seen in that time  
> that provides all the features we need. Once I finish the GTS D-Day  
> module, I will look into resurecting the Internet Die Roller. All of the  
> code is still in Vassal, it has just been disabled. I just need to build  
> a new Driver for the Securedice site.

Great. I’ll leave that to you, then.

–  
J.

---

<div class="post-metadata">

**Author:** ![KenH1967](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/kenh1967/32/3551_2.png) [@KenH1967](https://forum.vassalengine.org/u/KenH1967)\
**Post date:** [May 15, 2014, 4:11pm UTC](https://forum.vassalengine.org/t/internet-dice-button/6752/10 "2014-05-15T16:11:23Z")

</div>

Brent, Joel: Thanks for your immediate responses and feedback.

It’s great to hear the news from Brent as well regarding putting the internet dice roller in the short-term queue.

Somehow, I even feel that I contributed, though in a very miniscule way… ::pats self on back::

---

<div class="post-metadata">

**Author:** ![KenH1967](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/kenh1967/32/3551_2.png) [@KenH1967](https://forum.vassalengine.org/u/KenH1967)\
**Post date:** [August 7, 2014, 6:41pm UTC](https://forum.vassalengine.org/t/internet-dice-button/6752/11 "2014-08-07T18:41:03Z")

</div>

Brent, Joel: Is there any progress on the creation of an internet dice roller per the thread above? Thanks.

---

<div class="post-metadata">

**Author:** ![Brent\_Easton](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/brent_easton/32/10_2.png) [@Brent\_Easton](https://forum.vassalengine.org/u/Brent_Easton)\
**Post date:** [August 10, 2014, 9:54pm UTC](https://forum.vassalengine.org/t/internet-dice-button/6752/12 "2014-08-10T21:54:02Z")

</div>

Sorry, No.

Extremely busy and have had not time at all to look into this.

Rgds.

---

<div class="post-metadata">

**Author:** ![uckelman](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/uckelman/32/10020_2.png) [@uckelman](https://forum.vassalengine.org/u/uckelman)\
**Post date:** [August 11, 2014, 10:43pm UTC](https://forum.vassalengine.org/t/internet-dice-button/6752/13 "2014-08-11T22:43:07Z")

</div>

Thus spake KenH1967:

> Brent, Joel: Is there any progress on the creation of an internet dice  
> roller per the thread above? Thanks.

I did quite a bit of work on this a few years ago, but haven’t made it  
back to it yet.

–  
J.

---

<div class="post-metadata">

**Author:** ![KenH1967](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/kenh1967/32/3551_2.png) [@KenH1967](https://forum.vassalengine.org/u/KenH1967)\
**Post date:** [August 15, 2014, 2:47pm UTC](https://forum.vassalengine.org/t/internet-dice-button/6752/14 "2014-08-15T14:47:17Z")

</div>

Thanks for the responses, Brent and Joel. Was just checking the status.
