Commit 35cc6074 authored by Marwolf's avatar Marwolf 💬

Updates client version, sets Android cabbage to force custom sprites

parent cd2bd1db
......@@ -192,11 +192,19 @@ public class CacheUpdater extends Activity {
String ip_cabbage = "androidcheck.openrsc.com";
String port_cabbage = "43595";
FileOutputStream fileout_cabbage;
String pack = "cabbagemenus:1";
FileOutputStream fileout_cabbage2;
try {
fileout_cabbage = new FileOutputStream("/data/user/0/com.openrsc.client/files" + File.separator + "ip.txt");
OutputStreamWriter outputWriter = new OutputStreamWriter(fileout_cabbage);
outputWriter.write(ip_cabbage);
outputWriter.close();
fileout_cabbage2 = new FileOutputStream("/data/user/0/com.openrsc.client/files" + File.separator + "config.txt");
OutputStreamWriter outputWriter2 = new OutputStreamWriter(fileout_cabbage2);
outputWriter2.write(pack);
outputWriter2.close();
} catch (Exception e) {
e.printStackTrace();
}
......
......@@ -16,8 +16,8 @@ public class Config {
public static String WELCOME_TEXT = "You need a members account to use this server";
public static String SERVER_IP = null; // Modify this to override "Cache/ip.txt"
public static int SERVER_PORT; // Modify SERVER_IP above to override "Cache/port.txt" with this value
public static final int CLIENT_VERSION = 2;
private static final int CACHE_VERSION = 2;
public static final int CLIENT_VERSION = 3;
private static final int CACHE_VERSION = 3;
public static boolean MEMBER_WORLD = false;
public static boolean DISPLAY_LOGO_SPRITE = false;
private static final boolean CUSTOM_CACHE_DIR_ENABLED = false;
......@@ -43,8 +43,8 @@ public class Config {
public static boolean F_ANDROID_BUILD = true; // This MUST be true if Android client or it will crash on launch, needs to be set as public for the Android client to use
public static final String DL_URL = "androidcheck.openrsc.com"; // needs to be set as public for the Android client to use
public static final String ANDROID_DOWNLOAD_PATH = "https://" + DL_URL + "/downloads/";
public static final String CACHE_URL = "https://" + DL_URL + "/downloads/cache/";
public static final int ANDROID_CLIENT_VERSION = 39; // Important! Depends on web server android_version.txt to check for an updated version
public static final String CACHE_URL = "https://" + DL_URL + "/downloads/cache2/";
public static final int ANDROID_CLIENT_VERSION = 40; // Important! Depends on web server android_version.txt to check for an updated version
public static boolean F_SHOWING_KEYBOARD = false;
public static boolean C_HOLD_AND_CHOOSE = true;
public static int C_LONG_PRESS_TIMER = 5; // default hold timer setting
......
......@@ -16,8 +16,8 @@ public class Config {
public static String WELCOME_TEXT = "You need a members account to use this server";
public static String SERVER_IP = null; // Modify this to override "Cache/ip.txt"
public static int SERVER_PORT; // Modify SERVER_IP above to override "Cache/port.txt" with this value
public static final int CLIENT_VERSION = 2;
private static final int CACHE_VERSION = 2;
public static final int CLIENT_VERSION = 3;
private static final int CACHE_VERSION = 3;
public static boolean MEMBER_WORLD = false;
public static boolean DISPLAY_LOGO_SPRITE = false;
private static final boolean CUSTOM_CACHE_DIR_ENABLED = false;
......@@ -44,7 +44,7 @@ public class Config {
public static final String DL_URL = "game.openrsc.com"; // needs to be set as public for the Android client to use
public static final String ANDROID_DOWNLOAD_PATH = "https://" + DL_URL + "/downloads/";
public static final String CACHE_URL = "https://" + DL_URL + "/downloads/cache/";
public static final int ANDROID_CLIENT_VERSION = 39; // Important! Depends on web server android_version.txt to check for an updated version
public static final int ANDROID_CLIENT_VERSION = 40; // Important! Depends on web server android_version.txt to check for an updated version
public static boolean F_SHOWING_KEYBOARD = false;
public static boolean C_HOLD_AND_CHOOSE = true;
public static int C_LONG_PRESS_TIMER = 5; // default hold timer setting
......
......@@ -21,7 +21,7 @@
<entry key = "game_tick">600</entry> <!-- tick speed of game and lower is faster -->
<entry key = "idle_timer">300000</entry> <!-- 5 minute player idle alert -->
<entry key = "auto_save">30000</entry> <!-- 30 second autosave interval -->
<entry key = "client_version">2</entry>
<entry key = "client_version">3</entry>
<entry key = "server_port">43594</entry> <!-- 43594 openrsc / 43595 cabbage / 43596 preservation / 43597 openpk / 43598 wk / 43599 dev -->
<entry key = "server_location">USA</entry>
<entry key = "maxplayers">100</entry>
......
......@@ -21,7 +21,7 @@
<entry key = "game_tick">420</entry>
<entry key = "idle_timer">600000</entry> <!-- MODIFIED -->
<entry key = "auto_save">30000</entry>
<entry key = "client_version">2</entry>
<entry key = "client_version">3</entry>
<entry key = "server_port">43599</entry> <!-- 43594 openrsc / 43595 cabbage / 43596 preservation / 43597 openpk / 43598 wk / 43599 dev -->
<entry key = "server_location">USA</entry>
<entry key = "maxplayers">100</entry>
......
......@@ -21,7 +21,7 @@
<entry key = "game_tick">600</entry>
<entry key = "idle_timer">600000</entry>
<entry key = "auto_save">30000</entry>
<entry key = "client_version">2</entry>
<entry key = "client_version">3</entry>
<entry key = "server_port">43597</entry> <!-- 43594 openrsc / 43595 cabbage / 43596 preservation / 43597 openpk / 43598 wk / 43599 dev -->
<entry key = "server_location">USA</entry>
<entry key = "maxplayers">100</entry>
......
......@@ -21,7 +21,7 @@
<entry key = "game_tick">600</entry>
<entry key = "idle_timer">300000</entry>
<entry key = "auto_save">30000</entry>
<entry key = "client_version">2</entry>
<entry key = "client_version">3</entry>
<entry key = "server_port">43594</entry> <!-- 43594 openrsc / 43595 cabbage / 43596 preservation / 43597 openpk / 43598 wk / 43599 dev -->
<entry key = "server_location">USA</entry>
<entry key = "maxplayers">100</entry>
......
......@@ -21,7 +21,7 @@
<entry key = "game_tick">420</entry>
<entry key = "idle_timer">600000</entry> <!-- MODIFIED -->
<entry key = "auto_save">30000</entry>
<entry key = "client_version">2</entry>
<entry key = "client_version">3</entry>
<entry key = "server_port">43595</entry> <!-- 43594 openrsc / 43595 cabbage / 43596 preservation / 43597 openpk / 43598 wk / 43599 dev -->
<entry key = "server_location">USA</entry>
<entry key = "maxplayers">100</entry>
......
......@@ -21,7 +21,7 @@
<entry key = "game_tick">600</entry>
<entry key = "idle_timer">300000</entry>
<entry key = "auto_save">30000</entry>
<entry key = "client_version">2</entry>
<entry key = "client_version">3</entry>
<entry key = "server_port">43596</entry> <!-- 43594 openrsc / 43595 cabbage / 43596 preservation / 43597 openpk / 43598 wk / 43599 dev -->
<entry key = "server_location">USA</entry>
<entry key = "maxplayers">100</entry>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment