Hey dear Facepunch forum!
I am trying to add permanent props to my map, without changing the gamemode again to sandbox. To do that, i need to kinda replace the sv.db, but if i do that every player stat will be removed... can anyone PLEASE help me to solve this? I am working for an guy, and the map i made for him is good, but he does not want that everyone loses his UTime etc...
Also, could anyone say me how to add the editors (Editor category in Entities) to an GMod ZS Map?
Thank you!
-Toedeli
[QUOTE=Toedeli;50603920]SQLite stuff[/QUOTE]
Try using a SQLite Browser and dump the SQL and merge with the new sv.db
[QUOTE=Toedeli;50603920]
Also, could anyone say me how to add the editors (Editor category in Entities) to an GMod ZS Map?
[/QUOTE]
Not sure what you want, but I am guessing the Spawnmenu off Sandbox?
Your gamemode needs to be derived from sandbox, not base.
[QUOTE=Toedeli;50603920]to do that, i need to kinda replace the sv.db, but if i do that every player stat will be removed...i[/QUOTE]
Why is this the only absolute solution again? Why you can't use the "old sv.db" exactly?
[QUOTE=Robotboy655;50604315]Why is this the only absolute solution again? Why you can't use the "old sv.db" exactly?[/QUOTE]
It deletes all the player stats. Anyway how to add the permanent props, but keep the stats?
[QUOTE=Toedeli;50609145]It deletes all the player stats. Anyway how to add the permanent props, but keep the stats?[/QUOTE]
By using files like a normal person. Use SQL when you need to gather data by fields, if you just want to save/load something, use files.
This addon might help you out. It automatically adds persistent props into sv.db
It does not affect anything else. Just make sure that you are aware of who has access to the tool for obvious reasons
Here is the link: [url]https://github.com/MalboroGmod/PermaProps[/url]
[QUOTE=joealdred;50627585]This addon might help you out. It automatically adds persistent props into sv.db
It does not affect anything else. Just make sure that you are aware of who has access to the tool for obvious reasons
Here is the link: [url]https://github.com/MalboroGmod/PermaProps[/url][/QUOTE]
I have a feeling he could already be using that.
Aka, he might have put the props on his local PC and then you are faced with the issue of replacing the sv.db on the server.
That addon should really save the data to a file in the data folder for easier use.
That would be handy but unfortunately its made the way it is.
What you can do is export the old table for permaprops and them import it into the current sv.db. You can do this seemlessly with Sqlite browser as mentioned before. If you only export the tables you want, you will preserve the tables you dont want overwritten. If you need help with exporting and importing let me know.
Sorry, you need to Log In to post a reply to this thread.