Subscription continues…

Standard

Hello! This week’s been quite busy with the subscription! This week we did change the store system, instead of buying and unlocking items one by one, with the subscription system, the items will be unlocked overall and will be locked when the subscription ends. Though this functionality needs to be tested, as we had problems with this current store system. Some users had issues with having their items locked without any reason. The thing is, it is hard to produce the exact same bug environment to test, everything is working correctly in our environment but sometimes this functionality seems working incorrectly in others’ devices. We hope to fix these issues with the subscription system.

In our current store, every user has their receipts for their bought items. In our store code, the receipt is checked. The receipt contains IDs of the purchased items, the functions process these IDs and voila, the items are unlocked. In the subscription model, this is quite the same, although we have to deliver the item altogether, so we need to access our whole library of items, not just one item. This is achieved, as well. Now it’s time to test the functionalities and make sure this works correctly.

This also consumed our huge amount of time because Google has been problematic about test purchases. When we were testing refunding/revoking items, the items were still present even though the user’s purchase has been refunded. We found out that test realm of Google Play is a little bit of chunky, also we had to revoke the items manually. And also in order to avoid falsely locked/unlocked items, we will make sure that subscription lock/unlock system will be working as intended.

Stay in tune and don’t forget to roll to initiative!

Advertisements

Subscription in progress…

Standard

Hello guys! This week’s update is about Google Play and NGUI, where we are renewing our in-app purchases and Store scene according to these changes. First of all, we are changing our in-app model to Subscription. It means, users will pay weekly, monthly or yearly and with this users can access our concent fully. Implementing is easy with Google Play and Unity IAP, only we assign an id and select its ProductType to Subscription. Also, we needed to change entire store logic in our game. For this, I changed the layout of the store UI. We have only three buttons to select a subscription model, for weekly, monthly or yearly.

Untitled.png

Then, according to the selection, the user will be subscribed to any of these options. The process will be handled by Google Play APIs and Unity IAP. When the purchase process will be executed with success, all the items will be available to the users. In this week I improved my ability to read manuals and apply API calls to the project. Also, I needed to study the entire store system, which helped me to read and think about the existing system, and how I can apply new changes.

I am going to work on it and hopefully, this update will be released by next week.

Stay in tune!

Bug Hunting!

Standard

Hello folks! This week’s been quite busy, I’ve worked on a bug that prevented users to download the user-generated maps. When users try to access our subreddit r/ProDndMaps from their devices, they can see our user-generated maps but failed to download to the app. When I started to investigate what is going on, first I checked a commit way back before. Like December… In this version, loading map from Reddit (either from the web browser or QR code) is working.

So I tried to understand what was changed during that commit to present. I checked the used scripts for Share & Load feature in almost every commit. It took three days to hunt the bug but eventually, we found it, somehow the function LoadMapFromQR (this function manages and implements the maps that came from the web browser and QR code) was not used, instead, another function was assigned but it was missing as well. I did not realize the assigned button functions was corrupted but thanks to Erhan, we managed to find it and fixed it right away. Now users can happily share their maps and download them from the Reddit page and play them with their cozy and fun DnD sessions…

Also in next weeks, we will be preparing for some big changes…

Stay in tune!

Forest map is done!

Standard

Hello folks!

Are you a geeky DM?

Are you planning an awesome and full of adventure DnD session for the weekend?

Did you search for a decent map over and over but couldn’t find for your liking or want to create your own map but you cannot even draw a stickman?

Worry not, adventurers!

Today I’m excited to announce our finished generator!

We are going to release our new generator, Forest Map! With this generator, you can generate rock, dirt, water, and forest on the map and send your characters to an awesome and misty forest (or steep and rocky hills, with lots of water, or a desert, it’s your choice).

noisez.gif

Some things I’ve done with this generator:

Screenshot_2.png

Screenshot_3.png

Screenshot_5.png

Screenshot_8.png

You can create your maps with adjusting parameters of water, rock, and forest! I really hope that you’ll enjoy the map!

Stay in Tune!

 

 

 

 

 

 

Blocky Noises?

Standard

Hello all! This week has been quite busy! We are almost releasing our new generator but we still worked on for a few things.

First of all, we saw that the forest generator had some un-natural looking. When we use Perlin noise by Fast Noise, we had “blocky” results, like this:

 

In order to prevent that, we tried to make it more “fractal” and added parameters to adjust the noise’s octave and lacunarity setting.  But before that, I should show a little glossary.

Frequency means more elements in the map. Think of as zooming in and out of the map, when you zoom, we have less frequency, therefore, you see less element. Zooming out, you can see more of the map, more trees more water and mountains etc.

Octave is the sum of different frequencies. Octave makes the map busier and makes it more natural. Like in this example, we add different frequencies and in the end, we use the result.

Screenshot_8.png

Lacunarity determines how quickly the frequency increases with each octave. This leads to elements get more crunchy and fractal.

asdf.gif

But we did not rest here! We tried different noises in order to eliminate these blocks and we tried the Perlin noise from different libraries.

image (9).png

The noises are (in order): FastNoise, Unity and LibNoise Perlin noises. They have the same frequency and the same octaves, although LibNoise has more fractal results, meanwhile FastNoise have more blurry results. But in LibNoise and in FastNoise we can adjust the noises’ parameters(octaves, frequencies etc.) with their built-in functions. On the other hand in Unity’s Perlin Noise does not have them. Also, the libraries have more built-in noises such as Simplex, Value, Cubic etc. That makes them more superior than Unity.

When I read about Perlin noise’s blocky/horizontal results, a couple of people had this issue, even Minecraft had this blocky result on its maps.

According to my research, Perlin noise’s nature allows such results and people needed to have some precautions in order to have more natural terrains.

Next week I will implement a solution to this issue and hopefully publish my generator on ProDnD!

Stay in tune!

 

Forest Generator is DONE!

Standard

Hello all! Today I finished Forest Generator! But before finishing it, I’ve encountered with bugs that are caused by unimplemented tiles. After implementing Dirt, Tree and Water tiles to the respective tile databases I can show my end result:

forest.gif

The used noises for this map: Value Fractal, Perlin and White Noise. Lots of noise, right?

Value Fractal is used for elevation of the map. Higher values represented as Rocks, meanwhile smaller values are dirt, forest, and water. But I needed to use Perlin and White Noise for Forest areas. I wanted Forest to be independent of other areas and also wanted to be able to adjust its coverage of the map without worrying of rock and water percentage. White Noise is used for the crunchy look of Forest.

What I learned from this generator:

  • I can use multiple noises at once in order to add some spice (variety) on the map. This is useful if you want to adjust a certain element independent of other map elements.
  • Learn your environment. Study the project and act according to the system. Whatever you use, first of all, study and ask what is going on in this project. I had difficulties with tilemap system and turns out I had to correctly initialize newly added tiles in order to use them and integrate them with the map.

I hope I can continue on delivering new generators to you.

Stay in Tune!