EzRemake wrote...
I noticed the one point in your lexicon tutorial stated not to use hard placed NPCs, and to have everything spawned in via trigger or encounter, and I was curious how much of an impact this actually has?
Not that big as one would though.
In singleplayer you dont have to worry about this at all.
In multiplayer it depends on how good is your server machine, how often you want to restart the nwserver.
It also depends on the gamestyle, if you are making a "HCRP" module where majoritz of the content is low lvl, where monsters spawn usually in low numbers and slowly its not a problematic as if you were creating a high-lvl epic action module where usually you spawn around 500 monsters per one dungeon/20minutes. Even then, if you have a despawn in place normally you won't encounter any issues, Arkhalia epic-action server I was formerly admin is able to run 3days without reset without noticeable lags. But its true that I put quite a lot of work to make this possible.
Some of my tips based on working with big epic-action module:
- despawning is a must, sometimes players just running trough a dungeon especially if they can do this and don't have to kill anything or if they don't get any experiences from monsters
- in such modules, stores can create big lags when players overfills them(thousand+ sold items), this has been biggest issue till I joined DM team and server had to be previously restarted every day just because of this (certain unofficial patch solves this issue via module switch)
- if you have standing plot neutral npcs who just talk and not moving, not fighting, I suggest to remove all their scripts
- remove the OnSpellCastAt script on monsters that are often being massed by spells, this script causes ultimate lags, certain unofficial patch partially solves this but when you have 50+ monsters on one spot its not going to help you, best is to avoid spawning so many creatures at once at all (sometimes builders doing this with those tiny spiders or vermins from cep) if its possible
- suggest to disable stacking of AOEs, AOEs are biggest source of lags especially if you cast such spell into pack of 50monsters, and especially if you cast more than one of these, when I played as a druid with a tactics of massing entire area with entangle, grease, stonehold, sov,sov,sov,sov and offensive spells it created such big lags that each sov lasted not 10 rounds but 30:devil: so if you can, try restrict AOEs to only one instance per player which seems to me as best performance and balance solution, afaik HG has it this way