Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the rules.

GetProfile().Name not affected by SetProfile()

All reported bugs that's actually by design.
Forum rules
By using the forum you agree to the following rules. For this forum you also need to follow these additional rules.
Post Reply
User avatar
CrusherCouger
Meatbag
Posts: 4
Joined: Sun Feb 05, 2017 1:20 pm
SFD Account: Crusher Couger
Started SFD: PreAlpha 1.1.0

GetProfile().Name not affected by SetProfile()

Post by CrusherCouger » Sat May 12, 2018 1:23 am

Hello, I encountered a problem while scripting. Given an IProfile variable, one can access its Name value, which contains the name of that profile, as one may expect. However, once IPlayer.SetProfile is called with the given profile as the argument so that a player use that profile, the name of the player’s profile will not get updated; that is, player.GetProfile().Name will not change and will reflect the name of another profile. This behaviour is rather confusing – one would rather expect that the profile will retain its name. Can you do something about it?
0 x
Its not provoke!!

User avatar
Gurt
Lead Programmer
Lead Programmer
Posts: 1287
Joined: Sun Feb 28, 2016 3:22 pm
Title: Lead programmer
Started SFD: Made it!
Location: Sweden
Gender:
Age: 28

Post by Gurt » Sat May 12, 2018 5:14 pm

The profile name is not used to anything as we decided that you must not be able to change the name of a real player. It's more of a left over right now as we remade how you name bots. In the release version of the game you will be able to change the name of a bot through the ScriptAPI as well.
1 x
Gurt

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests