• 0

    posted a message on What screen recording program do all you commentators use?
    xsplit, dxtory and obs are also great programs too.
    Posted in: Hardware & Software Support
  • 0

    posted a message on Minecraft test run crashes
    Quartzaxe = new QuartzAxe(3020, EnumToolMaterialQuartz).setUnlocalizedName("Quartz axe");
    Quartzaxe = new QuartzShovel(3021, EnumToolMaterialQuartz).setUnlocalizedName("Quartz shovel");
    Quartzaxe = new QuartzPick(3022, EnumToolMaterialQuartz).setUnlocalizedName("Quartz pick");
    Quartzaxe = new QuartzSword(3023, EnumToolMaterialQuartz).setUnlocalizedName("Quartz sword");
    Quartzaxe = new QuartzHoe(3024, EnumToolMaterialQuartz).setUnlocalizedName("Quartz hoe"); 

    You aren't initializing the rest of the tools here, just a simple typo which leaves the rest of the quartz tools as null. Because of this,
    LanguageRegistry.addName(Quartzshovel,"Quartz Shovel");
    LanguageRegistry.addName(Quartzpick,"Quartz Pickaxe");
    LanguageRegistry.addName(Quartzsword,"Quartz Sword");
    LanguageRegistry.addName(Quartzhoe,"Quartz Hoe"); 

    is referencing a bunch of nulls when trying to register names.

    The error explicitly tells you where it was happening too.

    java.lang.IllegalArgumentException: Illegal object for naming null
    at cpw.mods.fml.common.registry.LanguageRegistry.addNameForObject(LanguageRegistry.java:112)
    at cpw.mods.fml.common.registry.LanguageRegistry.addName(LanguageRegistry.java:120)
    at NetherTools.NetherTools.NetherTools.load(NetherTools.java:97)
    Posted in: Modification Development
  • 0

    posted a message on [Forge]How do I...
    Boats and Minecarts have a "sitting" position, look at how the code for either of those works
    Posted in: Modification Development
  • 0

    posted a message on Color codes taken by drawGradientRect
    I'm going to assume that the color model used is ARGB, in which case you could very easily use the hex values. The current color you are using would be 0xA0803030 where A0 is the alpha component, and 803030 is your RGB color. 80 being the red, 30 the green, and 30 the blue.
    Posted in: Modification Development
  • 0

    posted a message on Can someone explain this worldgen code?
    From what I can tell the params are
    new WorldGenMinable(block_id, block_meta, cluster_size)


    for(int ii=0;ii<20;ii++){
    int posX = x + random.nextInt(16); //X coordinate to gen at
    int posY = random.nextInt(40); //Y coordinate less than 40 to gen at
    int posZ = z + random.nextInt(16); //Z coordinate to gen at
    }

    Picks a random spot within the chunk to generate the cluster, the loop makes it generate 20 clusters per chunk. For more frequent ores, generate more clusters per chunk.
    Posted in: Mods Discussion
  • 0

    posted a message on [Java] What's an efficient way to detect string to integer conversion?
    http://docs.oracle.c...ml#hasNextInt()
    and
    http://docs.oracle.c....html#nextInt()

    If you call nextInt() with invalid input in the stream you will receive an InputMismatch exception, so it is best to use hasNextInt() to make sure
    Posted in: Hardware & Software Support
  • 0

    posted a message on Share your Desktop =D
    Posted in: Computer Science and Technology
  • 0

    posted a message on Computer Build Questions/ Build Resource Thread
    1: Do you have a budget? What is it? Preferably list in $, along with another currency if you aren't American
    2: Would that budget include any of (a) Windows 7, ( Keyboard and Mouse, © Monitor, or (d) other (please specify) ?
    3: Do you prefer any brands (eg Intel over AMD or ATI over Nvidia)?
    4: Do you plan on overclocking any of (a) CPU, ( GPU, or © RAM (I'd recommend OCing only the CPU)?
    5: What do you plan on using it for (eg Minecraft, Crysis, Minecraft server hosting, etc.)
    6: When do you plan on building your PC?
    7: What country are you buying from, and are there any retailers you prefer (Note- it may be harder to suggest which retailer to purchase from if you aren't American, although a parts list will still be suggested)
    8: On a scale of 1 to 10, do you prefer looks to performance (cooling and the like) of the case, where 1 is looks and 10 is performance
    9: Would you like USB 3.0?


    1. $400-$500 USD
    2. Should include entry level keyboard and mouse, OS and monitor aren't an issue.
    3. AMD CPU, graphics card doesn't matter really
    4. No overclocking
    5. Minecraft and other small games.
    6. Soon, within a week
    7. United States (Newegg or TigerDirect I feel more comfortable with)
    8. Performance, keep the flashy LED crap away from me
    9. Yes, USB 3.0 is a must

    Higher end budget PC with room for plenty of upgrades preferred.

    What I would like:
    • AM3+ Socket
    • Support for 8+ GB of ram, build only needs 4 for now
    • High end dual core (3Ghz) or a lower end quad core (2.3+ Ghz) If you can fit a bulldozer in there great
    • Medium level graphics card, don't want to be stuck with the integrated one
    • Hard drive doesn't have to be large on capacity, 320GB is plenty, and please no SSDs!
    • PSU should give me some room for upgrades, but doesn't have to be future proof. I'll replace it when needed for upgrades
    • Case should be clean looking without any super flashy LEDs, would prefer a glossy finish over flat but that isn't too big of an issue
    • Entry level keyboard and mouse. Like the ones that come with any prebuilt PC you buy today

    http://pcpartpicker.com/p/1vvV This is what I came up with, but I'm a little stumped on the GPU, and have no idea what the case looks like :biggrin.gif: Let me know if you guys have any other suggestions
    Posted in: Computer Science and Technology
  • 1

    posted a message on Arch Linux vs. Linux Mint
    Quote from nickguletskii

    Arch is a toy. Debian based distros are for work. This includes Debian itself, Ubuntu and Mint.


    I laughed. Anything that uses Gnome or KDE are toys. Arch has potential to be a really powerful lightweight distro if you set it up properly. the Ubuntu family would, but its filled with so many useless programs, it gets bloated too easily. Haven't tried mint so I can't comment :rolleyes:
    Posted in: Computer Science and Technology
  • 0

    posted a message on NewEgg Spec List
    Look at your motherboard and see if your processor and RAM fall under its compatibility range. It's not very hard to do that yourself you know :rolleyes:
    Posted in: Computer Science and Technology
  • 0

    posted a message on Processor
    Don't forget if your new processor pulls more than your motherboard supports it will not work :smile.gif: Depending on your budget it is almost better to get a new motherboard and processor
    Posted in: Computer Science and Technology
  • 0

    posted a message on JAVAC?
    It shouldn't print out anything unless you've had errors.

    Try running java HelloWorld
    Posted in: Computer Science and Technology
  • 0

    posted a message on Should I dual-boot?
    You should have no problem dual-booting. You SHOULD be able to have your /home directory on your HDD while the bare minimum OS is on the SSD.

    As far as resizing partitions, use GParted
    Posted in: Computer Science and Technology
  • 0

    posted a message on Java Game Generation Question
    Quote from cookthis22

    Ok so I understand the String comparing part and that is fixed and it didn't make much of a difference, I guess it was just for some more advanced technical problem that occurs later. But with the iterations, do you mean that since the blocks are 16x16, you would need to reprint them out 256 times over? That would need alot of code... Is there is a better way to do this?


    Since you don't seem to be understanding, what size grid do you want? If i read your original post correctly you want a 16x16 grid. So something like:

    :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
    :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
    :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
    :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
    :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
    :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
    :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
    :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
    :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
    :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
    :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
    :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
    :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
    :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
    :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
    :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::

    As you can see, it is 256 squares (Each square might be a 16x16 sprite). So your map becomes map[256]. Or if you wanted to keep it simple, map[16][16].

    then as far as iterations go

    for(i = 0; i < 256; i++) { ... }
    or

    for(x = 0; x < 16; x++) {
        for(y = 0; y < 16; y++) {
           map[x][y]...
        }
    }


    The second is much easier when trying to calculate the positions of the tile. You simply take the X and Y positions and multiply them by the sprite width/height to get their proper location.
    Posted in: Computer Science and Technology
  • 0

    posted a message on Java Game Generation Question
    Quote from cookthis22

    Well thanks but I said that I left some random things in there which are not used at all but don't affect the code. (chunked the game out to figure it out with less code as a proof of concept). Same thing with everything else but that I have no idea what you are saying about 256 iterations. The array holds 32 values not 16. And what is this about comparing references. Sorry I am new with Java this is my first attempt as well so I do not undertsand much of the vocabulary.



    Well you said you wanted a 16x16 square. That would be 256, not 32, which means you have to iterate up to 256 times to achieve this.

    As far as references go, it is a location in memory of that object. So when you do map[x] == "~ " it is checking if memory location of map[x] is the same as "~ " which it should almost never be. You would use map[x].equals("~ ") which then compares the two strings to make sure they are the same.
    Posted in: Computer Science and Technology
  • To post a comment, please or register a new account.