From a132188ccc244a6d802bd1c32fbf196d4cb53cbd Mon Sep 17 00:00:00 2001 From: nsensfel Date: Thu, 12 Jul 2018 17:48:41 +0200 Subject: Got it to load the map (full of "error" tiles). --- src/db/db_node.erl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/db/db_node.erl') diff --git a/src/db/db_node.erl b/src/db/db_node.erl index be295c6..aaf6ae3 100644 --- a/src/db/db_node.erl +++ b/src/db/db_node.erl @@ -25,7 +25,9 @@ wait_for_stop () -> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -spec start () -> 'ok'. start () -> - DB = db_model:new(battle_db, "/tmp/battle_db.mnesia", []), - db_model:start(DB), + Mnesia = db_model:new("/tmp/to_db_node.mnesia", []), + db_model:start(Mnesia), + db_model:add_db(battle_db, Mnesia), + db_model:add_db(map_db, Mnesia), wait_for_stop(), ok. -- cgit v1.2.3-70-g09d2