Results 1 to 10 of 10
  1. #1
    bog624's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    873
    Reputation
    95
    Thanks
    1,982
    My Mood
    Aggressive

    Question Friends implementation [ as3 FSOD ]

    So this title says it all I wanted to know what it takes to implement friends on my client when its alreadly in the client.




    I looked at it and wondered if its needing the database part written or the server side or both.
    anyone got any feedback or suggestions please help.
    Good Day.



    Quote Originally Posted by DimitriSavage View Post
    *le wild bog is hunting in his natural habitat....le wild bog sees pray...le wild bog uses HACK....le wild bog wins....le wild bog is evolving....le wild bog is now le wild gob*

    LE WILD BOG IN LE POKEDEX : POKEDEX ENTRY

    LE WILD GOB IN LE POKEDEX : POKEDEX ENTRY

    TEH FINAL EVOLUTION OF LE WILD BOG : POKEDEX ENTRY


  2. #2
    SSkilly's Avatar
    Join Date
    Dec 2019
    Gender
    male
    Posts
    19
    Reputation
    34
    Thanks
    124
    If I remember correctly, the old friend lists are handled completely via app requests, so just look at the logs of your server to see what requests are being unhandled, print the query results, and go from there

  3. The Following User Says Thank You to SSkilly For This Useful Post:

    bog624 (12-27-2019)

  4. #3
    bog624's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    873
    Reputation
    95
    Thanks
    1,982
    My Mood
    Aggressive
    Quote Originally Posted by SSkilly View Post
    If I remember correctly, the old friend lists are handled completely via app requests, so just look at the logs of your server to see what requests are being unhandled, print the query results, and go from there
    Thanks Ill try this ! also when you say app requests where would I look for that?, secondly When I look at the server logs they dont say anything?

    P.s. First thanks


    - - - Updated - - -

    update so I found this when the client finished loading in plus its making a proper request.
    2019-12-27 13:24:03,571 [6] INFO Server - Request "/friends/getList" from: 127.0.0.1:53126
    2019-12-27 13:24:04,010 [6] INFO Server - Request "/sfx/monster/default_death.mp3" from: 127.0.0.1:53125
    2019-12-27 13:24:04,010 [6] INFO Server - Request "/sfx/monster/default_hit.mp3" from: 127.0.0.1:53126
    2019-12-27 13:24:04,489 [6] INFO Server - Request "/sfx/magicShoot.mp3" from: 127.0.0.1:53137
    2019-12-27 13:24:06,847 [6] INFO Server - Request "/friends/requestFriend" from: 127.0.0.1:53137
    2019-12-27 13:24:08,308 [6] INFO Server - Request "/friends/requestFriend" from: 127.0.0.1:53126
    2019-12-27 13:24:41,297 [6] INFO Server - Request "/friends/requestFriend" from: 127.0.0.1:53137
    2019-12-27 13:24:45,338 [6] INFO Server - Request "/friends/requestFriend" from: 127.0.0.1:53126

    this is from server.exe
    Last edited by bog624; 12-27-2019 at 12:06 PM. Reason: im a nerd
    Good Day.



    Quote Originally Posted by DimitriSavage View Post
    *le wild bog is hunting in his natural habitat....le wild bog sees pray...le wild bog uses HACK....le wild bog wins....le wild bog is evolving....le wild bog is now le wild gob*

    LE WILD BOG IN LE POKEDEX : POKEDEX ENTRY

    LE WILD GOB IN LE POKEDEX : POKEDEX ENTRY

    TEH FINAL EVOLUTION OF LE WILD BOG : POKEDEX ENTRY


  5. #4
    SSkilly's Avatar
    Join Date
    Dec 2019
    Gender
    male
    Posts
    19
    Reputation
    34
    Thanks
    124
    Now you just need to log the query. Can't recall how'd you do that exactly, but something like this should be sufficient:
    Code:
    foreach (var i in Query.AllKeys)
    {
        log($"{i}:{Query[i]}"); //this should give you the key and value of all data sent with the request
    }
    Make a class for the requests (just like all other requests do, assuming that this is FSOD), and then use the code above to print the query data into the console, might need to change the log to something else, can also use Console.WriteLine().

  6. #5
    bog624's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    873
    Reputation
    95
    Thanks
    1,982
    My Mood
    Aggressive
    [I]
    Quote Originally Posted by SSkilly View Post
    Now you just need to log the query. Can't recall how'd you do that exactly, but something like this should be sufficient:
    Code:
    foreach (var i in Query.AllKeys)
    {
        log($"{i}:{Query}"); //this should give you the key and value of all data sent with the request
    }
    


    Make a class for the requests (just like all other requests do, assuming that this is FSOD), and then use the code above to print the query data into the console, might need to change the log to something else, can also use Console.WriteLine().


    does this need to go RequestHandler.cs?
    Good Day.



    Quote Originally Posted by DimitriSavage View Post
    *le wild bog is hunting in his natural habitat....le wild bog sees pray...le wild bog uses HACK....le wild bog wins....le wild bog is evolving....le wild bog is now le wild gob*

    LE WILD BOG IN LE POKEDEX : POKEDEX ENTRY

    LE WILD GOB IN LE POKEDEX : POKEDEX ENTRY

    TEH FINAL EVOLUTION OF LE WILD BOG : POKEDEX ENTRY


  7. #6
    SSkilly's Avatar
    Join Date
    Dec 2019
    Gender
    male
    Posts
    19
    Reputation
    34
    Thanks
    124
    Quote Originally Posted by bog624 View Post


    does this need to go RequestHandler.cs?
    You can put it there, that would log the queries of all received requests. If you only want to log the query sent by friendlist related requests, make handlers for those and put that code in their handle functions

  8. #7
    bog624's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    873
    Reputation
    95
    Thanks
    1,982
    My Mood
    Aggressive
    Quote Originally Posted by SSkilly View Post
    You can put it there, that would log the queries of all received requests. If you only want to log the query sent by friendlist related requests, make handlers for those and put that code in their handle functions
    still lost can you help me ;-;
    Good Day.



    Quote Originally Posted by DimitriSavage View Post
    *le wild bog is hunting in his natural habitat....le wild bog sees pray...le wild bog uses HACK....le wild bog wins....le wild bog is evolving....le wild bog is now le wild gob*

    LE WILD BOG IN LE POKEDEX : POKEDEX ENTRY

    LE WILD GOB IN LE POKEDEX : POKEDEX ENTRY

    TEH FINAL EVOLUTION OF LE WILD BOG : POKEDEX ENTRY


  9. #8
    SSkilly's Avatar
    Join Date
    Dec 2019
    Gender
    male
    Posts
    19
    Reputation
    34
    Thanks
    124
    Quote Originally Posted by bog624 View Post


    still lost can you help me ;-;
    Make a new request handler for the request you want to log. In your server, you see requests like char/list.cs, make your custom ones for that.

    In general though, I really don't recommend spending time trying to add this friendlists feature, it's practically useless, even more so since it's the old version, not the new DECA one. If you want to learn adding features & things like that then I think it's much better to just make a feature from scratch, you'll add something you actually want, and something that's actually useful :P.

  10. #9
    Riigged's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Location
    no
    Posts
    3,846
    Reputation
    401
    Thanks
    10,254
    My Mood
    Devilish
    yeah I agree with skilly, even if you were to host a server with a fully functioning friends list, not much people would use it so its no point in adding more requests to a shitty source that can barely handle the amount of requests it already has to handle xD, people just lock their friends and have their friends in a guild, friends list was never something that fit in rotmg imo since guilds existed I always thought it was pointless, I think prod should have added a Inbox system (leaving messages to someone and they can read next time they come online) like what NR had instead of wasting their time on a friends system.

    you can also ******-scavenge, im sure out of all the 100+ edited fsod sources out there one of em has to have a finished friends list xD
    copy pasta is not the best but it still helps the person learn somewhat

    or you can just do what skilly said, even tho I understand it may seem confusing from someone who doesn't have a clue on how the requests are sent and received , but trial and error is a great way to learn as well
    Last edited by Riigged; 12-31-2019 at 09:32 AM.

     








  11. The Following User Says Thank You to Riigged For This Useful Post:

    bog624 (01-25-2020)

  12. #10
    bog624's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    873
    Reputation
    95
    Thanks
    1,982
    My Mood
    Aggressive
    Quote Originally Posted by Riigged View Post
    yeah I agree with skilly, even if you were to host a server with a fully functioning friends list, not much people would use it so its no point in adding more requests to a shitty source that can barely handle the amount of requests it already has to handle xD, people just lock their friends and have their friends in a guild, friends list was never something that fit in rotmg imo since guilds existed I always thought it was pointless, I think prod should have added a Inbox system (leaving messages to someone and they can read next time they come online) like what NR had instead of wasting their time on a friends system.

    you can also ******-scavenge, im sure out of all the 100+ edited fsod sources out there one of em has to have a finished friends list xD
    copy pasta is not the best but it still helps the person learn somewhat

    or you can just do what skilly said, even tho I understand it may seem confusing from someone who doesn't have a clue on how the requests are sent and received , but trial and error is a great way to learn as well
    Thanks for this !
    Good Day.



    Quote Originally Posted by DimitriSavage View Post
    *le wild bog is hunting in his natural habitat....le wild bog sees pray...le wild bog uses HACK....le wild bog wins....le wild bog is evolving....le wild bog is now le wild gob*

    LE WILD BOG IN LE POKEDEX : POKEDEX ENTRY

    LE WILD GOB IN LE POKEDEX : POKEDEX ENTRY

    TEH FINAL EVOLUTION OF LE WILD BOG : POKEDEX ENTRY


Similar Threads

  1. [AS3/FSOD] Change the color of your chat.
    By MikeRaarupBirk in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 15
    Last Post: 03-11-2017, 07:04 AM
  2. [Solved] [FSOD] Removing friends in AS3
    By rtHSE%he5hyeh in forum Realm of the Mad God Private Servers Help
    Replies: 5
    Last Post: 02-12-2017, 07:41 AM
  3. [Solved] [AS3/FSoD] Adding Flex SDK to IntelliJ
    By SwitchBot in forum Realm of the Mad God Private Servers Help
    Replies: 13
    Last Post: 10-08-2016, 10:51 PM
  4. [AS3] FSOD Client
    By HGAEHaeheadhetdhtertherh in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 52
    Last Post: 06-13-2016, 12:38 PM
  5. [NOTICE] Changes to Refer-a-Friend (Implemented)
    By Cataclypse in forum League of Legends Marketplace
    Replies: 60
    Last Post: 02-01-2015, 03:08 AM