ui test data + ClientSynchronizationManager fix
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit

This commit is contained in:
austin 2025-04-14 17:50:33 -04:00
parent 7bc23c1c95
commit 5cdf0fa39b
11 changed files with 57 additions and 18 deletions

View File

@ -1475,6 +1475,8 @@ Inventory audio work
Comment out script engine file watching for testing purposes Comment out script engine file watching for testing purposes
Crafting panel recipe filtering by tag Crafting panel recipe filtering by tag
Stone Axe crafting Stone Axe crafting
ClientSynchronizationManager null tree fix
Update ui test data

View File

@ -161,15 +161,21 @@ public class ClientSynchronizationManager {
switch(message.getfieldId()){ switch(message.getfieldId()){
case FieldIdEnums.TREE_SERVERATTACKTREE_SYNCEDFIELD_STATE_ID:{ case FieldIdEnums.TREE_SERVERATTACKTREE_SYNCEDFIELD_STATE_ID:{
ClientAttackTree tree = ClientAttackTree.getClientAttackTree(entity); ClientAttackTree tree = ClientAttackTree.getClientAttackTree(entity);
tree.setState(ClientAttackTree.getAttackTreeStateShortAsEnum((short)message.getbTreeValue())); if(tree != null){
tree.setState(ClientAttackTree.getAttackTreeStateShortAsEnum((short)message.getbTreeValue()));
}
} break; } break;
case FieldIdEnums.TREE_SERVERATTACKTREE_SYNCEDFIELD_DRIFTSTATE_ID:{ case FieldIdEnums.TREE_SERVERATTACKTREE_SYNCEDFIELD_DRIFTSTATE_ID:{
ClientAttackTree tree = ClientAttackTree.getClientAttackTree(entity); ClientAttackTree tree = ClientAttackTree.getClientAttackTree(entity);
tree.setDriftState(ClientAttackTree.getAttackTreeDriftStateShortAsEnum((short)message.getbTreeValue())); if(tree != null){
tree.setDriftState(ClientAttackTree.getAttackTreeDriftStateShortAsEnum((short)message.getbTreeValue()));
}
} break; } break;
case FieldIdEnums.TREE_SERVERATTACKTREE_SYNCEDFIELD_CURRENTMOVEID_ID:{ case FieldIdEnums.TREE_SERVERATTACKTREE_SYNCEDFIELD_CURRENTMOVEID_ID:{
ClientAttackTree tree = ClientAttackTree.getClientAttackTree(entity); ClientAttackTree tree = ClientAttackTree.getClientAttackTree(entity);
tree.setCurrentMoveId(message.getstringValue()); if(tree != null){
tree.setCurrentMoveId(message.getstringValue());
}
} break; } break;
} }
} break; } break;
@ -177,11 +183,15 @@ public class ClientSynchronizationManager {
switch(message.getfieldId()){ switch(message.getfieldId()){
case FieldIdEnums.TREE_SERVERBLOCKTREE_SYNCEDFIELD_STATE_ID:{ case FieldIdEnums.TREE_SERVERBLOCKTREE_SYNCEDFIELD_STATE_ID:{
ClientBlockTree tree = ClientBlockTree.getClientBlockTree(entity); ClientBlockTree tree = ClientBlockTree.getClientBlockTree(entity);
tree.setState(ClientBlockTree.getBlockStateShortAsEnum((short)message.getbTreeValue())); if(tree != null){
tree.setState(ClientBlockTree.getBlockStateShortAsEnum((short)message.getbTreeValue()));
}
} break; } break;
case FieldIdEnums.TREE_SERVERBLOCKTREE_SYNCEDFIELD_CURRENTBLOCKVARIANT_ID:{ case FieldIdEnums.TREE_SERVERBLOCKTREE_SYNCEDFIELD_CURRENTBLOCKVARIANT_ID:{
ClientBlockTree tree = ClientBlockTree.getClientBlockTree(entity); ClientBlockTree tree = ClientBlockTree.getClientBlockTree(entity);
tree.setCurrentBlockVariant(message.getstringValue()); if(tree != null){
tree.setCurrentBlockVariant(message.getstringValue());
}
} break; } break;
} }
} break; } break;
@ -193,7 +203,9 @@ public class ClientSynchronizationManager {
switch(message.getfieldId()){ switch(message.getfieldId()){
case FieldIdEnums.TREE_SERVERTOOLBARSTATE_SYNCEDFIELD_SELECTEDSLOT_ID:{ case FieldIdEnums.TREE_SERVERTOOLBARSTATE_SYNCEDFIELD_SELECTEDSLOT_ID:{
ClientToolbarState tree = ClientToolbarState.getClientToolbarState(entity); ClientToolbarState tree = ClientToolbarState.getClientToolbarState(entity);
tree.setSelectedSlot(message.getintValue()); if(tree != null){
tree.setSelectedSlot(message.getintValue());
}
} break; } break;
} }
} break; } break;
@ -201,7 +213,9 @@ public class ClientSynchronizationManager {
switch(message.getfieldId()){ switch(message.getfieldId()){
case FieldIdEnums.TREE_SERVERGRAVITY_SYNCEDFIELD_STATE_ID:{ case FieldIdEnums.TREE_SERVERGRAVITY_SYNCEDFIELD_STATE_ID:{
ClientGravityTree tree = ClientGravityTree.getClientGravityTree(entity); ClientGravityTree tree = ClientGravityTree.getClientGravityTree(entity);
tree.setState(ClientGravityTree.getGravityTreeStateShortAsEnum((short)message.getbTreeValue())); if(tree != null){
tree.setState(ClientGravityTree.getGravityTreeStateShortAsEnum((short)message.getbTreeValue()));
}
} break; } break;
} }
} break; } break;
@ -209,7 +223,9 @@ public class ClientSynchronizationManager {
switch(message.getfieldId()){ switch(message.getfieldId()){
case FieldIdEnums.TREE_SERVERIDLE_SYNCEDFIELD_STATE_ID:{ case FieldIdEnums.TREE_SERVERIDLE_SYNCEDFIELD_STATE_ID:{
ClientIdleTree tree = ClientIdleTree.getClientIdleTree(entity); ClientIdleTree tree = ClientIdleTree.getClientIdleTree(entity);
tree.setState(ClientIdleTree.getIdleTreeStateShortAsEnum((short)message.getbTreeValue())); if(tree != null){
tree.setState(ClientIdleTree.getIdleTreeStateShortAsEnum((short)message.getbTreeValue()));
}
} break; } break;
} }
} break; } break;
@ -217,7 +233,9 @@ public class ClientSynchronizationManager {
switch(message.getfieldId()){ switch(message.getfieldId()){
case FieldIdEnums.TREE_SERVERCHARGESTATE_SYNCEDFIELD_CHARGES_ID:{ case FieldIdEnums.TREE_SERVERCHARGESTATE_SYNCEDFIELD_CHARGES_ID:{
ClientChargeState tree = ClientChargeState.getClientChargeState(entity); ClientChargeState tree = ClientChargeState.getClientChargeState(entity);
tree.setCharges(message.getintValue()); if(tree != null){
tree.setCharges(message.getintValue());
}
} break; } break;
} }
} break; } break;
@ -225,7 +243,9 @@ public class ClientSynchronizationManager {
switch(message.getfieldId()){ switch(message.getfieldId()){
case FieldIdEnums.TREE_SERVERLIFETREE_SYNCEDFIELD_STATE_ID:{ case FieldIdEnums.TREE_SERVERLIFETREE_SYNCEDFIELD_STATE_ID:{
ClientLifeTree tree = ClientLifeTree.getClientLifeTree(entity); ClientLifeTree tree = ClientLifeTree.getClientLifeTree(entity);
tree.setState(ClientLifeTree.getLifeStateEnumShortAsEnum((short)message.getbTreeValue())); if(tree != null){
tree.setState(ClientLifeTree.getLifeStateEnumShortAsEnum((short)message.getbTreeValue()));
}
} break; } break;
} }
} break; } break;
@ -233,7 +253,9 @@ public class ClientSynchronizationManager {
switch(message.getfieldId()){ switch(message.getfieldId()){
case FieldIdEnums.TREE_SERVERSTANCECOMPONENT_SYNCEDFIELD_STATE_ID:{ case FieldIdEnums.TREE_SERVERSTANCECOMPONENT_SYNCEDFIELD_STATE_ID:{
ClientStanceComponent tree = ClientStanceComponent.getClientStanceComponent(entity); ClientStanceComponent tree = ClientStanceComponent.getClientStanceComponent(entity);
tree.setState(ClientStanceComponent.getCombatStanceShortAsEnum((short)message.getbTreeValue())); if(tree != null){
tree.setState(ClientStanceComponent.getCombatStanceShortAsEnum((short)message.getbTreeValue()));
}
} break; } break;
} }
} break; } break;
@ -241,7 +263,9 @@ public class ClientSynchronizationManager {
switch(message.getfieldId()){ switch(message.getfieldId()){
case FieldIdEnums.TREE_SERVEREDITORMOVEMENTTREE_SYNCEDFIELD_FACING_ID:{ case FieldIdEnums.TREE_SERVEREDITORMOVEMENTTREE_SYNCEDFIELD_FACING_ID:{
ClientEditorMovementTree tree = ClientEditorMovementTree.getClientEditorMovementTree(entity); ClientEditorMovementTree tree = ClientEditorMovementTree.getClientEditorMovementTree(entity);
tree.setFacing(ClientEditorMovementTree.getEditorMovementRelativeFacingShortAsEnum((short)message.getbTreeValue())); if(tree != null){
tree.setFacing(ClientEditorMovementTree.getEditorMovementRelativeFacingShortAsEnum((short)message.getbTreeValue()));
}
} break; } break;
} }
} break; } break;
@ -249,7 +273,9 @@ public class ClientSynchronizationManager {
switch(message.getfieldId()){ switch(message.getfieldId()){
case FieldIdEnums.TREE_SERVERGROUNDMOVEMENTTREE_SYNCEDFIELD_FACING_ID:{ case FieldIdEnums.TREE_SERVERGROUNDMOVEMENTTREE_SYNCEDFIELD_FACING_ID:{
ClientGroundMovementTree tree = ClientGroundMovementTree.getClientGroundMovementTree(entity); ClientGroundMovementTree tree = ClientGroundMovementTree.getClientGroundMovementTree(entity);
tree.setFacing(ClientGroundMovementTree.getMovementRelativeFacingShortAsEnum((short)message.getbTreeValue())); if(tree != null){
tree.setFacing(ClientGroundMovementTree.getMovementRelativeFacingShortAsEnum((short)message.getbTreeValue()));
}
} break; } break;
} }
} break; } break;
@ -257,15 +283,21 @@ public class ClientSynchronizationManager {
switch(message.getfieldId()){ switch(message.getfieldId()){
case FieldIdEnums.TREE_SERVERJUMPTREE_SYNCEDFIELD_STATE_ID:{ case FieldIdEnums.TREE_SERVERJUMPTREE_SYNCEDFIELD_STATE_ID:{
ClientJumpTree tree = ClientJumpTree.getClientJumpTree(entity); ClientJumpTree tree = ClientJumpTree.getClientJumpTree(entity);
tree.setState(ClientJumpTree.getJumpStateShortAsEnum((short)message.getbTreeValue())); if(tree != null){
tree.setState(ClientJumpTree.getJumpStateShortAsEnum((short)message.getbTreeValue()));
}
} break; } break;
case FieldIdEnums.TREE_SERVERJUMPTREE_SYNCEDFIELD_CURRENTFRAME_ID:{ case FieldIdEnums.TREE_SERVERJUMPTREE_SYNCEDFIELD_CURRENTFRAME_ID:{
ClientJumpTree tree = ClientJumpTree.getClientJumpTree(entity); ClientJumpTree tree = ClientJumpTree.getClientJumpTree(entity);
tree.setCurrentFrame(message.getintValue()); if(tree != null){
tree.setCurrentFrame(message.getintValue());
}
} break; } break;
case FieldIdEnums.TREE_SERVERJUMPTREE_SYNCEDFIELD_CURRENTJUMPFORCE_ID:{ case FieldIdEnums.TREE_SERVERJUMPTREE_SYNCEDFIELD_CURRENTJUMPFORCE_ID:{
ClientJumpTree tree = ClientJumpTree.getClientJumpTree(entity); ClientJumpTree tree = ClientJumpTree.getClientJumpTree(entity);
tree.setCurrentJumpForce(message.getfloatValue()); if(tree != null){
tree.setCurrentJumpForce(message.getfloatValue());
}
} break; } break;
} }
} break; } break;
@ -273,7 +305,9 @@ public class ClientSynchronizationManager {
switch(message.getfieldId()){ switch(message.getfieldId()){
case FieldIdEnums.TREE_SERVERSPRINTTREE_SYNCEDFIELD_STATE_ID:{ case FieldIdEnums.TREE_SERVERSPRINTTREE_SYNCEDFIELD_STATE_ID:{
ClientSprintTree tree = ClientSprintTree.getClientSprintTree(entity); ClientSprintTree tree = ClientSprintTree.getClientSprintTree(entity);
tree.setState(ClientSprintTree.getSprintTreeStateShortAsEnum((short)message.getbTreeValue())); if(tree != null){
tree.setState(ClientSprintTree.getSprintTreeStateShortAsEnum((short)message.getbTreeValue()));
}
} break; } break;
} }
} break; } break;
@ -281,7 +315,9 @@ public class ClientSynchronizationManager {
switch(message.getfieldId()){ switch(message.getfieldId()){
case FieldIdEnums.TREE_SERVERWALKTREE_SYNCEDFIELD_STATE_ID:{ case FieldIdEnums.TREE_SERVERWALKTREE_SYNCEDFIELD_STATE_ID:{
ClientWalkTree tree = ClientWalkTree.getClientWalkTree(entity); ClientWalkTree tree = ClientWalkTree.getClientWalkTree(entity);
tree.setState(ClientWalkTree.getWalkStateShortAsEnum((short)message.getbTreeValue())); if(tree != null){
tree.setState(ClientWalkTree.getWalkStateShortAsEnum((short)message.getbTreeValue()));
}
} break; } break;
} }
} break; } break;

View File

@ -1,6 +1,7 @@
package electrosphere.net.synchronization.transport; package electrosphere.net.synchronization.transport;
import electrosphere.util.Utilities;
import electrosphere.entity.state.item.ServerChargeState; import electrosphere.entity.state.item.ServerChargeState;
import electrosphere.entity.state.item.ClientChargeState; import electrosphere.entity.state.item.ClientChargeState;
import electrosphere.entity.state.movement.editor.ServerEditorMovementTree; import electrosphere.entity.state.movement.editor.ServerEditorMovementTree;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 40 KiB