Jump to content

#[string "scripts/widgets/hoverer.lua"]:49: attempt to index field 'controls' (a nil value)


Recommended Posts

Title explains my situation.

 

Basically I'm trying to make a standalone mod of my Plutia mod by just having the Dolls alone, calling them the 'Don't Starve Dolls'.

 

Unfortunately I keep getting this error represented within the title of this post. I honestly don't know what it's asking and how I can fix it. I just want it fixed and I want it to stop bothering me.

 

Heres what I have on my modmain:

PrefabFiles = {	"wilsondoll",	"willowdoll",	"wendydoll",	"wxdoll",	"wickerdoll",	"wolfgangdoll",	"wesdoll",	"wigfriddoll",	"waxwelldoll",	"woodiedoll",	"webberdoll",	"balloon2",	"ghost2"}Assets = {    Asset( "ATLAS", "images/hud/plutiatab.xml" ),}local require = GLOBAL.requirelocal STRINGS = GLOBAL.STRINGSlocal resolvefilepath = GLOBAL.resolvefilepathlocal Ingredient = GLOBAL.Ingredientlocal RECIPETABS = GLOBAL.RECIPETABSlocal Recipe = GLOBAL.Recipelocal TECH = GLOBAL.TECH-- Custom itemsGLOBAL.STRINGS.NAMES.BALLOON2 = "Pseudo Wes Balloon" GLOBAL.STRINGS.CHARACTERS.GENERIC.DESCRIBE.BALLOON2 = "Not good as the actual Wes's Balloons, but it'll do."GLOBAL.STRINGS.NAMES.GHOST2 = "Pseudo Abigail Ghost" GLOBAL.STRINGS.CHARACTERS.GENERIC.DESCRIBE.GHOST2 = "It's a fake Abigail ghost. It's less cute."-- Custom Items dollsSTRINGS.RECIPE_DESC.WILSONDOLL = "A doll of a Scientist!" STRINGS.RECIPE_DESC.WXDOLL = "A robot-like doll!"STRINGS.RECIPE_DESC.WILLOWDOLL = "A firey cute doll!" STRINGS.RECIPE_DESC.WENDYDOLL = "A pessimistic doll!"STRINGS.RECIPE_DESC.WICKERDOLL = "An insomniac doll!"STRINGS.RECIPE_DESC.WOLFGANGDOLL = "A mighty stuffed doll!"STRINGS.RECIPE_DESC.WOODIEDOLL = "A Wooden Doll!"STRINGS.RECIPE_DESC.WEBBERDOLL = "A Sticky and Web-like doll!" STRINGS.RECIPE_DESC.WAXWELLDOLL = "A doll with ill intent?!"STRINGS.RECIPE_DESC.WIGFRIDDOLL = "This doll is just acting!"STRINGS.RECIPE_DESC.WESDOLL = "A doll with a pale face!"GLOBAL.STRINGS.NAMES.WILSONDOLL = "Wilson Doll"GLOBAL.STRINGS.NAMES.WXDOLL = "WX-78 Doll"GLOBAL.STRINGS.NAMES.WILLOWDOLL = "Willow Doll"GLOBAL.STRINGS.NAMES.WENDYDOLL = "Wendy Doll"GLOBAL.STRINGS.NAMES.WICKERDOLL = "Wickerbottom Doll"GLOBAL.STRINGS.NAMES.WOLFGANGDOLL = "Wolfgang Doll"GLOBAL.STRINGS.NAMES.WOODIEDOLL = "Woodie Doll"GLOBAL.STRINGS.NAMES.WEBBERDOLL = "Webber Doll"GLOBAL.STRINGS.NAMES.WAXWELLDOLL = "Maxwell Doll"GLOBAL.STRINGS.NAMES.WIGFRIDDOLL = "Wigfrid Doll"GLOBAL.STRINGS.NAMES.WESDOLL= "Wes Doll"GLOBAL.STRINGS.CHARACTERS.GENERIC.DESCRIBE.WILSONDOLL = "A cute snuggly scientist!"GLOBAL.STRINGS.CHARACTERS.GENERIC.DESCRIBE.WXDOLL = "Cold yet loving robot!"GLOBAL.STRINGS.CHARACTERS.GENERIC.DESCRIBE.WILLOWDOLL = "I feel warm just looking at it!"GLOBAL.STRINGS.CHARACTERS.GENERIC.DESCRIBE.WENDYDOLL = "Gloomy yet loving lolita!"GLOBAL.STRINGS.CHARACTERS.GENERIC.DESCRIBE.WICKERDOLL = "Can't sleep with this one..."GLOBAL.STRINGS.CHARACTERS.GENERIC.DESCRIBE.WOLFGANGDOLL = "It's stuffed with meat!"GLOBAL.STRINGS.CHARACTERS.GENERIC.DESCRIBE.WOODIEDOLL = "I swear this doll transforms sometimes..."GLOBAL.STRINGS.CHARACTERS.GENERIC.DESCRIBE.WEBBERDOLL = "It's sticky to the touch! Yuck!"GLOBAL.STRINGS.CHARACTERS.GENERIC.DESCRIBE.WAXWELLDOLL = "This doll says to bring misfortune to other dolls.."GLOBAL.STRINGS.CHARACTERS.GENERIC.DESCRIBE.WIGFRIDDOLL = "Crafted with Heroic Spirit, Bravery, and Plunder!"GLOBAL.STRINGS.CHARACTERS.GENERIC.DESCRIBE.WESDOLL = "This doll is eerily silent. For a doll that is!"--Mini MapsAddMinimapAtlas("images/inventoryimages/wilsondoll.xml")AddMinimapAtlas("images/inventoryimages/willowdoll.xml")AddMinimapAtlas("images/inventoryimages/wickerdoll.xml")AddMinimapAtlas("images/inventoryimages/wolfgangdoll.xml")AddMinimapAtlas("images/inventoryimages/wxdoll.xml")AddMinimapAtlas("images/inventoryimages/wendydoll.xml")AddMinimapAtlas("images/inventoryimages/woodiedoll.xml")AddMinimapAtlas("images/inventoryimages/webberdoll.xml")AddMinimapAtlas("images/inventoryimages/waxwelldoll.xml")AddMinimapAtlas("images/inventoryimages/wigfriddoll.xml")AddMinimapAtlas("images/inventoryimages/wesdoll.xml")--Plutia TabSTRINGS.TABS.PLUTIASTAB = "Plutia"GLOBAL.RECIPETABS['PLUTIASTAB'] = {str = "PLUTIASTAB", sort=998, icon = "images/hud/plutiatab.tex", icon_atlas = "images/hud/plutiatab.xml"}--Plutia Recipeslocal wilsondoll_recipe = AddRecipe("wilsondoll",{GLOBAL.Ingredient("beefalowool", 4), GLOBAL.Ingredient("silk", 2)},RECIPETABS.PLUTIASTAB, TECH.NONE,nil, nil, nil, nil, nil,"images/inventoryimages/wilsondoll.xml", "wilsondoll.tex")wilsondoll_recipe.tagneeded = falselocal willowdoll_recipe = AddRecipe("willowdoll",{GLOBAL.Ingredient("beefalowool", 4), GLOBAL.Ingredient("silk", 2), GLOBAL.Ingredient("charcoal", 1)},RECIPETABS.PLUTIASTAB, TECH.NONE,nil, nil, nil, nil, nil,"images/inventoryimages/willowdoll.xml", "willowdoll.tex")willowdoll_recipe.tagneeded = falselocal wendydoll_recipe = AddRecipe("wendydoll",{GLOBAL.Ingredient("beefalowool", 4), GLOBAL.Ingredient("silk", 2), GLOBAL.Ingredient("petals", 3)},RECIPETABS.PLUTIASTAB, TECH.NONE,nil, nil, nil, nil, nil,"images/inventoryimages/wendydoll.xml", "wendydoll.tex")wendydoll_recipe.tagneeded = falselocal wxdoll_recipe = AddRecipe("wxdoll",{GLOBAL.Ingredient("beefalowool", 4), GLOBAL.Ingredient("silk", 2), GLOBAL.Ingredient("goldnugget", 1)},RECIPETABS.PLUTIASTAB, TECH.NONE,nil, nil, nil, nil, nil,"images/inventoryimages/wxdoll.xml", "wxdoll.tex")wxdoll_recipe.tagneeded = falselocal wickerdoll_recipe = AddRecipe("wickerdoll",{GLOBAL.Ingredient("beefalowool", 4), GLOBAL.Ingredient("silk", 2), GLOBAL.Ingredient("papyrus", 1)},RECIPETABS.PLUTIASTAB, TECH.NONE,nil, nil, nil, nil, nil,"images/inventoryimages/wickerdoll.xml", "wickerdoll.tex")wickerdoll_recipe.tagneeded = falselocal wolfgangdoll_recipe = AddRecipe("wolfgangdoll",{GLOBAL.Ingredient("beefalowool", 4), GLOBAL.Ingredient("silk", 2), GLOBAL.Ingredient("meat", 1)},RECIPETABS.PLUTIASTAB, TECH.NONE,nil, nil, nil, nil, nil,"images/inventoryimages/wolfgangdoll.xml", "wolfgangdoll.tex")wolfgangdoll_recipe.tagneeded = falselocal wigfriddoll_recipe = AddRecipe("wigfriddoll",{GLOBAL.Ingredient("beefalowool", 4), GLOBAL.Ingredient("silk", 2), GLOBAL.Ingredient("footballhat", 1), GLOBAL.Ingredient("armorwood", 1)},RECIPETABS.PLUTIASTAB, TECH.NONE,nil, nil, nil, nil, nil,"images/inventoryimages/wigfriddoll.xml", "wigfriddoll.tex")wigfriddoll_recipe.tagneeded = falselocal waxwelldoll_recipe = AddRecipe("waxwelldoll",{GLOBAL.Ingredient("beefalowool", 4), GLOBAL.Ingredient("silk", 2), GLOBAL.Ingredient("nightmarefuel", 12)},RECIPETABS.PLUTIASTAB, TECH.NONE,nil, nil, nil, nil, nil,"images/inventoryimages/waxwelldoll.xml", "waxwelldoll.tex")waxwelldoll_recipe.tagneeded = falselocal woodiedoll_recipe = AddRecipe("woodiedoll",{GLOBAL.Ingredient("beefalowool", 4), GLOBAL.Ingredient("silk", 2), GLOBAL.Ingredient("log", 20)},RECIPETABS.PLUTIASTAB, TECH.NONE,nil, nil, nil, nil, nil,"images/inventoryimages/woodiedoll.xml", "woodiedoll.tex")woodiedoll_recipe.tagneeded = falselocal webberdoll_recipe = AddRecipe("webberdoll",{GLOBAL.Ingredient("beefalowool", 4), GLOBAL.Ingredient("silk", 6)},RECIPETABS.PLUTIASTAB, TECH.NONE,nil, nil, nil, nil, nil,"images/inventoryimages/webberdoll.xml", "webberdoll.tex")webberdoll_recipe.tagneeded = falselocal wesdoll_recipe = AddRecipe("wesdoll",{GLOBAL.Ingredient("beefalowool", 4), GLOBAL.Ingredient("silk", 2)},RECIPETABS.PLUTIASTAB, TECH.NONE,nil, nil, nil, nil, nil,"images/inventoryimages/wesdoll.xml", "wesdoll.tex")wesdoll_recipe.tagneeded = false

 

If anyone can spot it you have my gratitude!

Edited by rons0n
Link to comment
Share on other sites

The code relevant to your error:

    local str = nil    local colour = nil    if self.isFE == false then         str = self.owner.HUD.controls:GetTooltip() or self.owner.components.playercontroller:GetHoverTextOverride()        if self.owner.HUD.controls:GetTooltip() then            colour = self.owner.HUD.controls:GetTooltipColour()        end    else        str = self.owner:GetTooltip()    end

 

Are you doing anything with the HUD in modmain?

Link to comment
Share on other sites

@debugman18, I do not believe so, everything I posted in the OP is what I have in the modmain right now.

 

I don't think my dolls could be the benefactor also, but who knows.

 

I might have to start from scratch as this was just a quick cut-out job from my previous mod. This time i'll just move the contents into a new folder and see what happens.

 

Thanks though, now I know its HUD related(Which is weird because there shouldnt be anything hud related, unless you count the custom tab). Much appreciated!

Link to comment
Share on other sites

Still stumped, I really want to release this mod but its being such a pain in the rump right now.

 

For now I kept it simple, so it looks like this.

--Plutia Tablocal plutiastab = AddRecipeTab( "Plutia", 998, "images/hud/plutiatab.xml", "images/hud/plutiatab.tex", nil)--Plutia RecipesAddRecipe("wendydoll", {GLOBAL.Ingredient("flint", 2), GLOBAL.Ingredient("ice", 3), GLOBAL.Ingredient("goldnugget", 1)}, plutiastab, TECH.NONE, nil, nil, nil, nil, nil, "images/inventoryimages/wendydoll.xml", "wendydoll.tex" )

The Plutiatab is made so that ALL players(characters) can use it. This is my intention.This is why the builder tag is nil

 

The AddRecipe also has the builder tag at nil.

 

BUT for whatever reason trying to make this work gives me the same old message in this Threads title.

 

IF I make it build specific it works, make it to nil it crashes.

 

What am I suppose to do?

 

Man, It was a small mistake. How embarrassing. Time to fall of a cliff somewhere.

 

Regardless thanks Kzisor

Edited by rons0n
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...