Jump to content
  • 0
Sign in to follow this  

Question

well my server nulls out alot with this error:

Exception in thread "Thread-2" java.lang.NullPointerException

	at icedice.players.Players.process(player.java:2274)

	at icedice.Engine.run(Eingine.java:304)

	at java.lang.Thread.run(Thread.java:619)
line 2274 of players:
            } else if (p.totalz > Engine.fileManager.place10 || p.totalz == Engine.fileManager.place10 && p.totalXP >= Engine.fileManager.placeXP10) {
the method in player.java
    public void bumpscores(Player p, int bump) {

    }


    public void setscores(Player p) {

        if (p.rights < 2) {

            if (p.username == Engine.fileManager.placeN01 && p.totalz > Engine.fileManager.place01) {

                Engine.fileManager.place01 = 0;

                Engine.fileManager.placeN01 = "";

            }

            if (p.username == Engine.fileManager.placeN02 && p.totalz > Engine.fileManager.place02) {

                Engine.fileManager.place02 = 0;

                Engine.fileManager.placeN02 = "";

            }

            if (p.username == Engine.fileManager.placeN03 && p.totalz > Engine.fileManager.place03) {

                Engine.fileManager.place03 = 0;

                Engine.fileManager.placeN03 = "";

            }


            if (p.username == Engine.fileManager.placeN04 && p.totalz > Engine.fileManager.place04) {

                Engine.fileManager.place04 = 0;

                Engine.fileManager.placeN04 = "";

            }


            if (p.username == Engine.fileManager.placeN05 && p.totalz > Engine.fileManager.place05) {

                Engine.fileManager.place05 = 0;

                Engine.fileManager.placeN05 = "";

            }

            if (p.username == Engine.fileManager.placeN06 && p.totalz > Engine.fileManager.place06) {

                Engine.fileManager.place06 = 0;

                Engine.fileManager.placeN06 = "";

            }

            if (p.username == Engine.fileManager.placeN07 && p.totalz > Engine.fileManager.place07) {

                Engine.fileManager.place07 = 0;

                Engine.fileManager.placeN07 = "";

            }

            if (p.username == Engine.fileManager.placeN08 && p.totalz > Engine.fileManager.place08) {

                Engine.fileManager.place08 = 0;

                Engine.fileManager.placeN08 = "";

            }

            if (p.username == Engine.fileManager.placeN09 && p.totalz > Engine.fileManager.place09) {

                Engine.fileManager.place09 = 0;

                Engine.fileManager.placeN09 = "";

            }

            if (p.username == Engine.fileManager.placeN10 && p.totalz > Engine.fileManager.place10) {

                Engine.fileManager.place10 = 0;

                Engine.fileManager.placeN10 = "";

            }

            if (p.username == Engine.fileManager.placeN10 && p.totalz > Engine.fileManager.place11) {

                Engine.fileManager.place11 = 0;

                Engine.fileManager.placeN11 = "";

            }

            if (p.username == Engine.fileManager.placeN10 && p.totalz > Engine.fileManager.place12) {

                Engine.fileManager.place12 = 0;

                Engine.fileManager.placeN12 = "";

            }

            if (p.username == Engine.fileManager.placeN13 && p.totalz > Engine.fileManager.place13) {

                Engine.fileManager.place13 = 0;

                Engine.fileManager.placeN13 = "";

            }

            if (p.username == Engine.fileManager.placeN14 && p.totalz > Engine.fileManager.place14) {

                Engine.fileManager.place14 = 0;

                Engine.fileManager.placeN14 = "";

            }

            if (p.username == Engine.fileManager.placeN15 && p.totalz > Engine.fileManager.place15) {

                Engine.fileManager.place15 = 0;

                Engine.fileManager.placeN15 = "";

            }

            if (p.username == Engine.fileManager.placeN16 && p.totalz > Engine.fileManager.place16) {

                Engine.fileManager.place16 = 0;

                Engine.fileManager.placeN16 = "";

            }

            if (p.username == Engine.fileManager.placeN17 && p.totalz > Engine.fileManager.place17) {

                Engine.fileManager.place17 = 0;

                Engine.fileManager.placeN17 = "";

            }

            if (p.username == Engine.fileManager.placeN18 && p.totalz > Engine.fileManager.place18) {

                Engine.fileManager.place18 = 0;

                Engine.fileManager.placeN18 = "";

            }

            if (p.username == Engine.fileManager.placeN19 && p.totalz > Engine.fileManager.place19) {

                Engine.fileManager.place19 = 0;

                Engine.fileManager.placeN19 = "";

            }

            if (p.username == Engine.fileManager.placeN20 && p.totalz > Engine.fileManager.place20) {

                Engine.fileManager.place20 = 0;

                Engine.fileManager.placeN20 = "";

            }

            if (p.username == Engine.fileManager.placeN21 && p.totalz > Engine.fileManager.place21) {

                Engine.fileManager.place21 = 0;

                Engine.fileManager.placeN21 = "";

            }

            if (p.username == Engine.fileManager.placeN22 && p.totalz > Engine.fileManager.place22) {

                Engine.fileManager.place22 = 0;

                Engine.fileManager.placeN22 = "";

            }

            if (p.username == Engine.fileManager.placeN23 && p.totalz > Engine.fileManager.place23) {

                Engine.fileManager.place23 = 0;

                Engine.fileManager.placeN23 = "";

            }

            if (p.username == Engine.fileManager.placeN24 && p.totalz > Engine.fileManager.place24) {

                Engine.fileManager.place24 = 0;

                Engine.fileManager.placeN24 = "";

            }

            if (p.username == Engine.fileManager.placeN25 && p.totalz > Engine.fileManager.place25) {

                Engine.fileManager.place25 = 0;

                Engine.fileManager.placeN25 = "";

            }

            if (p.username == Engine.fileManager.placeN26 && p.totalz > Engine.fileManager.place26) {

                Engine.fileManager.place26 = 0;

                Engine.fileManager.placeN26 = "";

            }

            if (p.username == Engine.fileManager.placeN27 && p.totalz > Engine.fileManager.place27) {

                Engine.fileManager.place27 = 0;

                Engine.fileManager.placeN27 = "";

            }

            if (p.username == Engine.fileManager.placeN28 && p.totalz > Engine.fileManager.place28) {

                Engine.fileManager.place28 = 0;

                Engine.fileManager.placeN28 = "";

            }

            if (p.username == Engine.fileManager.placeN29 && p.totalz > Engine.fileManager.place29) {

                Engine.fileManager.place29 = 0;

                Engine.fileManager.placeN29 = "";

            }

            if (p.username == Engine.fileManager.placeN30 && p.totalz > Engine.fileManager.place30) {

                Engine.fileManager.place30 = 0;

                Engine.fileManager.placeN30 = "";

            }

        }

        Engine.fileManager.places[1] = p.totalz;


        if (p.rights < 2) {

            if (p.totalz > Engine.fileManager.place01 || p.totalz == Engine.fileManager.place01 && p.totalXP >= Engine.fileManager.place01) {

                bumpscores(p, 1);

                Engine.fileManager.placeXP01 = p.totalXP;

                Engine.fileManager.place01 = p.totalz;

                Engine.fileManager.placeN01 = p.username;

            } else if (p.totalz > Engine.fileManager.place02 || p.totalz == Engine.fileManager.place02 && p.totalXP >= Engine.fileManager.placeXP02) {

                bumpscores(p, 2);

                Engine.fileManager.placeXP02 = p.totalXP;

                Engine.fileManager.place02 = p.totalz;

                Engine.fileManager.placeN02 = p.username;

            } else if (p.totalz > Engine.fileManager.place03 || p.totalz == Engine.fileManager.place03 && p.totalXP >= Engine.fileManager.placeXP03) {

                bumpscores(p, 3);

                Engine.fileManager.placeXP03 = p.totalXP;

                Engine.fileManager.place03 = p.totalz;

                Engine.fileManager.placeN03 = p.username;

            } else if (p.totalz > Engine.fileManager.place04 || p.totalz == Engine.fileManager.place04 && p.totalXP >= Engine.fileManager.placeXP04) {

                bumpscores(p, 4);

                Engine.fileManager.placeXP04 = p.totalXP;

                Engine.fileManager.place04 = p.totalz;

                Engine.fileManager.placeN04 = p.username;

            } else if (p.totalz > Engine.fileManager.place05 || p.totalz == Engine.fileManager.place05 && p.totalXP >= Engine.fileManager.placeXP05) {

                bumpscores(p, 5);

                Engine.fileManager.placeXP05 = p.totalXP;

                Engine.fileManager.place05 = p.totalz;

                Engine.fileManager.placeN05 = p.username;

            } else if (p.totalz > Engine.fileManager.place06 || p.totalz == Engine.fileManager.place06 && p.totalXP >= Engine.fileManager.placeXP06) {

                bumpscores(p, 6);

                Engine.fileManager.placeXP06 = p.totalXP;

                Engine.fileManager.place06 = p.totalz;

                Engine.fileManager.placeN06 = p.username;

            } else if (p.totalz > Engine.fileManager.place07 || p.totalz == Engine.fileManager.place07 && p.totalXP >= Engine.fileManager.placeXP07) {

                bumpscores(p, 7);

                Engine.fileManager.placeXP07 = p.totalXP;

                Engine.fileManager.place07 = p.totalz;

                Engine.fileManager.placeN07 = p.username;

            } else if (p.totalz > Engine.fileManager.place08 || p.totalz == Engine.fileManager.place08 && p.totalXP >= Engine.fileManager.placeXP08) {

                bumpscores(p, ;

                Engine.fileManager.placeXP08 = p.totalXP;

                Engine.fileManager.place08 = p.totalz;

                Engine.fileManager.placeN08 = p.username;

            } else if (p.totalz > Engine.fileManager.place09 || p.totalz == Engine.fileManager.place09 && p.totalXP >= Engine.fileManager.placeXP09) {

                bumpscores(p, 9);

                Engine.fileManager.placeXP09 = p.totalXP;

                Engine.fileManager.place09 = p.totalz;

                Engine.fileManager.placeN09 = p.username;

            } else if (p.totalz > Engine.fileManager.place10 || p.totalz == Engine.fileManager.place10 && p.totalXP >= Engine.fileManager.placeXP10) {

                bumpscores(p, 10);

                Engine.fileManager.placeXP10 = p.totalXP;

                Engine.fileManager.place10 = p.totalz;

                Engine.fileManager.placeN10 = p.username;

            } else if (p.totalz > Engine.fileManager.place11 || p.totalz == Engine.fileManager.place11 && p.totalXP >= Engine.fileManager.placeXP11) {

                bumpscores(p, 11);

                Engine.fileManager.placeXP11 = p.totalXP;

                Engine.fileManager.place11 = p.totalz;

                Engine.fileManager.placeN11 = p.username;

            } else if (p.totalz > Engine.fileManager.place12 || p.totalz == Engine.fileManager.place12 && p.totalXP >= Engine.fileManager.placeXP12) {

                bumpscores(p, 12);

                Engine.fileManager.placeXP12 = p.totalXP;

                Engine.fileManager.place12 = p.totalz;

                Engine.fileManager.placeN12 = p.username;

            } else if (p.totalz > Engine.fileManager.place13 || p.totalz == Engine.fileManager.place13 && p.totalXP >= Engine.fileManager.placeXP13) {

                bumpscores(p, 13);

                Engine.fileManager.placeXP13 = p.totalXP;

                Engine.fileManager.place13 = p.totalz;

                Engine.fileManager.placeN13 = p.username;

            } else if (p.totalz > Engine.fileManager.place14 || p.totalz == Engine.fileManager.place14 && p.totalXP >= Engine.fileManager.placeXP14) {

                bumpscores(p, 14);

                Engine.fileManager.placeXP14 = p.totalXP;

                Engine.fileManager.place14 = p.totalz;

                Engine.fileManager.placeN14 = p.username;

            } else if (p.totalz > Engine.fileManager.place15 || p.totalz == Engine.fileManager.place15 && p.totalXP >= Engine.fileManager.placeXP15) {

                bumpscores(p, 15);

                Engine.fileManager.placeXP15 = p.totalXP;

                Engine.fileManager.place15 = p.totalz;

                Engine.fileManager.placeN15 = p.username;

            } else if (p.totalz > Engine.fileManager.place16 || p.totalz == Engine.fileManager.place16 && p.totalXP >= Engine.fileManager.placeXP16) {

                bumpscores(p, 16);

                Engine.fileManager.placeXP16 = p.totalXP;

                Engine.fileManager.place16 = p.totalz;

                Engine.fileManager.placeN16 = p.username;

            } else if (p.totalz > Engine.fileManager.place17 || p.totalz == Engine.fileManager.place17 && p.totalXP >= Engine.fileManager.placeXP17) {

                bumpscores(p, 17);

                Engine.fileManager.placeXP17 = p.totalXP;

                Engine.fileManager.place17 = p.totalz;

                Engine.fileManager.placeN17 = p.username;

            } else if (p.totalz > Engine.fileManager.place18 || p.totalz == Engine.fileManager.place18 && p.totalXP >= Engine.fileManager.placeXP18) {

                bumpscores(p, 18);

                Engine.fileManager.placeXP18 = p.totalXP;

                Engine.fileManager.place18 = p.totalz;

                Engine.fileManager.placeN18 = p.username;

            } else if (p.totalz > Engine.fileManager.place19 || p.totalz == Engine.fileManager.place19 && p.totalXP >= Engine.fileManager.placeXP19) {

                bumpscores(p, 19);

                Engine.fileManager.placeXP19 = p.totalXP;

                Engine.fileManager.place19 = p.totalz;

                Engine.fileManager.placeN19 = p.username;

            } else if (p.totalz > Engine.fileManager.place20 || p.totalz == Engine.fileManager.place20 && p.totalXP >= Engine.fileManager.placeXP20) {

                bumpscores(p, 20);

                Engine.fileManager.placeXP20 = p.totalXP;

                Engine.fileManager.place20 = p.totalz;

                Engine.fileManager.placeN20 = p.username;

            } else if (p.totalz > Engine.fileManager.place21 || p.totalz == Engine.fileManager.place21 && p.totalXP >= Engine.fileManager.placeXP21) {

                bumpscores(p, 21);

                Engine.fileManager.placeXP21 = p.totalXP;

                Engine.fileManager.place21 = p.totalz;

                Engine.fileManager.placeN21 = p.username;

            } else if (p.totalz > Engine.fileManager.place22 || p.totalz == Engine.fileManager.place22 && p.totalXP >= Engine.fileManager.placeXP22) {

                bumpscores(p, 22);

                Engine.fileManager.placeXP22 = p.totalXP;

                Engine.fileManager.place22 = p.totalz;

                Engine.fileManager.placeN22 = p.username;

            } else if (p.totalz > Engine.fileManager.place23 || p.totalz == Engine.fileManager.place23 && p.totalXP >= Engine.fileManager.placeXP23) {

                bumpscores(p, 23);

                Engine.fileManager.placeXP23 = p.totalXP;

                Engine.fileManager.place23 = p.totalz;

                Engine.fileManager.placeN23 = p.username;

            } else if (p.totalz > Engine.fileManager.place24 || p.totalz == Engine.fileManager.place24 && p.totalXP >= Engine.fileManager.placeXP24) {

                bumpscores(p, 24);

                Engine.fileManager.placeXP24 = p.totalXP;

                Engine.fileManager.place24 = p.totalz;

                Engine.fileManager.placeN24 = p.username;

            } else if (p.totalz > Engine.fileManager.place25 || p.totalz == Engine.fileManager.place25 && p.totalXP >= Engine.fileManager.placeXP25) {

                bumpscores(p, 25);

                Engine.fileManager.placeXP25 = p.totalXP;

                Engine.fileManager.place25 = p.totalz;

                Engine.fileManager.placeN25 = p.username;

            } else if (p.totalz > Engine.fileManager.place26 || p.totalz == Engine.fileManager.place26 && p.totalXP >= Engine.fileManager.placeXP26) {

                bumpscores(p, 26);

                Engine.fileManager.placeXP26 = p.totalXP;

                Engine.fileManager.place26 = p.totalz;

                Engine.fileManager.placeN26 = p.username;

            } else if (p.totalz > Engine.fileManager.place27 || p.totalz == Engine.fileManager.place27 && p.totalXP >= Engine.fileManager.placeXP27) {

                bumpscores(p, 27);

                Engine.fileManager.placeXP27 = p.totalXP;

                Engine.fileManager.place27 = p.totalz;

                Engine.fileManager.placeN27 = p.username;

            } else if (p.totalz > Engine.fileManager.place28 || p.totalz == Engine.fileManager.place28 && p.totalXP >= Engine.fileManager.placeXP28) {

                bumpscores(p, 28);

                Engine.fileManager.placeXP28 = p.totalXP;

                Engine.fileManager.place28 = p.totalz;

                Engine.fileManager.placeN28 = p.username;

            } else if (p.totalz > Engine.fileManager.place29 || p.totalz == Engine.fileManager.place29 && p.totalXP >= Engine.fileManager.placeXP29) {

                bumpscores(p, 29);

                Engine.fileManager.placeXP29 = p.totalXP;

                Engine.fileManager.place29 = p.totalz;

                Engine.fileManager.placeN29 = p.username;

            } else if (p.totalz > Engine.fileManager.place30 || p.totalz == Engine.fileManager.place30 && p.totalXP >= Engine.fileManager.placeXP30) {

                bumpscores(p, 30);

                Engine.fileManager.placeXP30 = p.totalXP;

                Engine.fileManager.place30 = p.totalz;

                Engine.fileManager.placeN30 = p.username;

            }

        }

    }[/code]




line 304 of engine.java:

[code] p.process();

please help.

NOTE: THIS IS NOT A COMPILING ERROR!!

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Sign in to follow this  

×