StalkinU Posted December 15, 2014 Share Posted December 15, 2014 (edited) hey folks. Trying to port a mod I made.Wanne have some multiplayer spider fun. But I can't seem to get the -, --Makes spiders not attack you unless provoked inst:AddTag("spiderwhisperer") --Immunity to monster meat damage inst.components.eater.monsterimmune = true --Immunity to spider spawn trigger when walking on webbing inst.components.locomotor.triggerscreep = false lines working. here's ma code from scripts folder.local MakePlayerCharacter = require "prefabs/player_common" local assets = { Asset( "ANIM", "anim/player_basic.zip" ), Asset( "ANIM", "anim/player_idles_shiver.zip" ), Asset( "ANIM", "anim/player_actions.zip" ), Asset( "ANIM", "anim/player_actions_axe.zip" ), Asset( "ANIM", "anim/player_actions_pickaxe.zip" ), Asset( "ANIM", "anim/player_actions_shovel.zip" ), Asset( "ANIM", "anim/player_actions_blowdart.zip" ), Asset( "ANIM", "anim/player_actions_eat.zip" ), Asset( "ANIM", "anim/player_actions_item.zip" ), Asset( "ANIM", "anim/player_actions_uniqueitem.zip" ), Asset( "ANIM", "anim/player_actions_bugnet.zip" ), Asset( "ANIM", "anim/player_actions_fishing.zip" ), Asset( "ANIM", "anim/player_actions_boomerang.zip" ), Asset( "ANIM", "anim/player_bush_hat.zip" ), Asset( "ANIM", "anim/player_attacks.zip" ), Asset( "ANIM", "anim/player_idles.zip" ), Asset( "ANIM", "anim/player_rebirth.zip" ), Asset( "ANIM", "anim/player_jump.zip" ), Asset( "ANIM", "anim/player_amulet_resurrect.zip" ), Asset( "ANIM", "anim/player_teleport.zip" ), Asset( "ANIM", "anim/wilson_fx.zip" ), Asset( "ANIM", "anim/player_one_man_band.zip" ), Asset( "ANIM", "anim/shadow_hands.zip" ), Asset( "SOUND", "sound/sfx.fsb" ), Asset( "SOUND", "sound/wilson.fsb" ), Asset( "ANIM", "anim/beard.zip" ), -- Don't forget to include your character's custom assets! Asset( "ANIM", "anim/lyph.zip" ),}local prefabs = {} --Starting inventorylocal start_inv ={ "spidereggsack", "monstermeat", "monstermeat",} local function master_postinit(inst) -- choose which sounds this character will play inst.soundsname = "webber" -- a minimap icon must be specified inst.MiniMapEntity:SetIcon( "webber.png" ) --Makes spiders not attack you unless provoked inst:AddTag("spiderwhisperer") --Makes player friendly mobs (pigs) treat you as a monster inst:AddTag("monster") --Immunity to monster meat damage-- inst.components.eater.monsterimmune = true --Immunity to spider spawn trigger when walking on webbing-- inst.components.locomotor.triggerscreep = false end local function common_postinit(inst) inst.components.health:SetMaxHealth(150) inst.components.hunger:SetMax(150) inst.components.sanity:SetMax(100) local nest_recipe = Recipe("spidereggsack", {Ingredient("silk", 12), Ingredient("spidergland", 6), Ingredient("papyrus", 6)}, RECIPETABS.TOWN, TECH.NONE) nest_recipe.sortkey = 1 STRINGS.RECIPE_DESC.SPIDEREGGSACK = "Get a little help from your subjects." end return MakePlayerCharacter("lyph", prefabs, assets, master_postinit, common_postinit, start_inv) inst.components.eater.monsterimmune = true inst.components.locomotor.triggerscreep = falseThey both crash the game. I have tried getting these components out of the RoG dlcThen created a new folder under scripts (components)Added the two files and included this in modmain.lualocal require = GLOBAL.requirelocal Eater = require "components/eater"local Locomotor = require "components/locomotor"Didnt work. Help plox Edited December 15, 2014 by StalkinU Link to comment Share on other sites More sharing options...
rezecib Posted December 15, 2014 Share Posted December 15, 2014 I might be able to help you with this, but I need to hear back on whether porting Webber is okay, first. Link to comment Share on other sites More sharing options...
StalkinU Posted December 15, 2014 Author Share Posted December 15, 2014 I might be able to help you with this, but I need to hear back on whether porting Webber is okay, first. Well I own Reign of Giants so as far as that goes I wouldn't see why not. But yeah, porting my character would basically be a Webber port, with one minor difference.If I happen to stumble on the solution I'll let you know.In the meantime, make sure you hit me back once you hear something. Link to comment Share on other sites More sharing options...
Developer PeterA Posted December 15, 2014 Developer Share Posted December 15, 2014 Hey guys, We've had a talk about RoG characters being brought into DST. At this stage we're okay with them being modded in. Eventually we'll be releasing the official Webber, so it probably won't make sense for your mod to exist then. At that point, what we'd love to see is for your mod is change into a tweak on the official character (to include any differences you have from our Webber). This can be done via AddPrefabPostInit. Link to comment Share on other sites More sharing options...
rezecib Posted December 15, 2014 Share Posted December 15, 2014 At this stage we're okay with them being modded in. I'm just asking because when I asked earlier I got a very different answer, but this means I can release my Webber/Wigfrid port on the workshop? Or were you only referring to RoG character spinoffs? Link to comment Share on other sites More sharing options...
Developer PeterA Posted December 15, 2014 Developer Share Posted December 15, 2014 @rezecib, yeah, we assumed you would eagerly want to add webber and wigfrid to your DST More Characters pack. At this point, we are okay with that. Link to comment Share on other sites More sharing options...
StalkinU Posted December 16, 2014 Author Share Posted December 16, 2014 @rezecib, yeah, we assumed you would eagerly want to add webber and wigfrid to your DST More Characters pack. At this point, we are okay with that. Hey, Thanks for that.My mod still has value, in it's basic form it is indeed a webber copy.But, eventually it will mix things up a lot more. Anyways, I think I'll follow rezecib's progress on this, very very closely Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now