Resolving 2 errors

This commit is contained in:
Jonathan Herrewijnen 2021-04-05 23:17:34 +02:00
commit 3d382a9833
4 changed files with 273 additions and 272 deletions

View File

@ -1,5 +1,4 @@
extends Node extends Node
const SQLite = preload("res://addons/godot-sqlite/bin/gdsqlite.gdns")
var path = "user://storage.db" var path = "user://storage.db"
var db_name = "RingOfRaces" var db_name = "RingOfRaces"
@ -12,6 +11,7 @@ func _ready():
func CreateWorldDatabase(): func CreateWorldDatabase():
print("Creating new database") print("Creating new database")
var SQLite = load("user://gdsqlite.gdns")
var player_inventory : Dictionary = Dictionary() var player_inventory : Dictionary = Dictionary()
player_inventory["id"] = {"data_type":"int", "primary_key": true, "not_null": true} #slot id player_inventory["id"] = {"data_type":"int", "primary_key": true, "not_null": true} #slot id
player_inventory["item_id"] = {"data_type":"int", "not_null": true} #item id player_inventory["item_id"] = {"data_type":"int", "not_null": true} #item id
@ -32,6 +32,7 @@ func CreateWorldDatabase():
items.clear() items.clear()
func OpenConnection(): func OpenConnection():
var SQLite = load("user://gdsqlite.gdns")
self.db = SQLite.new() self.db = SQLite.new()
var file = File.new() var file = File.new()
self.db.path = path self.db.path = path

View File

@ -5,7 +5,7 @@ platform="Android"
runnable=true runnable=true
custom_features="" custom_features=""
export_filter="all_resources" export_filter="all_resources"
include_filter="" include_filter="*.db"
exclude_filter="" exclude_filter=""
export_path="./Ring of Races_v03_GLE2.apk" export_path="./Ring of Races_v03_GLE2.apk"
patch_list=PoolStringArray( ) patch_list=PoolStringArray( )
@ -184,16 +184,16 @@ permissions/use_credentials=false
permissions/use_sip=false permissions/use_sip=false
permissions/vibrate=false permissions/vibrate=false
permissions/wake_lock=false permissions/wake_lock=false
permissions/write_apn_settings=false permissions/write_apn_settings=true
permissions/write_calendar=false permissions/write_calendar=false
permissions/write_call_log=false permissions/write_call_log=false
permissions/write_contacts=false permissions/write_contacts=false
permissions/write_external_storage=false permissions/write_external_storage=true
permissions/write_gservices=false permissions/write_gservices=false
permissions/write_history_bookmarks=false permissions/write_history_bookmarks=false
permissions/write_profile=false permissions/write_profile=false
permissions/write_secure_settings=false permissions/write_secure_settings=false
permissions/write_settings=false permissions/write_settings=true
permissions/write_sms=false permissions/write_sms=false
permissions/write_social_stream=false permissions/write_social_stream=false
permissions/write_sync_settings=false permissions/write_sync_settings=false

View File

@ -45,7 +45,7 @@
[sub_resource type="OccluderPolygon2D" id=6] [sub_resource type="OccluderPolygon2D" id=6]
polygon = PoolVector2Array( 0, 0, 32, 0, 32, 96, 0, 96 ) polygon = PoolVector2Array( 0, 0, 32, 0, 32, 96, 0, 96 )
[sub_resource type="ConvexPolygonShape2D" id=5] [sub_resource type="ConvexPolygonShape2D" id=7]
points = PoolVector2Array( 0, 0, 32, 0, 32, 96, 0, 96 ) points = PoolVector2Array( 0, 0, 32, 0, 32, 96, 0, 96 )
[sub_resource type="TileSet" id=2] [sub_resource type="TileSet" id=2]
@ -116,14 +116,14 @@ points = PoolVector2Array( 0, 0, 32, 0, 32, 96, 0, 96 )
4/navigation_offset = Vector2( 0, 0 ) 4/navigation_offset = Vector2( 0, 0 )
4/shape_offset = Vector2( 0, 0 ) 4/shape_offset = Vector2( 0, 0 )
4/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) 4/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
4/shape = SubResource( 5 ) 4/shape = SubResource( 7 )
4/shape_one_way = false 4/shape_one_way = false
4/shape_one_way_margin = 1.0 4/shape_one_way_margin = 1.0
4/shapes = [ { 4/shapes = [ {
"autotile_coord": Vector2( 0, 0 ), "autotile_coord": Vector2( 0, 0 ),
"one_way": false, "one_way": false,
"one_way_margin": 1.0, "one_way_margin": 1.0,
"shape": SubResource( 5 ), "shape": SubResource( 7 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) "shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
} ] } ]
4/z_index = 0 4/z_index = 0