Questions about Quantum Video Tutorial 3-Data Assets
I have tried Video Tutorial 3 with Quantum-sdk_v1-2-3, but there is no Players field in Frame.RuntimeConfig.
I used GetPlayerData () to try it, but it doesn't behave like the video.
When I output some logs, I got the following result.
1) ### Starting quantum in local debug mode ###
2) Quantum Asset Database Loaded
3) MySystem.OnInit (Frame)
4) QuantumRunnerLocalDebug.OnGameStart (QuantumGame)
Below is my source code.
Assets were not set to f.GetPlayerData (i).CharacterSpec.
How can I make it work like the tutorial video using Quantum-sdk_v1-2-3?
I used GetPlayerData () to try it, but it doesn't behave like the video.
When I output some logs, I got the following result.
1) ### Starting quantum in local debug mode ###
2) Quantum Asset Database Loaded
3) MySystem.OnInit (Frame)
4) QuantumRunnerLocalDebug.OnGameStart (QuantumGame)
Below is my source code.
public unsafe class MySystem: SystemBase { public override void OnInit (Frame f) { for (int i = 0; i <f.PlayerCount; ++ i) { var c = f.CreateCharacter (); c-> DynamicBody.InitDynamic (Core.DynamicShape.CreateCircle (1), 1); c-> Fields.Player = i; c-> Fields.CharacterSpec = f.GetPlayerData (i) .CharacterSpec; } } : : : }
Assets were not set to f.GetPlayerData (i).CharacterSpec.
How can I make it work like the tutorial video using Quantum-sdk_v1-2-3?
0
Best Answer
-
Hi,
Please take a look at the migration notes from 1.1.8 (videos were based on this version of the SDK) to 1.2.0:
https://doc.photonengine.com/en-us/quantum/current/getting-started/migration-notes#migrate_from_1_1_8_to_1_2_0
The PlayerData injection has moved to be assynchronous to simplify late-joins, etc.
We'll add some notes to videos 3 and 4 which are slightly affected by this change.
Also, the default place to post these questions about quantum is our official Discord server (you should have received an invitation link).
6
Answers
-
Hi,
Please take a look at the migration notes from 1.1.8 (videos were based on this version of the SDK) to 1.2.0:
https://doc.photonengine.com/en-us/quantum/current/getting-started/migration-notes#migrate_from_1_1_8_to_1_2_0
The PlayerData injection has moved to be assynchronous to simplify late-joins, etc.
We'll add some notes to videos 3 and 4 which are slightly affected by this change.
Also, the default place to post these questions about quantum is our official Discord server (you should have received an invitation link).
6 -
Everything is solved.
Thank you!0 -
@clouds0072 how did you solve it?
0