Ryan Green
Ryan Green
NNormal
Created by Ryan Green on 8/1/2024 in #🤝ask-a-question
allocateUTF8 is not defined
I've created a webgl build in Unity 2023.2.20f1 and Normcore 2.10.4 and I'm receiving the following error when attempting to connect to a room using a room name entered from a text input in the build.
ReferenceError: allocateUTF8 is not defined
at ClientStartConnection
ReferenceError: allocateUTF8 is not defined
at ClientStartConnection
in the following section of the jslib
function ClientStartConnection(clientPointer) {
var clientOffer = __pendingOffers.get(clientPointer);
if (clientOffer == null) {
clientOffer = "";
__pendingOffers.set(clientPointer, clientOffer);
Instance.Get(clientPointer).startConnection().then(function(co) {
if (__pendingOffers.get(clientPointer) != "")
return;
__pendingOffers.set(clientPointer, co)
})
}
if (clientOffer != "") {
__pendingOffers["delete"](clientPointer)
}
return allocateUTF8(clientOffer)
}
function ClientStartConnection(clientPointer) {
var clientOffer = __pendingOffers.get(clientPointer);
if (clientOffer == null) {
clientOffer = "";
__pendingOffers.set(clientPointer, clientOffer);
Instance.Get(clientPointer).startConnection().then(function(co) {
if (__pendingOffers.get(clientPointer) != "")
return;
__pendingOffers.set(clientPointer, co)
})
}
if (clientOffer != "") {
__pendingOffers["delete"](clientPointer)
}
return allocateUTF8(clientOffer)
}
is my version of Unity supported for gl builds? should I be using a different version of normcore?
7 replies
NNormal
Created by Ryan Green on 8/1/2024 in #🤝ask-a-question
how do i fetch items in a realtimeset?
I have RealtimeSet of PlayerModel objects, how do I fetch an item from this set?
4 replies
NNormal
Created by Ryan Green on 7/27/2024 in #🤝ask-a-question
Discord Embedded App SDK
I'm trying to connect to normcore using the discord embedded app sdk, however when connecting to a room, I receive the following error:
nested.framework.js:10 Refused to connect to 'wss://normcore-matcher.normcore.io:3000/' because it violates the following Content Security Policy directive: "connect-src https://1266559993688100995.discordsays.com/.proxy/ wss://1266559993688100995.discordsays.com/.proxy/ https://discord.com/api/ https://canary.discord.com/api/ https://ptb.discord.com/api/ https://cdn.discordapp.com/attachments/ https://media.discordapp.net/attachments/ data: blob:".
nested.framework.js:10 Refused to connect to 'wss://normcore-matcher.normcore.io:3000/' because it violates the following Content Security Policy directive: "connect-src https://1266559993688100995.discordsays.com/.proxy/ wss://1266559993688100995.discordsays.com/.proxy/ https://discord.com/api/ https://canary.discord.com/api/ https://ptb.discord.com/api/ https://cdn.discordapp.com/attachments/ https://media.discordapp.net/attachments/ data: blob:".
is it possible to connect to normcore in this way?
16 replies
NNormal
Created by Ryan Green on 7/17/2024 in #🤝ask-a-question
Client Connections
Is there a way to know when another client connects?
5 replies
NNormal
Created by Ryan Green on 7/17/2024 in #🤝ask-a-question
Custom Model Sync
how do i know when the latest values of a custom model is completely synced on load?
5 replies
NNormal
Created by Ryan Green on 7/9/2024 in #🤝ask-a-question
Is there a way to change ownership automatically when remote rigidbody is owned by another client?
I want ownership to change when an rigidbody owned by client a hits a rigidbody owned by client b. The object rigidbody by client b is automatically moving, not asleep. What is the best way to approach this?
11 replies
NNormal
Created by Ryan Green on 6/1/2024 in #🤝ask-a-question
'Networking.NetworkSpawnerModel' is missing the class attribute
I'm receiving the following exception after compile: 'Networking.NetworkSpawnerModel' is missing the class attribute 'ExtensionOfNativeClass'!
[RealtimeModel]
public partial class NetworkSpawnerModel
{
[RealtimeProperty(1, true, true)]
private bool _active;
}

public class NetworkSpawner : RealtimeComponent<NetworkSpawnerModel>

...
[RealtimeModel]
public partial class NetworkSpawnerModel
{
[RealtimeProperty(1, true, true)]
private bool _active;
}

public class NetworkSpawner : RealtimeComponent<NetworkSpawnerModel>

...
is there a way to get rid of this error?
7 replies
NNormal
Created by Ryan Green on 6/1/2024 in #🤝ask-a-question
RealtimeDictionary events
if a RealtimeDictionary is set directly, will the modelReplaced event fire? For example:
model.floats[(uint)key].value = value;
model.floats[(uint)key].value = value;
will the model.floats model dispatch an event?
4 replies
NNormal
Created by Ryan Green on 6/1/2024 in #🤝ask-a-question
RealtimeComponent connected
how do I know when a RealtimeComponent is initialized and connected to the network?
5 replies
NNormal
Created by Ryan Green on 6/1/2024 in #🤝ask-a-question
are all properties on a model updated at the same time?
if I update multiple properties on a model at the same time on the same frame, will they sync to clients at the same time? for example:
[RealtimeModel]
public partial class MonaBodyNetworkIdentifierModel
{
[RealtimeProperty(1, true, true)]
private string _localId;

[RealtimeProperty(2, true, true)]
private string _prefabId;

[RealtimeProperty(3, true, true)]
private bool _locallyOwnedMonaBody;
}
[RealtimeModel]
public partial class MonaBodyNetworkIdentifierModel
{
[RealtimeProperty(1, true, true)]
private string _localId;

[RealtimeProperty(2, true, true)]
private string _prefabId;

[RealtimeProperty(3, true, true)]
private bool _locallyOwnedMonaBody;
}
if I update local, prefab, and locallyOwnedMonaBody at the same time, will all of these properties arrive on a client at the same time?
7 replies
NNormal
Created by Ryan Green on 6/1/2024 in #🤝ask-a-question
is it possible to detect when another client joins?
are all clients notified when a user joins a room?
4 replies
NNormal
Created by Ryan Green on 6/1/2024 in #🤝ask-a-question
Asset Packages/com.normalvr.normcore/Normal.Realtime.Profiler has no meta file
How do I get rid of this exception in editor? "Asset Packages/com.normalvr.normcore/Normal.Realtime.Profiler has no meta file, but it's in an immutable folder. The asset will be ignored."
14 replies
NNormal
Created by Ryan Green on 6/1/2024 in #🤝ask-a-question
scene object
if i have a sceneobject with a model (not instantiated, but included in the scene) is there a way to claim ownership of it? is the model synced by default? is it controllable?
6 replies