facewall icon indicating copy to clipboard operation
facewall copied to clipboard

Game not showing employees

Open struiling opened this issue 11 years ago • 4 comments

Got /facewall/ working, but going to /facewall/game gets me a shell page with my org name, but no employees loading. Is the game part supposed to be working out of the box (or, er, repo)? There are no instructions for the game in the readme.

struiling avatar Nov 29 '13 16:11 struiling

Do you see any errors in the console? If not, could you please post a screenshot or provide browser details?

One component which doesn't work out of the box is high scores. If you want to have a scoreboard, you'll need to use your own Reddis-style key-value store. (At HubSpot, we use Gamera.) If you see any errors related to high scores that may be the issue. (Although pre_fetch is set to false for the HighScores collection so that likely isn't the issue unless you've played with the application.coffee configurations yourself.)

adamschwartz avatar Nov 29 '13 20:11 adamschwartz

What I have noticed is that game starts only if there are 20 employees loaded. It works for me as I have more than 20 entries, but doesn't work for the example data provided in this repository (~12-13 employees). Don't know where '20' actually comes from.

theold190 avatar Oct 24 '14 07:10 theold190

https://github.com/HubSpot/facewall/blob/master/app/views/facewallGame.coffee#L63

eighnjel avatar Feb 24 '15 23:02 eighnjel

@theold190 @eighnjel thanks. It was I while ago I wrote this, but I’m guessing the 20 was what I decided was needed to make the game worthwhile, based on the number of guesses and rounds. It is certainly a arbitrary distinction.

Sorry the example data doesn’t meet the requirement needed. I’ll make a note to increase the number of example employees. Thanks

adamschwartz avatar Feb 24 '15 23:02 adamschwartz