---
# System prepended metadata

title: slots issuees

---

# slots issuees

Hi ...
cc: ...

I've been working on this part of the page (https://gyazo.com/eabf3df6bc6114bc176839fb4cd8229d), and noticed minor issue with the providers.
As mentioned before (https://jira.tech/browse/CCG-1058, https://rockit.chat/group/cc_slots?msg=3kPaYDc7DjoqHxYWF) we can use only 3 provideres: Drake, Betway and Spin Casino for US, UK and all other geos. 

---

## Image scripts
This is to convert images for screenshot image gallery
`magick mogrify -resize 189x130 -quality 80 -path ../ *.png`
`magick mogrify -format jpg *.png`

## MaxMind DB location (absolute):

`/Users/jakub.maksimowicz/Documents/Projects/cardschat-lfs/CodeLibrary/DependencyFiles/GeoSystemMaxMindCityDatabase/GeoIP2-City.mmdb`

## Scripts to set up Arcade and Darkroom

Arcade:
`cd /Infrastructure/Docker/Development`
`docker-compose up -d`

Darkroom:
`docker-compose up -d`

## New images

```
    console.log(JSON.stringify(this.$store.state.currentGame, null, 2));

    // const desiredImage = this.$store.state.currentGame.images.find(image => {
      // return image.tags.includes('feature');
    // });
    // desiredImage.hash

    const baseurl = 'https://spielothek.onlinecasinos.de';
    const imageUrl = `${baseurl}/assets/original/${this.$store.state.currentGame.images[0].hash}`;
    const customImageUrl = `${baseurl}/assets/custom/${this.$store.state.currentGame.images[0].hash}?colorize=0,0,100&crop=200,200&insert=dasdasdasdsa,`;
    console.log(imageUrl);
```

## Local config

```
BASE_URL=http://localhost:3000
ARCADE_CLIENT_SECRET=navy_tin_spitz
ARCADE_SERVER=http://localhost:5555/
ARCADE_CLIENT_ID=4
ARCADE_API_PATH=Application/
ARCADE_PORT=5555
DARKROOM_SERVER=http://localhost:8080/
```

## Remote config
```
BASE_URL=http://localhost:3000
ARCADE_CLIENT_SECRET=K2JbjH2MjGn3OCyBz0
ARCADE_SERVER=https://arcade.cardschat.com/
ARCADE_CLIENT_ID=13
DARKROOM_SERVER=http://localhost:8080/
GEOIP2_DB=~/Users/jakub.maksimowicz/Documents/Projects/cardschat-lfs/CodeLibrary/DependencyFiles/GeoSystemMaxMindCityDatabase/GeoIP2-City.mmdb

```

## More games

```
const currentCasinos =  games.ratings
        const filtered = currentCasinos.filter(item => this.list.includes(item.id))

        const arrayOfPromisesToGetRealLinks = filtered.map(async game => {
          const link = await DataManager.getPlayLink(game.id)
          game.link = link;

          // this is implicit JS shit
          return new Promise((resolve, reject) => {
            return undefined;
          });
        });

        // ...
        // when all promises finish
        const waitForAllPromisesToFinish = Promise.all(arrayOfPromisesToGetRealLinks);

        await waitForAllPromisesToFinish;
```

---

- need php file
- slots need to be on the same server
- script for number of reg users
- use global.php
- init.php


```
require_once(CWD . '/includes/init.php'); define('CWD', (($getcwd = getcwd()) ? $getcwd : '.')); $vbulletin = new vB_Registry(); $vbulletin->db-> 
```

---

## need to get 

The geo system lives in CodeLibrary, and it's using https://dev.maxmind.com/. It's the system that's used on all itech pages, but now it only works in the CodeLibrary. As the slots repo is outside the CC container we can't directly use the geo system, but it should be quite easy to make it independent.

I see 2 options for this, we can either use https://github.com/maxmind/GeoIP2-node package - this is official connector from maxmind, and only thing needed from hosting for this is accountID and licenseKey, which we should have somewhere, as probably have account already. I've asked PiotrKrauze, but he didn’t know where to get the credentials 😕 I feel this approach can be also a bit slower.

Another option is to read from the IP database directly. in CL we have file called `GeoIP2-City.mmdb` and the user IP is checked with this file, and it's returning current GEO. This is how the geoSystem for all our sites works, so I think this should be the best option. The problem is that this `GeoIP2-City.mmdb` file is updated once in a while, and it would be difficult to recreate this update functionality outside CL. So the solution would be to ask hosting to make the file from CodeLibrary available throughout the containers. Hopefully, this should be quite straightforward to set up.


---


Hi Jose, hope you good :)
I know you guys are busy, so don't want to take too much of your time, but I have few questions regarding our slots setup:

1. Is there any time estimation when the staging will be up again?

2. When can we schedule some time to seet up production environment/CI for slots?

3. Last thing is something that came up yesterday. 

Do you know if there is a way that `GeoIP2-City.mmdb` file for GeoSystem from CodeLibrary can be shared across containers? I would like to read the file directly from node in my Nuxt middleware, but as I understand this file needs to bee updated once in a while, and it would be hard to recreate this outside CL/PHP. 

Alternative to this would be to use https://github.com/maxmind/GeoIP2-node package. It's using the same system as API, but this requires `accountID` and `licenseKey`. As we probably have account, do you know if there is any way I can get those credentials?

Thanks, and sorry to bother you with this 😅


<!--  -->
---

### Missing games:

Quick Hit (Bally Technologies)
https://freeslotshub.com/bally/quick-hit/

---

- [x] Ask Ade bout maxmind

Hi Ade, hope you good :)

I know you guys are busy, but have quick question regarding MaxMind geolocation. Do you know what is `accountID` and `licenseKey` for our account?

I just wanted to use official MaxMind connector for node.js - https://github.com/maxmind/GeoIP2-node, but it needs those credentials.

Another approach I was thinking of was to make `GeoIP2-City.mmdb` file from codeLibrary shared across the containers as a volume, so I could read it directly from my node middleware with some `.mmdb` file reader and check client IP.

Do you know if this is possible, or when you could help up set this up?
Thanks :D



- [x] Merge "api"
- [x] Reply to Alina
- [x] pull darkroom locally

---

Image url construction and search helpers (for Darkroom)

```
/**
 * return url with cropped image
 * @param {String} hash hash from the game
 * @param {Object} config array with config values, eg. { resize: [100, 100] }
 */
function getImagePath(hash, config) {
  let imageConfig = ''
  if (config) {
    const resize = config.resize
    const resizeConfig = `/?resize=${resize.join(',')}`
    imageConfig = resizeConfig
  }
  return `${process.env.DARKROOM_SERVER}custom/${hash}${imageConfig}`
}

/**
 * return list of image hashes with specific tag
 * @param {Array} images this.$store.state.currentGame.images
 * @param {String} tag tag of the game
 */
function findImagesOfType(images, tag) {
  return images.filter(image => image.tags.includes(tag));
}

export default {
  getImagePath,
  findImagesOfType
};

```

---

Hi Jose, I hope you had a great weekend :)

I was able to identify issue with the staging, it was request to `https://www.cardschat.com/get-members-number.php` page, which is returning JSON with CC members number. I think the issue is that CORS is blocking those request, as well as images from footer and header. 

I've added a fallback for the first issue, and after some timeout if the promise with the request is not resolved the just page moves forward. 

Can you take a look if you can allow requests to cardschat.com from the staging?

Thanks :)

---

- [ ] Share preview with design/content
- [ ] Finish 5 pages
- [ ] Prepare page creation guide




---


FreeSpins - fix margin-offset



Thanks Kiran Khattra,

 
I've updated content issues

Regarding the issues with styling:
- the issue with scroll will be resolved once we replace the section with proper carousel. Right now it's using browser scrolling behaviour which is more accessible on mobile, as on mobile arrows are removed.
- As I was creating CTA component I took the copy 'You Could Win Huge!' from design and didn’t realise there are other variations, so will need to add those. Are there any other versions beside win huge and win big?
- Issue with last card being cut off is also related to the section built with native scroll, should be better on mobile, and will be fixed in the future.
- I don’t think we have pages for specific providers, so for this I just used clickout link to current casino. We can also remove the link, but it looks clickable.
- The issues with jump links are related to wrong margin on the target sections. Will check why this isn’t working correctly, but the content is correct, and all should be good once fixed.
- Some of CTA's in more games section are disabled as Arcade is missing some links
- There were two different 'Book Of Ra' games so it was displayed under 'More Games'. This should be fixed now :)

Thanks :)

---



/7647/review: /slots/goldfish
/7694/review: /slots/super-monopoly-money
/2342/review: /slots/cleopatra
/12561/review: /slots/double-bubble
/5150/review: /slots/rainbow-riches


Max bet: 88
Reels: 6
Free spins: Yes
RTP: 96.3%
Min bet: 0.88
Paylines: 117,649


Max bet: 1800
Min bet: 1


---


zgłosić że darktroom spimkolony z proxy