[RELEASED] Survival Engine - Complete Project Template for Survival Games

Hi everyone!

Survival Engine is a project template for creating survival or simulation games!

Here are some of the features:
-Player controls (mouse click, mobile tap, and keyboard).
-Inventory system
-Crafting system
-Equipment (attached to character)
-Resource gathering
-Character attributes (health, hunger, thirst…)
-Animal behaviors (wander, escape, chase)
-Hunting and Fishing
-Farming (Sowing seeds, and plant/fruit growth)
-Combat (against wild animals)
-Item durability and food spoilage
-Storage boxes (chest)
-Bonus effects (ongoing aura effect that increases attributes or boost stats).
-Customizable Actions (streamlined way to include your own code)
-Game clock, day/night cycle
-Save/Load system

And the features that are planned:
-Item durability → Done
-Storage boxes → Done
-Unlock crafting recipes → Done
-Improved build system → Done
-Character script - > Done
-Random world generation → Done
-Game pad controls (other asset integration) → Done
-Dialogue & Quests (other asset integration) → Done
-Backpack storage → Done
-Crafting requirements → Done
-Crafting stations → Done
-Map (other asset integration) → Done
-Crafting fillers → Done
-Temperature, cold and heat sources → Done

Note that this list may change based on popular demand. Please buy this asset for its existing features. I would really appreciate feedback and suggestions, I will consider the most popular requests.

Demo Windows: https://indiemarc.com/demo/survival-engine/SurvivalEngineWindows1.22.zip

Demo Windows TPS: https://indiemarc.com/demo/survival-engine/SurvivalEngineWindowsTPS1.22.zip

Demo Android:

Demo IOS

Survival Kit (Documentation) https://indiemarc.com/demo/survival-engine/SurvivalEngine.pdf

Tutorial Videos

Support
Website/email: https://indiemarc.com
Discord: Indie Marc - Game Dev
(FAQ available on Discord)

Link to asset:
https://assetstore.unity.com/packages/templates/systems/survival-engine-178160

1 Like

Thank you for this engine, please keep working on it (you should add the link to this forum post on the asset page by the way, I found it accidentally) and a discord would be helpful as well.

Biomes is something that I would absolutely love to see in this asset. I would really recommend that you potentially create more assets that build on top of the survival engine. It can be a great way to sell more, I’d love to support your work on this project, since survival/simulation games are my absolute favorite ones and I always wanted to get some base code to start with. It would be great to have a multiplayer survival asset as well, that combines with this one(uses same base code etc).

I wouldn’t worry too much about UI elements, since most games will be using their own anyway. Durability/crafting/maps/random world generation are all marvelous ideas.

Other interesting things to add would be portals(that transfer you around the map), season elements(wind/rain/snow etc). Maybe things like poison(reduce hp sequentially). Just some ideas.

Really hope you will continue working on this, I’d love to support your work !

2 Likes

I will keep working on it! I’m really happy that you like it.
I added the link to the page, it will appear on the next update, thank you for the suggestions!

One possibility would be to create different editions of the asset. But I would not build on top like modules, because I think it’s better to have all necessary features in a single package. Instead what could be cool is to have different editions, each with a unique theme, so people can choose and pick the one that is the closest to their game, each would have some unique mechanics that is relevant to that theme. Examples of themes could be: zombie apocalypse, farm town ala harvest moon, space survival, while the existing asset would be the Wilderness Edition. Note that theses are absolutely not promises though! They are just random ideas on the top of my head, and I need to think more about this and also see what people think of it. I will of course focus on the current asset first!

And thank you again so much for willing to support my work!

NEW in version 1.04

Item durability and Spoilage!
Now its possible to add a durability value to each item and constructions!
Durability comes in 3 types: UsageCount, UsageTime, Spoilage

UsageCount means that the item will lose durability each time you use it, either through code (custom action) or when attacking (weapons) or taking damage (not weapon).
UsageTime means it will lose durability over time, but only if equipped.
Spoilage means it will lose durability over time, no matter where it is.

Storage (Chest)
It is now possible to build a chest and store items inside. These will be saved in the save file.

Shovel
The shovel is now working! You can use it to dig plants (to get their seeds and plant somewhere else), or to dig burried items (at a DigSpot).

Watering can
Watering can is a new item that allow you to boost plants growth. You first need to fill it at a water source, and then use it on your plants, you can adjust the speed boost as well as the duration it stays watered.

Bonus Effects
Bonus effects are ongoing effects that are applied to the character in 2 ways: either by equipping an item that has the bonus effect, or by standing near a construction with the bonus effect (BonusAura).
Examples of effects are walk speed boost, or attribute regeneration (happiness near the statue, speed boost when wearing boots).

Mobile controls
-You can now use 2 fingers to zoom in/out the camera on mobile
-You can now double tap on a item to open the action menu (the hold is still there, its just an alternative).

Tool to easily create new Prefabs
Many people said it’s a bit tedious to create new prefabs, I created a basic tool (it still has room for improvement) to generate a new prefab along with its data files.
You still need to go and edit the prefab and scriptable object properties after creating, but at least the step of linking all the files together is done for you!
Use the tool in the menu: Tool->Create New Objects

New Crafting items
-A compass that will point north when dropped on the floor.
-A lure that will attract nearby animals, you can use it together with the trap to catch them.
-A statue that grants happiness when nearby
-More new items (helmets, stone armor, battle axe, carrot, rice, cooking recipes, chest …)

Multiple minor improvements
-Crafting when the inventory is full will now put items on the floor instead of preventing you to crafting
-Crafting button not enabling sometimes bug fix
-Grass can now grow back!
-Crafting quantity: you can now set the quantity that will be crafted for an item (so you make 5 arrows at a time instead of 1).
-You can order items in the crafting menu (using the craft_sort_order param)
-Fishing will now take a few seconds and play an animations
-You can optionally let the engine generate a Selectable outline automatically instead of adding it manually
-Keyboard button to attack the nearest target (Shift by default)
-Two plants cant be sowed on top of each other.
-Added namespace SurvivalEngine to ALL scripts

1 Like

Top-notch asset, a great way to hit the ground running with a survival game. I look forward to the update and more.

2 Likes

This sounds like a great idea, but I would still like to be able to use the mechanics if i pick a different theme. Thus, it may be nice to do something like that but have a mechanism to allow porting the mechanics from one asset to the other. Since mechanics are extremely important, it would suck not to be able to use, say a teleport mechanism on a specific theme, even though I have both of your assets. But i do love the idea about themes :slight_smile: I would also absolutely on the spot purchase any of your assets on simulation/colony building/tycoon themes. Day one purchases for me :slight_smile: I absolutely love those themes.

1 Like

In any case I will focus on adding more to the current asset first, so there is no need to think about all this yet ! I’ll figure out when I reach that point haha. Thanks for all the suggestions and support!

I wanted to share this! It may help to learn the controls.

2 Likes

You must add links to the demos in the description of the asset, because a good demo is much more explicit than text.
The Android Demo decides me to buy this asset.

1 Like

I’ve always wanted to do that but when I do Unity Asset Store decline my update because of ‘invalid links’ even though the links are working. This is why I put the links to this forum instead, the demo can be downloaded from the first post.

Tutorials I created, hope it helps!

How to replace the character by your own model:

How to use the object creator tool:

2 Likes

can i change the controler to TPS? if can, is there any restricted to the original controller that i need to edit?

Hi! Do you plan to add firearms?

Or build a base?

You would need to edit the camera script and control script for that, its not a feature that I added yet. A lot of people are asking for this so I will really consider adding in future versions. Do you have suggestions for the controls it should be by default? Like free camera rotation using the mouse? In the case if we hide the mouse to rotate,how would you access the inventory? Just asking to see what would be the best fps/tps controls.

You can build constructions buildings already so im not really sure what you mean by building a base? Can you explain?
Firearm there is none yet but they should work similar to the bow or slingshot.

Hope these answers help :slight_smile:

Can u add multiplayer option? or game lobby

Im not planning on adding online multiplayer at the moment. I want to focus on the game mechanics for singleplayer first.

haha i kinda guess many people will ask that. well, i dont know it is what u ask for the suggestion but if in the future u will add a tps/fps contrler, that will be a very good update for most newbie/indie developer. well for tps or fps, it depend on on the developer and u for the one who making the assets. but most of rpg gmae using a TPS contorler rather than FPS. so if u want to add one more controller type, u need to prioritize a tps controler. for accessinmg the inventory, i think it is good if using a hotkey like press “I”, and then u can lock the rotate function for the player (even if u not, its still ok, there game that u can rotate the player even though the inventory is open).

hope my answer helping to develope your assets.

another question, so i only need to change that(camera script and control script )? well i laready has tps controler ready, and want to import your assets. but im seeing it will import some project setting. is it will affect other function from the controller and camera(such as inventory and iem) ,if im not adding the project setting?

sorry for the long post

Hi! Thanks for your suggestion of tps controls.

About your questions maybe better to not import the projects settings if posinle or that may affect the layers?
That controller would probably need a lot of code integration to work with the rest if it replaces the main character scriot because that script is important.

I’ll probably work on a way to disable character controls or movement but keep the important functions like building and crafting in the next version. So its easier to do that.

Be careful not to implement too much in terms of gameplay, You will get a lot of people just doing asset flips, some won’t even change the art just straight up sell it as is. There’s another asset that happened to, not too sure what happened but caused a ton of commotion and the asset had to be deprecated. If someone honestly intends to make a game, they will put the effort, time, and money required into it to implement the missing features.

Regardless, this is a really nice asset!
The only thing I can think of to improve it atm would maybe be to store items and whatnot as a JSON file. and instead of having to create prefabs, you could set up the item as a JSON, and the game auto-creates it at startup. Then you could also expand on that and implement a custom editor window. That way we don’t have to constantly create new prefabs.

Also is there a Discord for the asset?

3 Likes

Do you plan on making things like quests and enemies and npcs?