[DiscordArchive] Is there something I am missing? some context?
[DiscordArchive] Is there something I am missing? some context?
Archived author: Band • Posted: 2025-10-29T14:06:28.335000+00:00
Original source
Is there something I am missing? some context?
Archived author: Tecc • Posted: 2025-10-29T14:15:14.590000+00:00
Original source
Each modification should be done with an SQL script (which ideally you keep around for using it again in case you need to do a clean install or database drop).
In addition you should probably keep a "revert" script to revert your changes back to the default values, just in case.
As far as I know, both can be exported from Keira
Archived author: Revision • Posted: 2025-10-29T14:15:15.814000+00:00
Original source
You should always store SQL queries that change stuff in a SQL file so you can easily import it again if you lose the world database, have to reset it or anything along those lines.
Archived author: Revision • Posted: 2025-10-29T14:15:37.440000+00:00
Original source
Yes, Keira will show you the query it generates when you change stuff so you can easily copy-paste it
Archived author: Revision • Posted: 2025-10-29T14:16:18.563000+00:00
Original source
Even if you back up the world database, there are instances where resetting the world database is the only solution and if you rely on world backups you are screwed
Archived author: Revision • Posted: 2025-10-29T14:16:52.182000+00:00
Original source
Doing it the way you're doing it is generally considered bad practice
Archived author: Band • Posted: 2025-10-29T14:38:05.310000+00:00
Original source
Dang I wish I knew this early on, I will start doing this going forward. I haven't made a TON of changes yet, so I might be able to salvage it
Archived author: Band • Posted: 2025-10-29T14:43:20.902000+00:00
Original source
How do you organize your SQL statements? Do you use a big one for all your creature modifications or do you do it really granular?
Archived author: Revision • Posted: 2025-10-29T14:46:07.251000+00:00
Original source
I tend to store them in separate files based on the table they change. It's not bad to keep them all in a single file though if that's what you prefer. Essentially it's personal preference.
Archived author: Revision • Posted: 2025-10-29T14:47:02.973000+00:00
Original source
My queries are merged when they can. For example if I change the level of a creature and then a number of other creatures are changed to the same level I just use a `IN` to merge them into a single query. The same for other columns. I never merge queries if the columns changed aren't identical.