Hauling and Crafting


Saturday and Coffee number 1 by my side I've decided to write another little post to get me in the mood for working this lovely day. The week has been full of interviews so employment is looking right around the corner; which means the more development I can get done then the better.

So what me been working on? It be hauling and crafting.

Crafting Queues

This feature is now being tested and finalized, it allows the player to queue up a bunch of items in a crafting bench. Over time pawns will collect resources and deposit them in the bench. After spending time crafting the item the resources are removed and the item is added to the crafting bench.

It's a rather simplistic feature to understand and so I won't go much further into details, but from a high level it's a crafting queue that stacks up to 10 items for crafting.

Hauling

This feature is another one of those AI nightmares. So let's imagine a crafting queue exists for a pickaxe which takes 10 stone to craft; if the crafting bench has no stone, it creates an order for 10 stone from game.

Each NPC who is assigned to hauling or working will see the order for 10 stone, and attempt to complete it.

The reason this feature is especially hard to develop is because of all the edge cases "when things go wrong". For example if a pawn is delivering resources and you tell the pawn to stop and fight an NPC, then this would mean that the order was not completed and another order must be created.

So a big thing with systems like this is testing, testing and testing. I'm spending vast amounts of time testing all the edge cases and coding fixes for them.

And so that's it! Til next time folks!

-----

Et plus en français d'un débutant

Peut-etre un mauvaise idée mais je voudrais ecrire un peu plus souvent et j'ai pensé que je pourrais écrire un peu ici pour les personnes qui peut parler le francais et qui voudrais de voir mon progress avec la langue. (J'apprends depuis un ans et midi jusqu'a maintenant et c'est ma deuxieme langue!)

Donc voici la premier pub que je vais écrire en francais!

Crafting Queues

Cette fonction n'etait pas trop difficile de créer, le partir lequel c'etait la plus compliqué pour cette feature c'etait UI/UX. Il y n'a pas beaucoup des autres fonctions pour cette chose a partir d'ajouter un élément d'un liste.

Hauling

Wesh. Trop difficle cette fonction oo la la. Cette fonction existe pour deplacer les resources autor la base. Par example deplacer des roches d'un autre boite, ou nous le mettons dans un crafting bench pour creer les armes. La raison pour laquelle c'est difficile c'est l'utilization d'IA pour finir tous les taches. Par example, un IA dois trouver les éléments pour deplacer, et puis il dois prendre les éléments et deplacer d'un boite d'un autre lieu.

Et voila c'est tout. Je sais que c'est pas grand chose mais c'est un debut pour moi! :)

J'espère que vous allez bien et à bientôt !

Get Dead Desert

Leave a comment

Log in with itch.io to leave a comment.