Advertising (This ad goes away for registered users. You can Login or Register)

VitaCord - A Discord Client for Vita

HENkaku is a native Homebrew Enabler for the PS Vita and PS TV. It lets you run homebrews on the PS Vita
User avatar
Arkanite
Posts: 25
Joined: Fri Aug 19, 2016 3:21 am

Re: VitaCord - A Discord Client for Vita

Post by Arkanite » Fri Jun 02, 2017 4:46 pm

No worries,
I'll create a new branch for the GUI and you can go over it, make changes, or ban me if needed :D
Whatever you like you may use, no credit required.
But if we're ever in the same town, you owe me a High-Five!
Ark.
Advertising

JhonDoeA
Posts: 19
Joined: Fri May 12, 2017 9:17 am

Re: VitaCord - A Discord Client for Vita

Post by JhonDoeA » Fri Jun 02, 2017 5:08 pm

Arkanite wrote:No worries,
I'll create a new branch for the GUI and you can go over it, make changes, or ban me if needed :D
Whatever you like you may use, no credit required.
But if we're ever in the same town, you owe me a High-Five!
Ark.
Ok but don't look into main.cpp if you don't want to be sad xD jk but it is a lot of spagetthi code. Gotta do something about that first then add GUI.
Advertising

JhonDoeA
Posts: 19
Joined: Fri May 12, 2017 9:17 am

Re: VitaCord - A Discord Client for Vita

Post by JhonDoeA » Sat Jun 03, 2017 7:10 pm

I updated most stuff and implemented a better GUI.

https://github.com/devingDev/VitaCord/r ... a_cord.vpk

Needs more UI stuff though + more funtions

Also I need a way to line break text where it would go over screen. Maybe you know something?

User avatar
dmaskell92
Moderator
Posts: 1165
Joined: Tue Mar 12, 2013 5:07 pm
Location: New York

Re: VitaCord - A Discord Client for Vita

Post by dmaskell92 » Sun Jun 04, 2017 3:17 pm

I also do PhotoShop work if you need assistance. Google my name and go to images most of my work shows up.
[spoiler]Image[/spoiler]
Does it quit? If not, then it's legit... Too legit.

Nvidia Shield Portable 48gb
Dreamcast: SEGA Sports - 80gb IDE HDD
4k PS3 Super Slim OFW 4.82
1k PSP: 6.60 ME-2.3
1K PSVita: Ensō 32GB - 64GB SD2VITA - 64GB PSVSD
Image

User avatar
Arkanite
Posts: 25
Joined: Fri Aug 19, 2016 3:21 am

Re: VitaCord - A Discord Client for Vita

Post by Arkanite » Mon Jun 05, 2017 6:25 am

sorry for the lack of communication. (work first, unfortunately)

I don't use vita2d pgf, but vita2d_pgf_draw_text should handle new line operator just fine.
You could write a simple word-wrap function to take care of the text width for each messages.
apply it once to your message content as the message is send or received.

Your login looks really nice!

JhonDoeA
Posts: 19
Joined: Fri May 12, 2017 9:17 am

Re: VitaCord - A Discord Client for Vita

Post by JhonDoeA » Mon Jun 05, 2017 11:29 am

djmaskell92 I am sorry but arkanite already has took over the UI part. If you want though you might make "themes" based on the UI he makes or if he decides to stop it you could take over the UI.


Arkanite dont worry, I could improve coding UI meanwhile, it turned out pretty good.


yeah I meant vita2d_pgf_draw_text .
Aha so it really can handle new lines, so I need to find out where to split the text exactly, which wouldn't be hard if all symbols were the same width I guess. Just split after x characters.

Edit: do you have an idea how I should handle discord , emojis , user sent pictures , and user icons.
As for emojis afaik each server can have their own . Second one would need some parser to search for image links and then download a thumbnail ( not full image because... too big? ) and user icons ... well if you are in a server with 10k+ users downloading 10 k images might be bad :>


Also I would say thanks but the login screen is just a screen cap so it is not my work :)

User avatar
Arkanite
Posts: 25
Joined: Fri Aug 19, 2016 3:21 am

Re: VitaCord - A Discord Client for Vita

Post by Arkanite » Mon Jun 05, 2017 5:07 pm

Thanks for understanding.

vita2d_pgf_draw_text should, i know vita2d_draw_text does and with a mono-space font it works very well.

I haven't had a chance to go over the entire project. Which Discord API are you using?
Incoming images and user icon shouldn't be a problem if handled correctly, you have the right idea though.

If you couldn't be bothered handling memory, loading and unloading on the fly for a (potentially) large amount of sent image, i guess you could always mimic how the Vita Messenger App handles them, with a single 'image-attached' icon on the message, so the user has to click the message to view the image.

For User Icons,
wait!... 10k+ user Icons??? holy ball bags!...

aah i would use the super secret libScePower function sceDrainPowerFromPlayersSoul(); and then just Load'em all, the Vita will handle the rest!!! :-D

Actually don't, we're forbidden to use that function.
Is 10k+ servers very common? What's the max users per channel?

JhonDoeA
Posts: 19
Joined: Fri May 12, 2017 9:17 am

Re: VitaCord - A Discord Client for Vita

Post by JhonDoeA » Mon Jun 05, 2017 6:12 pm

I guess we dont need pgf anymore:
xerpi just told me about the vita2d_font.... functions which can load a .ttf or . otf file which are very common.
It also does not use a scaler but rather pixel (int) input as for sizing.

It just worked. With one exception, Emojis don't work. The ones which don't work are encoded with multiple unicode sequences \uxxxx\uxxxx the ones with only one unicode sequence work but are boring :PP


for example : https://discordapp.com/invite/0SBTUU1wZTVyGXpr
Discords unofficial API server has jsut over 10k members.

I suppose we just ditch the icon feature or only use it in smaller servers. Or just display the first letter of the users name .


As for incoming images, I don't want anyone to have to wait for some 20 mb picture to load so probably your approach is nice.


Well if there was such a function I definitely would stay away (!)

Oh and discord api i am using the REST API, there is also the websocket which is useful for events like incoming message but I could not look into it yet. It also uses websockets which I never programmed.

example : https://discordapp.com/developers/docs/ ... t-user-dms

Edit: found a good doc which lists api's
https://media.readthedocs.org/pdf/disco ... ffical.pdf

User avatar
Arkanite
Posts: 25
Joined: Fri Aug 19, 2016 3:21 am

Re: VitaCord - A Discord Client for Vita

Post by Arkanite » Wed Jun 07, 2017 11:34 am

I've edited my 1st post (under your original post) with the details of the GUI.

JhonDoeA
Posts: 19
Joined: Fri May 12, 2017 9:17 am

Re: VitaCord - A Discord Client for Vita

Post by JhonDoeA » Thu Jun 08, 2017 8:17 pm

THanks to arkanite we now have a beatiful UI! Try it out !!

Post Reply

Return to “HENkaku”