# ZupaleX

665

270 Excellent

## 5 Followers

• Rank
Senior Member
...

## Recent Profile Visitors

4415 profile views

1. ## Archery Mod: Discussion, Feedback and Thoughts

Sorry I was not around. If everyone use it as is, you will end up with several mods adding the same function. Which is not a big deal it will just be overwritten by the last mod calling it, but it's just not very useful. To answer your question, you can do the math yourself actually: let's imagine mod A add it as well as mod B. The final function will effectively be doing the following when calling CalDamage self.CalcDamage = function(self, target, weapon, multiplier) local dmg = function(self, target, weapon, multiplier) local dmg = CalcDamageOld(self, target, weapon, multiplier) local bonus = self.damagebonus or 0 --not affected by multipliers return (dmg-bonus) * self:GetDamageModifier() + bonus end local bonus = self.damagebonus or 0 --not affected by multipliers return (dmg-bonus) * self:GetDamageModifier() + bonus end So first you will calculate damages the vanilla way. Then you retrieve the bonus, whatever it is at the moment of the calculation, and returns (dmg-bonus)*mod + bonus. You then apply to this the next forumla which will eventually give you: ((dmg-bonus)*mod+bonus - bonus) * mod + bonus = (dmg-bonus)*mod^2 + bonus so if N mods are doing it you will end up with a effective modifier of modifier^N. Not sure that's what you want. I guess you could just check if the fields that you are adding already exists and if they do, then it means somebody else already took care of these modifiers before you and you can just skip it in your mod. Something like AddComponentPostInit("combat", function(self) if self.attack_damage_modifiers == nil then RegisterNewCombatMembers(self) local CalcDamageOld = self.CalcDamage self.CalcDamage = function(self, target, weapon, multiplier) local dmg = CalcDamageOld(self, target, weapon, multiplier) local bonus = self.damagebonus or 0 --not affected by multipliers return (dmg-bonus) * self:GetDamageModifier() + bonus end end end) Like that you make sure the modification of the combat component is only applied once by the mod with the highest priority, and it will be ignored by the subsequent calls. However it still gives the ability to any mods to call these functions and use these modifiers tables. This of course requires that all the mods implementing this type of solution comply to this check.
2. ## Archery Mod: Discussion, Feedback and Thoughts

I'm not sure what you want to achieve. You want to add a bonus to the damage in one of your mod for a specific character? weapon? condition?
3. ## port Island Adventures: A Shipwrecked Port

Not much worth to share. Having the sails display properly on the client side was a bigger piece of work than it might look like. Currently we are polishing the content that we added (broken anims, bug hunting, ...) before starting to add more.

Yes
5. ## port Island Adventures: A Shipwrecked Port

Open beta? Not before a while ................ Open alpha though I'm hoping soon
6. ## port Island Adventures: A Shipwrecked Port

Hi guys, here are some more screenshot of what's new since last time: New boats, boats badge, boats health, boats container and boats equip items (lots of boats) The newly added boats The boat containers (screenshot taken before I added the boat equipslots) Ad the equipslots, with a palmleaf sail equipped
7. ## port Island Adventures: A Shipwrecked Port

@fimmatek: Yes it is ^^ @Lumina: I was introducing some more water content and since I was working on the ballphin I just decided to go ahead and put everything currently related to it.
8. ## port Island Adventures: A Shipwrecked Port

Hello again, just to let you know that we are still progressing steadily. The floatable component is now functional
9. ## Making Cobblestone Turf Show Up on Map

IIRC, you should check woldtilesdef.lua If not there that should tell you where to look.
10. ## Help Preventing Animation Interrupts

You should create a proper state for the stategraph and put relevant StateTags like "busy" to that new state so the idle anim cannot interrupt it.
11. ## port Island Adventures: A Shipwrecked Port

Hey guys, we are adding more and more land content and polishing the boating part for the client. It starts to work pretty well sa w I'll try to do a short video on a dedicated server soon.
12. ## Archery Mod: Discussion, Feedback and Thoughts

Thank you for a very interesting opinion. As @SuperDavid said, we don't want it to be too easy to craft arrows as ranged combat is very powerful. Moreover it is fully configurable how much arrows you get from 1 feather so nothing prevents you to put crazy high amount of arrows as a yield if you don't like the difficulty. The bow itself has always been very easy to craft. For the quiver, I agree it might seem like a useless mechanics. Full disclosure: the Archery Mod was my first real modding project and I did not know too much about coding at that time. I used it to learn how to make stuffs like new items, new recipe tab, new inventory tab, new equippable, new actions, new anim for an action, RCP and netvars, etc... The quiver was just a pretext to learn how to do some of these. Then I kind of like it still, but I think I could definitely add an option to turn off the quiver requirement. Maybe it could also be a global thing like you do not need a quiver to shoot arrows, but having a quiver would allow you to stack more arrows and carry more with you. The musket is craftable without the iron ore if you do not have the mod adding it. The recipe checks if that mod is enabled and if not, it falls back to gold instead. Sorry if I went off-topic with the last posts about Shipwrecked stuffs, I should have probably started a new thread. On a side note, I've been contacted by the folks from Island Adventure so we can work together as they did not really do much on the contents part yet. So this is quite a good match.
13. ## Archery Mod: Discussion, Feedback and Thoughts

If anyone is interested -> last land biome done
14. ## Custom hat crashes non-host clients

Sorry about that The explanation was pretty clear, at least to me, so I don't know ^^
15. ## Custom hat crashes non-host clients

I think Lumina said he is not hosting, he is a client only, in the screenshot he posted.