Jump to content

So You Have One of Those Pesky FMod Errors


Recommended Posts

So after working out and tracking down my errors I thought I would try and lend a hand to others on fixing the dreaded "FMOD Error: An invalid object handle was used. " 

lets start off first with lua : all the mod and wordgen configs will be in lua, and these files are rather easy to understand once you understand the rules. The devs gave us the worldgenoverides.lua to play with to tweak to our hearts content , also making understanding a little easier.  For our purposes the rules are simple :

  1.  Close your [ and your } , if you miss one , you can see in your logs hand being thrown up and none of you selected overrides being used
  2.  The , it separates the various settings - so when you have errors check for a missing , 
  3.  Spelling , ok this one is true of any language, but defauld is not the same as default.
  4.  Comments in lua are marked by "--". Anything written after -- are considered a comment, and are not actually read by the game. This lasts until the next "new line" (when you press enter). Keep in mind! if your text editor have word-wrap, it will count for the entire line, even if it is shown as several lines (disable word-wrap for ease of reading). You can start a comment in the middle of a line as well, so if you find it after some writing, it is only the part of the line that is after the --, that counts as a comment. Make sure the settings you want to use are not commented, and the text/notes/unused settings you don't want to use, are commented out.

For point 1, most code editors will show you your matching brackets , on windows I highly recommend Sublime text it's not free but it has an unlimited trial and is worth the money, OSX has Textmate and if you are using Linux  (shell) try vim.

 

Here is the the worldgenoverides.lua from I just made it a little more readable then it was in that post

 

Quote

return {	override_enabled = true,	
preset = SURVIVAL_TOGETHER, --  or "SURVIVAL_TOGETHER" or "SURVIVAL_TOGETHER_CLASSIC" or "SURVIVAL_DEFAULT_PLUS" or "COMPLETE_DARKNESS" or "DST_CAVE"	
unprepared = 
	{ -- "never", "rare", "default", "often", "always"		
	banana = "default",		
	berrybush = "default",		
	cactus = "default",		
	carrot = "default",		
	lichen = "default",		
	mushroom = "default",	},	

		misc = {		

	autumn = "default", -- "noseason", "veryshortseason", "shortseason", "default", "longseason", "verylongseason", "random"		
	boons = "default", -- "never", "rare", "default", "often", "always"		
	branching = "default", -- "never", "least", "default", "most"		
	cavelight = "default", -- "veryslow", "slow", "default", "fast", "veryfast"		
	day = "default", -- "default", "longday", "longdusk", "longnight", "noday", "nodusk", "nonight", "onlyday", "onlydusk", "onlynight"		
	earthquakes = "default", -- "never", "rare", "default", "often", "always"		
	frograin = "default", -- "never", "rare", "default", "often", "always"		
	lightning = "default", -- "never", "rare", "default", "often", "always"		
	loop = "default", -- "never", "default", "always"		
	regrowth = "default", -- "veryslow", "slow", "default", "fast", "veryfast"		
	season_start = "default", -- "default", "winter", "spring", "summer", "autumnorspring", "winterorsummer", "random"		
	spring = "default", -- "noseason", "veryshortseason", "shortseason", "default", "longseason", "verylongseason", "random"		
	start_location = "default", -- "caves", "default", "plus", "darkness"		
	summer = "default", -- "noseason", "veryshortseason", "shortseason", "default", "longseason", "verylongseason", "random"		
	task_set = "default", -- "classic", "default", "cave_default"		
	touchstone = "default", -- "never", "rare", "default", "often", "always"		
	weather = "default", -- "never", "rare", "default", "often", "always"		
	wildfires = "default", -- "never", "rare", "default", "often", "always"		
	winter = "default", -- "noseason", "veryshortseason", "shortseason", "default", "longseason", "verylongseason", "random"		
	world_size = "default", -- "small", "medium", "default", "huge"	},	
	animals = { -- "never", "rare", "default", "often", "always"		
	alternatehunt = "default",		
	angrybees = "default",		
	beefalo = "default",		
	beefaloheat = "default",	
	bees = "default",		
	birds = "default",		
	bunnymen = "default",		
	butterfly = "default",		
	buzzard = "default",		
	catcoon = "default",		
	frogs = "default",		
	hunt = "default",		
	lightninggoat = "default",		
	moles = "default",		
	monkey = "default",		
	penguins = "default",		
	perd = "default",		
	pigs = "default",		
	rabbits = "default",		
	rocky = "default",		
	slurper = "default",		
	slurtles = "default",		
	tallbirds = "default",	},	

		monsters = { -- "never", "rare", "default", "often", "always"		
	bats = "default",		
	bearger = "default",		
	chess = "default",		
	deciduousmonster = "default",		
	deerclops = "default",		
	dragonfly = "default",		
	fissure = "default",		
	goosemoose = "default",		
	houndmound = "default",		
	hounds = "default",		
	krampus = "default",		
	liefs = "default",		
	lureplants = "default",		
	merm = "default",		
	spiders = "default",		
	tentacles = "default",		
	walrus = "default",		
	worms = "default",	},	

		resources = { -- "never", "rare", "default", "often", "always"		
	fern = "default",		
	flint = "default",		
	flower_cave = "default",		
	flowers = "default",		
	grass = "default",		
	marshbush = "default",		
	meteorshowers = "default",		
	meteorspawner = "default",		
	mushtree = "default",		
	reeds = "default",		
	rock = "default",		
	rock_ice = "default",		
	sapling = "default",		
	trees = "default",		
	tumbleweed = "default",		
	wormlights = "default",	}
								,}

 

It's a good place to start if you tried to set something and are not seeing it. for me this file was the source of all my errors so hopefully this will help you.

Im sorry if I am not the best at explaining things, and if I missed something let me know and I will try to add it in

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...