Futurecraft Forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Futurecraft Forums

A forum dedicated to communication and innovation!
 
HomeLatest imagesSearchRegisterLog in
Welcome, one and all, to the Futurecraft Forums!

 

 Tell31's Java adventure!

Go down 
+10
Tell
Tiel+
Iv121
hyperlite
Last_Jedi_Standing
fr0stbyte124
The Schmetterling
Keon
Laibach
Dux Tell31
14 posters
Go to page : Previous  1, 2, 3  Next
AuthorMessage
hyperlite
Captain
Captain
hyperlite


Posts : 1529
Join date : 2012-01-18

Tell31's Java adventure! - Page 2 Empty
PostSubject: Re: Tell31's Java adventure!   Tell31's Java adventure! - Page 2 Icon_minitimeWed Jul 18, 2012 7:37 pm

Don't think anyone else is going to get that.
Back to top Go down
Laibach
General
General
Laibach


Posts : 2024
Join date : 2012-01-23
Age : 73
Location : Frozen Fields

Tell31's Java adventure! - Page 2 Empty
PostSubject: Re: Tell31's Java adventure!   Tell31's Java adventure! - Page 2 Icon_minitimeWed Jul 18, 2012 7:58 pm

fr0stbyte124 wrote:
Dayman wrote:
Mackeroth? wrote:
Dayman wrote:
Mackeroth? wrote:
Keon wrote:
fr0stbyte124 wrote:
But for loops are your greatest ally.

NAY! While loops are indeed holier than your foul for loops.

The most superior loop there is could only be the fabled Loop-hole!

Yeah! Ownage!


...I don't think you know what they're talking about...


for is the best loop, for an infinite loops it's just for(;; ) versus while(true) and instead of:

int n;
while(n < 10){
n++
//code here
}

you can just put(I think I have the order wrong here):

for(int n = 0; n <10; n++){
//code here
}

In Python, if I needed an infinite loop I just went:

Code:
while 1>0:
#code here


Why is there no indent button?

That's what I would like to know.

and it's (I think) slightly less taxing on the system to put while(true) or for(;Wink instead of 1>0, because the system doesn't have to do as many evaluations or something.

although In python I doubt that matters.
Most high level languages will do basic optimization on your code, e.g. unrolling loops, tweaking variable scope, and so forth. Pretty much there's not going to be a difference between various ways of saying "repeat forever" or for vs while, so don't stress over it. There is a difference in C++, though.


oh, thanks!
Back to top Go down
Keon
Lord/Lady Rear Admiral 1st
Lord/Lady Rear Admiral 1st
Keon


Posts : 3076
Join date : 2012-01-17
Location : Hahahaha.

Tell31's Java adventure! - Page 2 Empty
PostSubject: Re: Tell31's Java adventure!   Tell31's Java adventure! - Page 2 Icon_minitimeWed Jul 18, 2012 9:03 pm

Hmmmmph.. None of you are doing interesting things. How about coding Elder Scrolls 6? That would be interesting.
Back to top Go down
hyperlite
Captain
Captain
hyperlite


Posts : 1529
Join date : 2012-01-18

Tell31's Java adventure! - Page 2 Empty
PostSubject: Re: Tell31's Java adventure!   Tell31's Java adventure! - Page 2 Icon_minitimeWed Jul 18, 2012 9:05 pm

Elder Scrolls 6: Written in Java

Fus ro... ???
Back to top Go down
Laibach
General
General
Laibach


Posts : 2024
Join date : 2012-01-23
Age : 73
Location : Frozen Fields

Tell31's Java adventure! - Page 2 Empty
PostSubject: Re: Tell31's Java adventure!   Tell31's Java adventure! - Page 2 Icon_minitimeWed Jul 18, 2012 9:15 pm

Keon wrote:
Hmmmmph.. None of you are doing interesting things. How about coding Elder Scrolls 6? That would be interesting.


<paranoid>I'm making a <CLASSIFIED> that controls a <CLASSIFIED> that controls players in an <CLASSIFIED>, and all of it is<CLASSIFIED>.

Not sure if I'll get it done this decade, also I have no idea how I would go about creating the <CLASSIFIED></paranoid>

it would be 'Fus ro opensource/multiplatform' imo.
Back to top Go down
fr0stbyte124
Super Developrator
Super Developrator
fr0stbyte124


Posts : 1835
Join date : 2011-10-13

Tell31's Java adventure! - Page 2 Empty
PostSubject: Re: Tell31's Java adventure!   Tell31's Java adventure! - Page 2 Icon_minitimeWed Jul 18, 2012 11:57 pm

Dayman wrote:
Keon wrote:
Hmmmmph.. None of you are doing interesting things. How about coding Elder Scrolls 6? That would be interesting.


<paranoid>I'm making a <CLASSIFIED> that controls a <CLASSIFIED> that controls players in an <CLASSIFIED>, and all of it is<CLASSIFIED>.

Not sure if I'll get it done this decade, also I have no idea how I would go about creating the <CLASSIFIED></paranoid>
I would use quicksort.
Back to top Go down
Dux Tell31
Recruit
Recruit
Dux Tell31


Posts : 379
Join date : 2012-01-05
Location : That is out of the question

Tell31's Java adventure! - Page 2 Empty
PostSubject: Re: Tell31's Java adventure!   Tell31's Java adventure! - Page 2 Icon_minitimeThu Jul 19, 2012 4:32 pm

Day 4

Spoiler:
Back to top Go down
hyperlite
Captain
Captain
hyperlite


Posts : 1529
Join date : 2012-01-18

Tell31's Java adventure! - Page 2 Empty
PostSubject: Re: Tell31's Java adventure!   Tell31's Java adventure! - Page 2 Icon_minitimeThu Jul 19, 2012 4:46 pm

Tell31's Java adventure! - Page 2 Nq37zc
Back to top Go down
Keon
Lord/Lady Rear Admiral 1st
Lord/Lady Rear Admiral 1st
Keon


Posts : 3076
Join date : 2012-01-17
Location : Hahahaha.

Tell31's Java adventure! - Page 2 Empty
PostSubject: Re: Tell31's Java adventure!   Tell31's Java adventure! - Page 2 Icon_minitimeThu Jul 19, 2012 5:05 pm

Spelling. U haz it not. Boolean.

Oh great. You got me thinking. I now need to work out the logic gates of a trinary (No, spellcheck, I did not mean urinary.) system.
Back to top Go down
Laibach
General
General
Laibach


Posts : 2024
Join date : 2012-01-23
Age : 73
Location : Frozen Fields

Tell31's Java adventure! - Page 2 Empty
PostSubject: Re: Tell31's Java adventure!   Tell31's Java adventure! - Page 2 Icon_minitimeThu Jul 19, 2012 5:06 pm

tell31 wrote:
Day 4

Spoiler:

Lol, that's bigger than any one file I've ever done.

so you came up with all of that code in 4 days?
wait, I thought it was a lot more complicated then it is, do you have a class for importing pictures? or will you have to do that on your own.


Last edited by Dayman on Thu Jul 19, 2012 5:09 pm; edited 1 time in total
Back to top Go down
Keon
Lord/Lady Rear Admiral 1st
Lord/Lady Rear Admiral 1st
Keon


Posts : 3076
Join date : 2012-01-17
Location : Hahahaha.

Tell31's Java adventure! - Page 2 Empty
PostSubject: Re: Tell31's Java adventure!   Tell31's Java adventure! - Page 2 Icon_minitimeThu Jul 19, 2012 5:07 pm

Dayman wrote:
tell31 wrote:
Day 4

Spoiler:

Lol, that's bigger than any one file I've ever done.

so you came up with all of that code in 4 days?

I like trains.
Back to top Go down
Laibach
General
General
Laibach


Posts : 2024
Join date : 2012-01-23
Age : 73
Location : Frozen Fields

Tell31's Java adventure! - Page 2 Empty
PostSubject: Re: Tell31's Java adventure!   Tell31's Java adventure! - Page 2 Icon_minitimeThu Jul 19, 2012 5:13 pm

Keon wrote:
Dayman wrote:
tell31 wrote:
Day 4

Spoiler:

Lol, that's bigger than any one file I've ever done.

so you came up with all of that code in 4 days?

I like trains.

wait a minute.. did we just say trinary within 1 minute of each other..?
Back to top Go down
Dux Tell31
Recruit
Recruit
Dux Tell31


Posts : 379
Join date : 2012-01-05
Location : That is out of the question

Tell31's Java adventure! - Page 2 Empty
PostSubject: Re: Tell31's Java adventure!   Tell31's Java adventure! - Page 2 Icon_minitimeThu Jul 19, 2012 6:02 pm

Dayman wrote:
tell31 wrote:
Day 4

Spoiler:

Lol, that's bigger than any one file I've ever done.

so you came up with all of that code in 4 days?
wait, I thought it was a lot more complicated then it is, do you have a class for importing pictures? or will you have to do that on your own.


Ya, thats about right. Although I did use Standard Draw for displaying everything in a window and such. But its still got some logic bugs that absolutely refuse to go away.

For example in the code above, the red parts are supposed to make it so someone can't put more than one(1) "X" or "O" in a spot. But its not working...

Any suggestions?

I used Oracle cheers .



B.T.W. If you try and run this code without "Standard Draw" and replacing the code in green (which is the images for "X" and "O"), IT WILL CRASH!!!
Back to top Go down
hyperlite
Captain
Captain
hyperlite


Posts : 1529
Join date : 2012-01-18

Tell31's Java adventure! - Page 2 Empty
PostSubject: Re: Tell31's Java adventure!   Tell31's Java adventure! - Page 2 Icon_minitimeThu Jul 19, 2012 6:07 pm

I like spaghetti.

Edit: Make NIM

You won't beat the computer, go play it


Last edited by hyperlite on Thu Jul 19, 2012 6:19 pm; edited 1 time in total
Back to top Go down
Laibach
General
General
Laibach


Posts : 2024
Join date : 2012-01-23
Age : 73
Location : Frozen Fields

Tell31's Java adventure! - Page 2 Empty
PostSubject: Re: Tell31's Java adventure!   Tell31's Java adventure! - Page 2 Icon_minitimeThu Jul 19, 2012 6:15 pm

tell31 wrote:
Dayman wrote:
tell31 wrote:
Day 4

Spoiler:

Lol, that's bigger than any one file I've ever done.

so you came up with all of that code in 4 days?
wait, I thought it was a lot more complicated then it is, do you have a class for importing pictures? or will you have to do that on your own.


Ya, thats about right. Although I did use Standard Draw for displaying everything in a window and such. But its still got some logic bugs that absolutely refuse to go away.

For example in the code above, the red parts are supposed to make it so someone can't put more than one(1) "X" or "O" in a spot. But its not working...

Any suggestions?

I used Oracle cheers .



B.T.W. If you try and run this code without "Standard Draw" and replacing the code in green (which is the images for "X" and "O"), IT WILL CRASH!!!

Oracle? you mean the java distribution?

or do you mean netbeans...?

also, I'm not familiar with arrays yet, but I don't think(I'm probably wrong) that you can just go "someArray[]++"
Back to top Go down
Tell
Recruit
Recruit
Tell


Posts : 220
Join date : 2012-02-25
Age : 109
Location : Winterhold

Tell31's Java adventure! - Page 2 Empty
PostSubject: Re: Tell31's Java adventure!   Tell31's Java adventure! - Page 2 Icon_minitimeSun Oct 14, 2012 3:23 pm

Alright its been about 3 months since we took the java corse back in july and I've just made/almost done my first mod in minecraft! All it does is add a "Steel" block in to the game. Next I'm going to be working to add steel items such as pickaxes. The only problem is that I'm a very bad texture person so I need a person to texture a steel block for me and then all share the mod with you guys!
Back to top Go down
Iv121
General
General
Iv121


Posts : 2396
Join date : 2012-02-05
Location : -> HERE ! <-

Tell31's Java adventure! - Page 2 Empty
PostSubject: Re: Tell31's Java adventure!   Tell31's Java adventure! - Page 2 Icon_minitimeSun Oct 14, 2012 3:32 pm

16x16 , 32x32 , animated ? Pick your choice and let me know ...
Back to top Go down
The Schmetterling
DEV
DEV
The Schmetterling


Posts : 3123
Join date : 2011-08-31
Location : I'm a butterfly.

Tell31's Java adventure! - Page 2 Empty
PostSubject: Re: Tell31's Java adventure!   Tell31's Java adventure! - Page 2 Icon_minitimeSun Oct 14, 2012 5:03 pm

Iv121 wrote:
16x16 , 32x32 , animated ? Pick your choice and let me know ...

For steel, it would be a simple matter of darkening normal iron (because iron is not white), and making steel what iron is now. It took me 30 seconds on Photoshop when I did a similar thing ages ago. I then tried to turn a boat into a pick. Didn't go so well.
Back to top Go down
Tell
Recruit
Recruit
Tell


Posts : 220
Join date : 2012-02-25
Age : 109
Location : Winterhold

Tell31's Java adventure! - Page 2 Empty
PostSubject: Re: Tell31's Java adventure!   Tell31's Java adventure! - Page 2 Icon_minitimeSun Oct 14, 2012 5:51 pm

Just do what the Schmetterling said, make the iron block but like two shades darker.
Back to top Go down
Iv121
General
General
Iv121


Posts : 2396
Join date : 2012-02-05
Location : -> HERE ! <-

Tell31's Java adventure! - Page 2 Empty
PostSubject: Re: Tell31's Java adventure!   Tell31's Java adventure! - Page 2 Icon_minitimeSun Oct 14, 2012 6:11 pm

Yep 30 secs ... I thought you'd like a wholey new texture ... here I just uploaded it , a nice methalish color:

Right click on this image and press "save picture": Tell31's Java adventure! - Page 2 Steelt13

This picture is a preview:

Tell31's Java adventure! - Page 2 Steelt11

Srsly I can do much more than tweaking brightness and contrast ...
Back to top Go down
Tiel+
Lord/Lady Rear Admiral 1st
Lord/Lady Rear Admiral 1st
Tiel+


Posts : 5497
Join date : 2012-02-20
Age : 26
Location : AFK

Tell31's Java adventure! - Page 2 Empty
PostSubject: Re: Tell31's Java adventure!   Tell31's Java adventure! - Page 2 Icon_minitimeSun Oct 14, 2012 6:26 pm

Yet that seems the only thing you did with that texture..? confused
Back to top Go down
Tell
Recruit
Recruit
Tell


Posts : 220
Join date : 2012-02-25
Age : 109
Location : Winterhold

Tell31's Java adventure! - Page 2 Empty
PostSubject: Re: Tell31's Java adventure!   Tell31's Java adventure! - Page 2 Icon_minitimeSun Oct 14, 2012 8:39 pm

Okay so I tryed running minecraft with the mod and stuff but it ran in to a problem. So far I think its Mod loader and it trying to load mods that are not there. If any one know's how to fix this please tell me.

Here's the code of what happend
Spoiler:
Back to top Go down
Last_Jedi_Standing
Moderator
Moderator
Last_Jedi_Standing


Posts : 3033
Join date : 2012-02-19
Age : 111
Location : Coruscant

Tell31's Java adventure! - Page 2 Empty
PostSubject: Re: Tell31's Java adventure!   Tell31's Java adventure! - Page 2 Icon_minitimeSun Oct 14, 2012 9:19 pm

Looks like it's broken.
Back to top Go down
Tell
Recruit
Recruit
Tell


Posts : 220
Join date : 2012-02-25
Age : 109
Location : Winterhold

Tell31's Java adventure! - Page 2 Empty
PostSubject: Re: Tell31's Java adventure!   Tell31's Java adventure! - Page 2 Icon_minitimeSun Oct 14, 2012 10:26 pm

I reinstalled mod loader and that fixed it. All most likely put out the mod tomarrow so get ready!
Back to top Go down
Iv121
General
General
Iv121


Posts : 2396
Join date : 2012-02-05
Location : -> HERE ! <-

Tell31's Java adventure! - Page 2 Empty
PostSubject: Re: Tell31's Java adventure!   Tell31's Java adventure! - Page 2 Icon_minitimeMon Oct 15, 2012 1:15 am

Tiel wrote:
Yet that seems the only thing you did with that texture..? confused

That's what they asked for ...
Back to top Go down
Sponsored content





Tell31's Java adventure! - Page 2 Empty
PostSubject: Re: Tell31's Java adventure!   Tell31's Java adventure! - Page 2 Icon_minitime

Back to top Go down
 
Tell31's Java adventure!
Back to top 
Page 2 of 3Go to page : Previous  1, 2, 3  Next
 Similar topics
-
» Medival fantasy adventure map; Vaguely inspired by lathemele.
» Java beginners guide/introduction
» Java learning with CMA/everyone.
» Beginning to learn Java
» Tonyri's Learning Java Development Log

Permissions in this forum:You cannot reply to topics in this forum
Futurecraft Forums :: General Area :: Off-Topic Area-
Jump to: