ill look into it later when i get a chance i never got this bug then then again i never add objects try checking this part
ill check when im actally back home[00:00:57]: at com.rs.worldserver.model.player.Client.doZoning(Cl ient.java:4
11)
|
Hello, recently i was adding objects to the Shard Revolutions Standard Edition when i came across a huge bug. So i opened spawns.cfg and added:
// ID X Y Height Face Type Description
object = 3465 3222 3215 0 FACE_NORTH 10 Portal
I then saved the file and logged in.
My chatbox constantly repeated "Welcome to Shard Revolutions." and would not stop.
My console constantly repeated:
[00:00:57]: at com.rs.worldserver.world.ObjectManager.update(Obje ctManager.j
ava:166)
[00:00:57]: at com.rs.worldserver.model.player.Client.doZoning(Cl ient.java:4
11)
[00:00:57]: at com.rs.worldserver.model.player.Client.update(Clie nt.java:402
)
[00:00:57]: at com.rs.worldserver.model.player.Client.initialize( Client.java
:337)
[00:00:57]: at com.rs.worldserver.world.PlayerManager.process(Pla yerManager.
java:250)
[00:00:57]: at com.rs.worldserver.Server$1.execute(Server.java:15 8)
[00:00:57]: at com.rs.worldserver.events.EventContainer.execute(E ventContain
er.java:116)
[00:00:57]: at com.rs.worldserver.events.EventManager.run(EventMa nager.java:
136)
[00:00:57]: at java.lang.Thread.run(Unknown Source)
[00:00:58]: java.lang.NullPointerException
So i tried to spawn a different object, and i found that some objects spawn and some don't (The ones that don't spawn cause this error)
The majority of objects cause this huge error.
Here is line 165 of ObjectManager.java:
p.getActionAssistant().sendReplaceObject(g.getAbsX (),
Here is the code around it:
/**
* Updates a client's objects.
*
* @param client
*/
public void update(Client p) {
for (GameObject g : objects) {
if (g.getHeightLevel() != p.getHeightLevel())
continue;
int tmpX = g.getAbsX() - p.getAbsX();
int tmpY = g.getAbsY() - p.getAbsY();
if (tmpX >= -96 && tmpX <= 96 && tmpY >= -96 && tmpY <= 96) {
p.getActionAssistant().sendReplaceObject(g.getAbsX (),
g.getAbsY(), g.getDefinition().getType(),
g.getFaceID(), g.getType());
}
}
}
I really want to start adding some portals and stuff in the server, but until this is fixed i will have to wait. So any sensible suggestions would be appreciated a lot. Thanks
ill look into it later when i get a chance i never got this bug then then again i never add objects try checking this part
ill check when im actally back home[00:00:57]: at com.rs.worldserver.model.player.Client.doZoning(Cl ient.java:4
11)
Thanks mad turnip, really appreciate it.
Has anyone else got any suggestions?
Line 411 of Client.java:
Server.getObjectManager().update(this);
The code around it:
public void doZoning() {
Server.getItemManager().update(this);
Server.getObjectManager().update(this);
}
Any ideas anyone? I will appreciate it A LOT.
Last edited by Zederation; 01-22-2009 at 06:56 PM. Reason: Double posting is not allowed!
Use CODE][/CODE] around your code snippets to make it easier to read
Are you tabbing instead of spacing? Java does not like spaces very much.
This still has not been answered. Anyone out there know? Possibly some people from the Shard Revolutions development team?
does it make ANY difference? I thought the compiler removed the spaces/tabs..
Don't worry guys i have found a fix.
Out of interest how did you fix it? So other people will know.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
Tags for this Thread |