Hey,
I downloaded the Ruse source recently and I can't seem to figure out how Construction works. Does anyone have any ideas or tips? Greatly appreciated!
At the moment this is the error:
Code:
java.lang.NullPointerException
at com.ruseps.world.content.skill.impl.construction.Construction$1.execute(Construction.java:69)
at com.ruseps.engine.task.Task.tick(Task.java:142)
at com.ruseps.engine.task.TaskManager.sequence(TaskManager.java:32)
at com.ruseps.engine.GameEngine.run(GameEngine.java:38)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
And this is the line the error is on:
Code:
int toX = ConstructionData.BASE_X+((portal.getRoomX()+1)*8);
I'm fairly sure it's just me being an idiot and not calling the correct method when a player creates/enters a house, but I can't seem to find the correct method.
Credit to Swiffy for the Ruse source.