Jump to content
Mr. Green Gaming

MiF

Members
  • Posts

    1137
  • Joined

  • Last visited

Posts posted by MiF

  1. Ontopic:

    I just read something odd from newspaper.

    That Oslo mass murder guy (cant remember name) did pratice with MW2 before he went to killing spree. He says that MW2 is "Best war simulation game there is". He also said that WoW is good way to relax and hide loneliness.

    There was something more about this too, but cant remember much.

  2. Okey, got to test clavuses theory tommorow (or now).

    Kikkers idea would be good, but this pointer thing affects only arrays and that stuff.

    Clavuses idea did work. Thanks alot :worshippy:

    /Can be locked now

  3. Well i solved my last problem (some arrays stuff). Now i have new problem with arrays, my program would work after i fix this, but i cant find any solution.

    Problem is those pointers with arrays. As programmers may know that if you just place array to other array, the new one points to that old one. So if you change information of one these arrays, data does change same way in all arrays that are pointed to / that point to that array (Not going 100% right this, but something like this)

    Well my problem is copying an array. I have this method/function in Database class

    public static String[][] getAllData() {
    return dataArray; // original array
    }

    Then i call it like this

    String[][] database = (String[][]) Database.getAllData().clone();
    String[][] newDatabase = (String[][]) Database.getAllData().clone();

    After i have done my stuff, all 3 arrays store same data.

    I have tried to use system.arraycopy() method, but no luck with that either. I have tried to clone array in getAllData method with clone and arraycopy etc. NOTHING works.

    Looking around internet wont help me. clone and arraycopy should work, but they are not on me.

    What am i doing wrong?

  4. I tought a car would insta-die on an EMP, just googled a bit and found this:

    http://www.survivalblog.com/2010/08/real_world_emp_effects_on_moto.html

    Seems like its the best to just turn off your engine before setting off the EMP.

    All this hazzel about EMP affecting on car. Mostly cars will break down (or atleast shut down) if EMP is strong enough. But you can with simple instructions make almost every eletrical device immune to EMP (Made one already)

    EDIT: Car itself will be fine, but eletric ciruits will fry (Those green plates with some stuff on them)

  5. You get 1 Greencoin for every 2 ingame points you have.

    I thought it was your end of round score or score on disconnection divided by 2?

    No. It does give you coin after every other point score (Tested & Confirmed)

    No? What you just said confirmed it.

    Well what i really meant was that you get coins "real-time". Not just on disconnect.

  6. You get 1 Greencoin for every 2 ingame points you have.

    I thought it was your end of round score or score on disconnection divided by 2?

    No. It does give you coin after every other point score (Tested & Confirmed)

  7. What exactly is the problem? Are you searching for a sorting algorithm to use or can't you write decent java code in the first place.

    I have alghorithm (which works). Problem itself is this;

    i have this 2d array with this data (left to right is first dimension, up to down is second):

    post-1211-131041687266.png

    I need to sort it to this:

    post-1211-131041687659.png

    Turning them into an ArrayList data structure is going to make your life a lot easier to begin with.

    (Ninja'd)

    Okey got to check that out ->

  8. I have been stuck with problem about hour already, and without working solution, so i think it's time to ask for help.

    Problem is this. I have 2 dimension array ( [inf.] [3] ) where first data is name (first and last name), second is age and third is city. Now i need to sort this array of data in order of age (from older to younger).

    I am coding it in java, and i can use all libraries which come with java, but no outside ones.

    There might be easy solution for this, but i am just locked up (as we say here in finland) :/

  9. I mean unending loops like these:

    . - - .

    - = = -

    - = = -

    . - - .

    . = redstone dust

    - = repeater

    = = grass or something

    You can make one by putting a torch on it, and delete it after 1 sec. I tell you this because you might mean another way of making an un-ending loop.

    Wait a sec. If you mean with ending of unending loop that all redstones start to glow, the problem is in way you start it up. You need to place redstone torch, and 0.01 sec after that remove it.

    Since the upgrades might still be a week or two away, we're going to try to get the server up and running again tomorrow. Fresh world. Latest plugins. Faction Wars!

    Yeash! Thanks from me, Chubbygon and Panzer_Haza

  10. The only frustrating bug I saw today was unending Redstone loops ending. Only way to fix them is by rebuilding them on another spot (if you use the same spot again it still doesn't work).

    This causes TNT and Lava explosions.

    Okey that's new o.0. Never happened to me tho. Unending loops (clocks) stay unending after i blow them or throw lava on :D

  11. The big problem with sticky pistons is they are not sticky enough. If i have 3 sticky pistons next to each other They wont grab the last one :/

    Sticky pistons ONLY grab block they attach to. And Sticky pistons that arent powered up (or used) at that time, wont grab anything. I just hope this will be "fixed" (Bug or feature, dunno)

×
×
  • Create New...