1. Post #1441
    AtomiCasd's Avatar
    June 2011
    588 Posts
    Don't store it based on ID, since that violates the "never trust the client" law.
    The client should be proving who they are rather than instructing who they are.
    Personally I'd store them in a hash table with they key composed of the client's IP, return UDP port and a secret id that only that client knows about.
    Coming back to this. What if I was on the same network as a player, sniffed his secret id, and then hijacked his port as soon as he disconnected and then kept going as if I was that player?

    Is there a protection against this? I guess this is the setback of using UDP.
    Reply With Quote Edit / Delete Windows 7 Norway Show Events Winner Winner x 1 (list)

  2. Post #1442
    www.bff-hab.de
    Dennab
    February 2009
    7,832 Posts
    Get one of those male pin headers from ebay, and solder the wire to it. They'll be holding much tougher than bare wires.

    Reply With Quote Edit / Delete Windows 7 Germany Show Events Informative x 3Agree x 2Winner x 1Dumb x 1Programming King x 1 (list)

  3. Post #1443
    Gold Member
    Lexic's Avatar
    March 2009
    5,782 Posts
    Coming back to this. What if I was on the same network as a player, sniffed his secret id, and then hijacked his port as soon as he disconnected and then kept going as if I was that player?

    Is there a protection against this? I guess this is the setback of using UDP.
    Well you'd have to block his "I'm disconnecting now" packet.
    To eliminate passive MiTM attacks you'll need to set up some kind of handshake encryption. For the only example I have to hand, see Minecraft 1.3's protocol which is designed to stop that.
    That's vulnerable to an active MiTM attack where the attacker reroutes the user's packets their own attack server and do lots of spoofing, but to be honest that's pretty unlikely to happen, and if it is happening your user has more to worry about than someone pretending to be them in a game.
    However, if you need to protect against it, look into SSL.
    Reply With Quote Edit / Delete Mac United Kingdom Show Events Agree Agree x 1Winner Winner x 1 (list)

  4. Post #1444
    laylay's Avatar
    November 2007
    599 Posts
    Now the fun begins.

    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Winner Winner x 31Agree Agree x 1Friendly Friendly x 1 (list)

  5. Post #1445
    www.bff-hab.de
    Dennab
    February 2009
    7,832 Posts
    Kablooey
    Reply With Quote Edit / Delete Windows 7 Germany Show Events Agree Agree x 9Winner Winner x 1 (list)

  6. Post #1446
    Gold Member
    Lord Ned's Avatar
    April 2006
    3,702 Posts
    Even if he had've said to me, either publicly or privately "Hey man, this is sort of a bad time, but I'm aware of this and I'll fix it ASAP" then I would have understood and all would have been fine.

    It's unreasonable to play the victim card and say that you weren't in a position to fix it after you've just blown off attempts to alert you to the problem.
    I agree that he could have handled it better and just said "Thank you for notifying me of the problem. I have devised a fix and will implement it as soon as I fly home and can access the SMB code base." However, he did say that he was aware of the problem and that it wasn't a significant problem to him because he had the database backups. Facepunch took this as 'Oh he doesn't care' instead of 'He is aware of the issue and has backups to restore it if someone does mess with it.' - Since the data can be recovered, it's not the end all if someone gets in right this minute.

    He knew the issue was there, and he didn't blow off attempts to notify. He didn't have his code with him and couldn't release a patch, and it was right around a holiday. What is he supposed to do, drop his entire life, fly home, fix the code on a holiday and release a patch and then fly back out? The issue had been there for months, another 3 or 4 days wouldn't have hurt.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Dumb Dumb x 7Disagree Disagree x 2Winner Winner x 1 (list)

  7. Post #1447
    ArgvCompany's Avatar
    June 2012
    448 Posts
    I agree that he could have handled it better and just said "Thank you for notifying me of the problem. I have devised a fix and will implement it as soon as I fly home and can access the SMB code base." However, he did say that he was aware of the problem and that it wasn't a significant problem to him because he had the database backups. Facepunch took this as 'Oh he doesn't care' instead of 'He is aware of the issue and has backups to restore it if someone does mess with it.' - Since the data can be recovered, it's not the end all if someone gets in right this minute.

    He knew the issue was there, and he didn't blow off attempts to notify. He didn't have his code with him and couldn't release a patch, and it was right around a holiday. What is he supposed to do, drop his entire life, fly home, fix the code on a holiday and release a patch and then fly back out? The issue had been there for months, another 3 or 4 days wouldn't have hurt.
    Wasn't the conversation on Twitter public? That makes those days much more important since the public knew about the flaw.
    Reply With Quote Edit / Delete Windows 7 Germany Show Events Winner Winner x 1 (list)

  8. Post #1448
    Commie
    supersnail11's Avatar
    September 2008
    6,613 Posts
    I agree that he could have handled it better and just said "Thank you for notifying me of the problem. I have devised a fix and will implement it as soon as I fly home and can access the SMB code base." However, he did say that he was aware of the problem and that it wasn't a significant problem to him because he had the database backups. Facepunch took this as 'Oh he doesn't care' instead of 'He is aware of the issue and has backups to restore it if someone does mess with it.' - Since the data can be recovered, it's not the end all if someone gets in right this minute.

    He knew the issue was there, and he didn't blow off attempts to notify. He didn't have his code with him and couldn't release a patch, and it was right around a holiday. What is he supposed to do, drop his entire life, fly home, fix the code on a holiday and release a patch and then fly back out? The issue had been there for months, another 3 or 4 days wouldn't have hurt.

    No, he just didn't care.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 19Winner Winner x 1 (list)

  9. Post #1449
    Gold Member
    Lord Ned's Avatar
    April 2006
    3,702 Posts
    Like I said, he could have handled it better. However, in the grand scheme of life if someone did decide to fuck with the database he could have just waited until he got home, wrote a patch, rolled that out and then rolled back the database, and life would have gone on.

    Instead, it turned into a harassment game.

    I'm still not seeing what you guys thought he should have done. I personally think he could have just acknowledged the problem and said he'd be on it as soon as he could and I think FP would have left it alone, had it been fixed relatively soon after.

    It seems like you guys were more pissed about his reply of "It's fine" as a way of saying "I know, I have a plan" than anything else and FP used that as a basis for their actions.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Dumb Dumb x 7Disagree Disagree x 6Winner Winner x 1 (list)

  10. Post #1450
    Gold Member
    esalaka's Avatar
    July 2007
    9,603 Posts
    "Trust me. It's fine." sounds more like "I'm not intending to change this I see no issue with it" than anything else.
    Reply With Quote Edit / Delete Windows 7 Finland Show Events Agree Agree x 23Disagree Disagree x 1Winner Winner x 1 (list)

  11. Post #1451
    Translates to "Too lazy, cba to fix"
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events Zing Zing x 4Funny Funny x 1Winner Winner x 1 (list)

  12. Post #1452
    HeroicPillow's Avatar
    July 2009
    2,461 Posts
    Like I said, he could have handled it better. However, in the grand scheme of life if someone did decide to fuck with the database he could have just waited until he got home, wrote a patch, rolled that out and then rolled back the database, and life would have gone on.
    all he had to say was one word; a simple one word reply: "Thanks". Hell, i'm always ecstatic when someone goes out of their way to find bugs in my software and then tells me about it. Even more so when they offer to help me fix it!
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 6Friendly Friendly x 2Winner Winner x 1 (list)

  13. Post #1453
    voodooattack's Avatar
    October 2009
    1,661 Posts
    Ah, a good old-school page full of debate about TeamMeat, it's glorious.
    Reply With Quote Edit / Delete Windows 7 Egypt Show Events Funny Funny x 9Agree Agree x 3Winner Winner x 1 (list)

  14. Post #1454
    Gold Member
    gparent's Avatar
    January 2005
    3,928 Posts
    Like I said, he could have handled it better.
    Definitely. In fact, you could say that his reaction is a direct cause of the hacking.

    "I knew what I was doing! I wrote an insecure system involving directly connecting to a MySQL database with built-in credentials because I naively assumed that every single person on the internet (especially kids) were motherfucking angels who would never think to hack me. I tend decided to blow them off because I'm a god damn genius when it comes to coding and anyway I had backups."

    You're buying that excuse? No, sorry, people who know what they are doing do NOT do that mistake. It's simply PR and face saving. And you're falling for it.
    Reply With Quote Edit / Delete Windows XP Show Events Agree Agree x 4Winner Winner x 1 (list)

  15. Post #1455
    Gold Member
    Lord Ned's Avatar
    April 2006
    3,702 Posts
    You're buying that excuse? No, sorry, people who know what they are doing do NOT do that mistake. It's simply PR and face saving. And you're falling for it.
    I'm not saying that he shouldn't have written it better in the first place. However, I'm more interested in the fact that Facepunch claims that he's not the victim, and that apparently their actions are justified by his responses.

    Just because someone leaves a door unlock doesn't mean they're specifically inviting people to rob them.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Dumb Dumb x 2Winner Winner x 1 (list)

  16. Post #1456
    Gold Member
    ROBO_DONUT's Avatar
    March 2005
    3,028 Posts
    If you don't give people a swift kick in the ass on the small things, they go and fuck up where it actually matters.

    Some Facepunchers poking around in Meatworld is considerably more benign than whatever might've occurred if he continued this carelessness elsewhere. Needless to say, he won't be making this mistake again. It's what he needed, even if he didn't appreciate it.
    Reply With Quote Edit / Delete Windows 7 Show Events Agree Agree x 12Funny Funny x 1Winner Winner x 1 (list)

  17. Post #1457
    Gold Member
    Jookia's Avatar
    July 2007
    5,957 Posts
    "@charliesome Currently away from the source, will fix when I get back."

    ENTIRE SITUATION AVOIDED

    Edited:

    I really don't see how hard it'd be to secure. Give each user an account for the world when they buy the game, and use that to access the database through some serverside scripts.
    Reply With Quote Edit / Delete Linux Australia Show Events Agree Agree x 8Winner Winner x 1 (list)

  18. Post #1458
    Exxon's Avatar
    January 2012
    347 Posts


    Not bad from a single day of TheNewBoston C++ video tutorials.
    My only previous knowledge was Game Maker Language, and I must say it has helped a lot knowing it.

    Saves/Loads your monsters on a .txt file, and same with the highscore. Not suppose to be nice, just suppose to work.

    Edited:

    and I just realized the menu is messed up.... let's fix that.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Winner Winner x 4Funny Funny x 2 (list)

  19. Post #1459
    simie's Avatar
    March 2008
    130 Posts
    What better way to spend friday night than particles and damage maps?

    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Artistic Artistic x 24Winner Winner x 10Programming King Programming King x 2 (list)

  20. Post #1460
    Gold Member
    Zeh Matt's Avatar
    May 2011
    545 Posts
    What better way to spend friday night than particles and damage maps?

    Pew Pew Pew Pew
    Reply With Quote Edit / Delete Windows 7 Germany Show Events Funny x 11Agree x 3Dumb x 2Informative x 1Winner x 1 (list)

  21. Post #1461
    Gold Member
    Lord Ned's Avatar
    April 2006
    3,702 Posts
    What better way to spend friday night than particles and damage maps?
    I'm sorry, I'm still enjoying/caught up on the fact you can LASER AN ENTIRE SHIP IN HALF.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 2Winner Winner x 1 (list)

  22. Post #1462
    Gold Member
    Smashmaster's Avatar
    April 2005
    1,337 Posts
    What better way to spend friday night than particles and damage maps?
    Extremely reminiscent of S.P.A.Z. Good job!
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 1Winner Winner x 1 (list)

  23. Post #1463
    Gold Member
    Hyzo's Avatar
    February 2008
    594 Posts
    So I lost all my ambition to follow up on my curses roguelike and decided to use my little knowledge of lua from garrysmod in making a game with Löve.



    So far there's no collision/animations/etc. but it's a start. Still haven't decided what to do with it, might just use it for learning experience.
    Reply With Quote Edit / Delete Windows 7 Sweden Show Events Winner Winner x 2 (list)

  24. Post #1464
    Ybbats's Avatar
    February 2012
    810 Posts
    He is obviously hurt by the shitty programmer comments
    Was going to say, he's a shitty psychologist.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Winner Winner x 1Funny Funny x 1 (list)

  25. Post #1465
    Gold Member
    ZenX2's Avatar
    February 2009
    3,904 Posts
    Google's honoring Alan Turing's birthday with a set of Turing Machine puzzles
    Reply With Quote Edit / Delete Linux United States Show Events Winner Winner x 6Friendly Friendly x 1 (list)

  26. Post #1466
    Grimpunch Games
    TM Gmod's Avatar
    May 2005
    515 Posts
    Progress on my artillery thingy. Splitscreen multiplayer and varying shot velocity :D
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Artistic Artistic x 6Winner Winner x 2 (list)

  27. Post #1467
    Naelstrom's Avatar
    June 2010
    1,957 Posts
    I've started to use CMake, and I agree; It feels much cleaner and easier to customize than autotools.
    Plus who wouldn't love this adorable, clean, and colorful makefile?
    Reply With Quote Edit / Delete Linux United States Show Events Artistic Artistic x 1Useful Useful x 1Winner Winner x 1 (list)

  28. Post #1468
    Gold Member
    ShaunOfTheLive's Avatar
    November 2007
    8,685 Posts
    Translates to "Too lazy, cba to fix"
    But Mr. Charlie Somerville was going to basically fix it for them. Sounds like they've got some weird pride issue with their code, like "don't tell me it has any flaws, I'm the best coder la la la la la dee da"
    Reply With Quote Edit / Delete Windows 7 Canada Show Events Agree Agree x 4Winner Winner x 1 (list)

  29. Post #1469
    Gold Member
    ZenX2's Avatar
    February 2009
    3,904 Posts
    Mr. Charlie Somerville is Swifty Shiftles
    Reply With Quote Edit / Delete Linux United States Show Events Agree Agree x 2Winner Winner x 1 (list)

  30. Post #1470
    Gold Member
    ShaunOfTheLive's Avatar
    November 2007
    8,685 Posts
    The exhalted creator of JSOS
    Reply With Quote Edit / Delete Windows 7 Canada Show Events Funny Funny x 3Winner Winner x 1 (list)

  31. Post #1471
    Gold Member
    Robber's Avatar
    January 2006
    5,350 Posts
    Get one of those male pin headers from ebay, and solder the wire to it. They'll be holding much tougher than bare wires.

    Wow, I didn't read your post until now and that's exactly what I did an hour ago. It works great. Thanks.
    Reply With Quote Edit / Delete Windows 7 Austria Show Events Useful Useful x 1Friendly Friendly x 1Winner Winner x 1 (list)

  32. Post #1472
    Reply With Quote Edit / Delete Mac Netherlands Show Events Informative Informative x 4Winner Winner x 1 (list)

  33. Post #1473
    Gold Member
    Lexic's Avatar
    March 2009
    5,782 Posts
    Mr. Charlie Somerville is Swifty Shiftles
    AKA The Turbulator
    Reply With Quote Edit / Delete Mac United Kingdom Show Events Agree Agree x 1Late Late x 1Funny Funny x 1Winner Winner x 1 (list)

  34. Post #1474
    AKA Turbanasaurus Rex
    Reply With Quote Edit / Delete Windows 7 Show Events Artistic x 14Useful x 1Disagree x 1Funny x 1Agree x 1Optimistic x 1Programming King x 1Winner x 1Informative x 1 (list)

  35. Post #1475
    Gold Member
    dije's Avatar
    December 2008
    4,334 Posts
    Would anyone of you read a small devblog of my project if I were to make one? I want to document the progress of making it and a devblog feels like a good way. Maybe rate agree/disagree?
    Reply With Quote Edit / Delete Mac Sweden Show Events Agree Agree x 10Winner Winner x 1 (list)

  36. Post #1476
    Place a message on my profile stating how you feel towards me. (obligatory: scriptkiddy destroyer)
    Turing's Avatar
    March 2012
    3,137 Posts
    i just melted a metal nail with electricity.
    it was cool.
    Reply With Quote Edit / Delete Windows 7 Estonia Show Events Informative x 9Dumb x 3Winner x 3Disagree x 1Programming King x 1 (list)

  37. Post #1477

    January 2012
    93 Posts
    i just melted a metal nail with electricity.
    it was cool.
    Post pics
    Reply With Quote Edit / Delete Windows XP Russian Federation Show Events Agree Agree x 3Winner Winner x 1 (list)

  38. Post #1478
    Team Hamster
    Mordi's Avatar
    January 2012
    254 Posts
    Would anyone of you read a small devblog of my project if I were to make one? I want to document the progress of making it and a devblog feels like a good way. Maybe rate agree/disagree?
    Yes. Well, it depends on what kind of project it is but I really like reading devlogs of games and applications, and anything really. Convinced a friend to start making a dedicated site to devlogs. Even has one of those hipstery r's at the end. http://devlogr.com/

    By the way, if anyone wants to help me out with a problem concerning blending and framebuffers, I posted a question on StackOverflow some days ago. http://stackoverflow.com/questions/1...ar-transparent
    Reply With Quote Edit / Delete Windows 7 Norway Show Events Winner Winner x 1 (list)

  39. Post #1479
    Winded's Avatar
    April 2012
    78 Posts
    Working on some third person camera and movement mechanics.
    Also, pro animations.
    Reply With Quote Edit / Delete Windows 7 Finland Show Events Funny Funny x 8Winner Winner x 2 (list)

  40. Post #1480
    Philly c's Avatar
    February 2008
    483 Posts
    By the way, if anyone wants to help me out with a problem concerning blending and framebuffers, I posted a question on StackOverflow some days ago. http://stackoverflow.com/questions/1...ar-transparent
    You shouldn't completely disable blending when rendering to your frame buffer. You should enable or disable it when you need it just like you would when rendering straight to the back buffer.
    Reply With Quote Edit / Delete Windows 8 United Kingdom Show Events Winner Winner x 1 (list)