Tuesday, 28 February 2023

New Trees and Dropping Items

Been working on adding new trees to the forest and the ability to cut them down and collect wood from them. Each tree is saved when leaving the area and will be added to the save file next time I go over them.

I normally go over the saves just before a major release. Saves me time and I don't really want to rewrite the save code every time I add something new to the game.

The trees are drawn in a way that puts the player either in front or behind the tree. Unfortunately I am unable to figure out how to do that with any other moving object, so the wolfs will look like the trees grow out of them. I am sure there is a way to figure it out in the future.

Gif of new tree and material dropped.

All wood is usable in the fireplaces at the Tavern and can also be sold to the tavern owner.

Using the trees as a reference I managed to be able to get items that are discarded to drop at the players feet. This is only doable as of now in the town. Once the code if finalized and working properly I will add it to the rest of the game world.

Gif of dropping potions on the ground.

The gif only shows potions being dropped but it is working on 80% of items that are already in the game. I will also make it easier to discard items. May bring back the right mouse button to do it.


Extra.

All herbs and mushrooms now save their locations when the map is changed. They will also respawn after a set amount of time has passed if all have been picked up.








Friday, 24 February 2023

Version 0.14

Version 0.14 is now finished.

I have updated the change log to show most of the changes. This is a big update because it changes old and adds new systems to the game.

New death screen and respawn penalties.

New damage system.

New armor system.

New shop and money system.

Read change log for most of the changes. I may of missed a couple.

Also updated the readme file in game folder


Updated download on the right to link to version 0.14 and also added a link to the games builds archive.

Wednesday, 15 February 2023

Bug fixing and Saving

Been working on squashing all the bugs that have appeared over the last few builds. Found out build 0.13 is full of game breaking bugs. My bad.

Finished fixing the last of the texture bugs yesterday.

Apothecary shop texture bug.

The above error was happening in all shops. All textures were being replaced with the last texture that was loaded.

That is all fixed now.

I have moved on to fixing saving the game. With all the new items and features I have added lately the save files have all been broken. Cant say how long it is going to take to fix them.

Once the game saves properly again all I need to do is run some test and I will have a new build ready for people to try out.



Tuesday, 7 February 2023

Bug Fixing and New Death Screen

Been busy squishing bugs and getting everything to work nice.

Fixed bug with quests.
Fixed a memory leak.
Fixed bug that stopped you respawning.
Fixed bug that crashed the game if you died in a shop.

Made a new death screen and respawn penalty.

New Death and Respawn Screen

The penalty atm is not that much. When you respawn what every mana you had will become your health. No mana means no respawn.

Will have more penalties in the future but this is it for now. May have it use up potions or money if you don't have any mana to respawn. Also going to have you backpack drop where you died and give you the ability to set your respawn location.




Tuesday, 31 January 2023

Almost done for next release

Been working hard on getting the game to a stable build for the next release.

Finished up the shop today, got the armor displaying properly, got the new weapon names and descriptions in, added a log for when you pick up herbs and have the damage system working well with the new armor.

Just need to iron out some bugs that I have come across. There was a memory leak when the quests respawned, which I fixed today.

The Quests need a huge overhaul but I will leave that for later on. They work well enough for now.

All that I need to do is play the game and fix any bugs that appear or change anything that isn't user friendly.

After I am finished with this version I will start making the crafting system and add the Adventurers Guild. 

Will move the quest board to inside the Guild. Will also be adding rooms to rent from the Guild so you can store things in there - feature requested.

You will need recipes to be able to craft things. Potions you will be able to figure out by eating the ingredients or just trying to use them to craft something.

Maybe not next update but in the near future I will be making skills purchasable books you will need to learn. You will be able to learn them over time by repeating the task but that would take a long time. Harvesting skill my take picking herbs a 1000 times before you acquire the skill. If you pick a starter perk that has a relevant skill you will automatically obtain said skill. Farmer perk will get the farmer skill and harvesting skill.

Magic will be the same as the skill books and will need to be purchased unless your pick the Magicians Child starter perk, then you will start with a couple spells. There may be NPC's in game who will teach you magic as well.

Tuesday, 17 January 2023

Armor

I have almost finished with the armor. I have got them to randomly build in the shop and set a name and description based on the materials used in crafting them.

Pricing still needs to be fixed to work with the new armor, but other than that is seems to be working well with no bugs. Will still be tweaked as time goes by.

Even made the armor lose layers if their health goes below 0. Will make it so you can only repair the armor if the base is over 0. Also make it so damage layers will need to be removed before fixing or upgrading. 

Gif of new names and descriptions.


Also made so in the shop if you hover over the buy or sell list the item info will appear. Still need to look into being able to remove items off either list one at a time, so you don't need to reset the whole list if you make a mistake. 



Monday, 16 January 2023

Game Systems

While I was working on the shop I had to take another look at the armor. Well, one thing led to another and I had to redo the armor/damage system.

So I have started an upgrade on the armor/damage system for the game. Armor will come with 3 different parts. A base, reinforcement and plated. The armor names will be set by what they are made out of. Except for special ones.

Base: This will be what the under-armor is made of. Like a shirt you can add bits of metal to.
Reinforcement: This addon will be used to make the Base stronger.
Plated: This is to add plating over the top of your Base or Reinforced armor.

Concept Art of new armor.

Material Strength and Naming

May make it that the reinforcement only adds halve or 3 quarters of the material strength. I am open for ideas. 

I'll be working on adding new reinforcement and plate armor for steel and other materials. This is getting ready for the ability to craft or repair you own armor. As seen in the bottom armor where the plate isn't as good as the other iron plate. This will be due to skill level.

If this new armor works well I will add in different types of leather to increase the base armor. Each material comes with a hardness or armor rating and adds to the total armor amount.

The new damage system, still needs tweaking, will damage the armor layers first before inflicting damage onto the play. I tried to use percentage base damage but that didn't quite workout. So now the armor acts like a second health bar. Much like it did back when I first put armor into the game.

There is also armor skills that will negate a percentage of incoming damage per level if wearing the armor of said skill, this is totally op at high levels but it will be very time consuming to get to that level. At level 20 in light armor skill you negate 84% of damage.

Other than the armor/damage system I am working on atm I have finished the basics of the new money system. Money is now an in game object. You even have a wallet/pouch to hold it in. Atm you need a wallet or you can't carry any money but I made it so you start the game with one, for now. Going to add "that if no wallet money go in pocket" code later, mainly so it's possible to lose your wallet or have it stolen or to steal someone else's.

Once I am happy with the armor and the damage system is working well I am planning on posting the new build. The next system I want to work on is a searching system where you will be able to search any container or area marked as searchable to find locally based items or rubbish.

I also want to look into using a different character model that has more movements and weapons to use. I am no artist so I need to find or get someone else to make them for me.