methusalah / OpenRTS

Real-Time Strategy game 3D engine coded in pure java
MIT License
1.29k stars 151 forks source link

InstantiationException EditorGUIController but the editor is not used #87

Open meltzow opened 9 years ago

meltzow commented 9 years ago

currently the editor(view/ctrl etc) and the game(view/ctrl) is hard merged together. Because there are some things they are used together. Thats good for DRY (https://de.wikipedia.org/wiki/Don%E2%80%99t_repeat_yourself ) but bad if the user wants only playing or only starting the editor. The GameMultiplayerAlien.java is a example only for starting a Game (without the Editor), it working but there is exception:

WARNUNG: class [controller.editor.EditorGUIController] could not be instantiated (java.lang.InstantiationException: controller.editor.EditorGUIController) Jun 24, 2015 8:13:20 PM de.lessvoid.nifty.screen.Screen <init> WARNUNG: Missing ScreenController for screen [editor] using DefaultScreenController() instead but this might not be what you want.

If we split this, there investigate why there is a package model.editor ? normally models/domains a for persistence. But inside this package there a classes like AtlasTool, Pencil or ToolManager. These classes are not saving/loading. So we need a refactoring here.