Michiyo 28 Posted April 18, 2014 Share Posted April 18, 2014 Hello all, I'd like to announce a new addon for OpenComputers: OpenPrinter! I was stuck using CC's printer and a adapter to print stuff with OC, so I set about to write a printer exclusively for OpenComputers. 1.6.4: Source: https://github.com/PC-Logix/OpenPrinter/tree/master 1.7.2/1.7.10: Source: https://github.com/PC-Logix/OpenPrinter/tree/1.7 1.7.2 builds work with 1.7.10 with no issue. Builds 73+ are MC 1.7.10 and OC 1.4+ compatible and will not work with earlier versions of either. Builds 120+ are MC 1.7.10, and require OC 1.5+ Downloads: https://minecraft.curseforge.com/projects/OpenPrinter Also, the mod has a auto update checker, like most mods, but this one is based on the M.U.D of Battlegear2 mod, and includes the ability to download updates to the mod from within the game. (restart still required) A Printed page: Recipes: The Printer: 4 Iron Ingot, 2 tier 1 ICs, 2 Redstone, 1 PCB. Color Ink Cartridge: 1 Rose Red, 1 Cactus Green, 1 Lapis Lazuli 1 Iron Ingot. 100 uses by default, changeable in the config. Black Ink Cartridge: 3 Squid Ink 1 Iron Ingot 100 uses by default, changeable in the config. Ink Refill recipe, use the proper recipe above, but replace the iron nugget with a partially used ink cartridge. Printer Paper Roll (256 sheets of paper in one item) 4 stacks of 64 Minecraft Paper Methods: op = component.openprinter op.writeln("String", [0xHEXCOLOR], ["center"]) Color, and center are optional, format is 0xRRGGBB, using this will add one use of your color ink cartridge, center will attempt to render the string in the center of the page, instead of left justified. you CAN use Minecraft's chat formatting control codes with calls to writeln, http://minecraft.gamepedia.com/Formatting_codes EACH CALL to a COLOR set will add one use of the color ink cartridge, calls to format codes will NOT. op.setTitle("String") Sets the "name" of the printed page, this also effects the item display in your inventory, never forget which page is which! op.getPaperLevel() Returns the amount of paper in your printer, 0-64 for Normal MC paper, or 0-256 for a paper roll. op.getColorInkLevel() op.getBlackInkLevel() returns the number of uses left in the ink cartridge 0-100 (default) op.clear() Will clear everything set by previous calls to op.writeln() op.print() Calling this method will print all previous calls to writeln to the printer. op.printTag("String") will print data to a Name Tag, op.printTag("Dinnerbone") and op.printTag("jeb_") This can be disabled via the config because this usually costs XP to set, using this method it is free. Quote Link to post Share on other sites
bart74 0 Posted April 23, 2014 Share Posted April 23, 2014 am I dreaming or there is even a nice 3D model? printers were the only thing missing in open computers (exept maybee sound cards,speakers... okay,not the only thing,but still awesome!) and,erm... crash... net.minecraftforge.client.model.ModelFormatException: IO Exception reading model format at net.minecraftforge.client.model.obj.WavefrontObject.<init>(WavefrontObject.java:60) at net.minecraftforge.client.model.obj.ObjModelLoader.loadInstance(ObjModelLoader.java:27) at net.minecraftforge.client.model.AdvancedModelLoader.loadModel(AdvancedModelLoader.java:65) at pcl.openprinter.tileentityrender.PrinterRenderer.<init>(PrinterRenderer.java:20) at pcl.openprinter.ClientProxy.registerRenderers(ClientProxy.java:29) at pcl.openprinter.OpenPrinter.load(OpenPrinter.java:170) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:209) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:677) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:268) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:525) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:813) at net.minecraft.client.main.Main.main(SourceFile:103) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) at net.minecraft.launchwrapper.Launch.main(Launch.java:28)Caused by: java.io.FileNotFoundException: openprinter:/models/printer.obj at net.minecraft.client.resources.FallbackResourceManager.func_110536_a(SourceFile:51) at net.minecraft.client.resources.SimpleReloadableResourceManager.func_110536_a(SourceFile:55) at net.minecraftforge.client.model.obj.WavefrontObject.<init>(WavefrontObject.java:55) ... 41 more I'm using lastest forge version (10.12.1.1061) edit : and did you know that printers doesn't uses red green and blue but cyan,yellow and magenta in fact? maybee you could change the recipe and the texture of the coloured ink cartrige Quote Link to post Share on other sites
Michiyo 28 Posted April 23, 2014 Author Share Posted April 23, 2014 You call RGB color codes to print in color, so Red/Green/Blue makes sense. As for the crash, it seems you are somehow missing the printer model? Open the jar in winrar, or winzip, navigate to "assets/openprinter/models/" and make sure you have printer.obj, if not... then try to download again? Quote Link to post Share on other sites
bart74 0 Posted April 23, 2014 Share Posted April 23, 2014 You call RGB color codes to print in color, so Red/Green/Blue makes sense. As for the crash, it seems you are somehow missing the printer model? Open the jar in winrar, or winzip, navigate to "assets/openprinter/models/" and make sure you have printer.obj, if not... then try to download again? there's a "printer.obj",there's even a "printer - Copy.obj" the problem seems to be that forge can't load the model and what is the printer.mtl? edit : renaming the printer - Copy.obj to printer.obj (and removing the original printer.obj) doesn't fix it,the problem isn't caused by the model itself but seems to be a code problem,on which version of forge this mod have been done? maybee the way forge load model changed since Quote Link to post Share on other sites
Michiyo 28 Posted April 27, 2014 Author Share Posted April 27, 2014 there's a "printer.obj",there's even a "printer - Copy.obj" the problem seems to be that forge can't load the model and what is the printer.mtl? edit : renaming the printer - Copy.obj to printer.obj (and removing the original printer.obj) doesn't fix it,the problem isn't caused by the model itself but seems to be a code problem,on which version of forge this mod have been done? maybee the way forge load model changed since Built on 1.7.2-10.12.1.1060, nothing has changed in the model loader class. Also http://puu.sh/8penP.jpg 1.7.2 forge 1060 Quote Link to post Share on other sites
Michiyo 28 Posted April 27, 2014 Author Share Posted April 27, 2014 Ok.. I was finally able to reproduce this. Build 21 on Jenkins fixes this issue, and a couple others. also printer.mtl is the material file for the model, blender creates it, so I tossed it in in case it was needed. Quote Link to post Share on other sites
TorakWolf 0 Posted June 15, 2014 Share Posted June 15, 2014 It's requiring me user and password for download, lOl. Quote Link to post Share on other sites
Michiyo 28 Posted June 17, 2014 Author Share Posted June 17, 2014 Downloads have been moved to http://pc-logix.com/mods/ Quote Link to post Share on other sites
TorakWolf 0 Posted June 20, 2014 Share Posted June 20, 2014 Is it compatible with 1.3? Quote Link to post Share on other sites
Lizzian 46 Posted June 20, 2014 Share Posted June 20, 2014 Is it compatible with 1.3? The newer builds are compatible with both 1.2 & 1.3 Quote Link to post Share on other sites
TorakWolf 0 Posted June 26, 2014 Share Posted June 26, 2014 This recipe for the roll has conflict with Tinkers' Construct's stack of paper. And when I try to use .writeIn, it says "attempt to call field "writeIn" ( a nil value ), that means the callback is other, or do not works. I am using OC 1.3.0.465 and latest version of OpenPrinter. Quote Link to post Share on other sites
TorakWolf 0 Posted June 28, 2014 Share Posted June 28, 2014 Someone alive? Quote Link to post Share on other sites
NoOpen 0 Posted August 25, 2014 Share Posted August 25, 2014 Links are broken for this one to Quote Link to post Share on other sites
Michiyo 28 Posted August 30, 2014 Author Share Posted August 30, 2014 Links are broken for this one to This has been fixed for both this mod and ICBMComponent, I fixed it back on the 28th or so. Quote Link to post Share on other sites
crazyivan532 0 Posted September 17, 2014 Share Posted September 17, 2014 Hi so I just found out about this, it sounds really cool btw and I tried to put it into my minecraft, but for some reason its not working. I'm wondering if you could help me please? Quote Link to post Share on other sites
Lizzian 46 Posted September 17, 2014 Share Posted September 17, 2014 An error log would be nice... Quote Link to post Share on other sites
crazyivan532 0 Posted September 17, 2014 Share Posted September 17, 2014 The problem is I'm not getting any errors, I can't seem to get that far. I try putting it into the mods folder and start minecraft but the mod never appears to be there. Quote Link to post Share on other sites
Lizzian 46 Posted September 17, 2014 Share Posted September 17, 2014 Can you try and list the steps to reproduce and/or get screenshots? Quote Link to post Share on other sites
crazyivan532 0 Posted September 17, 2014 Share Posted September 17, 2014 I use at launcher because i like to play the yogscast complete instance. I download the zip folder, i have tried placing it into the mods folder, zipped and unzipped. I have tried to rename it a .jar file and even this seems not to work. It uses minecraft 1.6.4 as the base but adds mods. I am having difficulty adding the mod to at launcher. Quote Link to post Share on other sites
Michiyo 28 Posted September 17, 2014 Author Share Posted September 17, 2014 If the download was anything other then a .jar there is an issue. Do not extract it, just drop the latest 1.6.4 Version which is OpenPrinter-0.1.0.75.jar in your mods directory. If this isn't working I'll need to see your entire "ForgeModLoader-client-0.log" post it to http://pastebin.com and link it here. Quote Link to post Share on other sites
crazyivan532 0 Posted September 18, 2014 Share Posted September 18, 2014 Ok so i got the right file type now, not sure where i got the other from but it was .zip not .jar and totally different. put the jar file into my mods folder and getting a message saying "a list of ID conflicts has been written to the file IDConflicts.txt in your minecraft directory and seems to freeze on a screen saying that for some reason. the contents of the file are as follows :- #Blocks780: tv from cfm - printer from openprinterSuggested Ranges: 2040-2128 (89 IDs), 1755-1833 (79 IDs), 2418-2476 (59 IDs) i have tried to add idfix minus to the folder which normally sorts out id conflicts but this has not helped. Also thanks to everyone who has helped me out. Quote Link to post Share on other sites
Michiyo 28 Posted September 18, 2014 Author Share Posted September 18, 2014 Then open the openprinter.cfg file and change the ID of the printer block to an ID in the range of one of these: 2040-2128 (89 IDs), 1755-1833 (79 IDs), 2418-2476 (59 IDs) Quote Link to post Share on other sites
JamesR624 0 Posted October 16, 2014 Share Posted October 16, 2014 Hello. I do hope this thread is not dead. Printers are the ONE thing missing for this to fully replace ComputerCraft for me. Would it be possible to reupload OpenPrinters on a website that is working? pc-logix.com seems to be down due to a "500 internal server error". I really do hope that this isn't abandoned. If anyone has a copy of the jar for 1.7.10, that would be fine as well. Quote Link to post Share on other sites
Lizzian 46 Posted October 16, 2014 Share Posted October 16, 2014 I've notified Michiyo via IRC about the 500 error so I guess she'll look when he can Quote Link to post Share on other sites
Michiyo 28 Posted October 16, 2014 Author Share Posted October 16, 2014 Nope mod isnt abandoned, the 500 error is strange ill check it tonight thanks for the report. Quote Link to post Share on other sites