PI All single doors 100% working

why does this confuse me so much :L

src\server\model\players\Doors.java:17: error: duplicate class: server.model.players.objects.Doors public class Doors { ^ src\server\model\objects\Doors.java:115: error: cannot find symbol Objects o = new Objects(-1, d.doorX, d.doorY, d.doorZ, 0, d.type, 0); ^ symbol: class Objects location: class Doors src\server\model\objects\Doors.java:115: error: cannot find symbol Objects o = new Objects(-1, d.doorX, d.doorY, d.doorZ, 0, d.type, 0); ^ symbol: class Objects location: class Doors src\server\model\objects\Doors.java:122: error: cannot find symbol Objects o = new Objects(-1, d.doorX, d.doorY, d.doorZ, 0, d.type, 0); ^ symbol: class Objects location: class Doors src\server\model\objects\Doors.java:122: error: cannot find symbol Objects o = new Objects(-1, d.doorX, d.doorY, d.doorZ, 0, d.type, 0); ^ symbol: class Objects location: class Doors src\server\model\objects\Doors.java:140: error: cannot find symbol Server.objectHandler.placeObject(new Objects(d.doorId, d.doorX, d.doorY, d.doorZ, getNextFace(d), d.type, 0)); ^ symbol: class Objects location: class Doors Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 6 errors Press any key to continue . . .
How Do I fix this?

I get this error

EDIT: The class “Doors” didn’t have the objects folder imported.

Friendly Bump.

Then you'll need the door class, it should be placed so its like src/server/model/players/objects/Doors.java

I don’t have “objects” in my Players folder, where else can I put Doors.java?

[quote=“soapface, post:44, topic:423150”]Friendly Bump.

I don’t have “objects” in my Players folder, where else can I put Doors.java?[/quote]A friendly 2 month bump lol?

It deserves it, as it saves so much time on adding single doors.

Help please?

package server.model.players.objects Does not exist
import server.model.players.objects.Doors;

pm me to give you the compiler info or just help me by teamviewer anyone?

[quote=“Johnhannes, post:47, topic:423150”]Help please?

package server.model.players.objects Does not exist
import server.model.players.objects.Doors;

pm me to give you the compiler info or just help me by teamviewer anyone?[/quote]

Oh my god… :fp: The folder called “objects” does not exist. It freaking tells you. Just make a folder called objects.

Umm yeah well I Didn’t have the folder created so I made a new one and Added the file and I get the same thing…!

it should be

[quote=“Scape-JAVA, post:50, topic:423150”][quote author=Johnhannes link=topic=525800.msg4039959#msg4039959 date=1341523936]
Umm yeah well I Didn’t have the folder created so I made a new one and Added the file and I get the same thing…!
[/quote]

it should be

Fix’t.

edit- i realy hope nobody saw this it was a fail hard :frowning:

ot - thank you very much for this

Worked on well on my server. Thanks.

Works great, thanks :slight_smile:
Just needs to be rewritten since it’s nearly impossible for the noobs to figure out that they need to reallocate the doors class.

Compiling... errors: Doors.java:15: error: cannot find symbol private File doorFile; ^ symbol: class File location: class Doors Doors.java:25: error: cannot find symbol doorFile = new File(file); ^ symbol: class File location: class Doors Doors.java:43: error: incompatible types for (Doors d : doors) { ^ required: Doors found: String Doors.java:107: error: constructor Object in class Object cannot be applied to g iven types; Object o = new Object(-1, d.doorX, d.doorY, d.doorZ, 0, d.type, 0); ^ required: int,int,int,int found: int,int,int,int,int,int,int reason: actual and formal argument lists differ in length Doors.java:108: error: package Server does not exist Server.objectHandler.placeObject(o); ^ Doors.java:114: error: constructor Object in class Object cannot be applied to g iven types; Object o = new Object(-1, d.doorX, d.doorY, d.doorZ, 0, d.type, 0); ^ required: int,int,int,int found: int,int,int,int,int,int,int reason: actual and formal argument lists differ in length Doors.java:115: error: package Server does not exist Server.objectHandler.placeObject(o); ^ Doors.java:132: error: constructor Object in class Object cannot be applied to g iven types; Server.objectHandler.placeObject(new Object(d.doorId, d.doorX, d .doorY, d.doorZ, getNextFace(d), d.type, 0)); ^ required: int,int,int,int found: int,int,int,int,int,int,int reason: actual and formal argument lists differ in length Doors.java:132: error: package Server does not exist Server.objectHandler.placeObject(new Object(d.doorId, d.doorX, d .doorY, d.doorZ, getNextFace(d), d.type, 0)); ^ Doors.java:206: error: cannot find symbol Scanner scanner = new Scanner(new FileReader(doorFile)); ^ symbol: class Scanner location: class Doors Doors.java:206: error: cannot find symbol Scanner scanner = new Scanner(new FileReader(doorFile)); ^ symbol: class Scanner location: class Doors Doors.java:217: error: cannot find symbol Scanner scanner = new Scanner(line); ^ symbol: class Scanner location: class Doors Doors.java:217: error: cannot find symbol Scanner scanner = new Scanner(line); ^ symbol: class Scanner location: class Doors Doors.java:227: error: no suitable method found for add(Doors) doors.add(new Doors(id,x,y,z,f,t,alreadyOpen (id)?1:0)); ^ method ArrayList.add(int,String) is not applicable (actual and formal argument lists differ in length) method ArrayList.add(String) is not applicable (actual argument Doors cannot be converted to String by method invocation conversion) 14 errors

before this goes into the grave I would like to see if anyone knows how to fix these errors (im trying to make it a delta so far i have gotten this far after editing a bit and adding imports and im stuck) if anyone knows how to fix this please help me im sure a few other would like to have this on delta as well

when i click on a door i have this error

[12-09-30 12:54]: java.lang.NullPointerException [12-09-30 12:54]: at server.model.players.packets.ClickObject.processPacket(ClickObject.java:292) [12-09-30 12:54]: at server.model.players.PacketHandler.processPacket(PacketHandler.java:136) [12-09-30 12:54]: at server.model.players.Client.processQueuedPackets(Client.java:876) [12-09-30 12:54]: at server.model.players.PlayerHandler.process(PlayerHandler.java:142) [12-09-30 12:54]: at server.Server.main(Server.java:168)

I did this and I compiled and everything was perfect, but when I ran the source it didn’t say loading 1000 doors or whatever. Does that mean it didn’t work or on some sevrers it doesn’t say that?

Didn’t add the part in server.java did you…

[code]src\server\model\players\Client.java:97: error: cannot find symbol
private Food food = new Food(this);
^
symbol: class Food
location: class Client
src\server\model\players\Client.java:2200: error: cannot find symbol
public Food getFood() {
^
symbol: class Food
location: class Client
src\server\model\players\Food.java:12: error: cannot find symbol
private Client c;
^
symbol: class Client
location: class Food
src\server\model\players\Food.java:14: error: cannot find symbol
public Food (Client c) {
^
symbol: class Client
location: class Food
src\server\model\players\packets\ClickObject.java:6: error: cannot find symbol
import server.model.players.objects.Doors;
^
symbol: class Doors
location: package server.model.players.objects
src\server\Server.java:14: error: cannot find symbol
import server.model.players.objects.Doors;
^
symbol: class Doors
location: package server.model.players.objects
src\server\model\players\Client.java:97: error: cannot find symbol
private Food food = new Food(this);
^
symbol: class Food
location: class Client
src\server\model\players\packets\ClickObject.java:28: error: cannot find symbol
if (Doors.getSingleton().handleDoor(obje
ctType, obX, obY, c.heightLevel)) {
^
symbol: variable objectType
location: class ClickObject
src\server\model\players\packets\ClickObject.java:28: error: cannot find symbol
if (Doors.getSingleton().handleDoor(obje
ctType, obX, obY, c.heightLevel)) {

    ^

symbol: variable obX
location: class ClickObject
src\server\model\players\packets\ClickObject.java:28: error: cannot find symbol
if (Doors.getSingleton().handleDoor(obje
ctType, obX, obY, c.heightLevel)) {

         ^

symbol: variable obY
location: class ClickObject
src\server\model\players\packets\ClickObject.java:28: error: cannot find symbol
if (Doors.getSingleton().handleDoor(obje
ctType, obX, obY, c.heightLevel)) {
^
symbol: variable Doors
location: class ClickObject
src\server\Server.java:143: error: cannot find symbol
Doors.getSingleton().load();
^
symbol: variable Doors
location: class Server
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
12 errors
Press any key to continue . . .[/code]

erm theres my error, there were no errors before i added, so no clue what happen to make “food” pop up ;3 please help

src\server\world\ObjectHandler.java:82: error: illegal start of type
for (Objects s : globalObjects) {
^
src\server\world\ObjectHandler.java:82: error: ‘)’ expected
for (Objects s : globalObjects) {
^
src\server\world\ObjectHandler.java:82: error: expected
for (Objects s : globalObjects) {
^
src\server\world\ObjectHandler.java:101: error: illegal start of type
for (Objects s : toremove) {
^
src\server\world\ObjectHandler.java:101: error: ‘)’ expected
for (Objects s : toremove) {
^
src\server\world\ObjectHandler.java:101: error: expected
for (Objects s : toremove) {
^
src\server\world\ObjectHandler.java:106: error: expected
globalObjects.add(o);
^
src\server\world\ObjectHandler.java:106: error: expected
globalObjects.add(o);
^
8 errors
Press any key to continue . .

What I got to do?