Can't create recipe or achievement.

Published by romngenie on Sat, 12/15/2018 - 10:20
Status
Fixed
Type
Product/platform
MCreator/Windows
Priority
Normal
Issue description

simply can't add any recipe when i try to add the gui software does'not generate file(java source code file) for mod

 

heres error when i try to add recipe mod to workspace:

[Sat Dec 15 13:17:22 EET 2018] [GA] Tracking event: new_mod_element - Recipe
[Sat Dec 15 13:17:28 EET 2018] Exception in thread "AWT-EventQueue-0" [Sat Dec 15 13:17:28 EET 2018] java.lang.NullPointerException
[Sat Dec 15 13:17:28 EET 2018]  at java.io.DataInputStream.read(DataInputStream.java:149)
[Sat Dec 15 13:17:28 EET 2018]  at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
[Sat Dec 15 13:17:28 EET 2018]  at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
[Sat Dec 15 13:17:28 EET 2018]  at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
[Sat Dec 15 13:17:28 EET 2018]  at java.io.InputStreamReader.read(InputStreamReader.java:184)
[Sat Dec 15 13:17:28 EET 2018]  at java.io.BufferedReader.fill(BufferedReader.java:161)
[Sat Dec 15 13:17:28 EET 2018]  at java.io.BufferedReader.readLine(BufferedReader.java:324)
[Sat Dec 15 13:17:28 EET 2018]  at java.io.BufferedReader.readLine(BufferedReader.java:389)
[Sat Dec 15 13:17:28 EET 2018]  at co.pylo.mcreator.f.b.a(Unknown Source)
[Sat Dec 15 13:17:28 EET 2018]  at co.pylo.mcreator.generator.b.a(Unknown Source)
[Sat Dec 15 13:17:28 EET 2018]  at co.pylo.mcreator.modgui.D.a(Unknown Source)
[Sat Dec 15 13:17:28 EET 2018]  at co.pylo.mcreator.modgui.D.a(Unknown Source)
[Sat Dec 15 13:17:28 EET 2018]  at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
[Sat Dec 15 13:17:28 EET 2018]  at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
[Sat Dec 15 13:17:28 EET 2018]  at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
[Sat Dec 15 13:17:28 EET 2018]  at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
[Sat Dec 15 13:17:28 EET 2018]  at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
[Sat Dec 15 13:17:28 EET 2018]  at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
[Sat Dec 15 13:17:28 EET 2018]  at java.awt.Component.processMouseEvent(Component.java:6539)
[Sat Dec 15 13:17:28 EET 2018]  at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
[Sat Dec 15 13:17:28 EET 2018]  at java.awt.Component.processEvent(Component.java:6304)
[Sat Dec 15 13:17:28 EET 2018]  at java.awt.Container.processEvent(Container.java:2239)
[Sat Dec 15 13:17:28 EET 2018]  at java.awt.Component.dispatchEventImpl(Component.java:4889)
[Sat Dec 15 13:17:28 EET 2018]  at java.awt.Container.dispatchEventImpl(Container.java:2297)
[Sat Dec 15 13:17:28 EET 2018]  at java.awt.Component.dispatchEvent(Component.java:4711)
[Sat Dec 15 13:17:28 EET 2018]  at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
[Sat Dec 15 13:17:28 EET 2018]  at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)
[Sat Dec 15 13:17:28 EET 2018]  at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
[Sat Dec 15 13:17:28 EET 2018]  at java.awt.Container.dispatchEventImpl(Container.java:2283)
[Sat Dec 15 13:17:28 EET 2018]  at java.awt.Window.dispatchEventImpl(Window.java:2746)
[Sat Dec 15 13:17:28 EET 2018]  at java.awt.Component.dispatchEvent(Component.java:4711)
[Sat Dec 15 13:17:28 EET 2018]  at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
[Sat Dec 15 13:17:28 EET 2018]  at java.awt.EventQueue.access$500(EventQueue.java:97)
[Sat Dec 15 13:17:28 EET 2018]  at java.awt.EventQueue$3.run(EventQueue.java:709)
[Sat Dec 15 13:17:28 EET 2018]  at java.awt.EventQueue$3.run(EventQueue.java:703)
[Sat Dec 15 13:17:28 EET 2018]  at java.security.AccessController.doPrivileged(Native Method)
[Sat Dec 15 13:17:28 EET 2018]  at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
[Sat Dec 15 13:17:28 EET 2018]  at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
[Sat Dec 15 13:17:28 EET 2018]  at java.awt.EventQueue$4.run(EventQueue.java:733)
[Sat Dec 15 13:17:28 EET 2018]  at java.awt.EventQueue$4.run(EventQueue.java:731)
[Sat Dec 15 13:17:28 EET 2018]  at java.security.AccessController.doPrivileged(Native Method)
[Sat Dec 15 13:17:28 EET 2018]  at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
[Sat Dec 15 13:17:28 EET 2018]  at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
[Sat Dec 15 13:17:28 EET 2018]  at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
[Sat Dec 15 13:17:28 EET 2018]  at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
[Sat Dec 15 13:17:28 EET 2018]  at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
[Sat Dec 15 13:17:28 EET 2018]  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
[Sat Dec 15 13:17:28 EET 2018]  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
[Sat Dec 15 13:17:28 EET 2018]  at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
[Sat Dec 15 13:17:28 EET 2018]  Suppressed: java.lang.NullPointerException
[Sat Dec 15 13:17:28 EET 2018]          at java.io.FilterInputStream.close(FilterInputStream.java:181)
[Sat Dec 15 13:17:28 EET 2018]          at sun.nio.cs.StreamDecoder.implClose(StreamDecoder.java:378)
[Sat Dec 15 13:17:28 EET 2018]          at sun.nio.cs.StreamDecoder.close(StreamDecoder.java:193)
[Sat Dec 15 13:17:28 EET 2018]          at java.io.InputStreamReader.close(InputStreamReader.java:199)
[Sat Dec 15 13:17:28 EET 2018]          at java.io.BufferedReader.close(BufferedReader.java:525)
[Sat Dec 15 13:17:28 EET 2018]          ... 41 more
[Sat Dec 15 13:17:52 EET 2018] [Workspace FS] Storing workspace to the file system

Issue comments

and it says "this mod does not have saved instance" when i try to edit recipe, but i freshly created the mod

i run windows on turkish language pack which known to be caused character bugs and null errors too

i get this error on build with any recipe or achivement mods: 

 

C:\MCreator181\forge\build\sources\main\java\mod\mcreator\testenvironmentmod.java:97: error: cannot find symbol
        elements.add(new mcreator_sdf());
                         ^
  symbol:   class mcreator_sdf
  location: class testenvironmentmod
Note: C:\MCreator181\forge\build\sources\main\java\mod\mcreator\testenvironmentmod.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
 

I suggest you to completely reinstall MCreator and make sure to only use English characters for all parts of MCreator.

[Sat Dec 15 13:28:53 EET 2018] Error copying file: .\user\json (Sistem belirtilen dosyay² bulam²yor)

i use english characters but main java language uses some variables from windows core and windows acts different on different languages. and i completely installed gradle and mcreator 3 times but still same issue

should i try different version of mcreator like 1.8.0 because lot of things does not work in this version

This is not a bug on our side. It seems like this is an issue with compatibility with your computer. 

Try running MCreator as administrator to see if this helps.

You can also attach the .mcr file of exported workspace that gave you this error:

elements.add(new mcreator_sdf());

I used USA Language Pack of Windows 10 now it works like a charm. Java is worst compitable lang i been seen before. nevermind works now. Thank you for your replies. Please close the issue.



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.