[Functional POC] DiscordCTR

Discussion in '3DS - Homebrew Development and Emulators' started by MarcusD, Jul 7, 2017.

?

What scripting language should I add?

  1. *none*

    27.6%
  2. Lua 5.1

    31.0%
  3. Python 2.7.12

    41.4%
  4. ChaiScript (C++ -esque)

    0 vote(s)
    0.0%
  5. *something else*

    0 vote(s)
    0.0%
  1. MarcusD
    OP

    MarcusD nobody's hero

    Member
    1,178
    2,362
    Oct 16, 2015
    Hungary
    a pixel between life and death
    DiscordCTR is a Discord client (and optionally a bot client*[1]) written from the ground up for old3DS*[2] and new3DS

    Features:
    • see messages
    • send messages
    • scroll the message list
    • Unicode font renderer using shared font
    • built-in emoji support (Google Emoji, aka. Blobs <3)
    • ...uhm...
    • there's partial bot support*[1]
    • ...

    Planned features: (mosly in order)
    • scripting (see poll)
    • a proper GUI inspired by the Android version
    • embed renderer
    • voice chat*[2]
    • custom emoji support

    Usage: (as for now)
    1. get your bot or user token (please don't ask in the thread for help regarding this! use Google)
    2. create a file on your 3DS's SDCard root named ".DiscordCTR.ini" (note the starting dot)
      Code:
      [Auth]
      Token=mfa.something
      
      (replace "mfa.something" with your user token. please note that your user token might not start with "mfa.")
    3. ...start DiscordCTR?

    Controls: (as for now)
    • START - connect/disconnect
    • SELECT - exit
    • DPAD UP/DOWN or X/B - scroll up/down
    • hold L/R - scroll faster
    • A - select server/channel or bring up keyboard
    • Y - go back one menu

    Notes:
    1. bot support is only partially implemented, and later it'll only work with very small bots... if you try to use a bot token which is in many servers then Discord will constantly kick you out for not sharding the connection (which is not implemented, and never will be due to the weakness and the limited resources of the 3DS)
    2. even though this is being tested on a 2DS, I can't guarantee that the old3DS hardware (CPU and/or the wifi card) will always work with every feature this is going to get. old3DS might not be powerful enough to handle the incoming/outcoming voice session or just the crypto itself used by the voice protocol. the same is the case with emojis: it may be possible that eventually the 3DS will run out of usable memory I can put the emojis in. you have been warned!
    3. the 3dsx build is only provided for convenience for users who can't install cias. please note that if you encounter a bug/crash using the 3dsx version I might not provide support due to the limitations *hax has (even though Rosalina loads 3dsx like a normal application, this also applies to Rosalina). please use the cia version if possible as that's the only build I'll be supporting!

    Media:
    Screenshots
    Video

    Downloads: (only for testing purposes)

    Important note regarding downloads:
    Due to the recent Discord Developers ToS change, the client developer is responsible for what their users do with it, and because of this I won't be releasing the newest version to the public. Since the public version uses APIv5 (and the latest version uses APIv6) the public DiscordCTR will permanently stop working on 2017-10-16. I'm really sorry for this (but I'd rather not be banned from using the API or the whole service itself) :cry:
     
    Last edited by MarcusD, Sep 14, 2017
    klear, Galaxy☆Guy, LeoIeiri and 4 others like this.
  2. iAqua

    iAqua GBAtemp Addict

    Member
    GBAtemp Patron
    iAqua is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    2,745
    2,244
    Dec 7, 2015
    Antarctica
    Another one? Nice job.
     
    StarTrekVoyager likes this.
  3. Alex119098

    Alex119098 GBAtemp Regular

    Member
    126
    10
    Dec 6, 2015
    United States
    Deep Space
    I like how there are different Discord Clients. Keep up the good work!
     
  4. smileyhead

    smileyhead Occasional Reporter

    Member
    2,692
    5,867
    Aug 31, 2015
    Hungary
    Budakeszi, Hungary
    looks great!
     
  5. VinsCool

    VinsCool Comfortably Numb

    Member
    GBAtemp Patron
    VinsCool is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    11,849
    28,335
    Jan 7, 2014
    Canada
    Another World
    Pretty nice!
     
  6. hurrz

    hurrz GBAtemp Regular

    Member
    197
    74
    Apr 17, 2017
    Gambia, The
    Maybe it is the same dev distributing two versions because they cannot decide which one is best ...

    /s
     
  7. James310

    James310 GBAtemp Advanced Fan

    Member
    879
    319
    Oct 4, 2015
    United States
    Somewhere in California
    This Discord is better since I heard the other one uses frequent requests to the API that can get your account banned
     
  8. Sad_Chara

    Sad_Chara Newbie

    Newcomer
    3
    0
    Jul 3, 2017
    United States
    Its stuck at always saying Testing WebSocket shit on my n3ds xl
     
  9. Starfighter-Suicune

    Starfighter-Suicune Member

    Newcomer
    22
    2
    Dec 19, 2016
    Germany
    Hm, it indeed works. A little bit messy with all the auth stuff etc.
    Also scrolling up& down refuses to work for me.
    The channel list font is too huge right now, sometimes hard to read xD
     
  10. Invision

    Invision Member

    Newcomer
    45
    44
    Mar 6, 2017
    Canada
    Discord
    It's stuck on "Testing WebSocket shit"
    I'm pretty sure I entered my token correctly??
     
  11. MarcusD
    OP

    MarcusD nobody's hero

    Member
    1,178
    2,362
    Oct 16, 2015
    Hungary
    a pixel between life and death
    weird... I don't see *anything* that would cause a softlock... did you both press START? it doesn't autoconnect

    you need to hold the button to scroll... and it's also running around 30FPS with only 5 servers, so it might be lagging too much for it to scroll at all
    oh, and I accidently mixed up the buttons, so scrolling is opposite of what you'd expect
     
  12. Invision

    Invision Member

    Newcomer
    45
    44
    Mar 6, 2017
    Canada
    Discord
    fuck

    also uh by the w-
    *ahem*
    Also, guild names can wrap around the screen, causing the next guild down to be covered.
     
  13. MarcusD
    OP

    MarcusD nobody's hero

    Member
    1,178
    2,362
    Oct 16, 2015
    Hungary
    a pixel between life and death
    yes, that's normal :P
     
  14. rahaat

    rahaat Member

    Newcomer
    10
    0
    Dec 17, 2016
    Help please!! After pressing start and loading it up, it gets stuck on "parsing emoji" and freezes then crashes, i'm using a O3DS btw, but can you help me!
     
  15. MarcusD
    OP

    MarcusD nobody's hero

    Member
    1,178
    2,362
    Oct 16, 2015
    Hungary
    a pixel between life and death
    umm... how did you get a version with emojis? y'know, the version with emojis is *not* public, and you shouldn't have it! if you got it from me then ask me, otherwise blame the person who gave you a broken build :)
     
  16. smileyhead

    smileyhead Occasional Reporter

    Member
    2,692
    5,867
    Aug 31, 2015
    Hungary
    Budakeszi, Hungary
    Oh shit.
    *Grabs popcorn*
     
  17. rahaat

    rahaat Member

    Newcomer
    10
    0
    Dec 17, 2016
    Strange:mellow:, i downloaded DiscordCTR thought TitleDB on FBI manager-
    Did i do something wrong-- as idek
     
  18. rahaat

    rahaat Member

    Newcomer
    10
    0
    Dec 17, 2016
    Also i think you got the wrong idea here, even after using the CIA, after it starts to load and "Parsing PM" and then emoji's, it crashes, any ideas?
     
  19. MarcusD
    OP

    MarcusD nobody's hero

    Member
    1,178
    2,362
    Oct 16, 2015
    Hungary
    a pixel between life and death
    after enough thinking I realized that there's no print for parsing emojis, so I'm apologizing for that :sad: as for why it crashes on parsing emojis, it's because the latest public commit is *really* old, unusable, unstable piece of :shit:, so that explains why it crashes... the current commits handle memory much better than previous versions, so there's that

    as for why I'm not releasing the latest version to the public... I'll edit the first post in a bit
     
  20. smileyhead

    smileyhead Occasional Reporter

    Member
    2,692
    5,867
    Aug 31, 2015
    Hungary
    Budakeszi, Hungary
    may it rest in peace.
    http://www.webcountdown.net/?a=u8qP7pO&k=oA1V