Jump to content

Recommended Posts

Maybe I could edit that with PrefabPostInit.

Yes, you could prevent it from being added at all (although I haven't looked into whether it's postinitable or not). The reason I think you can't cleanly remove a recipe after it's been added is that they use a master counter (the `num' variable in recipe.lua), so removing one would leave a hole. But isn't just hiding it through a filter enough for your goals? If the recipe doesn't appear, so that it can't be used, from a gameplay perspective there's no difference to it not existing at all.

Yes, you could prevent it from being added at all (although I haven't looked into whether it's postinitable or not). The reason I think you can't cleanly remove a recipe after it's been added is that they use a master counter (the `num' variable in recipe.lua), so removing one would leave a hole. But isn't just hiding it through a filter enough for your goals? If the recipe doesn't appear, so that it can't be used, from a gameplay perspective there's no difference to it not existing at all.

Don't want to mess with crafting.lua.

Don't even know if there are functions like post init for that file, and if its possible from modmain.

There are none for it specifically, but it could easily be done through a AddSimPostInit callback, since the HUD has already been initialized when it gets called (all HUD elements are attached to the player, after all). However, if [MENTION=12700]Heavenfall[/MENTION]'s suggestion does the trick, it will be much simpler. Edited by simplex
typo

If you're worried about the recipe's .sortkey, don't be. It's just used in a sort table, so having a missing number isn't going to impact anything. It gets filtered out here

local recipe = self.valid_recipes[recipe_idx]                        if recipe then

I'm glad [MENTION=12700]Heavenfall[/MENTION]'s suggestion did the trick, since its simplicity makes it by far the better option. But, for the sake of future reference, since my suggestion allows for deeper customization I'll post what it'd look like:

AddSimPostInit(function(inst)	local craft = inst.HUD.crafttabs.crafting		local oldfilter = craft.filter	local function newfilter(name)		return name ~= "cookpot"	end		craft:SetFilter(function(name)		return (not oldfilter or oldfilter(name)) and newfilter(name)	end)end)

I'm glad [MENTION=12700]Heavenfall[/MENTION]'s suggestion did the trick, since its simplicity makes it by far the better option. But, for the sake of future reference, since my suggestion allows for deeper customization I'll post what it'd look like:

AddSimPostInit(function(inst)	local craft = inst.HUD.crafttabs.crafting		local oldfilter = craft.filter	local function newfilter(name)		return name ~= "cookpot"	end		craft:SetFilter(function(name)		return (not oldfilter or oldfilter(name)) and newfilter(name)	end)end)
Thanks.

Thanks.

Is that irony?I just didn't post the code before because I think it's always better to point at where one could find an answer instead of just giving it, especially when it comes to code, since a code sample only shows how to do it in one particular scenario, not covering every conceivable corner case like reading the source does.

Is that irony?I just didn't post the code before because I think it's always better to point at where one could find an answer instead of just giving it, especially when it comes to code, since a code sample only shows how to do it in one particular scenario, not covering every conceivable corner case like reading the source does.

It is quite useful code. No irony, if it looks like that, then sorry.

It is quite useful code. No irony, if it looks like that, then sorry.

Well, it was a one word answer, so it was hard to pinpoint the tone. And there seemed to be grounds for irony. But anyway, I was just uncertain about what you meant, there's no need to apologize.
  • Developer

Hej @Ipsquiggle, I have a really bad bug in my mod, which will delete saves. I made a thread about it here. Would you be so kind as to take a quick look?

I'll have a look, thanks for the heads up.

e: head's up? heads up? heads' up? I'm not actually sure what's grammatically correct... Probably heads up. Editing to that. Yeah. Sounds good.

Hey [MENTION=55]Ipsquiggle[/MENTION]. I'm getting a weird crash with my multiplayer mod. It keep harping on that night_drain_mult is nil in sanity.lua. But night_drain_mult is defined as being equal to 1 in the main function, and this field is only ever touched by Wendy and Wolfgang who set it to another number (this crash happens whether these characters are present or missing). The crash also only occurs if you reload a game that is at dusk or night. The transition from day to dusk while playing causes no problems. Before the update I had a component post init which inserted a little check to set night_drain_mult to 1 if it couldn't find it. This no longer works, and I am also no longer able to override the entire sanity.lua from the mod folder.

[MENTION=24606]chromiumboy[/MENTION]Did you upload the code anywhere (public)?My guess would be this happens by calling Sanity:Recalc at night (which uses night_drain_mult to compute light_delta) prior to setting night_drain_mult. However, I don't think you'll be able to get further help without making the code at least partially available.---edit---At night or at dusk.

Edited by simplex

But that's the strange thing, the sanity code was entirely unmodded, and the sanity component is added in player_common as per usual.You were right [MENTION=44092]simplex[/MENTION], in sanity.lua the main function reads

local Sanity = Class(function(self, inst)    self.inst = inst    self.max = 100    self.current = self.max	--local dt = 1	--self.task = self.inst:DoPeriodicTask(dt, function() self:Recalc(dt) end)	self.inst:StartUpdatingComponent(self)	[I][U][B]self:Recalc(0)[/B][/U][/I]	self.rate = 0	self.sane = true	self.fxtime = 0	self.dapperness = 0	self.inducedinsanity = nil --Set to nil if not true. 	[I][U][B]self.night_drain_mult = 1[/B][/U][/I]	self.neg_aura_mult = 1end)
So the Recalc function is called before night_drain_mult is set, which causes the crash. The Recalc function fires after zero seconds, but this timer doesn't start until after the player character's components are loaded. The second player doesn't appear to be so lucky. A simple switch would stop the problem though [MENTION=55]Ipsquiggle[/MENTION]. Edited by chromiumboy

So the Recalc function is called before night_drain_mult is set, which causes the crash. The Recalc function fires after zero seconds, but this timer doesn't start until after the player character's components are loaded. The second player doesn't appear to be so lucky. A simple switch would stop the problem though [MENTION=55]Ipsquiggle[/MENTION].

I had stumbled upon this as well when looking for the cause of your bug, and asked myself basically the same questions (mostly the ones you just edited out and I didn't get to quote).But, well, there is no timer attached to the Recalc() call. What I believe happens in vanilla is that when Recalc(0) gets called for the main player no save data has been loaded yet, so the clock still "thinks" it's day (but maybe this theory is flawed, since I'm not entirely sure that would also happen inside caves).

I know this is a losing battle, but I'm back at trying to get Test Tools to preview all Entities and Objects. I really don't expect help here because I understand this task is impossible, because the Entities' and Object's base (I'll get back to this in a sec) SetBuild is not always named the same as the prefab file. In fact, it's rarely named the same as the .lua file.

Case in point: hound.lua. The 'base' SetBuild name is "hound". That's great and makes perfect sense. This also allows Test Tools to grab the 'base' image and load it in a 'preview' window. Just like it does with all the food and inventory items.

Now, hound.lua also has two other hounds in there: Fire and Ice. If there was a way to probe the hound.lua file for those names, I'd be in business, but at least I can grab the 'base' hound image for Test Tools and leave the other digging for another day.

bee.lua, on the other hand, does not follow this naming convention, and there lies the rub. If you dig into bee.lua, you'll see the 'base' SetBuild is not named "bee" (as you would expect) but "bee_build"! The programmers could have followed convention and made my life a lot easier, but they didn't. Seems they named it whatever came to mind at the time. I'll give them the benefit of the doubt and assume they had their reasons.

So here we have names all over the place. The 'base' SetBuild is not "bee" but "bee_build". It's also in a function, not called bee, but workerbee. The other bee in there is the killer bee... except it's SetBuild is "bee_angry_build". Good luck trying to program for that.

If a basic naming convention had been used, I could at least go in and grab the 'base' object/entity (hound, rock, tree, etc.). That would go along way. Then, you could go about writing code to probe for the other variations in the .lua file. As it is, though, we hit a wall that you can't get past, right off the bat.

Now, of course, there was no way the game programmers could have foreseen an idiot like me would come along and try to get Test Tools to show preview images of everything and need a standardized naming convention. What's wrong with me!

Anyway, as I say, I don't expect anyone to help here because it's an impossible task. But I did want to throw all this out there in case anyone was interested in why 90% of the Entity and Object previews are blanks.

Anyway, thanks for listening! :highly_amused:

Edited by tehMugwump
  • Developer

But that's the strange thing, the sanity code was entirely unmodded, and the sanity component is added in player_common as per usual.

You were right @simplex, in sanity.lua the main function reads

local Sanity = Class(function(self, inst)    self.inst = inst    self.max = 100    self.current = self.max    --local dt = 1    --self.task = self.inst:DoPeriodicTask(dt, function() self:Recalc(dt) end)    self.inst:StartUpdatingComponent(self)    [I][U][B]self:Recalc(0)[/B][/U][/I]    self.rate = 0    self.sane = true    self.fxtime = 0    self.dapperness = 0    self.inducedinsanity = nil --Set to nil if not true.     [I][U][B]self.night_drain_mult = 1[/B][/U][/I]    self.neg_aura_mult = 1end)
So the Recalc function is called before night_drain_mult is set, which causes the crash. The Recalc function fires after zero seconds, but this timer doesn't start until after the player character's components are loaded. The second player doesn't appear to be so lucky. A simple switch would stop the problem though @Ipsquiggle.
Moving self:Recalc(0) to the bottom of the function is no problem, it clearly should be there anyways. Just want to confirm that this solves the issue, or is there still a deeper problem?
  • Developer

Anyway, thanks for listening! :highly_amused:

I still feel like a big list of all the prefab->anim pairs will be your best bet technically, but I sympathize with trying to create such a thing. :\ I've had three different ideas this morning for efficiently (or even not so efficiently) extracting this information automatically, and I keep hitting dead ends.One thing you can do, is make a little utility for yourself that does
local s = "\nprefabAnims = {"for k,v in pairs(Prefabs) do    s = s.."\n\t{ "..v.name.." = {build=\"\", bank=\"\"} }," )ends = s.."\n}"print(s)
Run this sometime after the game loads (in GamePostInit for example) and it will dump out a list of every prefab in a table format that you can paste into your code, ready to fill in anim names for later... I know it's not much, but perhaps if we compose a few different angles to come at the problem like this, we can break it into small enough pieces that the manual work isn't so arduous?

[MENTION=10028]tehMugwump[/MENTION]

I wrote a simple (and highly hackish) Lua script to generate the list of builds. The list may be incomplete, and there may be some mistakes in it, but for its most part it should be correct.

-- Mapping of prefab names to builds.return {	["maxwelllight"] = "maxwell_torch",	["berrybush2"] = "berrybush2",	["trinket_8"] = "trinkets",	["tentacle"] = "tentacle",	["batbat"] = "batbat",	["froglegs_cooked"] = "frog_legs",	["cave_banana_tree"] = "cave_banana_tree",	["teleportato_box"] = "teleportato_parts_build",	["pond"] = "marsh_tile",	["walrus_camp"] = "igloo_track",	["cavelight"] = "cave_exit_lightsource",	["walrus"] = "walrus_build",	["mosquito"] = "mosquito",	["researchlab2"] = "researchlab2",	["plant_normal"] = "plant_normal",	["firepit"] = "firepit",	["papyrus"] = "papyrus",	["rabbithole"] = "rabbit_hole",	["shadowhand"] = "shadow_creatures_ground",	["hambat"] = "ham_bat",	["animal_track"] = "koalefant_tracks",	["skeleton"] = "skeletons",	["stalagmite"] = "rock_stalagmite",	["cookpot"] = "cook_pot",	["armormarble"] = "armor_marble",	["fireflies"] = "fireflies",	["ruins_plate"] = "ruins_plate",	["monkeybarrel"] = "monkey_barrel",	["koalefant_summer"] = "koalefant_summer_build",	["spiderqueen"] = "spider_queen_build",	["rock2"] = "rock2",	["slurtlehole"] = "slurtle_mound",	["drumstick_cooked"] = "drumstick",	["chessjunk3"] = "chessmonster_ruins",	["bird_egg_cooked"] = "bird_eggs",	["monstermeat"] = "meat_monster",	["mandrake"] = "mandrake",	["pond_mos"] = "marsh_tile",	["teleportato_base"] = "teleportato_build",	["tallbirdnest"] = "tallbird_egg",	["beemine_maxwell"] = "bee_mine_maxwell",	["robin_winter"] = "robin_winter_build",	["collapse_big"] = "structure_collapse_fx",	["blowdart_pipe"] = "blow_dart",	["hammer"] = "hammer",	["deerclops_eyeball"] = "deerclops_eyeball",	["houndmound"] = "hound_base",	["nightmarefuel"] = "nightmarefuel",	["petals"] = "flower_petals",	["rainometer"] = "rain_meter",	["yellowgem"] = "gems",	["monstermeat_dried"] = "meat_rack_food",	["bluegem"] = "gems",	["statuemaxwell"] = "statue_maxwell",	["evergreen_sparse_normal"] = "evergreen_new",	["trinket_9"] = "trinkets",	["stalagmite_low"] = "rock_stalagmite",	["rocks"] = "rocks",	["lockedwes"] = "wes",	["amulet"] = "amulets",	["birdcage"] = "bird_cage",	["researchlab4"] = "researchlab4",	["chester_eyebone"] = "chester_eyebone",	["flies"] = "flies",	["spiderden_3"] = "spider_cocoon",	["stinger"] = "stinger",	["beefalo"] = "beefalo_build",	["teleportato_potato"] = "teleportato_parts_build",	["razor"] = "razor",	["telestaff"] = "staffs",	["evergreen_stump"] = "evergreen_new",	["gravestone"] = "gravestones",	["trinket_6"] = "trinkets",	["armorgrass"] = "armor_grass",	["pinecone"] = "pinecone",	["diviningrodstart"] = "diviningrod",	["diviningrod"] = "diviningrod",	["marbletree"] = "marble_trees",	["gears"] = "gears",	["maxwellphonograph"] = "phonograph",	["shadowwatcher"] = "shadow_creatures_ground",	["firestaff"] = "staffs",	["pitchfork"] = "pitchfork",	["shatter"] = "frozen_shatter",	["redgem"] = "gems",	["rottenegg"] = "bird_eggs",	["wasphive"] = "wasphive",	["bedroll_straw"] = "swap_bedroll_straw",	["statueface_nogem"] = "statue_ruins_small",	["statueface"] = "statue_ruins_small",	["tentaclespike"] = "tentacle_spike",	["maxwellthrone"] = "maxwell_throne",	["monkey"] = "kiki_basic",	["spider_spitter"] = "DS_spider2_caves",	["pandoraschest"] = "pandoras_chest",	["smallbird"] = "smallbird_basic",	["teleportato_checkmate"] = "teleportato_adventure_build",	["spider_web_spit"] = "spider_spit",	["snurtle"] = "slurtle_snaily",	["bishop"] = "bishop",	["stalagmite_med"] = "rock_stalagmite",	["goldenaxe"] = "goldenaxe",	["honey"] = "honey",	["horn"] = "horn",	["teleportato_ring"] = "teleportato_parts_build",	["tallbird"] = "ds_tallbird_basic",	["marblepillar"] = "marble_pillar",	["backpack"] = "swap_backpack",	["marsh_bush"] = "marsh_bush",	["abigail_flower"] = "abigail_flower",	["boards"] = "boards",	["tent"] = "tent",	["beardhair"] = "beardhair",	["birdtrap"] = "birdtrap",	["treeclump"] = "tree_clump",	["treasurechest"] = "treasure_chest",	["cave_exit"] = "cave_exit_rope",	["trinket_12"] = "trinkets",	["balloons_empty"] = "balloons_empty",	["trinket_10"] = "trinkets",	["marsh_tree"] = "tree_marsh",	["trinket_7"] = "trinkets",	["trinket_5"] = "trinkets",	["resurrectionstatue"] = "wilsonstatue",	["koalefant_winter"] = "koalefant_winter_build",	["foliage"] = "foliage",	["trinket_3"] = "trinkets",	["trinket_2"] = "trinkets",	["maxwellhead"] = "maxwell_floatinghead",	["leif"] = "leif_build",	["livinglog"] = "livinglog",	["firehound"] = "hound_red",	["bat"] = "bat_basic",	["sounddebugicon"] = "sounddebug",	["cookedsmallmeat"] = "meat_small",	["lighter"] = "lighter",	["signright"] = "farm_decor",	["meat_dried"] = "meat_rack_food",	["depleted_grass"] = "grass1",	["twigs"] = "twigs",	["ruins_bowl"] = "ruins_bowl",	["ruins_table"] = "ruins_table",	["boomerang"] = "boomerang",	["leif_sparse"] = "leif_lumpy_build",	["mermhead"] = "merm_head",	["onemanband"] = "armor_onemanband",	["trunkvest_winter"] = "armor_trunkvest_winter",	["basalt"] = "blocker",	["trinket_11"] = "trinkets",	["slurtle"] = "slurtle",	["meatrack"] = "meat_rack",	["fish_cooked"] = "fish01",	["robin"] = "robin_build",	["pigtorch"] = "pig_torch",	["healingsalve"] = "spider_gland_salve",	["lantern"] = "lantern",	["stalagmite_full"] = "rock_stalagmite",	["poop"] = "poop",	["evergreen_short"] = "evergreen_new",	["rocky"] = "rocky",	["mushtree_small"] = "mushroom_tree_small",	["fencepostright"] = "farm_decor",	["mushtree_tall"] = "mushroom_tree_tall",	["trunk_summer"] = "koalephant_trunk",	["shadowhand_arm"] = "shadow_creatures_ground",	["berrybush"] = "berrybush",	["teleportato_crank"] = "teleportato_parts_build",	["sparks"] = "sparks",	["blowdart_sleep"] = "blow_dart",	["drumstick"] = "drumstick",	["nitre"] = "nitre",	["babybeefalo"] = "beefalo_baby_build",	["lureplant"] = "eyeplant_trap",	["impact"] = "impact",	["slow_farmplot"] = "farmplot",	["winterometer"] = "winter_meter",	["blueamulet"] = "amulets",	["ground_chunks_breaking"] = "ground_chunks_breaking",	["stafflight"] = "star",	["heatrock"] = "heat_rock",	["phonograph_complete"] = "phonograph",	["butterflywings"] = "butterfly_wings",	["greengem"] = "gems",	["lavalight"] = "fire_large_character",	["pigking"] = "Pig_King",	["goldenpickaxe"] = "goldenpickaxe",	["maxwelllight_area"] = "maxwell_torch",	["resurrectionstone"] = "resurrection_stone",	["cutgrass"] = "cutgrass",	["spiderden_2"] = "spider_cocoon",	["butter"] = "butter",	["cutstone"] = "cutstone",	["chessjunk1"] = "chessmonster_ruins",	["lucy"] = "Lucy_axe",	["pighead"] = "pig_head",	["marsh_plant"] = "marsh_plant",	["splash_spiderweb"] = "splash_spiderweb",	["nightsword"] = "nightmaresword",	["pumpkin_lantern"] = "pumpkin_lantern",	["spider"] = "spider_build",	["sapling"] = "sapling",	["lightning_rod"] = "lightning_rod",	["statueharp"] = "statue_small",	["pickaxe"] = "pickaxe",	["rubble"] = "ruins_rubble",	["collapse_small"] = "structure_collapse_fx",	["tallbirdegg"] = "tallbird_egg",	["adventure_portal"] = "portal_adventure",	["evergreen_sparse_short"] = "evergreen_new",	["icebox"] = "ice_box",	["goldenshovel"] = "goldenshovel",	["shovel"] = "shovel",	["monkeyprojectile"] = "monkey_projectile",	["creepyeyes"] = "eyes_darkness",	["manrabbit_tail"] = "manrabbit_tail",	["campfire"] = "campfire",	["houndbone"] = "hound_base",	["rock1"] = "rock",	["spear"] = "spear",	["flower"] = "flowers",	["penguin"] = "penguin_build",	["teenbird"] = "tallbird_teen_build",	["pigtorch_flame"] = "campfire_fire",	["beefalowool"] = "beefalo_wool",	["purpleamulet"] = "amulets",	["guano"] = "guano",	["rabbithouse"] = "rabbit_house",	["sweatervest"] = "armor_sweatervest",	["stalagmite_tall"] = "rock_stalagmite_tall",	["researchlab3"] = "researchlab3",	["sinkhole"] = "blocker",	["balloon"] = "balloon",	["trap_teeth_maxwell"] = "trap_teeth_maxwell",	["trap_teeth"] = "trap_teeth",	["chester"] = "chester",	["staffcastfx"] = "staff",	["slurtleslime"] = "slurtle_slime",	["basalt_pillar"] = "blocker",	["marbletree_1"] = "marble_trees",	["trunkvest_summer"] = "armor_trunkvest_summer",	["yellowstaff"] = "staffs",	["cutreeds"] = "cutreeds",	["gridplacer"] = "gridplacer",	["dirtpile"] = "koalefant_tracks",	["rabbit"] = "rabbit_build",	["spiderden"] = "spider_cocoon",	["frog"] = "frog",	["crow"] = "crow_build",	["feather_robin_winter"] = "feather_robin_winter",	["trunk_winter"] = "koalephant_trunk",	["pighouse"] = "pig_house",	["evergreen_burnt"] = "evergreen_new",	["rock_flintless"] = "rock_flintless",	["knight"] = "knight_build",	["evergreen_sparse"] = "evergreen_new",	["cookedmonstermeat"] = "meat_monster",	["evergreen_normal"] = "evergreen_new",	["evergreen"] = "evergreen_new",	["mound"] = "gravestones",	["walrus_tusk"] = "walrus_tusk",	["raindrop"] = "raindrop",	["marbletree_4"] = "marble_trees",	["tallbirdegg_cracked"] = "tallbird_egg",	["maxwellendgame"] = "maxwell_endgame",	["bee"] = "bee_build",	["plantmeat_cooked"] = "plant_meat",	["orangeamulet"] = "amulets",	["tentaclespots"] = "tentaclespots",	["beemine"] = "bee_mine",	["hound"] = "hound",	["trunk_cooked"] = "koalephant_trunk",	["lightbulb"] = "bulb",	["bugnet"] = "bugnet",	["log"] = "log",	["cave_entrance"] = "cave_entrance",	["rubble_low"] = "ruins_rubble",	["gunpowder"] = "gunpowder",	["evergreen_sparse_tall"] = "evergreen_new",	["farmrockflat"] = "farm_decor",	["spidereggsack"] = "spider_egg_sac",	["deerclops"] = "deerclops_build",	["bunnyman"] = "manrabbit_beard_build",	["killerbee"] = "bee_angry_build",	["farmrock"] = "farm_decor",	["perd"] = "perd",	["diviningrodbase"] = "diviningrod",	["rope"] = "rope",	["charcoal"] = "charcoal",	["insanityrock"] = "blocker_sanity",	["ruins_chipbowl"] = "ruins_chipbowl",	["feather_crow"] = "feather_crow",	["ruins_chair"] = "ruins_chair",	["panflute"] = "pan_flute",	["lureplantbulb"] = "eyeplant_bulb",	["wormhole_limited_1"] = "teleporter_sickworm_build",	["fire_projectile"] = "staff_projectile",	["abigail"] = "ghost_wendy_build",	["penguin_ice"] = "penguin_ice",	["smallmeat_dried"] = "meat_rack_food",	["portal_level"] = "grass1",	["ice_projectile"] = "staff_projectile",	["tallbirdegg_cooked"] = "tallbird_egg",	["bandage"] = "bandage",	["mushtree_medium"] = "mushroom_tree_med",	["character_fire"] = "fire_large_character",	["fencepost"] = "farm_decor",	["signleft"] = "farm_decor",	["stickleft"] = "farm_decor",	["stickright"] = "farm_decor",	["stick"] = "farm_decor",	["flower_cave_double"] = "bulb_plant_double",	["fish"] = "fish01",	["farmrocktall"] = "farm_decor",	["goldnugget"] = "gold_nugget",	["flint"] = "flint",	["sanityrock"] = "blocker_sanity",	["silk"] = "silk",	["meat"] = "meat",	["stalagmite_tall_med"] = "rock_stalagmite_tall",	["walrus_dart"] = "blow_dart",	["little_walrus"] = "walrus_baby_build",	["cookedmandrake"] = "mandrake",	["bonfire"] = "bonfire",	["phonograph_gears"] = "phonograph",	["fire"] = "fire",	["devtool"] = "goldenaxe",	["axe"] = "axe",	["batwing"] = "batwing",	["krampus_sack"] = "swap_krampus_sack",	["evergreen_tall"] = "evergreen_new",	["campfirefire"] = "campfire_fire",	["armor_sanity"] = "armor_sanity",	["shadowskittish"] = "shadow_skittish",	["bedroll_furry"] = "swap_bedroll_furry",	["blowdart_fire"] = "blow_dart",	["sunkboat"] = "boat_sunk",	["ash"] = "ash",	["cane"] = "cane",	["mermhouse"] = "pig_house",	["trinket_4"] = "trinkets",	["maxwellintro"] = "maxwell_build",	["seeds_cooked"] = "seeds",	["deadlyfeast"] = "cook_pot_food",	["nightlight"] = "nightmare_torch",	["beehive"] = "beehive",	["tentacle_pillar_arm"] = "tentacle_arm",	["pigskin"] = "pigskin",	["compass"] = "compass",	["feather_robin"] = "feather_robin",	["flower_cave_triple"] = "bulb_plant_triple",	["sewing_kit"] = "sewing_kit",	["seeds"] = "seeds",	["honeycomb"] = "honeycomb",	["armorsnurtleshell"] = "armor_slurtleshell",	["carrot_planted"] = "carrot",	["icestaff"] = "staffs",	["trinket_1"] = "trinkets",	["bishop_charge"] = "bishop_attack",	["bird_egg"] = "bird_eggs",	["skullchest"] = "skull_chest",	["brokentool"] = "broken_tool",	["stalagmite_tall_low"] = "rock_stalagmite_tall",	["rubble_med"] = "ruins_rubble",	["fast_farmplot"] = "farmplot",	["froglegs"] = "frog_legs",	["grass"] = "grass1",	["petals_evil"] = "flower_petals_evil",	["spidergland"] = "spider_gland",	["batwing_cooked"] = "batwing",	["icehound"] = "hound_ice",	["stalagmite_tall_full"] = "rock_stalagmite_tall",	["smallmeat"] = "meat_small",	["warningshadow"] = "warning_shadow",	["spider_hider"] = "DS_spider_caves",	["lightning"] = "lightning",	["wormhole"] = "teleporter_worm_build",	["rook"] = "rook_build",	["telebase"] = "staff_purple_base_ground",	["spoiled_food"] = "spoiled_food",	["blueprint"] = "blueprint",	["ruins_vase"] = "ruins_vase",	["ancient_altar"] = "crafting_table",	["maxwellkey"] = "purple_gem",	["beebox"] = "bee_box",	["fishingrod"] = "fishingrod",	["orangegem"] = "gems",	["nightlight_flame"] = "campfire_fire",	["rock_light"] = "rock_light",	["torch"] = "torch",	["batcave"] = "batcave",	["umbrella"] = "umbrella",	["piggyback"] = "piggyback",	["phonograph_cone"] = "phonograph",	["phonograph_crank"] = "phonograph",	["exitcavelight"] = "cave_exit_lightsource",	["ghost"] = "ghost_build",	["poopcloud"] = "poop_cloud",	["marble"] = "marble",	["maxwelllight_flame"] = "campfire_fire",	["plantmeat"] = "plant_meat",	["houndstooth"] = "hounds_tooth",	["phonograph_box"] = "phonograph",	["eyeplant"] = "eyeplant",	["flower_evil"] = "flowers_evil",	["multitool_axe_pickaxe"] = "multitool_axe_pickaxe",	["armorwood"] = "armor_wood",	["gemsocket"] = "staff_purple_base",	["spider_warrior"] = "spider_warrior_build",	["marbletree_2"] = "marble_trees",	["merm"] = "merm_build",	["spiderhole"] = "spider_mound",	["slurtle_shellpieces"] = "slurtle_shellpieces",	["maxwell"] = "maxwell_build",	["reeds"] = "reeds",	["krampus"] = "krampus_build",	["chessjunk2"] = "chessmonster_ruins",	["researchlab"] = "researchlab",	["maxwelllock"] = "diviningrod_maxwell",	["slurper"] = "slurper_basic",	["butterfly"] = "butterfly_basic",	["homesign"] = "sign_home",	["trap"] = "trap",	["cookedmeat"] = "meat",	["tentacle_pillar"] = "tentacle_pillar",	["purplegem"] = "gems",	["cave_fern"] = "cave_ferns",	["tentacle_garden"] = "tentacle_pillar",	["portal_home"] = "grass1",	["marbletree_3"] = "marble_trees",}

I'm attaching both the compiled list I posted inline and the script I used to generate it. It's stand alone, meaning it should be run directly by the Lua interpreter, and not by the game. It requires the LuaFileSystem library to run. To run it, pass as its sole argument the path to the scripts/ directory of the game.

Edited by simplex

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
×
  • Create New...