Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Card Loading #22

Open
kspier opened this issue Mar 16, 2013 · 9 comments
Open

Card Loading #22

kspier opened this issue Mar 16, 2013 · 9 comments

Comments

@kspier
Copy link
Contributor

kspier commented Mar 16, 2013

We appear to have broken the game. No cards would load, regardless of what sets we selected.

@kspier
Copy link
Contributor Author

kspier commented Mar 16, 2013

Alright. Looking at this, I notice two things. I don't know if this will affect the coding at all. But:

(1) In the cards,js, there appears to be one text bit missing a ____ and having used too many underscrores (what I get for letting someone else write text).

(2) There looks like there's a carriage return in the other file. My coding instincts say that seems odd to me, however, as that carriage return was in there before my addition.

@samurailink3
Copy link
Owner

Looks like the loading error was caused by an extra bracket.

What line needs to be fixed? I'll push another fix real quick.

@kspier
Copy link
Contributor Author

kspier commented Mar 16, 2013

Not sure - it's the question cards that I noticed, but I honestly don't know if that'll cause an issue. If it does, I can submit a quick pull request. We're about to test it.

@samurailink3
Copy link
Owner

I don't think the extra underscore would cause an issue, its really more of a display label, I don't think any code is written against those characters specifically. If you notice any issues in testing, let me know.

@kspier
Copy link
Contributor Author

kspier commented Mar 16, 2013

Right now we're in an odd setup. We have a game up and running now. Three of us in there. The game only worked when started by one of us who did not have the Not Safe For Humanity set appearing in their checklist (in fact, it did not appear for two of us). The one who did have the option could start the game, and we would not get cards again.

@joshuha
Copy link
Contributor

joshuha commented Mar 16, 2013

Did everyone clear cache and restart browser?

@joshuha
Copy link
Contributor

joshuha commented Mar 16, 2013

And I do replace underscores so having multiple will make it reeeeally long.

cardText = cardText.replace(//g,'_____');

@kspier
Copy link
Contributor Author

kspier commented Mar 16, 2013

Ah, that makes sense. I can go edit the underscores and do another pull request later.

We've had a number of people clearing the cache.

@samurailink3
Copy link
Owner

Ah, ok. Thanks for the clarification @joshuha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants