ARK: Survival Evolved

ARK: Survival Evolved

Capitalism Currency [OPEN SOURCE] (Discontinued)
This topic has been locked
Temil2006 17 Dec, 2017 @ 11:58am
Dev question about how you are applying to dinos
hey Impulse. really like your mods, thanks for those. I'm working on a mod myself that needs to detect dinos as they spawn and apply a buff to them, similar to yours but nothing related to loot, etc. more of checking if specific stats are set, and if not then apply new values.

anyways, I was curious if you would mind sharing how you are doing the dino inventory for the loot system, if you are applying it every X number of seconds to all dinos via class, or if you are applying it based on a trigger / event when the dino is added to the world?

if you don't feel comfortable sharing this info about your mod, mind contacting me via steam? just looking for a high lvl overview, and not looking for code examples at this times. thanks.
< >
Showing 1-3 of 3 comments
Impulse  [developer] 19 Dec, 2017 @ 11:40am 
I scan for specified dinos (get all actors of class) and iterate them with a custom delayed loop to preserve server performance. An event for currently unstasised or newly spawned dinos would be great but would also be not sufficient enough, since it wouldn't get all dinos of that class without gaps. And don't give dinos in stasis a buff, this might crash servers... this was the reason for the previous LootSystem crashing issue.
Temil2006 19 Dec, 2017 @ 4:50pm 
thank you very much for this. figured this was the method. guess I was hoping for someone more around "only new dinos" but ohh well.. the mod I'm working on, i'm thinking of having it do a scan every X secs around all players so that it can be applied as players move around and for less performance. hate doing a all of class due to performance hit.well, you gave me enough that at least I know theere isn't a way to only detect new ones. back to the drawling board ;) thanks again for the info.
Impulse  [developer] 4 Mar, 2019 @ 7:36am 
closing
< >
Showing 1-3 of 3 comments
Per page: 1530 50