Note: if (str == “”) won’t work in Java, need to use str.equals("").
Actually, it does work sometimes, and most of the time with “”. This is because “” is always the same pointer location (null).
You’re required to use equals methods, always. Comparing string by reference is used only in special cases (and where you exactly know what consequences it has). This is the same as with threading, if you do it wrongly it might work on your computer, but it might blow on others.
I used .equals("") anyway.
Can someone with a mac try see if they can login now or get a error for trying?
Hey zammbi. It still wasn’t working for me, but this time I took a gander at your JNLP to see what was wrong.
Two things:
<jnlp spec="1.5+"
I changed to
<jnlp spec="1.0+"
because the actual JNLP isn’t 1.5. I’m not sure if this matters at all.
More importantly, I also added:
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+"/>
under the resources. This is what was causing an error and not allowing my JAR to run at all.
On Mac, I was able to create an account and log in, but now it seems to be loading perpetually.
I just changed that heh. Because another user posted some info on that.
Ok Ill add it in.
There are some server bugs that cause some trouble, try relogging and see if that helps.
Thanks for helping.
I tried it out from a non-firewalled computer, but when I tried to create an account it said that there were problems with the server. I suppose I’ll just wait until it’s back up later.
The music was cool.
Hey where did you get all of the pokemon graphics? I’ve found some sprite sheets around, but they’ve all got different scales and are incomplete and most do not have transparent backgrounds which is annoying.
What’s the largest number of people who have used it at once?
That’s pretty amazing the way all of you have pulled together so quickly and did so much in 6 months. So do you know the server programmer very well before starting? And those GM’s, mappers, sound guys etc, what do you think motivated them to help out so much? Maybe you and the server programmer are just very charismatic?!
[quote]I suppose I’ll just wait until it’s back up later.
[/quote]
Yea sorry server was down. It’s back up now.
[quote]Hey where did you get all of the pokemon graphics?
[/quote]
Not sure where the original stuff came from, but there is a bit of royalty free stuff out there.
Also what ever our users create, we add in.
[quote]most do not have transparent backgrounds
[/quote]
Most of our art use white as transparent, which you need to convert it to transparent in game. Maybe that’s your trouble?
[quote]What’s the largest number of people who have used it at once?
[/quote]
As in the max amount of people playing at once? Over 90 or so. Would be more if our servers would handle it.
[quote]That’s pretty amazing the way all of you have pulled together so quickly and did so much in 6 months.
[/quote]
Thanks. Really myself I don’t see it being that hard but you do need the money to pay for servers and the time to keep working on such a project.
Yep a friend of mine.
Well some may say that it’s because we based out game off the popular theme pokemon. But that said there are still many online pokemon games out there.
I think what makes us different from the rest is we have a nice community and friendly Gm’s that help out as much as possible. We listen to the community and anything they wish to help in we accept.
Also we are unique from the others, like creating the playerdex www.playerdex.com sorta like hi5 or myspace where you can create your own page, post comments and make official guild page.
[quote]Maybe you and the server programmer are just very charismatic?!
[/quote]
Yea that helps too
Ok thanks, I’ll give it another go the next time I’m on a proper computer.
Hey I just checked out the playerdex and saw this:
Kyrocorp Australia
Are you guys in Australia?
We are both from New Zealand. But hes only recently moved over there for a job.
Oh cool, well hello from over the other side of the tasman. I’m in Sydney.
Does your buddy work on games over here? Is he in Sydney? There’s a few of us on these forums from australia. I’ve heard some people here are from NZ as well, I think Demonpants is? But I’m not sure.
Ah cool
Yep hes in Sydney. His job is some big database job over there. But hes always working on some game. He has like 5-10 games hes working on at once. Another online game he has up and running is Pokemon Battle arena . He has also making a game called hellraider But those ones I don’t have anything to do with them really.
Great, well please let him know that if he ever wants to meet, I’d be very happy to have a nerdy chat about games and programming! And hey, if you’re ever on holiday over here, let me know so we can get drink. 8)
I haven’t met anyone in Sydney who’s very into games development, but then I don’t work in IT.
That’s a fair load of games, wow. You and your friend are very good at getting things going. I have trouble managing my everyday life, let alone a couple of big projects that heaps of people take part in.
Hehe cool. If you email him he would most likely accept your offer hehe.
I don’t see myself coming over there anytime soon, my current trip planned is going to India with some friend about new years.
Myself I’m just working on PWO and my unnamed game that I’m learning jpct and writing it. I wouldn’t want to work on more then 2 unless I was doing this as a job which I wouldn’t mind doing.
Nope, I’m from California, but it would be nice to be in New Zealand. 8)
I couldn’t log in right now. Still haven’t had a successful session, unfortunately.
Yea NZ is a great place.
The server is playing up and crashing, I just restarted it again. It’s a development server so meant to do that :persecutioncomplex:
Only if the server was written in java, but o well.
What? No. “” Is a perfectly normal string, just like “monkey” and “banana”.
String literals are safe to compare with other string literals, because they go into the string pool. Strings interlalised with String.intern() are also relatively safe to compare with string literals. Strings only created in one place are also safe to compare with each others.
There is no magic.
Strings work exactly like other objects when it comes to ==. If it’s the same object, == returns true, otherwise it returns false. String.equals(), however, compares the contents of the string objects, which might be the same.
I stand corrected. I only assumed the null thing, because I’ve had problems with == but never specifically with == “”.
This tends to catch people out in Java because a lot of the time it will work as a side effect of the way Java optimizes String literals. The following will return true with most Java compilers:
"testing " + "1.." + "2.." == "testing 1..2.."
This however is always false:
"" == new String("")
Short story is never use == for comparing the contents Strings.
I like .equalsIgnoreCase() anyway.