Leakoo
thinmatrix from patreon
thinmatrix patreon

Latest Code Download

🕑 Added 2021-08-30 19:06:01 +0000 UTC

Comments

Thank you for sharing! Your YouTube channel made me excited to finally learn Java (coming from being a Python programmer and some JavaScript for work, and making some games with Godot + Blender)! I downloaded IntelliJ because it feels more noob-friendly, but I had to make a quick fix to get the code to run; thought I'd share in case anyone also runs into this problem. IntelliJ put everything in an out/ folder, which made the command FileUtils.getRootFolder() in thinmatrix.lowPolyEngine.engineMain.master.EngineFiles think that the root folder of the project was "out/production/{project name}". (The error was thrown in a color palette loader file because it could not find the file 'res/palette.png'). So, to fix this, I changed the code EngineFiles.java like so: ``` package thinmatrix.lowPolyEngine.engineMain.master; import java.io.File; import thinmatrix.toolbox.fileUtils.FileUtils; public class EngineFiles { private static final File EDITOR_ROOT_FOLDER = new File(String.valueOf(FileUtils.getRootFolder())); private static final File PROJECT_ROOT_FOLDER = new File(String.valueOf(EDITOR_ROOT_FOLDER.getParentFile().getParentFile().getParentFile())); public static final File RES_FOLDER = new File(PROJECT_ROOT_FOLDER, "res"); public static final File ERROR_FOLDER = new File(PROJECT_ROOT_FOLDER, "ErrorLogsTM"); public static final File GUI_FOLDER = new File(RES_FOLDER, "GUIs"); public static final File FONT_FOLDER = new File(RES_FOLDER, "fonts"); public static final File DEFAULT_FONT_ATLAS = new File(FONT_FOLDER, "default.png"); public static final File DEFAULT_FONT_META = new File(FONT_FOLDER, "default.fnt"); public static final File ICON_FOLDER = new File(RES_FOLDER, "windowIcon"); public static final File LANG_FILE = new File(RES_FOLDER, "languageFile.csv"); } ``` Not a very pretty solution but the game seems to be working now!


More Creators