[Release] Pokemon-Area based browser game

Page 61 of 78 FirstFirst ... 1151535455565758596061626364656667686971 ... LastLast
Results 901 to 915 of 1163
  1. #901
    Account Upgraded | Title Enabled! Raftaar is offline
    MemberRank
    Apr 2013 Join Date
    274Posts

    Re: [Release] Pokemon-Area based browser game

    Yep ..

  2. #902
    Member Raggaer is offline
    MemberRank
    Jun 2013 Join Date
    96Posts

    Re: [Release] Pokemon-Area based browser game

    Use symfony validation library

  3. #903
    Account Upgraded | Title Enabled! Raftaar is offline
    MemberRank
    Apr 2013 Join Date
    274Posts

    Re: [Release] Pokemon-Area based browser game

    Naaa a simple validation will work

    - - - Updated - - -
    @Sphinx
    try this
    Code:
    if(!preg_match('/\A[\w .,]+\z/', $text))
    {
        echo "Text contains unsupported characters.";
    }

  4. #904
    Member Raggaer is offline
    MemberRank
    Jun 2013 Join Date
    96Posts

    Re: [Release] Pokemon-Area based browser game

    Quote Originally Posted by Raftaar View Post
    Naaa a simple validation will work

    - - - Updated - - -
    @Sphinx
    try this
    Code:
    if(!preg_match('/\A[\w .,]+\z/', $text))
    {
        echo "Text contains unsupported characters.";
    }
    But symfony one looks cooler xD

  5. #905
    Account Upgraded | Title Enabled! Raftaar is offline
    MemberRank
    Apr 2013 Join Date
    274Posts

    Re: [Release] Pokemon-Area based browser game

    But make it simple ;)

  6. #906
    Apprentice counters is offline
    MemberRank
    May 2013 Join Date
    9Posts

    Re: [Release] Pokemon-Area based browser game

    i have a question .. how can i connect this game with a phpbb forum? like i want to remove the register/login function on the browsergame, and everyone who is a member on my phpbb forum should be able to play the browsergame .. so he only needs his forum account, and the name etc from the forum will be the same in the browsergame.
    how can i do that?

  7. #907
    Account Upgraded | Title Enabled! Raftaar is offline
    MemberRank
    Apr 2013 Join Date
    274Posts

    Re: [Release] Pokemon-Area based browser game

    Its simple but U need to keep your login
    ..
    Remove your register..
    In your forums's register add the parts of user's table

  8. #908
    Account Upgraded | Title Enabled! Raftaar is offline
    MemberRank
    Apr 2013 Join Date
    274Posts

    Re: [Release] Pokemon-Area based browser game

    Forum Closed?

    - - - Updated - - -

    Happy New YEar

  9. #909
    Michael Jackson ♥ Sphinx is offline
    MemberRank
    Aug 2010 Join Date
    In your bed :3Location
    906Posts

    Re: [Release] Pokemon-Area based browser game

    Need help with the wild attack shit.
    It's good that a player can't run away by browsing other pages but it is still possible to exit the battle by going to mydomain.com/
    How can i fix this?

    also my items are not working, if i want to use something (e.g. bike), i get "You have pokeball" and than error.

  10. #910
    Holy mother jesus tractor Kratos147 is offline
    MemberRank
    Jan 2011 Join Date
    CroatiaLocation
    470Posts

    Re: [Release] Pokemon-Area based browser game

    Quote Originally Posted by Sphinx View Post
    Need help with the wild attack shit.
    It's good that a player can't run away by browsing other pages but it is still possible to exit the battle by going to mydomain.com/
    How can i fix this?

    also my items are not working, if i want to use something (e.g. bike), i get "You have pokeball" and than error.
    why not have something like $_SESSION[InBattle] as a bool value, and if it's true, regardless of the location on the server, it will redirect to the battle page?

  11. #911
    Member Raggaer is offline
    MemberRank
    Jun 2013 Join Date
    96Posts

    Re: [Release] Pokemon-Area based browser game

    Quote Originally Posted by Kratos147 View Post
    why not have something like $_SESSION[InBattle] as a bool value, and if it's true, regardless of the location on the server, it will redirect to the battle page?
    Do you know that sessions can be hijacked, I would recommend a database record to keep track of whos in battle and whos not!

  12. #912
    Holy mother jesus tractor Kratos147 is offline
    MemberRank
    Jan 2011 Join Date
    CroatiaLocation
    470Posts

    Re: [Release] Pokemon-Area based browser game

    Quote Originally Posted by Raggaer View Post
    Do you know that sessions can be hijacked, I would recommend a database record to keep track of whos in battle and whos not!
    No, I did not know that. thanks for letting me know, and sure, db column for this is a great way to solve the issue as well!

  13. #913
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,607Posts

    Re: [Release] Pokemon-Area based browser game

    Quote Originally Posted by Raggaer View Post
    Do you know that sessions can be hijacked, I would recommend a database record to keep track of whos in battle and whos not!
    PHP sessions cannot be hijacked unless someone steals your php session id cookie.

  14. #914
    ThuGie.NL - Webmaster ThuGie is offline
    MemberRank
    Apr 2006 Join Date
    NetherlandsLocation
    1,131Posts

    Re: [Release] Pokemon-Area based browser game

    Well you could also hook a session to the user ip.. so when somebody does a hijack, it wont really work. as the ip would normally be different.
    Or the user is on same network aka same ip, but normally only people that live in same building would have that, or somebody who lives close by and hijacked your wifi connection,
    Meaning you need to secure your shit up, and its not a problem with the site itself.

  15. #915
    Account Upgraded | Title Enabled! Mugaru is offline
    MemberRank
    Feb 2012 Join Date
    190Posts

    Re: [Release] Pokemon-Area based browser game

    But think more realistic, who wants to do that lot of work, to hijack a PHP Session in a Pokemon game? You should be a real no-lifer if you hack little children...

    OT: I should use a session for that, because i don't really think people are in a battle more than 10 minuts. Making a DB check for only this thing will make your game much more slow.



Advertisement