Forum

> > CS2D > General > Ideas for CS2D - READ THE FIRST POST (OP)!
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch Ideas for CS2D - READ THE FIRST POST (OP)!

3.231 Antworten
Seite
Zum Anfang Vorherige 1 2131 132 133161 162 Nächste Zum Anfang

alt Re: Ideas for CS2D - READ THE FIRST POST (OP)!

mrc
User Off Offline

Zitieren
What about add player's profile picture of UnrealSoftware in-game? So we can have something like this (just picked a random photo from google). And what about assistances?

IMG:https://image.prntscr.com/image/bOwA04J-SEWDUBMXnUDl-Q.png
2× editiert, zuletzt 25.07.17 02:01:58

alt Re: Ideas for CS2D - READ THE FIRST POST (OP)!

Talented Doge
User Off Offline

Zitieren
It can actually be done with lua. Retrieving an USGN is already implemented.

The user image can be searched, it consists of 2 parts, according to the profile page source code.

Take mine as an example:
IMG:https://s25.postimg.org/n2vjraqpr/2017-07-25_08_15_17-view-source_www.unrealsoftwa.png


As you can see, it is u131785_5932ae4b. The first part before the underline is: u + our usgn while the second part is just a random string.

The full part to the image would be: http://www.unrealsoftware.de/u_ava/u131785_5932ae4b.png
IMG:https://www.unrealsoftware.de/u_ava/u131785_5932ae4b.png


So, user SQ's link would be:
IMG:https://s25.postimg.org/3z28aydvj/2017-07-25_08_15_49-view-source_www.unrealsoftwa.png


So, to obtain one's user image, you could use the lua + php or whatever to search through USGN's file(I think there is a file that consists of all USGN user's public data, downloadable), and find a string that matches u+usgn and download the png file from usgn and display it.

Though I doubt this will be added officially. But, even voice chat is implemented so I won't 100% disagree with the opportunity.

alt Re: Ideas for CS2D - READ THE FIRST POST (OP)!

_Yank
User Off Offline

Zitieren
@user Talented Doge: That would not work simply because files cannot be downloaded on-the-go (players get them before they join the server). Also, it isn't that easy to have external libs and such to work with CS2D's lua flawlessy (you also often compromise your script compability and stability).

alt Re: Ideas for CS2D - READ THE FIRST POST (OP)!

Talented Doge
User Off Offline

Zitieren
Yes yes, that is what I have mentioned, I just couldn't recall where that file comes from. Though I think it should only be residing next to players' names in Scoreboard in the vanilla game. Maybe adding a parameter in cs2d lua cmd player like usgnimage to get it.

alt Re: Ideas for CS2D - READ THE FIRST POST (OP)!

Talented Doge
User Off Offline

Zitieren
This would be a good small addition to the game experience, could add another option under Internet tab to allow users selecting whether to display/download the avatars.

Another question: Can weapon.cfg further extending to modify weapon stats(like kill reward, range, ammo, weight), because it is server sided, files modified in client side would be useless anyway.
1× editiert, zuletzt 25.07.17 03:57:40

alt Re: Ideas for CS2D - READ THE FIRST POST (OP)!

Hajt
User Off Offline

Zitieren
I would like to know how does it works. I bet that it'll cause additional traffic on the website so dunno if it's really needed.

Instead of this I would suggest you to implement
player(id,"username")
. The server would get username during validation USGN account and it would be very easy to handle I guess.

alt Re: Ideas for CS2D - READ THE FIRST POST (OP)!

SQ
Moderator Off Offline

Zitieren
That's pretty much the code to get an avatar image on BlitzMax. I'll add it to the scoreboard just for fun atm to see how it works.
Mehr >


Edit: I ran into technical problems.
It gets few seconds lag when joining server with some people that uses USGNs

Screenshot:
IMG:https://preview.ibb.co/mthyZk/Untitled.png
3× editiert, zuletzt 25.07.17 04:29:44

alt Re: Ideas for CS2D - READ THE FIRST POST (OP)!

SQ
Moderator Off Offline

Zitieren
user Hajt hat geschrieben
@user SQ: too much problems like TCP connection, additional traffic for the website which is pretty unstable nowadays.


That's not really the problem though. It's also just client side thing. I don't really like the way how it works, certainly can be improved. Though wanted to do something with steam profile pictures instead.

alt Re: Ideas for CS2D - READ THE FIRST POST (OP)!

VaiN
User Off Offline

Zitieren
I really like the idea of avatars in-game, It would make the game feel more modern and social.

But I'd prefer it be a Steam integration. In fact I feel a lot of things could migrate in that direction. It doesn't really make sense to have two separate profile/account systems. But that's a discussion for another topic I suppose.

alt Re: Ideas for CS2D - READ THE FIRST POST (OP)!

Mora
User Off Offline

Zitieren
Nah, better change these useless avatars to player ids. It's very uncomfortable to point at player and wait for his ID|Usgn, some1 may leave in moment or kill/die and up/down in the scoreboard position so i'll need to move my pointer again, not really fast tho(like in previous).
Zum Anfang Vorherige 1 2131 132 133161 162 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht