I’m currently doing the Crashes & Bug Fixes lecture and I can’t work out for the life of me why my game fails to spawn the player. I had it working from a server side and client side in the past and we did the step to fix a potential bug where we manually handle the spawning. I’ve compared it code wise and it seems okay.
I can confirm that it runs fine when i do host and client, only server is breaking.
I successfully load into the scene just without a tank.
I’ve put a debug point on the on the ApprovalCheck method at the start but it looks like it never calls the ApprovalCheck Method which is confusing.
I also took a relatively drastic method and replaced my entire scripts folder with the scripts folder from the github version, rehooked everything up and ran it again and ran into the same problem, so this should rule out any issues from a code perspective i think.
So it makes me think i’ve maybe not dragged in a reference that should be there in the inspector, otherwise i’m stumped.
Actually now that I think about it, is the approval check from the network server only run on the dedicated server? I’m not sure I’d even see it.
either way, I think replacing the scripts folder should still have ruled out anything code related, but I’m open to any idea’s I can look into / code snips you’d like shared.
This could be an issue on the server. Are you able to check the server logs to see what is happening? Sometimes you might just need to turn the servers on and off again when first uploading your builds just to get them working correctly.
I realized that after replacing my code base with the git hub repo i republished my old branch rather than the new one i’d replaced with. It means it must’ve had a code issue but i can’t for the life of me find what it is. Either way, i’m pretty happy the ticket can just be marked as resolved, i have no issues at the moment