News for hackers. Stuff that matters.
Re:Ask HN: Review my App - Freeciv.net by jeff18 on Saturday December 19, 2009 @08:31PM (#1005544)
Why require an account? Just let me click a "Play Now" button. If you want to be fancy, you could make it like EtherPad so if I want to play a game, I could just go to freeciv.net/jeffsgame

I would not be surprised if by reducing the barrier to entry, you get three times as many players. Your bounce rate must be staggering right now.

Please implement this and then post another YC article with the stats on your bounce rate. :) I'd be very curious how big of a barrier requiring an email, etc. really is on a site like yours.

Re:Ask HN: Review my App - Freeciv.net by eru on Saturday December 19, 2009 @09:39PM (#1005623)
I was in the mood for playing when I checked it out. But not enough to bother with email addresses.
Re:Ask HN: Review my App - Freeciv.net by ricree on Saturday December 19, 2009 @10:04PM (#1005657)
Or at the very least, add an openid option so I can just log without having to create a new account.
Re:Ask HN: Review my App - Freeciv.net by ErrantX on Sunday December 20, 2009 @06:36AM (#1006030)
or at the very least implement OpenID login
Re:Ask HN: Review my App - Freeciv.net by dannytatom on Saturday December 19, 2009 @08:30PM (#1005543)
I only have one real complaint, and that is this:

    The email or password contains invalid invalid characters.
    Only letters (A-Z) and numbers (0-9) are allowed.
What's the point in not allowing special characters in a password (serious question)?
Re:Ask HN: Review my App - Freeciv.net by Groxx on Sunday December 20, 2009 @05:26PM (#1006697)
Ignore most of the other comments threading from this point, and HASH THE PASSWORDS with a salted hashing scheme. If it's not salted, it's almost as bad as not encrypting them at all. Hashed passwords are character-agnostic as well, so the only reason to limit your character-space then becomes preventing injection... which you should be using a library to do for you, because, frankly, "they" know better, and it's been more heavily tested than your code.

If you're storing passwords in ANY reversible format, you're a threat to every user's security. It's part of why I like OpenID: if your server is compromised, I'm not.

Re:Ask HN: Review my App - Freeciv.net by eru on Saturday December 19, 2009 @08:49PM (#1005565)
Good question. Some banks (and other large companies) also seem to dislike them in passwords.
Re:Ask HN: Review my App - Freeciv.net by pyre on Saturday December 19, 2009 @09:35PM (#1005613)
Some stupid rule thought up by someone that is trying to force users to make passwords that they can remember. Like some sort of Web/IT version Clippy saying, "I see you're trying to enter a password with a '+' in it. Are you sure that isn't a typo?"

Either that or their backend software is incompetent (as well as the people that made it) and can't handle pattern-matching outside of [:alnum:] or can't store character values outside of [:alnum:]. It's the same reason that there are many sites that you can't use the 'md5 a single password against the site's domain name' trick because they limit password length to 8 or 16 characters (as if they are some sort of 'accepted industry standard').

Re:Ask HN: Review my App - Freeciv.net by durin42 on Saturday December 19, 2009 @11:33PM (#1005731)
I like that idea of using some sort of standard hash and password pairing along with the domain to come up with a password that's site-unique. Is that original, or taken from somewhere?

Have you considered using base64 or some other encoding to shorten the string?

Re:Ask HN: Review my App - Freeciv.net by pyre on Sunday December 20, 2009 @03:53PM (#1006559)
Maybe I'm misunderstanding, but the string will already be Base64 if it's human readable (I'm not trying to use character 254 as part of my password) and base64 encoding actually grows the data you are encoding (since you are breaking some bytes down into two bytes to make them both human readable).

The problem being length. Human-readable (ascii-armored/whatever) hashes (md5/sha-1/sha-256) have standard lengths which are usually longer than the maximum size of the password fields.

Re:Ask HN: Review my App - Freeciv.net by durin42 on Monday December 21, 2009 @11:32AM (#1008074)
I was assuming he was using the hex digest of the hash. You have to use some kind of ascii armoring, and base64 seemed like one that'd be reasonably safe.
Re:Ask HN: Review my App - Freeciv.net by janzer on Sunday December 20, 2009 @12:11AM (#1005765)
I've used the extension from passwordmaker.org for quite some time. It implements this basic idea quite nicely.
Re:Ask HN: Review my App - Freeciv.net by crux_ on Sunday December 20, 2009 @11:22AM (#1006260)
Besides passwordmaker there's also the PwdHash firefox extension; I've been using that one for a while.
Re:Ask HN: Review my App - Freeciv.net by theycallmemorty on Saturday December 19, 2009 @09:52PM (#1005640)
I think banks to alpha-numeric so you can type them in on the phone.
Re:Ask HN: Review my App - Freeciv.net by munctional on Saturday December 19, 2009 @09:27PM (#1005599)
It reduces the keyspace that needs to be searched when bruteforcing... leading to accounts being compromised more easily. That's about it.
Re:Ask HN: Review my App - Freeciv.net by Scriptor on Sunday December 20, 2009 @01:55AM (#1005859)
At the same time, I think it's just a really quick/lazy way to prevent SQL injection.
Re:Ask HN: Review my App - Freeciv.net by akirk on Sunday December 20, 2009 @07:27AM (#1006065)
well you have already lost if you try to insert the password into the database without applying a salted hash function on it.
Re:Ask HN: Review my App - Freeciv.net by TeHCrAzY on Sunday December 20, 2009 @09:10PM (#1006985)
Don't most "web" languages support parameters in the same was .NET does (at least with Sql Server)?
Re:Ask HN: Review my App - Freeciv.net by lt on Sunday December 20, 2009 @08:34AM (#1006109)
I hate when pages say my email is invalid because it has a plus sign in it.
Re:Ask HN: Review my App - Freeciv.net by Tobias42 on Sunday December 20, 2009 @12:22PM (#1006316)
Is it even possible to enter any valid email address there? I have an email address whose only special character is the dot before the top level domain and it doesn't get accepted.
Re:Ask HN: Review my App - Freeciv.net by revorad on Saturday December 19, 2009 @07:19PM (#1005462)
Internet Explorer not supported

Awesome!

Re:Ask HN: Review my App - Freeciv.net by gcb on Sunday December 20, 2009 @09:21PM (#1007008)
What's an IE?

btw, it would be neat if i could play on opera mini.

Re:Ask HN: Review my App - Freeciv.net by m_eiman on Sunday December 20, 2009 @07:11AM (#1006052)
Awesome? I'd say it's pretty sad that ignoring IE is practically required to do advanced stuff on the web without resorting to Flash.
Re:Ask HN: Review my App - Freeciv.net by kalendae on Saturday December 19, 2009 @08:44PM (#1005558)
I see ads on the side, I may be completely misreading your intentions for having them of course (as it could just be why not?) but I am not seeing freeciv on web as being very high in traffic. Main reason is that the barrier to entry is extremely high. Without tutorials, and the way the ui is setup, it requires you to be a former civ player, and a former civ player likely has civ on their computer (or at one point). So with the free advantage gone for a lot of them (eg i have civ4 installed right now), how is this better than multiplayer civ4? my hope is that u have some cool plans for it that takes it beyond the commercial civ titles.
Re:Ask HN: Review my App - Freeciv.net by bd on Saturday December 19, 2009 @09:07PM (#1005586)
There is definitely an opportunity for browser-based Civilization game, though it's going to be tough to compete with Sid himself:

http://www.facebook.com/civnetwork

Re:Ask HN: Review my App - Freeciv.net by Maciek416 on Saturday December 19, 2009 @07:22PM (#1005469)
Some notes:

1) I typed "G" to have a settler unit wander out into the wilderness and it founded a city on its own. That was unexpected. I'm almost certain I didn't have it in any kind of automatic mode.

2) It would be good if we had a stronger indication of which tile will be the target of an action, and possibly a preview of the path taken there.

3) More animated indicators in general of where we should be looking at any given moment would be helpful.

4) Try to test the game on a large display (I'm testing on 2560x1600). It looks fantastic, but some of the UI could be better-delineated and tightened up. It seems to be a little spread out right now.

Overall, this is awesome. Thank you for creating it! Civ is very high on a lot of people's top-10-of-all-time lists, so this should become very popular very quickly. Good luck.

Re:Ask HN: Review my App - Freeciv.net by alexkearns on Saturday December 19, 2009 @06:18PM (#1005364)
Thanks mate, you have just destroyed my marriage.
Re:Ask HN: Review my App - Freeciv.net by milkshakes on Saturday December 19, 2009 @07:04PM (#1005429)
and my finals week
Re:Ask HN: Review my App - Freeciv.net by codexon on Saturday December 19, 2009 @07:40PM (#1005491)
and my startup
Re:Ask HN: Review my App - Freeciv.net by eru on Saturday December 19, 2009 @08:49PM (#1005563)
I hope you guys don't discover Nethack or Dwarf Fortress.
Re:Ask HN: Review my App - Freeciv.net by wlievens on Sunday December 20, 2009 @04:38AM (#1005970)
WebDF would be the end of all things productive for me.
Re:Ask HN: Review my App - Freeciv.net by baxter on Sunday December 20, 2009 @05:37AM (#1005999)
WebDF could be the end of humanity.
Re:Ask HN: Review my App - Freeciv.net by AdamGibbins on Saturday December 19, 2009 @08:58PM (#1005574)
Server appears to be overloaded, just forever loading for me :(
Re:Ask HN: Review my App - Freeciv.net by bshep on Saturday December 19, 2009 @09:15PM (#1005591)
Same here :(
Re:Ask HN: Review my App - Freeciv.net by taitems on Saturday December 19, 2009 @10:12PM (#1005670)
I signed up but the game never finished loading, so I had a play with the UI for a few minutes.

http://i.imgur.com/fzB6i.jpg

Re:Ask HN: Review my App - Freeciv.net by kyro on Saturday December 19, 2009 @10:49PM (#1005707)
Is there a tutorial you could point me to that'll teach me how to make buttons with a style similar to that 'Play Now' button?
Re:Ask HN: Review my App - Freeciv.net by taitems on Saturday December 19, 2009 @10:55PM (#1005711)
It's something that I always saw and one afternoon decided to try and replicate. You can search for "MetaLab" style buttons, but it's as simple as fine-tuning the settings for inner shadow (normal mode, white) a darker stroke, a gradient overlay and a subtle drop shadow.

That's probably not my best ever example of that button style either.

EDIT: A pretty poor substitute http://blog.creativityden.com/design-a-pixel-perfect-menu-me...

Re:Ask HN: Review my App - Freeciv.net by yungchin on Saturday December 19, 2009 @07:02PM (#1005427)
Edit: nevermind what I wrote below. I just figured out I didn't understand the controls. Would it be impossible to create "drag and drop" for units?

I tried a single-player game in Firefox (3.5), but it hardly reacts to my input (even though top tells me it's barely consuming any cycles). I thought I'd give it a try with the Chromium Beta (but couldn't login anymore, so I created a second account) too - same thing there though.

In any case: love the idea!!!

Re:Ask HN: Review my App - Freeciv.net by nuba on Saturday December 19, 2009 @07:16PM (#1005456)
Cool! Works for me on a firefox 3.6b4, but I found the interface a bit clumsy and lacking visual feedback, and also some may not notice the commands area in the lower-right corner. Otherwise, thanks!
Re:Ask HN: Review my App - Freeciv.net by ugh on Saturday December 19, 2009 @07:12PM (#1005446)
It might not actually be unresponsive but it certainly feels that way. There is no feedback, the screen just violently blacks out, units just jump from A to B, buttons don’t react to clicks at all and so on and so on. This games needs a ton of polish. If anyone ever again claims that animations are useless eye candy I will show them this game.

I love turn based games – but, sorry, not this one. I gave up after a short time and was very frustrated.

(By the way, I changed browsers, too. From Safari to Chrome to Firefox, just to see whether it might be the browser.)

Re:Ask HN: Review my App - Freeciv.net by roschdal on Saturday December 19, 2009 @07:16PM (#1005455)
Thanks for the feedback. How should the controls be for this to be more usable? The game is still under development, so any feedback would be very useful.
Re:Ask HN: Review my App - Freeciv.net by plaes on Sunday December 20, 2009 @04:42AM (#1005974)
You've done a good job.

I've been looking through the sources and found the "patches" directory. It would be cool if you had comments on top of every patch why it is needed.

Re:Ask HN: Review my App - Freeciv.net by brandon272 on Saturday December 19, 2009 @08:44PM (#1005559)
Chrome says "Waiting for freeciv.net..." but nothing loads.
Re:Ask HN: Review my App - Freeciv.net by city41 on Saturday December 19, 2009 @07:15PM (#1005452)
In the chat console, the blue text on black/dark grey background is totally unreadable.

So far I'm very impressed.

Re:Ask HN: Review my App - Freeciv.net by roschdal on Sunday December 20, 2009 @08:17AM (#1006090)
Thanks for the reviews from everyone. I'll use this to improve the game soon.
Re:Ask HN: Review my App - Freeciv.net by woid on Saturday December 19, 2009 @08:39PM (#1005550)
That was one of tasks on my list of "Projects to do before I die"!

checked out, love when people are making things real, thanks man

Ah, then next one is tough, "have threesome with japanese twins".

Re:Ask HN: Review my App - Freeciv.net by kunley on Saturday December 19, 2009 @09:40PM (#1005625)
It hangs. (2 minutes pass) No! But still slooow