Posted: Thu Aug 04, 2005 6:40 pm Post subject: (No subject)
Spartan_117 wrote:
hmm, why would not compress it properly??? do u think i should make a .zip .rar or a .jar file?
I think it might have to be a .jar with a proper manifest file. Rizzix, can you confirm or debunk this?
rizzix
Posted: Thu Aug 04, 2005 7:30 pm Post subject: (No subject)
Oh dear Spartan_117,
FORGET! the stupid archive file i mean to think you could actually let me see such horrifying code!! what.. is that gibberish!!
*sigh* but i try.. i mean i try.. i try not to comment on SUB-AVERAGE CODE!!.. but seriously.. ugh...
Your code has some _serious_ problem(s). I can tell you this because i ran it on my own webserver, and guess what? It did not run.
I ran it directly from the folder (screw the archive file). Nope. It did not run.
I noticed you loop-played an audio file in the init() code. So i commented it out, yet, guess what? It did not run.
(I mean to loop in the init(), what are you thinking! This is not the way you go about playing music in the background in any program. You are preventing it from further execution! Create a thread, and loop within that thread.)
Aside of all this, it does not run either way. There's something terrible wrong within your code. It simply will not initialise. (*hint*)
I dont think i have the time to try and debug it. Nor would I like to try. It is simply far too horribly, ugh, messy, but since I'm such a nice guy I "will try" nevertheless.
*sigh* I'll try, but no guarantees. Just do your self a favour.. LEARN TO CODE! We can't help you if you can't do it right..
[Gandalf]
Posted: Thu Aug 04, 2005 8:10 pm Post subject: (No subject)
Well...
Spartan_117 wrote:
I've been trying to make this applet work for at least 6 months.
What you have to do is, after practically every change you make, test the code out! Compiling doesn't take that long and it saves a lot of trouble.
I ran across threads too, what are they? Seems to me like they are some kind of Java 'process'. Also, I often see this.something, what does that mean?
Didn't you say that you had made everything so that it could lead to the same folder? I may be wrong, but this should probably just be images/.
Lastly, oh dear, how do I get rid of that music! I like the Mario song but I can't stop it!!
*edit* It's still running!
rizzix
Posted: Thu Aug 04, 2005 8:47 pm Post subject: (No subject)
Ctrl+Alt+Del and kill firefox or whatever browser u were running it through
It runs in that loop because, his applet never gets to completing its initialization.. It loops during the init-phase.. hence it: #1) does not load, #2) hangs the browser.
wtd
Posted: Thu Aug 04, 2005 8:49 pm Post subject: (No subject)
[Gandalf] wrote:
Also, I often see this.something, what does that mean?
Keep an eye on my Java Tutorial for an answer to that question.
[Gandalf]
Posted: Thu Aug 04, 2005 8:56 pm Post subject: (No subject)
rizzix wrote:
Ctrl+Alt+Del and kill firefox or whatever browser u were running it through
But... but, what about my 50+ open tabs?
Yeah, I'm crazy.
Alright wtd, I can't wait .
Gandalf wrote:
I ran across threads too, what are they? Seems to me like they are some kind of Java 'process'.
Am I right?
Sponsor Sponsor
wtd
Posted: Thu Aug 04, 2005 9:05 pm Post subject: (No subject)
[Gandalf] wrote:
Gandalf wrote:
I ran across threads too, what are they? Seems to me like they are some kind of Java 'process'.
Am I right?
With the notable exception that they work.
Threads are available from many different programming languages.
Spartan_117
Posted: Fri Aug 05, 2005 8:48 am Post subject: (No subject)
how come theres no cry emoticon here???
cuz all i can do is cry!!! I should hav just used swing. I was so damn inexperienced with applets. The graphics kill me; or wait, is it more than jus the graphics that i suck at??? Thanks rizzix for taking the time to try to debug it, but if it takes too much time forget it. I think the problem is that i used RTP. FOR YOUR OWN SAKE DO NOT USE RTP!!!!! I HATE IT!! It's horrible, it teaches ppl how to become the worst programmers!!!! I would not have such a horribly coded game if it werent for this horrible IDE!!
Why you asK?? well you kno how you say my code is junk and that it needs major debugging!? well the reason i didnt kno this is because RTP actually compiled and made it work. I was using RTP and dont think i never compiled and tested it. Of course i did. In RTP everything ran fine, everything worked, the graphics loaded up, the music played, and it responded to the keyboard, except the screen flickkered (I ran it direct from RTP (not a browser) supposedly RTP has its own appletviewer). But who gives a rats ass if it works on RTP!! no one uses it! It needs to work on the browser. I thought if it ran on RTP it should prob work when i put it online. NOOOOOO!! I THOUGHT WRONG!!! I started learning Java on RTP and it was the biggest mistake! Somehow RTP forces it to run (someone mentioned it used Jikes compiler or somethign). I dunno, whatever it uses RTP is the worst IDE, especially if you start out learning Java on it! I ADVISE EVERYONE NOT TO USE THIS USELESS SOFTWARE WHICH COSTS MONEY!
Im so frustrated ....
rizzix
Posted: Fri Aug 05, 2005 1:12 pm Post subject: (No subject)
oh yea we have been condemning RTP from the start.. anyways,, try and get it to run as a standalone swing application.. forget creating an applet for now..
[Gandalf]
Posted: Fri Aug 05, 2005 3:33 pm Post subject: (No subject)
You missed it:
Anyways, I have been meaning to ask. Is it easy to switch to an applet once you have a program done as a standalone application? It seems to me like it would be easier to make an application first...
rizzix
Posted: Fri Aug 05, 2005 7:21 pm Post subject: (No subject)
Yes it is.
Now I did some research on SWING applet programming, and its a little more complex than i expected. Specially with SWING.
I would not recommed creating an applet (specially if you are using images) if you are just new to Java. It is best you create a SWING app instead.
Spartan_117
Posted: Sat Aug 06, 2005 11:43 am Post subject: (No subject)
Ya, im thinking of making it a standalone with Swing, but wont it be hard to switch from applet to Swing now? I dont know where to start...
wtd
Posted: Sat Aug 06, 2005 2:31 pm Post subject: (No subject)
Spartan_117 wrote:
Ya, im thinking of making it a standalone with Swing, but wont it be hard to switch from applet to Swing now? I dont know where to start...