Getting Creator UserId

arlocomotive
Joined 10/01/2021
Posts 24
01:28 AM 07/10/2022
Hello! I'm making a custom brick hill chat system and I'm planning to make it open-source once I'm done. I have already finished most of it but I have one problem- I can't figure out how to get the creator's userid!

I've tried using Game.setData, and getting the creator's id from there, and using Game.setDataLoaded() to wait for the data to load, but neither worked for me. Am I missing something?


[RWB] MixaMega
Joined 23/12/2019
Posts 435
Moderator
01:43 PM 07/10/2022
are you using the latest version of node hill?


Dragonian
Joined 29/05/2017
Posts 2,877
09:58 PM 07/10/2022
Like the post above, are you using the latest node-hill version?

If so, what script are you using to wait for the set data to load?


arlocomotive
Joined 10/01/2021
Posts 24
10:43 PM 07/10/2022
Quote from MixaMega , 01:43 PM 07/10/2022
are you using the latest version of node hill?
Yes, I'm using dedicated hosting.


arlocomotive
Joined 10/01/2021
Posts 24
10:43 PM 07/10/2022
Quote from Dragonian , 09:58 PM 07/10/2022
Like the post above, are you using the latest node-hill version?

If so, what script are you using to wait for the set data to load?
const creatorId = 0
Game.setDataLoaded().then(() => {
creatorId = Game.setData.creator.id
})


Dragonian
Joined 29/05/2017
Posts 2,877
11:07 AM 08/10/2022
Quote from arlocomotive , 10:43 PM 07/10/2022
Quote from MixaMega , 01:43 PM 07/10/2022
are you using the latest version of node hill?

Yes, I'm using dedicated hosting.
setDataLoaded() sadly does not work on the brick hill dedicated hosting. It was supposed to be fixed ages ago, but Jefemy never updated it.


Dragonian
Joined 29/05/2017
Posts 2,877
02:16 PM 08/10/2022
Quote from Dragonian , 11:07 AM 08/10/2022
Quote from arlocomotive , 10:43 PM 07/10/2022
Quote from MixaMega , 01:43 PM 07/10/2022
are you using the latest version of node hill?

Yes, I'm using dedicated hosting.

setDataLoaded() sadly does not work on the brick hill dedicated hosting. It was supposed to be fixed ages ago, but Jefemy never updated it.
This has been fixed just now.

1