The Noon Fish Posted March 8, 2015 Author Share Posted March 8, 2015 AddComponentPostInit("temperature", function(self) local old = self.OnUpdate function self:OnUpdate(dt, applyhealthdelta) old(self, dt, applyhealthdelta) if self.inst.prefab == "fish" and applyhealthdelta and self.current < 0 and self.inst.components.health then self.inst.components.health:DoDelta(self.hurtrate*dt*1.5, true, "cold") end endend)in modmain.inst.components.sanity.custom_rate_fn = function(inst) local rain_delta = TheWorld.state.israining and -1.5 * TUNING.DAPPERNESS_MED * TheWorld.state.precipitationrate or 0 local mydelta = -(rain_delta * 1.5) return mydeltaendIn your master_postinit. i think you mean if self.inst.prefab == "noonfish"idk .-. Link to comment Share on other sites More sharing options...
DarkXero Posted March 8, 2015 Share Posted March 8, 2015 Yeah, sure, I don't remember the name. Link to comment Share on other sites More sharing options...
The Noon Fish Posted March 8, 2015 Author Share Posted March 8, 2015 (edited) Yeah, sure, I don't remember the name.yea, i can barely remember names too Edited March 22, 2015 by The Noon Fish Link to comment Share on other sites More sharing options...
The Noon Fish Posted April 24, 2015 Author Share Posted April 24, 2015 ok now im trying to get my character to gain sanity during dusk (i'll balance out by upping the night drain)but as of now, i cant seem to get my char to gen sanity during dusk, and the log provides nothing, it just run as normal without crashing._.NoonFish with company.ziplog.txtalso i cant get the mod tool uploader thing to work, are the exported files necessary? Link to comment Share on other sites More sharing options...
DarkXero Posted April 24, 2015 Share Posted April 24, 2015 Are we talking RoG here? You have two custom sanity rates functions, fuse them, make the values add up, and then return that.In DST now there is no sanity drain from rain, it's from moisture. You should put print("I'm here") on the sanity rate function and then look at the log. To see if the delta is being calculated. Link to comment Share on other sites More sharing options...
The Noon Fish Posted April 24, 2015 Author Share Posted April 24, 2015 Are we talking RoG here? You have two custom sanity rates functions, fuse them, make the values add up, and then return that.In DST now there is no sanity drain from rain, it's from moisture. You should put print("I'm here") on the sanity rate function and then look at the log. To see if the delta is being calculated.*tries to fix it**cant**tries to ind a workaround**looks at the vampire mod thingy (something with sera or something)**cant**comes here**tries posting log**breaks the fourms again*watNoonFish with company.zip Link to comment Share on other sites More sharing options...
DarkXero Posted April 25, 2015 Share Posted April 25, 2015 Here's the noonfish.noonfish.lua Link to comment Share on other sites More sharing options...
The Noon Fish Posted April 25, 2015 Author Share Posted April 25, 2015 (edited) Here's the noonfish. edit:nvm it doesn't work Edited April 25, 2015 by The Noon Fish Link to comment Share on other sites More sharing options...
DarkXero Posted April 25, 2015 Share Posted April 25, 2015 It works.But you have like 5 noon fishes in there, take them out and use one. That's probably why you couldn't test your changes, because you were selecting the wrong prefab everytime. Link to comment Share on other sites More sharing options...
The Noon Fish Posted April 25, 2015 Author Share Posted April 25, 2015 It works.But you have like 5 noon fishes in there, take them out and use one. That's probably why you couldn't test your changes, because you were selecting the wrong prefab everytime.k i tried it again and it worked .u.thanks Link to comment Share on other sites More sharing options...
The Noon Fish Posted May 18, 2015 Author Share Posted May 18, 2015 i return with more dysfunctional codes :vlog.txtNoonFish with company.zipthis time it's wierdo.when he gets attacked by charlie, he crashes the whole gamelikehow Link to comment Share on other sites More sharing options...
DarkXero Posted May 18, 2015 Share Posted May 18, 2015 Under --other stuff.The AddComponentPostInit("combat"... end) part should be removed. And put in weirdo.lua, inside the master_postinit(inst): local self = inst.components.combat local old = self.GetAttacked function self:GetAttacked(attacker, damage, weapon, stimuli) if attacker and attacker.components.explosive then return old(self, attacker, 0, weapon, stimuli) else return old(self, attacker, damage, weapon, stimuli) end end Link to comment Share on other sites More sharing options...
The Noon Fish Posted May 22, 2015 Author Share Posted May 22, 2015 ok now im on animation/ possible coding errors for items.they either show up when equipped and dont show up on the ground, or they dont show up when equipped and show on the ground. i try to do the same way for both, but then it does neither.:/NoonFish with company.ziplog.txt Link to comment Share on other sites More sharing options...
The Noon Fish Posted May 22, 2015 Author Share Posted May 22, 2015 how to hold hammers according to weirdobob Link to comment Share on other sites More sharing options...
The Noon Fish Posted May 23, 2015 Author Share Posted May 23, 2015 ok i kinda give up on this.the code doesn't crash the game but yet it doesn't work.likeim trying to get the feather hat basically act like a spider hat, but with tallbirds for weirdo.bluhNoonFish with company.ziplog.txt Link to comment Share on other sites More sharing options...
The Noon Fish Posted May 25, 2015 Author Share Posted May 25, 2015 (edited) apparently the small slice of code i tried to modify makes every character except weirdobob, allergic to feather hatsi thinki dunnolog.txtNoonFish with company.zip --editalso the tallbird nest picker thing crashes eveyone toowill look and try to fix on own:v Edited May 25, 2015 by The Noon Fish Link to comment Share on other sites More sharing options...
The Noon Fish Posted May 30, 2015 Author Share Posted May 30, 2015 (edited) so im trying to make craftablesbut the log keeps getting cut off:cNoonFish with company.ziplog.txt Edited May 30, 2015 by The Noon Fish Link to comment Share on other sites More sharing options...
The Noon Fish Posted May 30, 2015 Author Share Posted May 30, 2015 never mind i fixed it Link to comment Share on other sites More sharing options...
The Noon Fish Posted May 30, 2015 Author Share Posted May 30, 2015 (edited) tallbird_hat.lualog.txti gave up again Edited May 30, 2015 by The Noon Fish Link to comment Share on other sites More sharing options...
The Noon Fish Posted June 3, 2015 Author Share Posted June 3, 2015 ok idk what i did, but now the non workshop version of my mod (i like to keep things separate when possible at times) does not show up altogether, although the workshop version shows up just fine.i have tried working on the workshop version, but it seems to not save any tweaks i do to the mod. idk if it's a bug or my game just messing with me, but im very disgruntled with this possibly major setback. Link to comment Share on other sites More sharing options...
The Noon Fish Posted June 5, 2015 Author Share Posted June 5, 2015 nvm everything is back to normalkinda Link to comment Share on other sites More sharing options...
The Noon Fish Posted June 5, 2015 Author Share Posted June 5, 2015 tallbird_hat.luaim trying to get tallbirds to follow only weirdo, but it kept crashing the game, so i gave up and kinda copy pasted the code from the spider hat and replaced spider with tallbird, and it still doesn't work.i give up Link to comment Share on other sites More sharing options...
The Noon Fish Posted June 7, 2015 Author Share Posted June 7, 2015 log.txt mod because the fourms say im not allowed to upload the .zipbut it now crashes saying there's something in the faceentity.lua that's returning a nil value but idk what it is even trying to do.yes im sick shut up Link to comment Share on other sites More sharing options...
The Noon Fish Posted June 9, 2015 Author Share Posted June 9, 2015 log.txtexperimental.zipidk what is happening anymoreim just throwing things at the wall to see what sticks. Link to comment Share on other sites More sharing options...
The Noon Fish Posted June 13, 2015 Author Share Posted June 13, 2015 nvm it works now 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