function applyPointLightPatchShader(){ echo("Applying point light patch"); %timeStart = getSimTime(); %destFile = new FileObject(); %destFile.openForWrite("shaders/common.glsl"); %sourceFile = new FileObject(); %sourceFile.openForRead("Add-Ons/client_pointLightPatch/common.glsl"); while(!%sourceFile.isEOF()) { %destFile.writeLine(%sourceFile.readLine()); } %sourceFile.close(); %sourceFile.delete(); %destFile.close(); %destFile.delete(); %time = getSimTime() - %timeStart; echo("Done (" @ %time @ "ms)");}if(getBuildNumber() != 1715){ warn("client_pointLightPatch: Point light patch not applied, game version not supported."); warn(" Game Version: " @ getBuildNumber()); warn(" Patch Version: Revision 1715"); return;}else{ applyPointLightPatchShader();}
The first code and the last code have nothing to do with the topic.
Done, I cross the line at the frist code and the last code, Just middle code quote.
Try this:setModPaths(getModPaths() @ ";shaders");
I know that you can openForWrite inside the shader's folder.
you need to append the glsl files
Badspot dislikes anyone screwing with any files outside of config and Add-Ons, I believe this is achievable through creating an external program tho.It could be a program that contains a full GUI for messing with the settings and learning what each setting does that constantly sends a function that resets Blockland's shader mode after changes are made.