Commit Graph
40 Commits
Author SHA1 Message Date
David Cernat cfffb0b9eb [General] Always use tableHelper's deepCopy() instead of shallowCopy() 2020-02-24 21:47:34 +02:00
David Cernat 053ce2cd7c [General] Add clarifications about very incomplete state of database use 2018-12-17 09:18:12 +02:00
David Cernat 1c3e9ac808 [General] Clean up logging by using easily adjustable log level values 2018-09-08 19:11:27 +03:00
David Cernat 31df4d0e5f [General] Fix cell change logic slightly and remove unnecessary spaces 2017-05-06 03:08:40 +03:00
David Cernat 63681efc47 [Database] Use a single transaction when saving players to avoid freezes 2017-04-22 16:47:22 +03:00
David Cernat 89ae468b1a [General] Add Database support for World 2017-04-05 02:16:44 +03:00
David Cernat cf18fb7f29 [Database] Use separate methods for setting up player and cell tables 2017-04-04 12:03:37 +03:00
David Cernat 2aebbe1f0a [Database] Don't use data from empty rows when loading player 2017-04-04 02:10:36 +03:00
David Cernat e698460845 [General] Use tes3mp.LogMessage() instead of print() 2017-04-04 02:01:40 +03:00
David Cernat 5dffe3bf12 [Database] Save and load player custom classes 2017-04-04 01:13:42 +03:00
David Cernat c45bb39e82 [General] Use new tableHelper class, make requires consistent 2017-04-04 00:22:53 +03:00
David Cernat 94d4da44bc [Database] Load player equipment, inventory and spellbook 2017-04-02 11:20:40 +03:00
David Cernat 3c5468f88c [Database] Add Database:SelectRows() 2017-04-02 11:19:50 +03:00
David Cernat 2fa13e1b7a [Database] Save player equipment, inventory and spellbook 2017-04-01 08:48:14 +03:00
David Cernat 2d52daa234 [Database] Fix column name and stop requiring LIP in player.sql 2017-03-28 08:03:20 +03:00
David Cernat afd881bae5 [Database] Create tables for player equpment, inventory & spellbook 2017-03-28 06:26:12 +03:00
David Cernat 4558fbe0d4 [Database] Save non-numerical player tables instead of using fixed list 2017-03-28 06:25:10 +03:00
David Cernat 0cadb43596 [Player] Load player from database correctly as of now 2017-03-27 05:05:04 +03:00
David Cernat 8d19af2bf4 [Database] Add Database:SelectRow() and Database:LoadPlayer() 2017-03-27 05:02:10 +03:00
David Cernat ba78c8193e [Database] Return nil instead of -1 in Database:GetSingleValue() 2017-03-27 05:00:37 +03:00
David Cernat dc3befcbdd [Player] Split off data.general into data.login & data.settings 2017-03-25 23:32:02 +02:00
David Cernat 0bb70e919d [Database] Temporarily use both LIP & Database methods in player/sql.lua 2017-03-25 09:04:55 +02:00
David Cernat eebc366687 [Database] Use dbPidRow and constraintRow variables to avoid repetition 2017-03-25 06:03:57 +02:00
David Cernat 31549b81d8 [Database] Add tables for stats, attributes and skills 2017-03-25 05:47:34 +02:00
David Cernat ebd5c57991 Add table.shallowcopy() and use it when saving player tables to database 2017-03-25 05:41:02 +02:00
David Cernat 219498866a Escape inserted values 2017-03-25 00:05:46 +02:00
David Cernat 29a616a27c Replace data in rows that already exist 2017-03-24 23:01:03 +02:00
David Cernat 21ee582d42 Create player_location table 2017-03-24 22:30:15 +02:00
David Cernat 21a12796d5 Add Database:DeleteRows() and allow nil responses to queries 2017-03-24 21:49:33 +02:00
David Cernat c476ec578b Use foreign key constraints for dbPid and only save valid player tables 2017-03-24 21:48:02 +02:00
David Cernat fc22260564 Handle nil values in Database:GetSingleValue() 2017-03-24 20:18:52 +02:00
David Cernat fc988dd19a Make it possible to fetch a single value from an SQL table 2017-03-22 06:21:26 +02:00
David Cernat dd877fe86c Create player_character table & rename a character data key 2017-03-22 02:11:41 +02:00
David Cernat be7beead6d Make it possible for player data to get saved to matching SQL tables 2017-03-22 01:19:16 +02:00
David Cernat 799dfb52d3 Allow "default" value for consoleAllowed 2017-03-21 22:25:04 +02:00
David Cernat c63b60e4d3 Add dbPid primary key to players_general & use SQLite-specific datatypes 2017-03-21 21:31:18 +02:00
David Cernat b9e3f19613 Make it possible to insert rows automatically from value tables 2017-03-16 00:38:13 +02:00
David Cernat 8825bd441f Make it possible to create tables automatically from column lists 2017-03-15 22:26:12 +02:00
David Cernat c86d1084ca Create players_general table if it doesn't already exist 2017-03-15 20:48:53 +02:00
David Cernat c58ddc3c77 Move database.lua from lib folder to scripts folder 2017-03-15 20:07:42 +02:00