Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved Expected a numerical value for Player.p2pCombatLevel

Discretion is advised
Joined
Jan 2, 2014
Messages
306
So I'm a member on RS3 and when Im logged in game and I try to open developer toolkit, my IDE console gets spammed with this error message:
Code:
Exception in thread "JavaFX Application Thread" (01:21:46) java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
(01:21:46)     at javafx.fxml.FXMLLoader$MethodHandler.invoke(Unknown Source)
(01:21:46)     at javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(Unknown Source)
(01:21:46)     at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
(01:21:46)     at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
(01:21:46)     at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
(01:21:46)     at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
(01:21:46)     at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
(01:21:46)     at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
(01:21:46)     at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
(01:21:46)     at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
(01:21:46)     at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
(01:21:46)     at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
(01:21:46)     at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
(01:21:46)     at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
(01:21:46)     at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
(01:21:46)     at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
(01:21:46)     at javafx.event.Event.fireEvent(Unknown Source)
(01:21:46)     at javafx.scene.Node.fireEvent(Unknown Source)
(01:21:46)     at javafx.scene.control.Button.fire(Unknown Source)
(01:21:46)     at com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(Unknown Source)
(01:21:46)     at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(Unknown Source)
(01:21:46)     at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(Unknown Source)
(01:21:46)     at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source)
(01:21:46)     at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
(01:21:46)     at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
(01:21:46)     at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
(01:21:46)     at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
(01:21:46)     at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
(01:21:46)     at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
(01:21:46)     at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
(01:21:46)     at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
(01:21:46)     at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
(01:21:46)     at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
(01:21:46)     at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
(01:21:46)     at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
(01:21:46)     at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
(01:21:46)     at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
(01:21:46)     at javafx.event.Event.fireEvent(Unknown Source)
(01:21:46)     at javafx.scene.Scene$MouseHandler.process(Unknown Source)
(01:21:46)     at javafx.scene.Scene$MouseHandler.access$1500(Unknown Source)
(01:21:46)     at javafx.scene.Scene.impl_processMouseEvent(Unknown Source)
(01:21:46)     at javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
(01:21:46)     at com.sun.javafx.tk.quantum.EmbeddedScene.lambda$null$281(Unknown Source)
(01:21:46)     at com.sun.javafx.tk.quantum.EmbeddedScene$$Lambda$257/1841485869.run(Unknown Source)
(01:21:46)     at java.security.AccessController.doPrivileged(Native Method)
(01:21:46)     at com.sun.javafx.tk.quantum.EmbeddedScene.lambda$mouseEvent$282(Unknown Source)
(01:21:46)     at com.sun.javafx.tk.quantum.EmbeddedScene$$Lambda$256/1533695748.run(Unknown Source)
(01:21:46)     at com.sun.javafx.application.PlatformImpl.lambda$null$164(Unknown Source)
(01:21:46)     at com.sun.javafx.application.PlatformImpl$$Lambda$53/1174810081.run(Unknown Source)
(01:21:46)     at java.security.AccessController.doPrivileged(Native Method)
(01:21:46)     at com.sun.javafx.application.PlatformImpl.lambda$runLater$165(Unknown Source)
(01:21:46)     at com.sun.javafx.application.PlatformImpl$$Lambda$52/550917274.run(Unknown Source)
(01:21:46)     at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
(01:21:46)     at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
(01:21:46)     at com.sun.glass.ui.win.WinApplication.lambda$null$141(Unknown Source)
(01:21:46)     at com.sun.glass.ui.win.WinApplication$$Lambda$43/1525729866.run(Unknown Source)
(01:21:46)     at java.lang.Thread.run(Unknown Source)
(01:21:46) Caused by: java.lang.reflect.InvocationTargetException
(01:21:46)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
(01:21:46)     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
(01:21:46)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
(01:21:46)     at java.lang.reflect.Method.invoke(Unknown Source)
(01:21:46)     at sun.reflect.misc.Trampoline.invoke(Unknown Source)
(01:21:46)     at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
(01:21:46)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
(01:21:46)     at java.lang.reflect.Method.invoke(Unknown Source)
(01:21:46)     at sun.reflect.misc.MethodUtil.invoke(Unknown Source)
(01:21:46)     ... 57 more
(01:21:46) Caused by: java.lang.IllegalStateException: Expected a numerical value for Player.p2pCombatLevel but instead we received null (RS3: 2f6ea164)
(01:21:46)     at app.un.class(efb:176)
(01:21:46)     at app.un.class(efb:188)
(01:21:46)     at app.uM.getCombatLevel(jtb:207)
(01:21:46)     at app.nK.class(fmb:1122)
(01:21:46)     at app.nK.call(fmb:389)
(01:21:46)     at javafx.scene.control.TableColumn.getCellObservableValue(Unknown Source)
(01:21:46)     at javafx.scene.control.TableColumn.getCellObservableValue(Unknown Source)
(01:21:46)     at javafx.scene.control.TableCell.updateItem(Unknown Source)
(01:21:46)     at javafx.scene.control.TableCell.indexChanged(Unknown Source)
(01:21:46)     at javafx.scene.control.IndexedCell.updateIndex(Unknown Source)
(01:21:46)     at com.sun.javafx.scene.control.skin.TableRowSkinBase.updateCells(Unknown Source)
(01:21:46)     at com.sun.javafx.scene.control.skin.TableRowSkinBase.init(Unknown Source)
(01:21:46)     at com.sun.javafx.scene.control.skin.TableRowSkin.<init>(Unknown Source)
(01:21:46)     at javafx.scene.control.TableRow.createDefaultSkin(Unknown Source)
(01:21:46)     at javafx.scene.control.Control.impl_processCSS(Unknown Source)
(01:21:46)     at javafx.scene.Node.processCSS(Unknown Source)
(01:21:46)     at javafx.scene.Node.applyCss(Unknown Source)
(01:21:46)     at com.sun.javafx.scene.control.skin.VirtualFlow.setCellIndex(Unknown Source)
(01:21:46)     at com.sun.javafx.scene.control.skin.VirtualFlow.getCell(Unknown Source)
(01:21:46)     at com.sun.javafx.scene.control.skin.VirtualFlow.getCellLength(Unknown Source)
(01:21:46)     at com.sun.javafx.scene.control.skin.VirtualFlow.computeViewportOffset(Unknown Source)
(01:21:46)     at com.sun.javafx.scene.control.skin.VirtualFlow.layoutChildren(Unknown Source)
(01:21:46)     at javafx.scene.Parent.layout(Unknown Source)
(01:21:46)     at javafx.scene.Parent.layout(Unknown Source)
(01:21:46)     at javafx.scene.Parent.layout(Unknown Source)
(01:21:46)     at javafx.scene.Parent.layout(Unknown Source)
(01:21:46)     at javafx.scene.Parent.layout(Unknown Source)
(01:21:46)     at javafx.scene.Scene.doLayoutPass(Unknown Source)
(01:21:46)     at javafx.scene.Scene.preferredSize(Unknown Source)
(01:21:46)     at javafx.scene.Scene.impl_preferredSize(Unknown Source)
(01:21:46)     at javafx.stage.Window$9.invalidated(Unknown Source)
(01:21:46)     at javafx.beans.property.BooleanPropertyBase.markInvalid(Unknown Source)
(01:21:46)     at javafx.beans.property.BooleanPropertyBase.set(Unknown Source)
(01:21:46)     at javafx.stage.Window.setShowing(Unknown Source)
(01:21:46)     at javafx.stage.Window.show(Unknown Source)
(01:21:46)     at javafx.stage.Stage.show(Unknown Source)
(01:21:46)     at app.EJ.devKitButtonClicked(rib:976)
(01:21:46)     ... 66 more


By the way if the problem is all about retrieving the combat level, just manually get it with this method I made based on the actual game formula:

Code:
public static int combatLevel(int attack, int strength, int ranged, int magic, int defence, int constitution, int prayer, int summoning) {
return (int) (0.25 * ((1.3 * Math.max(attack + strength, Math.max(magic * 2, ranged * 2))) + defence + constitution + (Math.floor(0.5 * prayer)) + (Math.floor(0.5 * summoning))));
}
 
Top