Advertisement:

Author Topic: Dice Roller  (Read 76960 times)

Offline THE BRA1N

  • Jr. Member
  • **
  • Posts: 133
  • Gender: Male
    • The Third Rail Forum
Re: Dice Roller
« Reply #60 on: January 23, 2010, 09:24:20 PM »
It's being updated, i just dont see where to change the color of the main text either in the Subs.php or index.css files. Right now it blends with the background too much.


Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,630
    • StoryBB/StoryBB on GitHub
Re: Dice Roller
« Reply #61 on: January 23, 2010, 10:06:54 PM »
You edit that one line, add a color: declaration to it.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline THE BRA1N

  • Jr. Member
  • **
  • Posts: 133
  • Gender: Male
    • The Third Rail Forum
Re: Dice Roller
« Reply #62 on: January 23, 2010, 11:47:23 PM »
You edit that one line, add a color: declaration to it.

That worked like a charm! Thx.

Offline lordevil

  • Jr. Member
  • **
  • Posts: 121
Re: Dice Roller
« Reply #63 on: January 30, 2010, 08:41:32 PM »
It isn't in style.css to style it, it's built into the changes applied to Subs.php, meaning you have to edit that.

Open Subs.php, look for this:
Code: [Select]
array(
'tag' => 'blockquote',
'before' => '<div style="font-size:x-small; background-color:#ffffff; margin:5px 20px; border:1px dashed black; filter:alpha(opacity=50); opacity:0.5;">',
'after' => '</div>',
),

Change the contents of the div's style attribute.
Thank you, I have been looking for this for days. I didnt even know the mod had a link to this page. I thought that was just text :duh: Thanks a million!

Offline eolith

  • Semi-Newbie
  • *
  • Posts: 13
Re: Dice Roller
« Reply #64 on: January 31, 2010, 01:37:57 PM »
I had the color issue as well, grey on grey, so i changed the background to #780000, and it looks great.

Offline Succubus Evaligan

  • Jr. Member
  • **
  • Posts: 274
  • Gender: Female
    • Yurilandia
Re: Dice Roller
« Reply #65 on: February 10, 2010, 05:35:32 AM »
I like this mod. n_n
Yuri Goddess

Offline Lordmiller

  • Semi-Newbie
  • *
  • Posts: 75
Re: Dice Roller
« Reply #66 on: April 04, 2010, 11:57:20 AM »
Having what appears to be a cross issue between this mod and TinyPortal Beta 5:


I had this mod already installed to 2.0 RC3, then installed TP Beta 5 everything works for both mods, except if I try to upload a file into the TP download manager I get this error after entering all the data and hitting the save/send button:

Quote
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's Die Roller Ap', '

', 'http://rpgfreelancers.org/smf/tp-downloads/icons/blan' at line 3
File: /home/celedor/public_html/smf/Sources/TPdlmanager.php
Line: 221

Any clue what the syntax it's referring to as being for use next to "die roller ap"?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,630
    • StoryBB/StoryBB on GitHub
Re: Dice Roller
« Reply #67 on: April 04, 2010, 12:12:31 PM »
That's nothing to do with this mod; there are no changes whatsoever in TPdlmanager.php on account of the last version I did I hadn't used TP at all. I'd be asking TP about it.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Lordmiller

  • Semi-Newbie
  • *
  • Posts: 75
Re: Dice Roller
« Reply #68 on: April 04, 2010, 12:37:28 PM »
Only asked here due to the reference, your answer cuts many of the possible problems off the table. thanks.

Offline cubex

  • Newbie
  • *
  • Posts: 3
Re: Dice Roller
« Reply #69 on: July 20, 2010, 05:27:55 AM »
Thank you very much for this mod
Now I can play World of Darkness using Play-by-Post with my friends  ;D

I want to ask, how to delete the "Total" at the end of the result?

Thanks!
« Last Edit: July 21, 2010, 12:43:09 AM by cubex »

Offline Ryanteck

  • Semi-Newbie
  • *
  • Posts: 61
  • Gender: Male
    • Ryanteck
Re: Dice Roller
« Reply #70 on: August 12, 2010, 08:20:18 AM »
is there a way to stop it from rolling the same number more than once

Offline eolith

  • Semi-Newbie
  • *
  • Posts: 13
Re: Dice Roller
« Reply #71 on: November 15, 2010, 02:36:22 PM »
Any chance of getting this upgraded for RC4? It's a great mod our forum was about to use in a RP session.

Thanks!

Offline eolith

  • Semi-Newbie
  • *
  • Posts: 13
Re: Dice Roller
« Reply #72 on: November 17, 2010, 02:47:35 AM »
nevermind, it works if you just mod the install xml file to add ", 2.0 RC4" wherever you see "2.0 RC3". Worked like a charm.

Offline Sabbi

  • Semi-Newbie
  • *
  • Posts: 15
Re: Dice Roller
« Reply #73 on: December 18, 2010, 08:39:51 PM »
For some reason, when someone uses the code in the quick reply box and then previews their post, it changes the [roll] tags to the [blockquote] tags instead of the roll tags in the post box. If the author doesn't think to check the tags in their post because they showed up alright in the preview... It awkwardly looks like they were trying to cheat.

Hmm, I think that's down to how I implemented the anti-cheating mechanism.

I'm also not sure there's a nice way around it without either removing/watering down the anti-cheat, or massively re-engineering the post system. I'll play around with it though and see what I can come up with.


Just wondering, has there been anything further to work around this issue?  Forgot to warn new members about it recently, which made me think of it.   :-[

Offline Ellion Cold

  • Semi-Newbie
  • *
  • Posts: 19
Re: Dice Roller
« Reply #74 on: February 28, 2011, 02:59:35 PM »
How can i put this on a 2.0RC5 forum?

Offline Paine

  • Newbie
  • *
  • Posts: 1
Re: Dice Roller
« Reply #75 on: March 19, 2011, 09:48:46 AM »
To install in 2.0 RC5 edit the package-info.xml file.
Replace:
Code: [Select]
<install for="2.0 RC2, 2.0 RC3">With:
Code: [Select]
<install for="2.0 RC2, 2.0 RC3, 2.0 RC5">
Replace:
Code: [Select]
<uninstall for="2.0 RC2, 2.0 RC3">With:
Code: [Select]
<uninstall for="2.0 RC2, 2.0 RC3, 2.0 RC5">

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,630
    • StoryBB/StoryBB on GitHub
Re: Dice Roller
« Reply #76 on: March 19, 2011, 10:48:14 AM »
Or, you can save yourself the hassle and go to Admin > Packages > Browse Packages > Advanced and enter 2.0 RC3 in the box provided.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline MacTrom

  • Semi-Newbie
  • *
  • Posts: 11
Re: Dice Roller
« Reply #77 on: July 07, 2011, 03:06:59 PM »
I have it installed and working in 2.0. I'm new to MODS, so this was my first. After banging my head against the various ways to install I finally just made the version modification and FTPd it onto my server. Then after testing it, I modified the Subs to make the text/background look better.

Now if I can just get an improvement to add die together like Invisible Castle does:

1d10+1d6+1d4

Then I'd be ecstatic.

-Mac

Offline inusun

  • Newbie
  • *
  • Posts: 1
Re: Dice Roller
« Reply #78 on: August 01, 2011, 02:45:01 AM »
I created a new install file for the 2.0 version and added a reference in the package-info. If the author would be so kind as to add this information to the mod package. Everyone could easily install this mod into their 2.0 version of smf.

Offline MacTrom

  • Semi-Newbie
  • *
  • Posts: 11
Re: Dice Roller
« Reply #79 on: August 01, 2011, 06:55:10 PM »

Now if I can just get an improvement to add die together like Invisible Castle does:

1d10+1d6+1d4

Then I'd be ecstatic.

-Mac

I figured out where the code was and did some splicing to make it accept mixed die rolls by adding in two additional configurations. Now rolling a d6 and d8 together and getting a total can be done by: 1d6&1d8. I can also subtract with 1d10#1d4 to get the difference between them. I presume that as long as I keep this just on my site, that there is no legal conflicts.

-Mac