• Scoreboard and Points Live. Read about it HERE

    current issues

    1 - NEW PLAYERS - Players who created an account on or after Oct 15 2023 are not able to log into the forum
    2 - AWOL - We do not have an AWOL button under the ACTIVE tab yet. Please check each game to see if you are AWOL.

    Thanks.

  • Welcome to Major Command's RISK Game forum.

    If you are a registered player, please log in:

    LOG IN

    If you are new to Major Command and would like to
    play our RISK game online. Then please sign up here:

    SIGN UP

Cause of deleted games

Evan

Jr. Programmer I
O.G.
Awesome Player
M.C. Play Testers
Joined
Sep 27, 2009
Messages
1,973
I was trying to delete two test games for Rj.
I did the first one by hand, no problem
Then I wrote a sql script to do the second one. (Which emulated what I had done by hand).
I wrote the script thinking that I could add the feature to the admin tool in case some games need to be deleted in the future
well, when I ran the script, it deleted all the games
I reviewed it a thousand times and it seemed like what was happening was impossible

Finally I figured it out. The script did in fact kill all the games.

For the technical folks around, what happened is this:
I wrote a stored procedure to delete a game. The procedure accepted a "gameid" as an argument. It then executed sql delete statements such as "delete from Games where GameId = gameid".

I figured, with the where clause, there was no way it could delete anything more than it was supposed to. I had forgotten, that while mysql is usually case-sensitive, it is not in this case with regard to the column name in the where clause. So "gameid" wasn't returning the passed argument to the clause, but instead was reference the GameId column itself.
In other words, delete every row in teh Games table where the GameId column equals the GameId column, i.e., every single row.
 

RjBeals

Map Commander
O.G.
Awesome Player
AADOMM
Joined
Jul 25, 2009
Messages
1,866
Damn evan - I was just about to win my first game !

I guess that's one way to start out with a clean slate - but curious - if this happens in the future when there are lots of paying players, will we be able to restore the games from a backup?
 

RjBeals

Map Commander
O.G.
Awesome Player
AADOMM
Joined
Jul 25, 2009
Messages
1,866
also - why the change of the name?
 

Evan

Jr. Programmer I
O.G.
Awesome Player
M.C. Play Testers
Joined
Sep 27, 2009
Messages
1,973
Damn evan - I was just about to win my first game !

I guess that's one way to start out with a clean slate - but curious - if this happens in the future when there are lots of paying players, will we be able to restore the games from a backup?

Yes, we will
 

Evan

Jr. Programmer I
O.G.
Awesome Player
M.C. Play Testers
Joined
Sep 27, 2009
Messages
1,973
also - why the change of the name?

Jess was hating on my name :(

Eventually, I will refrain from abusing my power to change my name. But i will likely change it a few times before we go public. I dont like my current name. Perhaps I should start a suggestion thread. Jess always makes these lame ass suggestions relative to being a programmer. I want to be a KILLER. This is war isnt it?
 

RjBeals

Map Commander
O.G.
Awesome Player
AADOMM
Joined
Jul 25, 2009
Messages
1,866
well.. i started a couple of games - search for them.

And "Badorties" shouldn't criticize names.
 

WidowMakers

Senior Cartographer
O.G.
Awesome Player
AADOMM
M.C. Play Testers
Joined
Jan 11, 2010
Messages
2,348
Killer is good.
Kill3r as well
K1ll3r if you really want to go with a more l33t style
 

Badorties

Boss General (Retired on a Desert Island)
O.G.
Awesome Player
Gentlemen of Leisure
AADOMM
M.C. Play Testers
The Embassy
The Wiki Bar
Joined
Jul 25, 2009
Messages
6,398
I think we should do a point reset. No point in players have wins on now phantom games. Lets start fresh.
 

Shepherd

Studio Production Manager
CentCom
O.G.
Awesome Player
AADOMM
M.C. Play Testers
Joined
Oct 2, 2009
Messages
3,962
eh, shit happens. That's why we're in beta, right?

As for the name, I was cool with evan. There was something very comforting about knowing our programming was in the hands of somebody with a real name. When things go wrong with the site, you don't want to have to rely on some guy called "Fartmeister" to fix it.

Actually, it would be an interesting twist if all of the site mods just kept it simple and professional and used actual names.
 

Cassidy

Deputy General
Awesome Player
Joined
Dec 13, 2009
Messages
831
I liked "Evan."

And as long as you know what happened to our games … :D
 
Last edited:

Badorties

Boss General (Retired on a Desert Island)
O.G.
Awesome Player
Gentlemen of Leisure
AADOMM
M.C. Play Testers
The Embassy
The Wiki Bar
Joined
Jul 25, 2009
Messages
6,398
eh, shit happens. That's why we're in beta, right?

As for the name, I was cool with evan. There was something very comforting about knowing our programming was in the hands of somebody with a real name. When things go wrong with the site, you don't want to have to rely on some guy called "Fartmeister" to fix it.

Actually, it would be an interesting twist if all of the site mods just kept it simple and professional and used actual names.

yeah wouldnt that be interesting, I would be... Jess. I dunno if I could call you Ron though. It sounds too porno.
 

Evan

Jr. Programmer I
O.G.
Awesome Player
M.C. Play Testers
Joined
Sep 27, 2009
Messages
1,973
Im changin my name to Ron!

Or, Ronaldo
 

Badorties

Boss General (Retired on a Desert Island)
O.G.
Awesome Player
Gentlemen of Leisure
AADOMM
M.C. Play Testers
The Embassy
The Wiki Bar
Joined
Jul 25, 2009
Messages
6,398
What about Ronaldildo
 

Shepherd

Studio Production Manager
CentCom
O.G.
Awesome Player
AADOMM
M.C. Play Testers
Joined
Oct 2, 2009
Messages
3,962
I'll be Andy... you know, like from the Shawshank Redemeption? Nothing creepy about that.
 

Shepherd

Studio Production Manager
CentCom
O.G.
Awesome Player
AADOMM
M.C. Play Testers
Joined
Oct 2, 2009
Messages
3,962
You could be Ron Parody

yep, never heard that one.

Anybody watch Weeds? I love "El Andy" - you could be "El Evan".
 
Top