mirror of
https://github.com/ineedbots/t4_bot_warfare.git
synced 2025-04-22 07:55:43 +00:00
Use printconsole
This commit is contained in:
parent
5fa358fbaa
commit
6452025897
@ -15,7 +15,7 @@ getRemoteWaypoints(mapname)
|
||||
url = "https://raw.githubusercontent.com/ineedbots/t4m_waypoints/master/" + mapname + "_wp.csv";
|
||||
filename = "waypoints/" + mapname + "_wp.csv";
|
||||
|
||||
println("Attempting to get remote waypoints from " + url);
|
||||
PrintConsole("Attempting to get remote waypoints from " + url + "\n");
|
||||
res = getLinesFromUrl(url, filename);
|
||||
|
||||
if (!res.lines.size)
|
||||
@ -24,7 +24,7 @@ getRemoteWaypoints(mapname)
|
||||
waypointCount = int(res.lines[0]);
|
||||
|
||||
waypoints = [];
|
||||
println("Loading remote waypoints...");
|
||||
PrintConsole("Loading remote waypoints...\n");
|
||||
|
||||
for (i = 1; i <= waypointCount; i++)
|
||||
{
|
||||
@ -38,7 +38,7 @@ getRemoteWaypoints(mapname)
|
||||
if (waypoints.size)
|
||||
{
|
||||
level.waypoints = waypoints;
|
||||
println("Loaded " + waypoints.size + " waypoints from remote.");
|
||||
PrintConsole("Loaded " + waypoints.size + " waypoints from remote.\n");
|
||||
}
|
||||
}
|
||||
|
||||
@ -51,18 +51,18 @@ doVersionCheck()
|
||||
|
||||
if (!isDefined(remoteVersion))
|
||||
{
|
||||
println("Error getting remote version of Bot Warfare.");
|
||||
PrintConsole("Error getting remote version of Bot Warfare.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (level.bw_VERSION != remoteVersion)
|
||||
{
|
||||
println("There is a new version of Bot Warfare!");
|
||||
println("You are on version " + level.bw_VERSION + " but " + remoteVersion + " is available!");
|
||||
PrintConsole("There is a new version of Bot Warfare!\n");
|
||||
PrintConsole("You are on version " + level.bw_VERSION + " but " + remoteVersion + " is available!\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
println("You are on the latest version of Bot Warfare!");
|
||||
PrintConsole("You are on the latest version of Bot Warfare!\n");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -974,7 +974,7 @@ readWpsFromFile(mapname)
|
||||
if (!res.lines.size)
|
||||
return waypoints;
|
||||
|
||||
println("Attempting to read waypoints from " + filename);
|
||||
PrintConsole("Attempting to read waypoints from " + filename + "\n");
|
||||
|
||||
waypointCount = int(res.lines[0]);
|
||||
|
||||
@ -1005,7 +1005,7 @@ load_waypoints()
|
||||
if (wps.size)
|
||||
{
|
||||
level.waypoints = wps;
|
||||
println("Loaded " + wps.size + " waypoints from file.");
|
||||
PrintConsole("Loaded " + wps.size + " waypoints from file.\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1085,7 +1085,7 @@ load_waypoints()
|
||||
}
|
||||
|
||||
if (level.waypoints.size)
|
||||
println("Loaded " + level.waypoints.size + " waypoints from script.");
|
||||
PrintConsole("Loaded " + level.waypoints.size + " waypoints from script.\n");
|
||||
}
|
||||
|
||||
if (!level.waypoints.size)
|
||||
|
Loading…
x
Reference in New Issue
Block a user