diff --git a/package.py b/package.py index 2cf08da..8f2e88d 100644 --- a/package.py +++ b/package.py @@ -95,7 +95,7 @@ class BotRelease(object): self.project = 'yapb' self.version = sys.argv[1] self.artifacts = 'artifacts' - self.graphs = 'yapb-gcdn.akamaized.net' + self.graphs = 'yapb.jeefo.net' self.win32exe = 'https://github.com/yapb/setup/releases/latest/download/botsetup.exe' meson_src_root_env = 'MESON_SOURCE_ROOT' diff --git a/src/graph.cpp b/src/graph.cpp index b957640..0f0b3a6 100644 --- a/src/graph.cpp +++ b/src/graph.cpp @@ -1611,7 +1611,7 @@ bool BotGraph::loadGraphData () { int mapSize = getBspSize (); if (mapSize != exten.mapSize) { - msg ("Warning: Graph data is probably not for this map. Please check bots behaviour."); + msg ("Warning: Graph data is probably not for this map. Please check bots behavior."); } } cv_debug_goal.set (kInvalidNodeIndex); diff --git a/src/storage.cpp b/src/storage.cpp index 1b95aea..67fd415 100644 --- a/src/storage.cpp +++ b/src/storage.cpp @@ -43,10 +43,13 @@ template bool BotStorage::load (SmallArray &data, ExtenHeader * if (!graph.canDownload ()) { return false; } + String lowercaseMapName = game.getMapName (); + lowercaseMapName = lowercaseMapName.lowercase (); + auto downloadAddress = cv_graph_url.str (); auto toDownload = buildPath (storageToBotFile (type.option), false); - auto fromDownload = strings.format ("http://%s/graph/%s.graph", downloadAddress, game.getMapName ()); + auto fromDownload = strings.format ("http://%s/graph/%s.graph", downloadAddress, lowercaseMapName); // try to download if (http.downloadFile (fromDownload, toDownload)) {