-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Persistent entity rules #24
Comments
Don't think there is a reason for a non persistent tag since the rules get forgotten anyways. Especially if there is an option to just ignore all of them Might be bad for servers using a large amount of entities with rules, but you could have a file with an entity's uuid/world+id storing their entity rules.
|
The non persistent tag is only going to be used when
This should theoretically be fine i think. I do agree that it should be saved in a readable file, that would make debugging easier, though I would want some other interface made with commands or tags for example, so it's not necessary to open the save-file each time you want to edit the rules. Do you by any chance have an idea of how you see the persistence done? |
I've probably interpreted it wrong when you said "ignoring the no persist entities ofc", you probably mean not giving their rules back if they have the tag.
You could have a command to set and check the saved rules for an entity. The way I currently do it, I just add a tag to the entity with the rule they're supposed to have like I'm not an expert btw just thinking about things that could happen or cause issues |
I would guess most qibs and entity rules are set up once and never changed, so a way to make them persist between reloads and restarts would be a very useful feature.
My ideas are:
noxutils.alwayspersist
) that would always save the entity rules for the given entity.noxutils.nopersist
) that would always forget about the entity rules of the given entity on restart.persistentEntityRules
config option that would work like giving the always persist tag to all entities (ignoring the no persist entities ofc)/noxesiumutils entityRules saveRules [entity]
) which would same the current entity rules of an entity and even if they change, the next reload will apply the rules to the saved state.This is currently just a mishmash of ideas and I have no clear logic yet. Any suggestions are appreciated!
The text was updated successfully, but these errors were encountered: