Unlocking Hive in my Farming Game

@erzoooo ยท 2025-08-27 18:34 ยท Hive Gaming

Hello guys, It's been a while since my last post, but the wait is finally over! I'm back with some **outstanding game progress** that i really hope you'll enjoy as much as i did while working on it ๐Ÿ˜€ Your feedback and support meant a lot to me and pushed me to keep improving the project. Over the past few days, i **refactored every single script** i've written to improve **performance** and **tighten security** where needed. My ultimate goal is to make the game playable on any type of device, **from low-end devices to high-end setups**. Everyone should have a chance to enjoy the game! Do you remember the features i announced in my last post ? That was the **Hive Login Implementation**, plus a small surprise i promised you'd enjoy! Unfortunately, i experienced a ton of problems while implementing **Hive login**. **The documentation**....well, let's just say **i expected it to be clearer and more straightforward**. My expectations were completely **different**. But that didn't stop me, if anything, the harder the challenge, the more focused i become on completing and mastering the implementation. **So I stayed up late** and figured out a system that doesn't just "**work for now**", but is designed **with long-term , future-proof implementation in mind** And as a little off-topic, **this also opened a new chapter in my mind**: what if I create future tutorials for new Hive Developers ? A **straight-to-the-point** **login system with validation included**, explained **step by step**. What do you guys think ? Would you like to see this happen ? And not just Hive Login , I could cover other implementations too, especially the ones i find unnecessarily complicated for beginners becauses of the current documentation. Let me know in the comments, and i'll make it happen! ๐Ÿ˜€ Anyway, let's get back on track, we were talking about the Hive Implementation struggle! ![](https://media1.tenor.com/m/yHWgY2PwamgAAAAC/peter-griffin-family-guy.gif) But don't worry, in the end, what matters are the results. I was able to create a **secure Hive Login** that not only lets you log your **Hive Account into the game**, but also provides a strong **security environment** for your **account and login**. Here's how it works: - Your login is **verified** using **multiple methods** to avoid any **security exploit** - Every** login attempt** is **recorded** to prevent reusing an **old message** - Your session is stored securely using a **JWT token**, so you can stay logged in **safely** And today, i'm excited to announce the first **login screen**! ![](https://hackmd.io/_uploads/B1y12InFxl.png) Let me explain, in less technical terms, how the login works: - You log in through the **Hive Keychain browser extension** , no need to type anything manually. - Your data is then validated a second time using the **official** **Hive SDK**. - **If your data is valid** and everything matches, it's verified with the database: - **If you've logged in before**, your last unique security token is checked - **If not, a new unique token** is generated for your current session - **Tokens are refreshed automatically** and are only valid for a limited time And yes, right now, as part of this progress, i'm happy to announce that the **database** is fully integrated with **Hive**, meaning your **progress** is now **completely tied to your Hive Account!** ![](https://hackmd.io/_uploads/ByV3cw2Yxe.png) Aaaand now, the surprise! Do you remember last time, when i was generating a random terrain for you each time you joined the game ? Back then, without a login system, the game would just randomly generate a new farm every time you opened it in the browser. But this time, I wanted the game to feel more **customizable** and more **unique** **for each of you**. **So i decided: every player should be able to create their own farm!** ![](https://media1.tenor.com/m/eiYNWS2e6msAAAAC/youre-right-breaking-bad.gif) The surprise is the new **Farm Generator**. Instead of me randomly generating your farm at every login, now you can generate it based on your own preferences, and even name it however you like. ![](https://hackmd.io/_uploads/BJD8CLhtge.png) Name your **own farm**, make it your **personal land**, and customize it by selecting **tree density, rock density, and flowers density** ![](https://media1.tenor.com/m/swYDigA0_sAAAAAd/reactions.gif) ![](https://hackmd.io/_uploads/SkYRC82Fll.png) Your generated terrain and farm name are saved in the database and updated regularly **every 15 minutes**. So if you **cut trees**, **mine rocks**, or **harvest flowers**, your progress is **saved**, and you will see it reflected the next time you **log in**. This system also gave me the chance to extend it into a **special sapling planting system**, which i'll talk about in **future updates**, along with another **surprise** that i hope you'll enjoy as much as i do ๐Ÿ˜€ --- **What's next on my list ?** - Implementing a special **Global Chat** that will also display your farm name, this feature will be interesting, because the chat will be **encrypted** and won't be stored in the database for **privacy reasons**. Messages will only be held in the **server memory** for a short time and then **flushed every 10 messages**. However, for **security reasons**, there's a **catch**: players will be able to report messages. **Reported messages** will be flagged and sent to the **database unencrypted**. This way, together as a community, we can keep the game free of harmful interactions and **permanently restrict bad actors**. The goal is to create a **peaceful,stress-free environment** for everyone - And of couse, another interesting susprise **you'll discover by following my devlogs!** **Until then, i want to thank each of you for reading my post and contributing to my motivation!** **Bye for now!** ![](https://media1.tenor.com/m/5UrK7rSTuscAAAAd/goodbye-bye-bye.gif) --- **Sources**: - **Gifs**: Tenor
#devlog #gaming #hivegaming #hive #play2earn #programming #farm #blog #development #emyf
Payout: 0.000 HBD
Votes: 80
More interactions (upvote, reblog, reply) coming soon.