Kilo
Kilo
TIPThe Iris Project
Created by Zack McCandy on 9/21/2023 in #iris-issues
Can't open minecraft with iris 1.6.9
but i suggest watching their code repos
108 replies
TIPThe Iris Project
Created by Zack McCandy on 9/21/2023 in #iris-issues
Can't open minecraft with iris 1.6.9
hopefuly nothing will change
108 replies
TIPThe Iris Project
Created by Zack McCandy on 9/21/2023 in #iris-issues
Can't open minecraft with iris 1.6.9
but that does not sound ... pleasant
108 replies
TIPThe Iris Project
Created by Zack McCandy on 9/21/2023 in #iris-issues
Can't open minecraft with iris 1.6.9
well i can't join cuz i am at capacity
108 replies
TIPThe Iris Project
Created by Zack McCandy on 9/21/2023 in #iris-issues
Can't open minecraft with iris 1.6.9
oh oh
108 replies
TIPThe Iris Project
Created by Zack McCandy on 9/21/2023 in #iris-issues
Can't open minecraft with iris 1.6.9
108 replies
TIPThe Iris Project
Created by Zack McCandy on 9/21/2023 in #iris-issues
Can't open minecraft with iris 1.6.9
their function isn't exactly complicated
108 replies
TIPThe Iris Project
Created by Zack McCandy on 9/21/2023 in #iris-issues
Can't open minecraft with iris 1.6.9
but someone else could
108 replies
TIPThe Iris Project
Created by Zack McCandy on 9/21/2023 in #iris-issues
Can't open minecraft with iris 1.6.9
i doubt supplementaries would even mean it maliciously ever
108 replies
TIPThe Iris Project
Created by Zack McCandy on 9/21/2023 in #iris-issues
Can't open minecraft with iris 1.6.9
using such a method
108 replies
TIPThe Iris Project
Created by Zack McCandy on 9/21/2023 in #iris-issues
Can't open minecraft with iris 1.6.9
yea but they could pin the blame on iris
108 replies
TIPThe Iris Project
Created by Zack McCandy on 9/21/2023 in #iris-issues
Can't open minecraft with iris 1.6.9
thankfully supplementaries is only being moody with it
108 replies
TIPThe Iris Project
Created by Zack McCandy on 9/21/2023 in #iris-issues
Can't open minecraft with iris 1.6.9
which this could possibly be used maliciously
108 replies
TIPThe Iris Project
Created by Zack McCandy on 9/21/2023 in #iris-issues
Can't open minecraft with iris 1.6.9
it hijacks the dependencies of iris including the standalone install
108 replies
TIPThe Iris Project
Created by Zack McCandy on 9/21/2023 in #iris-issues
Can't open minecraft with iris 1.6.9
its not an autoinstaller
108 replies
TIPThe Iris Project
Created by Zack McCandy on 9/21/2023 in #iris-issues
Can't open minecraft with iris 1.6.9
but why
108 replies
TIPThe Iris Project
Created by Zack McCandy on 9/21/2023 in #iris-issues
Can't open minecraft with iris 1.6.9
i can see its some kind of logger for when indium and sodium are loaded
108 replies
TIPThe Iris Project
Created by Zack McCandy on 9/21/2023 in #iris-issues
Can't open minecraft with iris 1.6.9
//I hate this. I've got to do what I've got to do. Cant stand random reports anymore
//you were supposed to destroy the loader api nuking mods, not join them!
public static void crashIfFabricRenderingAPIHasBeenNuked() {

if (PlatHelper.isModLoaded("sodium") && !PlatHelper.isModLoaded("indium")) {
Supplementaries.LOGGER.error("You seem to have installed Sodium which has been known to break fabric rendering API." +
"Things might not work well");
}
}

}
//I hate this. I've got to do what I've got to do. Cant stand random reports anymore
//you were supposed to destroy the loader api nuking mods, not join them!
public static void crashIfFabricRenderingAPIHasBeenNuked() {

if (PlatHelper.isModLoaded("sodium") && !PlatHelper.isModLoaded("indium")) {
Supplementaries.LOGGER.error("You seem to have installed Sodium which has been known to break fabric rendering API." +
"Things might not work well");
}
}

}
but why does this exist ?
108 replies
TIPThe Iris Project
Created by Zack McCandy on 9/21/2023 in #iris-issues
Can't open minecraft with iris 1.6.9
private static void fixSodiumDeps() {
JsonElement obj = new JsonObject();
var file = FabricLoader.getInstance().getConfigDir().resolve("fabric_loader_dependencies.json").toFile();
if (file.exists() && file.isFile()) {
try (FileInputStream fileInputStream = new FileInputStream(file);
InputStreamReader inputStreamReader = new InputStreamReader(fileInputStream, StandardCharsets.UTF_8);
BufferedReader bufferedReader = new BufferedReader(inputStreamReader)) {

obj = GSON.fromJson(bufferedReader, JsonElement.class);
} catch (IOException ignored) {
}
}
if (obj instanceof JsonObject jo) {
if(!jo.has("version")){
jo.addProperty("version", 1);
}
JsonObject overrides = new JsonObject();
if(jo.has("overrides")){
overrides = jo.getAsJsonObject("overrides");
}
JsonObject prop = new JsonObject();
JsonObject dep = new JsonObject();
dep.addProperty("indium", "*");
prop.add("+depends", dep);
JsonObject dep2 = new JsonObject();
dep2.addProperty("fabric-renderer-indigo", "*");
prop.add("+conflicts", dep2);
overrides.add("sodium", prop);
jo.add("overrides", overrides);

}

try (FileOutputStream stream = new FileOutputStream(file);
Writer writer = new OutputStreamWriter(stream, StandardCharsets.UTF_8)) {

GSON.toJson(obj, writer);
} catch (IOException ignored) {
}
}
private static void fixSodiumDeps() {
JsonElement obj = new JsonObject();
var file = FabricLoader.getInstance().getConfigDir().resolve("fabric_loader_dependencies.json").toFile();
if (file.exists() && file.isFile()) {
try (FileInputStream fileInputStream = new FileInputStream(file);
InputStreamReader inputStreamReader = new InputStreamReader(fileInputStream, StandardCharsets.UTF_8);
BufferedReader bufferedReader = new BufferedReader(inputStreamReader)) {

obj = GSON.fromJson(bufferedReader, JsonElement.class);
} catch (IOException ignored) {
}
}
if (obj instanceof JsonObject jo) {
if(!jo.has("version")){
jo.addProperty("version", 1);
}
JsonObject overrides = new JsonObject();
if(jo.has("overrides")){
overrides = jo.getAsJsonObject("overrides");
}
JsonObject prop = new JsonObject();
JsonObject dep = new JsonObject();
dep.addProperty("indium", "*");
prop.add("+depends", dep);
JsonObject dep2 = new JsonObject();
dep2.addProperty("fabric-renderer-indigo", "*");
prop.add("+conflicts", dep2);
overrides.add("sodium", prop);
jo.add("overrides", overrides);

}

try (FileOutputStream stream = new FileOutputStream(file);
Writer writer = new OutputStreamWriter(stream, StandardCharsets.UTF_8)) {

GSON.toJson(obj, writer);
} catch (IOException ignored) {
}
}
so this function adds a new dependency
108 replies
TIPThe Iris Project
Created by Zack McCandy on 9/21/2023 in #iris-issues
Can't open minecraft with iris 1.6.9
like the timing was impeccable right after my food nap i awake to possible drama brewing and my old issue being solved
108 replies