fogleman / Craft

A simple Minecraft clone written in C using modern OpenGL (shaders).
http://www.michaelfogleman.com/craft/
MIT License
10.38k stars 1.39k forks source link

Seeding the world from sqlite #278

Closed yahavb closed 3 years ago

yahavb commented 3 years ago

Every time my game server starts it presents a new world. I would like the game server survive a reboot. So I want the init of Model will seed the world from Sqlite. What is the best way to achieve that? Quick background - I am trying to demonstrate the game on Agones on AWS EC2 Spot Instances https://github.com/aws-samples/spotable-game-server/blob/master/craft-server-image/server.py

yahavb commented 3 years ago

strike this request. craft.db does exactly what I need but I messed with docker caching that yielded weird results when coping craft.db from the server to another server. Its all good.