Cant add Objects in server

Hello there,

After i tried to place a object in my server and i close the server compile etc etc, it’s not there at all what i did is to place the object position in “ObjectManager.java” made a new line with ;
c.getPA().checkObjectSpawn(1032, 3091, 3501, 0, 10);

But when i restart my server it wont show me the object that i wanted there.

Does anyone know how to fix this?

Cheers

checkObjectSpawn works like so:
checkObjectSpawn(objectid, x, y, rotation, objecttype);

Are you sure that you wanted it placed at X: 3091 and Y: 3501?

You could also “verify” the server is sending the object by placing a line like this above it:

Now when you compile and run, when you login it should print out “Sending” into your server console at least once.

Thanks four your reply i will try it when i am back at location also is there any method to see the objecttype?

Guess and check, mostly.

If your server has a command like ::object id, chances are that spawns objects with a type of 10 by default. So, if the object is visible when you do this command, it’s type is 10.

If it’s not, you need to either A: make a new object command that supports multiple arguments, B: make multiple object commands for each type (its like 0-22), C: keep changing the existing object command by 1 number until you find it.

Thanks it worked :smiley: but i still have one question if you dont mind :stuck_out_tongue: after adding the Object (bank booth) and i click on it my client gives me an error (just stands there not closing or w/e) is that normal or?

[quote=“rowin16, post:5, topic:555633”]Thanks it worked :smiley: but i still have one question if you dont mind :stuck_out_tongue: after adding the Object (bank booth) and i click on it my client gives me an error (just stands there not closing or w/e) is that normal or?

[/quote]

The error is because your server is sending more data to the client than the interface contains (The bank).

In Config.java you should have a variable to control how many bank slots you can have. Lower the number to 350 or lower.