New jailbreak for IOS6 on iPhone 5 has got me back on this project AND I'm getting closer, I've had to make a few modifications and recompile a few times, but its all good fun!
Current state: LOGGED IN!
all changes so far have been GUI related:
KoLConstants.java
line 79: Changed to
public static final Font DEFAULT_FONT = new Font("sansserif", Font.BOLD, 32);
pretty sure I don't need this in headless, but it is used so to prevent compilation errors I put in something random!
line 111: deleted: (I couldn't find any reference to this being used!)
public static final JLabel BLANK_LABEL = new JLabel();
KoLmafia.java
line 491: deleted: (obviously I don't need this!)
OSXAdapter.setDockIconImage( JComponentUtilities.getImage( "limeglass.gif" ).getImage() );
i've also modified printline in requestlogger to just send to system.out
Does anyone else run in headless mode? I'd have thought they would cause issues for them too!
current next step:
Code:
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:367)
at jamvm.java.lang.JarLauncher.main(JarLauncher.java:50)
Caused by: java.lang.ExceptionInInitializerError
at net.sourceforge.kolmafia.session.StoreManager.clearCache(StoreManager.java:105)
at net.sourceforge.kolmafia.KoLCharacter.reset(KoLCharacter.java:693)
at net.sourceforge.kolmafia.KoLCharacter.reset(KoLCharacter.java:578)
at net.sourceforge.kolmafia.KoLCharacter.reset(KoLCharacter.java:573)
at net.sourceforge.kolmafia.session.LoginManager.initialize(LoginManager.java:162)
at net.sourceforge.kolmafia.session.LoginManager.doLogin(LoginManager.java:88)
at net.sourceforge.kolmafia.session.LoginManager.login(LoginManager.java:72)
at net.sourceforge.kolmafia.request.LoginRequest.processLoginRequest(LoginRequest.java:439)
at net.sourceforge.kolmafia.request.GenericRequest.handleServerRedirect(GenericRequest.java:1893)
at net.sourceforge.kolmafia.request.GenericRequest.retrieveServerReply(GenericRequest.java:1788)
at net.sourceforge.kolmafia.request.GenericRequest.execute(GenericRequest.java:1453)
at net.sourceforge.kolmafia.request.GenericRequest.run(GenericRequest.java:1346)
at net.sourceforge.kolmafia.request.LoginRequest.run(LoginRequest.java:261)
at net.sourceforge.kolmafia.RequestThread.postRequest(RequestThread.java:222)
at net.sourceforge.kolmafia.RequestThread.postRequest(RequestThread.java:185)
at net.sourceforge.kolmafia.KoLmafiaCLI.attemptLogin(KoLmafiaCLI.java:156)
at net.sourceforge.kolmafia.KoLmafia.main(KoLmafia.java:559)
at java.lang.reflect.Method.invokeNative(Native Method)
...2 more
Caused by: java.awt.HeadlessException
at java.awt.dnd.DropTarget.<init>(DropTarget.java:222)
at java.awt.dnd.DropTarget.<init>(DropTarget.java:176)
at javax.swing.JComponent.<init>(JComponent.java:789)
at javax.swing.JLabel.<init>(JLabel.java:491)
at javax.swing.JLabel.<init>(JLabel.java:478)
at net.java.dev.spellcast.utilities.JComponentUtilities.createLabel(JComponentUtilities.java:127)
at net.sourceforge.kolmafia.swingui.StoreManageFrame.<clinit>(StoreManageFrame.java:119)
at net.sourceforge.kolmafia.session.StoreManager.clearCache(StoreManager.java:105)
...19 more