Forum

> > CS2D > General > Ideas for CS2D - READ THE FIRST POST (OP)!
Forums overviewCS2D overviewGeneral overviewLog in to reply

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

3,231 replies
Page
To the start Previous 1 2131 132 133161 162 Next To the start

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

Talented Doge
User Off Offline

Quote
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.

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

_Yank
User Off Offline

Quote
@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).

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

Talented Doge
User Off Offline

Quote
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.

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

Talented Doge
User Off Offline

Quote
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.
edited 1×, last 25.07.17 03:57:40 am

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

Hajt
User Off Offline

Quote
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.

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

SQ
Moderator Off Offline

Quote
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.
More >


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
edited 3×, last 25.07.17 04:29:44 am

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

SQ
Moderator Off Offline

Quote
user Hajt has written
@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.

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

VaiN
User Off Offline

Quote
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.

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

Talented Doge
User Off Offline

Quote
Many scripts still use the USGN for identity verification, or otherwise stats. It should be good to use Steam though, because it seems to be more modern and really lowers the bandwith that the website suffers.

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

Mora
User Off Offline

Quote
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).
To the start Previous 1 2131 132 133161 162 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview