[3.2][RC] Dice rolls

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
Mulsiphix
Registered User
Posts: 81
Joined: Sun Oct 25, 2015 3:14 am
Location: USA
Contact:

Is It Possible To Invert SVG Dice Color?

Post by Mulsiphix » Sat Oct 05, 2019 3:48 pm

I would like to edit the SVG files to change the dice colors. No matter what I try, only black versions of the SVG dice appear. How can this be done? Is there a particular method I need to use or program I should be editing with?

Cleaning The Old Files Out Of phpBB
I have tried...
  • Changing the user preference for dice skins.
  • Disabling and re-enabling the image pack in the extension configuration options
  • Deleting extension data
  • Reinstalling the extension
  • Clearing phpBB's cache
  • Clearing my browser cache
  • Using CCleaner to purge my system of temporary files
Editing The Files
I have currently tried Inkscape. The file shows up in my browser, after editing, showing that the image is showing the new colors. So I'm pretty sure I've edited the image correctly.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

U P D A T E
I deleted all of the files in the skins directory. It is now completely empty. I performed a clean install of the extension, and cleared the files away as I've outlined above. Still, the images for the dice are still showing up. It seems the images are still stored in phpBB somewhere. But where? :cry:

User avatar
3Di
Former Team Member
Posts: 14383
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [3.2][RC] Dice rolls

Post by 3Di » Sat Oct 05, 2019 6:06 pm

Mulsiphix wrote:
Sat Oct 05, 2019 3:48 pm
U P D A T E
I deleted all of the files in the skin directory. It is now completely. I performed a clean install of the extension, as I've outlined above, and the images for the dice are still showing up. It seems the images are coming from somewhere other than the skins directory. But where?
Images are shipped within the extension's folder ext/phpbbstudio/dice/skins/ and
are copied (mirrored) during the installation, the mirrors are in ROOT/images/dice/.
Image

If you look in ACP/Dice dashboard there is located the dice images folder which is changeable.
So you better put back the originals in there and the modified ones in the destination directory.

SVGs we provided are sanitized, you should be carefull with yours since SVG can be dangerous.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

Venatus Vinco
Registered User
Posts: 16
Joined: Wed Sep 26, 2018 12:53 am

Re: [3.2][RC] Dice rolls

Post by Venatus Vinco » Thu Oct 10, 2019 12:13 pm

This has been testing very well, thank you!

We plan on trying it live for our users in November.

VV

User avatar
3Di
Former Team Member
Posts: 14383
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [3.2][RC] Dice rolls

Post by 3Di » Thu Oct 10, 2019 8:31 pm

Thanks for feedback. :)

We are working, on our spare time, to the final release. It should be out within this year.

I can't reccomend using a not yet validated extension on a production board, that's up to you.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

Venatus Vinco
Registered User
Posts: 16
Joined: Wed Sep 26, 2018 12:53 am

Re: [3.2][RC] Dice rolls

Post by Venatus Vinco » Thu Oct 10, 2019 8:35 pm

3Di wrote:
Thu Oct 10, 2019 8:31 pm
Thanks for feedback. :)

We are working, on our spare time, to the final release. It should be out within this year.
Thanks for the news. We will continue in stages with our preparations. Firstly, upgrade phpbb and work out the bugs with our existing extensions. Maybe by that time final verified version will be ready.

VV

User avatar
ninouee
Registered User
Posts: 66
Joined: Thu Aug 07, 2014 7:31 pm
Location: France
Contact:

Re: [3.2][RC] Dice rolls

Post by ninouee » Fri Oct 11, 2019 3:41 pm

Hello

Do you need test on forums with a lot of extentions on wamp server?
Sorry for my poor english, it’s not my first langage but i work on it ;)

User avatar
mrgoldy
Jr. Extension Validator
Posts: 1182
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs
Contact:

Re: [3.2][RC] Dice rolls

Post by mrgoldy » Sat Oct 12, 2019 2:52 pm

Any test environment is appreciated.
WAMP Server is fine to use.
And I suppose the more extensions, the better, to ensure compatability.

User avatar
ninouee
Registered User
Posts: 66
Joined: Thu Aug 07, 2014 7:31 pm
Location: France
Contact:

Re: [3.2][RC] Dice rolls

Post by ninouee » Sat Oct 12, 2019 3:06 pm

Ok

When i will test i make you a list of the extensions and the issues.
Sorry for my poor english, it’s not my first langage but i work on it ;)

User avatar
Mulsiphix
Registered User
Posts: 81
Joined: Sun Oct 25, 2015 3:14 am
Location: USA
Contact:

Re: [3.2][RC] Dice rolls

Post by Mulsiphix » Sat Oct 26, 2019 5:25 pm

  1. Is it possible make an edit that enlarges the display size of the images in the "flat_bw_svg" dice set? These are gorgeous and I wish they could be a little bigger :D
     
  2. I edited a D4 image in Inkscape, painting the pips white on the D4_1.svg from the "flat_bw_svg" set. I uninstalled the set, cleared the cache on phpBB, and then reinstalled it with the new file in place. The extension page shows "Invalid | Installed" for the set. Any idea why this happened? Is this something I can ignore? The image seems to be displaying properly.

Before and After
Image
Last edited by Mulsiphix on Sun Oct 27, 2019 1:27 pm, edited 1 time in total.

User avatar
3Di
Former Team Member
Posts: 14383
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [3.2][RC] Dice rolls

Post by 3Di » Sun Oct 27, 2019 9:03 am

1. In ACP you can set the dimensions of dice.

2. Pls read: viewtopic.php?p=15336196#p15336196

Side note: an img link is broken, but if you want to showcase just the changed colors, I don't see the need to restore it. ;)
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

User avatar
Mulsiphix
Registered User
Posts: 81
Joined: Sun Oct 25, 2015 3:14 am
Location: USA
Contact:

Re: [3.2][RC] Dice rolls

Post by Mulsiphix » Sun Oct 27, 2019 1:58 pm

3Di wrote:
Sun Oct 27, 2019 9:03 am
Side note: an img link is broken, but if you want to showcase just the changed colors, I don't see the need to restore it. ;)
Whoops. I went ahead and removed it, as it didn't add anything and I accidentally deleted it from my image host :oops:

3Di wrote:
Sun Oct 27, 2019 9:03 am
1. In ACP you can set the dimensions of dice.
*smacks forehead* I'm so sorry. I've even seen that before. I don't know where my head was yesterday. Thank you so much for help 3Di. I sincerely and genuinely appreciate it :mrgreen:

3Di wrote:
Sat Oct 05, 2019 6:06 pm
SVGs we provided are sanitized, you should be carefull with yours since SVG can be dangerous.
I had not heard of this before you mentioned it. I did some research and it appears SVG's definitely represent a security threat. However, the threat potential exists only for malicious code purposefully implanted within an SVG. A great reason not to allow users to upload SVG to my server, but otherwise 100% safe to display SVG I've created. Especially, if they originate from a sanitized source :D . Do I have this correct, or am I missing a piece of the puzzle?

User avatar
3Di
Former Team Member
Posts: 14383
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [3.2][RC] Dice rolls

Post by 3Di » Mon Oct 28, 2019 5:30 am

Mulsiphix wrote:
Sun Oct 27, 2019 1:58 pm
am I missing a piece of the puzzle?
Is even better to clean-up SVGs, I own Inkscape but I never used it so I do not know what adds to modified SVGs.

To clean-up SVGs I used this tool: https://github.com/iconify/tools#svgo-optimization (by Arty)
which allowed me to do the job in batch, there is not a GUI for it, you need to use Node JS.
A tutorial is under construction at our website, but I am short of spare time, very busy.

Optional:
  • A SVGO GUI is provided here though: https://jakearchibald.github.io/svgomg/ (no batch jobs).
    Default options should do but you might need some insight about SVG potential issues and architecture.
    That's something you have to search for in the web though.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

User avatar
Mulsiphix
Registered User
Posts: 81
Joined: Sun Oct 25, 2015 3:14 am
Location: USA
Contact:

Re: [3.2][RC] Dice rolls

Post by Mulsiphix » Mon Oct 28, 2019 7:31 am

These resources are very much appreciated. Thank you so much for your feedback and for your help. I sincerely and genuinely appreciate both :oops:

User avatar
3Di
Former Team Member
Posts: 14383
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [3.2][RC] Dice rolls

Post by 3Di » Mon Oct 28, 2019 4:36 pm

You're welcome. :)
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

Wh0
Registered User
Posts: 1
Joined: Sun Nov 03, 2019 9:35 pm

Re: [3.2][RC] Dice rolls

Post by Wh0 » Mon Nov 04, 2019 7:51 pm

Hello 3Di,

I made a french translation of the language files. How can I give them to you ?

Post Reply

Return to “Extensions in Development”