SEModCommunity / SE-Community-Mod-API

Space Engineers Community Modding API
GNU Lesser General Public License v3.0
60 stars 47 forks source link

Request: playerid from steamid #79

Closed DraygoKorvan closed 10 years ago

DraygoKorvan commented 10 years ago

Method to get playerid from steamid.

I have about 3 separate plugins in the works that need this functionality.

Thanks for the amazing amount of work so far.

chessmaster42 commented 10 years ago

The latest release added the SteamId property to CharacterEntity objects. Does this meet the need or do you need to link the actual player id that's used for factions?

DraygoKorvan commented 10 years ago

It mostly meets the need

I did run across an instance where for some reason a particular player's character wasn't showing up in the character list at all, even though he was interacting with the world just fine.

chessmaster42 commented 10 years ago

We will improve the PlayerManager and PlayerMap classes to have an additional convenience function for getting the playerid from steamid and vice versa.

chessmaster42 commented 10 years ago

Completed in 98d4a9e932d640fab6e0822f023b778861e01e2a

DraygoKorvan commented 10 years ago

yea!