Hi!
Thanks! I've figured it out
The SQL.connectSQLite does not take into account neither DataPath file path or Paks, that's because SQLite supports operating on databases only as a file (and not a file inside another file, like in Pak's)
I'll need to investigate if it's possible at all to make it work with either reading sql database from memory, or from file inside another file (for read-only).
For now you could make it work by specifying the full path to the file:
sql.connect..(DataPath()+EncodeFileName(..));
however this will not work after publishing, because for publishing the DataPath is not set, but resources are loaded from Paks (and as I've stated earlier, reading sqlite from Paks is not available at the moment), for publishing you could workaround it by first extracting the sql db file from the pak file. Like this:
FCopy(EncodeFileName(), S+"Bin/"+EncodeFileName());
then read from the file sql.connect(S+"Bin/"+EncodeFileName());
I'll try to do something about it soon.
Or if anyone knows how to setup sqlite to read databases from memory then please let me know.