Inuninu
Inuninu
NNormal
Created by Inuninu on 2/5/2025 in #🤝ask-a-question
Field 'System.Collections.Generic.List`1<Microsoft.CodeAnalysis.Diagnostic> Normal.Realtime.SourceGe
Field 'System.Collections.Generic.List`1<Microsoft.CodeAnalysis.Diagnostic> Normal.Realtime.SourceGenerators.RealtimeModelCandidate::Diagnostics' icom.normalvr.normcore@2.13.2\Normal.Realtime.SourceGenerators\Normal.Realtime.SourceGenerators.dll', exception Failed to resolve assembly: 'Microsoft.CodeAnalysis, Version=3.8.0.0, Culture=neutra
7 replies
NNormal
Created by Inuninu on 1/28/2025 in #🤝ask-a-question
ModelDataReader and ModelDataWriter are not recognized.RealtimeModel does not expect WriteLength or
yes,and thanks
50 replies
NNormal
Created by Inuninu on 1/28/2025 in #🤝ask-a-question
ModelDataReader and ModelDataWriter are not recognized.RealtimeModel does not expect WriteLength or
@Normcore Assistant how can i fix these issue Normal.Realtime.SourceGenerators\Normal.Realtime.SourceGenerators.RealtimeModelSourceGenerator\TreeChopperSyncModel.g.cs(28,93): error CS0315: The type 'UnityEngine.Vector3' cannot be used as type parameter 'TValue' in the generic type or method 'RealtimeArray<TValue>'. There is no boxing conversion from 'UnityEngine.Vector3' to 'Normal.Realtime.Serialization.IModel'.
50 replies
NNormal
Created by Inuninu on 1/28/2025 in #🤝ask-a-question
ModelDataReader and ModelDataWriter are not recognized.RealtimeModel does not expect WriteLength or
@Normcore Assistant private void HandleSliceAdded(RealtimeArray<uint> slicedObjectIDs, int index, uint realtimeID) { Vector3 position = model.slicePositions[index]; Vector3 normal = model.sliceNormals[index]; ApplySlice(realtimeID, position, normal); } Assets\TreeChopper.cs(66,55): error CS0315: The type 'uint' cannot be used as type parameter 'TValue' in the generic type or method 'RealtimeArray<TValue>'. There is no boxing conversion from 'uint' to 'Normal.Realtime.Serialization.IModel'.
50 replies
NNormal
Created by Inuninu on 1/28/2025 in #🤝ask-a-question
ModelDataReader and ModelDataWriter are not recognized.RealtimeModel does not expect WriteLength or
@Normcore Assistant i want to sync the slices of the mesh such that every one can see the same slices,how do i do that using normcode
50 replies
NNormal
Created by Inuninu on 1/28/2025 in #🤝ask-a-question
ModelDataReader and ModelDataWriter are not recognized.RealtimeModel does not expect WriteLength or
@Normcore Assistant [RealtimeModel] public partial class TreeChopperModel : RealtimeModel { public delegate void SliceHandler(int targetID); public event SliceHandler sliceEvent; [RealtimeProperty(1, true)] private int _targetID; public void RequestSlice(int targetID) { _targetID = targetID; sliceEvent?.Invoke(_targetID); } // Auto-generated by Normcore, but we can add partial methods to handle changes partial void OnTargetIDChanged() { sliceEvent?.Invoke(_targetID); }error CS0759: No defining declaration found for implementing declaration of partial method 'TreeChopperModel.OnTargetIDChanged()'TreeChopperModel' does not implement inherited abstract member 'RealtimeModel.Read(ReadStream, StreamContext)' error CS0534: 'TreeChopperModel' does not implement inherited abstract member 'RealtimeModel.Write(WriteStream, StreamContext)' error CS0534: 'TreeChopperModel' does not implement inherited abstract member 'RealtimeModel.WriteLength(StreamContext)'
50 replies
NNormal
Created by Inuninu on 1/28/2025 in #🤝ask-a-question
ModelDataReader and ModelDataWriter are not recognized.RealtimeModel does not expect WriteLength or
@Normcore Assistant public class TreeChopperModel : RealtimeModel { public delegate void SliceHandler(int targetID); public event SliceHandler sliceEvent; private int _targetID; protected override void WriteLength(WriteStream stream, StreamContext context) { stream.WriteInt32(sizeof(int)); } protected override void Write(WriteStream stream, StreamContext context) { stream.WriteInt32(_targetID); } protected override void Read(ReadStream stream, StreamContext context) { _targetID = stream.ReadInt32(); sliceEvent?.Invoke(_targetID); } public void RequestSlice(int targetID) { _targetID = targetID; Dirty(); sliceEvent?.Invoke(_targetID); } Assets\TreeChopper.cs(143,29): error CS0115: 'TreeChopperModel.WriteLength(WriteStream, StreamContext)': no suitable method found to overrideAssets\TreeChopper.cs(136,14): error CS0534: 'TreeChopperModel' does not implement inherited abstract member 'RealtimeModel.WriteLength(StreamContext)'
50 replies
NNormal
Created by Inuninu on 1/28/2025 in #🤝ask-a-question
ModelDataReader and ModelDataWriter are not recognized.RealtimeModel does not expect WriteLength or
@Normcore Assistant is ths conversation public or private
50 replies
NNormal
Created by Inuninu on 1/28/2025 in #🤝ask-a-question
ModelDataReader and ModelDataWriter are not recognized.RealtimeModel does not expect WriteLength or
@Normcore Assistant is it okay if i post my full code here
50 replies
NNormal
Created by Inuninu on 1/28/2025 in #🤝ask-a-question
ModelDataReader and ModelDataWriter are not recognized.RealtimeModel does not expect WriteLength or
can i post my full code here?
50 replies
NNormal
Created by Inuninu on 1/28/2025 in #🤝ask-a-question
ModelDataReader and ModelDataWriter are not recognized.RealtimeModel does not expect WriteLength or
@Normcore Assistant i am using normcore 2.12.0
50 replies