Example #1
0
    "___  ____/______________ __________  /___  ____/______ _____________ ")
frostlib.slogger.info(
    "__  /_    __  ___/_  __ \__  ___/_  __/_  /     _  __ \__  ___/_  _ \\")
frostlib.slogger.info(
    "_  __/    _  /    / /_/ /_(__  ) / /_  / /___   / /_/ /_  /    /  __/")
frostlib.slogger.info(
    "/_/       /_/     \____/ /____/  \__/  \____/   \____/ /_/     \___/ ")
frostlib.slogger.info("FrostCore Revision: " + str(frostlib.RELEASE_TYPE) +
                      "-" + str(frostlib.__REVISION__))
frostlib.slogger.info("Checking FrostLIB Hash...")
frostlib_hash = frostlib.hash.GetHashofDirs("frostlib", 1)
frostlib.slogger.info("Current FrostLIB Hash : " + str(frostlib_hash))
frostlib.slogger.info("Saved FrostLIB Hash   : " + str(frostlib.FROSTLIB_HASH))
if frostlib_hash != frostlib.FROSTLIB_HASH:
    frostlib.slogger.info("False FrostLIB HASH")
    frostlib.shutdown()

frostlib.slogger.info("Loading Data...")
frostlib.sworld.connect_db()
frostlib.sworld.loaditems()
frostlib.sworld.loaditems_localized()
frostlib.sworld.load_creatures()
frostlib.sworld.loadscripttexts()
frostlib.slogger.info("Loading Data Completed !")

frostlib.slogger.info("FrostCore World is starting...")
# twisted Imports
from twisted.internet.protocol import Protocol, Factory
from twisted.internet import reactor, threads, defer

active_connections = 0
Example #2
0
import warnings
warnings.filterwarnings("ignore")
frostlib.config.loadworldconf()
frostlib.slogger.info("__________                       _____ _________                     ")
frostlib.slogger.info("___  ____/______________ __________  /___  ____/______ _____________ ")
frostlib.slogger.info("__  /_    __  ___/_  __ \__  ___/_  __/_  /     _  __ \__  ___/_  _ \\")
frostlib.slogger.info("_  __/    _  /    / /_/ /_(__  ) / /_  / /___   / /_/ /_  /    /  __/")
frostlib.slogger.info("/_/       /_/     \____/ /____/  \__/  \____/   \____/ /_/     \___/ ")
frostlib.slogger.info("FrostCore Revision: " + str(frostlib.RELEASE_TYPE) + "-" + str(frostlib.__REVISION__))
frostlib.slogger.info("Checking FrostLIB Hash...")
frostlib_hash = frostlib.hash.GetHashofDirs("frostlib", 1)
frostlib.slogger.info("Current FrostLIB Hash : " + str(frostlib_hash))
frostlib.slogger.info("Saved FrostLIB Hash   : " + str(frostlib.FROSTLIB_HASH))
if frostlib_hash != frostlib.FROSTLIB_HASH:
    frostlib.slogger.info("False FrostLIB HASH")
    frostlib.shutdown()
    
frostlib.slogger.info("Loading Data...")
frostlib.sworld.connect_db()
frostlib.sworld.loaditems()
frostlib.sworld.loaditems_localized()
frostlib.sworld.load_creatures()
frostlib.sworld.loadscripttexts()
frostlib.slogger.info("Loading Data Completed !")

frostlib.slogger.info("FrostCore World is starting...")
# twisted Imports
from twisted.internet.protocol import Protocol, Factory
from twisted.internet import reactor, threads, defer

active_connections = 0