Java is Hard

Talk about anything in here.
Post Reply
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Java is Hard

Post by jacek »

Last night, I tried to learn some Java. Turns out it's pretty hard.

I was looking for a plugin for Bukkit to make wool glow when powered, there did not seem to be any. So like a crazy person I decided to try and make one. Luckily there is a good tutorial on the basics of plugin development http://wiki.bukkit.org/HUGE_Plugin_Tutorial so using that, I made a plugin that makes wool blocks change to wood when powered. At the time (1AM) this felt like an amazing achievement. I then had a go at making the light level for that block change, much harder ! But by decompiling http://forums.bukkit.org/threads/mech-p ... -740.9601/ I found a way to do it, now wool blocks flash when powered and I am totally stuck on how to make the light persist.

At the risk of sounding entirely lame, this is what I love about programming, being stuck :D
Image
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Java is Hard

Post by jacek »

Image

Progress :D
Image
User avatar
EcazS
Posts: 789
Joined: Fri May 06, 2011 5:29 pm

Re: Java is Hard

Post by EcazS »

I was going to learn Java just because of Minecraft but I gave up when my brain malfunctioned.

I also don't like how redstone looks on your texture pack... :lol:
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Java is Hard

Post by jacek »

EcazS wrote:I was going to learn Java just because of Minecraft but I gave up when my brain malfunctioned.
You should try Bukkit, it's actually pretty easy to do simple stuff like change blocks.
EcazS wrote:I also don't like how redstone looks on your texture pack... :lol:
Then I do not recommend you use my texturepack ;)
Image
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Java is Hard

Post by jacek »

Spent 3 hours today trying to work out why blocks were not being lit on one side.
for (int i = 0; i < 6; ++i){
I changed the number of blocks that got light added from 6 to 18 and forgot to change this number.

with it as
for (int i = 0; i < blockList.length; ++i){
It works perfectly !

*goes to make glow in the dark pixel art*
Image
User avatar
DomC
Posts: 91
Joined: Mon Jul 18, 2011 1:58 pm

Re: Java is Hard

Post by DomC »

I learnt Java as my first programming language so might have a go at making a plugin!

EDIT: I agree it is hard to learn!
I can't think of anything witty to put here!

Check out some of my projects on GitHub: https://github.com/DomTC
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Java is Hard

Post by jacek »

DomC wrote:I learnt Java as my first programming language so might have a go at making a plugin!
I would recommend it ! Pretty fun ;)
DomC wrote:EDIT: I agree it is hard to learn!
Indeed ! :( Not much documentation for developers really. I guess Eclipse tells you what methods are available.
Image
User avatar
DomC
Posts: 91
Joined: Mon Jul 18, 2011 1:58 pm

Re: Java is Hard

Post by DomC »

Also, do I recall you have a server I can sign up to?

Anyway minecraft is a great game!
I can't think of anything witty to put here!

Check out some of my projects on GitHub: https://github.com/DomTC
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Java is Hard

Post by jacek »

DomC wrote:Also, do I recall you have a server I can sign up to?
I do, if you post your username I can whitelist you.
Image
User avatar
DomC
Posts: 91
Joined: Mon Jul 18, 2011 1:58 pm

Re: Java is Hard

Post by DomC »

OK,
My username is:
DomChester

Thanks
I can't think of anything witty to put here!

Check out some of my projects on GitHub: https://github.com/DomTC
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Java is Hard

Post by jacek »

Added :D

The server address is sv2.xhcp.co.uk.
Image
User avatar
DomC
Posts: 91
Joined: Mon Jul 18, 2011 1:58 pm

Re: Java is Hard

Post by DomC »

Cool, thanks
I can't think of anything witty to put here!

Check out some of my projects on GitHub: https://github.com/DomTC
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Java is Hard

Post by jacek »

So I made some progress

Image
User avatar
DomC
Posts: 91
Joined: Mon Jul 18, 2011 1:58 pm

Re: Java is Hard

Post by DomC »

Awesome - i am going to start on a plugin tonight after having a quick refresh of my Java!

Have you got any more ideas for plugins you will make? I can't wait to see what you can come up with!
I can't think of anything witty to put here!

Check out some of my projects on GitHub: https://github.com/DomTC
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Java is Hard

Post by jacek »

DomC wrote:Have you got any more ideas for plugins you will make? I can't wait to see what you can come up with!
Not at the moment, I like the idea of extending the redstone mechanic though.
Image
JelvinJS7
Posts: 341
Joined: Thu May 12, 2011 8:40 pm

Re: Java is Hard

Post by JelvinJS7 »

jacek wrote:So I made some progress

J6uqIaBgwgM
This is via java?
I should really learn it…

Also, what are the words that are glowing at the beginning?
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Java is Hard

Post by jacek »

JelvinJS7 wrote:Also, what are the words that are glowing at the beginning?
"Bukkit" it's the name of the server wrapper mod thing.
Image
User avatar
Kamal
Posts: 123
Joined: Fri May 06, 2011 10:45 am
Contact:

Re: Java is Hard

Post by Kamal »

Can you please add my friend TacticalScrewUp to the server?
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Java is Hard

Post by jacek »

Kamal wrote:Can you please add my friend TacticalScrewUp to the server?
No unless he joins the forum, makes a few less-than-useless posts and then asks for himself ;)
Image
JelvinJS7
Posts: 341
Joined: Thu May 12, 2011 8:40 pm

Re: Java is Hard

Post by JelvinJS7 »

jacek wrote:
Kamal wrote:Can you please add my friend TacticalScrewUp to the server?
No unless he joins the forum, makes a few less-than-useless posts and then asks for himself ;)
There a reason for that, you being difficult, or just you and your goofy self?
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Java is Hard

Post by jacek »

JelvinJS7 wrote:There a reason for that, you being difficult, or just you and your goofy self?
Well the server is meant to be for forum members ;)

Plus I will know how likely he is to follow the rules if he is a member here.
Image
Post Reply