Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.






Cheating At ' Don't Starve ' By Modifying The Game Code

Posted by Shippou, in Non Code 20 June 2014 · 759 views

Don't Starve is an interesting survival & adventure game that places a player into a brutal survival environment, were one seemingly innocent mistake can cause instant death.
After playing this game for a while there were many things that started to annoy the #### out of me ...
IE:
* Always eating
* Gobblers appearing constantly
* Vegetable farming being painfully slow
* Items made with hard to get items break very fast
* Recipes that take way too many items to make simple stuff
* Certain "monsters" having way too much health or attack power ( normal frogs for example )

To make the game more enjoyable to play, I have been fiddling around with the game's scripts, conveniently written in Lua.
Here is a basic guide on how to change basic stuff in game. (( Remember to make backups before messing with the code )) . I recommend using NotePad++ for script editing.

All the important scripts are located in \Don't Starve\data\scripts . The main script that controls a lot of the game is tuning.lua .
In tuning.lua :
* If you really hate gobblers, change the spawn chance under PERD_SPAWNCHANCE
* To increase the uses of any item, search for USES = and change whatever you like
* To eat less change the following 2 areas: lower the local calories_per_day and than change the food calories reflect your change
		CALORIES_TINY = 
		CALORIES_SMALL = 
		CALORIES_MEDSMALL = 
		CALORIES_MED = 
		CALORIES_LARGE = 
		CALORIES_HUGE = 
		CALORIES_SUPERHUGE = 
* If things rot too fast for you, increase the rate of PERISH
* You can change the HP and attack damage of all the creatures in the game here.
* You can change all armor and weapon damage here also
* Inventory item stacks can be found under STACK_SIZE
* How much health you recover from eating certain items can be found under HEALTH
* How much health you recover from eating certain items can be found under SANITY
* Gain sanity during the daylight by changing SANITY_DAY_GAIN

Under Don't Starve\data\scripts\prefabs look for birdcage.lua and change this to get more seed drops from caged birds
if Prefabs[seed_name] then
	local num_seeds = math.random(2)
Under Don't Starve\data\scripts look for recipes.lua and have fun changing the recipes for in game items Posted Image


If you know of any more useful game changes, please post it below.




Are you planning on make any additions to the game now that you know more about the code?

Are you planning on make any additions to the game now that you know more about the code?

 I do not know how the script is parsed by the rendering engine / game engine ( which is written in C++ and not open source ).

PARTNERS