Support | News | Classic | F.A.Q. | Discord | Discussions | Wiki | Roadmap

Krita and notepad++ are the stuff I use for modding

    at first I thought it might have been the fact that the bullet went faster than light but when I turned it's speed down it still chrashed

      The problem only occurs while having a buff

        In case this helps, here is the buff code:`{
        Action = Add
        AddTo = "<buffs/buffs.txt>"
        Name = "Defense"
        ToAdd
        {
        CombineMode = Max
        BaseValue = 100%

        	Icon
        	{
        		Texture
        		{
        			File = "buff_engine.png"
        			MipLevels = 2
        			SampleMode = Linear
        		}
        		Size = [2, 2]
        	}
        	IconTextFormatKey = "BuildBox/BuffPercentageFmt"
        	IconTextMultiply = 100
        	IconTextAdd = -100
        
        	RectBorderColor = [0, 255, 84, 160]
        	RectFillColor = [0, 84, 255, 64]
        }
        }`

          @Walt

            Two things:

            1. In order for a bullet to receive buffs from the weapon that fires it, you need to add ReceivableBuffs = [Defense] to the bullet in addition to the part.

            2. It look like there's a bug where if a part does receive buffs but a bullet it fires does not receive buffs, then it crashes. I will fix this for the upcoming RC.

              But the bullet doesn't change, does it?

                I'll add that

                • Walt replied to this.

                  This shows how true the name is!

                    Catelyn Ah yes, in your case, you are correct, there's no reason the bullet should need ReceivableBuffs if it doesn't change, except because of that bug. You should just be able to add ReceivableBuffs = [] to work around it, I think.

                      I'll try that tomorrow, thanks a lot!

                        Write a Reply...