SteemNova: some bugfixes in Research and Buildings

in #utopian-io6 years ago (edited)

SteemNova is an open source space strategy browsergame for Steemians.

Repository

https://github.com/steemnova/steemnova

Bug Fixes

  • What was the issue(s)?
  1. During the research of the first level of a Technology, there's a bug in the link text to research the next level of that technology. The text should show 'Research to the next level 2' instead of 'Research'. The bug is is described in this bug report.
  2. During construction of the first level of a building, there's a bug in the link text to upgrade to the next level of that building. The text should show 'Upgrade 2' instead of 'Build'. It's a similar bug as 1. but there was no extra bug report.
  • What was the solution?
  1. To fix the research issue, I had to fix the Smarty code in the following template: styles/templates/game/page.research.default.tpl
    In this file were two wrong if conditions, which choose the text to display (one for the green text when research is possible and one for the red text when research is not possible). Instead of just check the actual level of the research, a check of the level to research is needed.
    Screenshot of the above changes:
    bugfix_research.png
    https://github.com/steemnova/steemnova/pull/154/files#diff-6239085e8c839a693a2dd83b6b9e2e87
  2. To fix the building issue, I had to fix the Smarty code in the following template:styles/templates/game/page.buildings.default.tpl
    In this file were two wrong if conditions, which choose the text to display (one for the green text when building is possible and one for the red text when building is not possible). Instead of just check the actual level of the building the check of the level to build is needed.
    Screenshot of the above changes:
    bugfix_buildings.png
    https://github.com/steemnova/steemnova/pull/154/files#diff-5f9b47849684313cee8c35b6f1eb21e9

GitHub Account

https://github.com/cryptoriddlerUIO

Sort:  

SteemNova is a great project. It will go so far.Cause it is open source based. Best of luck.

its really a great job... informative and leasonable post.. thanks for sharing..

thank you for providing information about SteemNova.you are a great friend.

Mal wieder hervorragende Arbeit ... Weiter so ! Werde mir das Spiel später mal wegballern :)

Nice information

You're fixing some text that's good but does it really deserve a post especially when you have such a nice project ?
You should post when you're adding a new feature or fixing a critical issue that impacts deeply your game.

To receive an utopian upvote please write on something most significant.

Your contribution has been evaluated according to Utopian rules and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post,Click here


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

I've only been working on the project for a short time and I've picked out a simple bug to gain some experience with GitHub and Utopian-io. Therefore I see this contribution as an exercise for later, when I am deeper into the matter.

And I thought browser games were dead. But here is one and I will take a closer look at it.
I was a big fan of nemexia and ogame and stuff like that.