Adding Player Classes - Problem...
Soul_Rider
Mod Bean Join Date: 2004-06-19 Member: 29388Members, Constellation, Squad Five Blue
in Modding
I have a problem with adding player classes to the game.
I have succesfully added new teams, new spectators, but when I try to add a new player class - I have created 2, over the course of Proving Grounds - RedMarine and Avatar, I can't load them. When running the game I get the message:
Error: Client class hierarchy for avatar does not match server class
Error: Client class hierarchy for redmarine does not match server class
I have taken the basic marine in both cases, renamed all the functions from Marine:function to Avatar:function or RedMarine:function, adjusted the map names and still I get this problem. Can anyone shed any light on what I am missing?
These are independent problems, I am trying to run with 1 or the other, not both at the same time, yet both cause this same issue. Any help/ideas would be great :)
They are being loaded by the relevant team - Avatar is called from MarineTeam, RedMarine was being called by the working RedTeam.
Any obvious things I may be missing?
I have succesfully added new teams, new spectators, but when I try to add a new player class - I have created 2, over the course of Proving Grounds - RedMarine and Avatar, I can't load them. When running the game I get the message:
Error: Client class hierarchy for avatar does not match server class
Error: Client class hierarchy for redmarine does not match server class
I have taken the basic marine in both cases, renamed all the functions from Marine:function to Avatar:function or RedMarine:function, adjusted the map names and still I get this problem. Can anyone shed any light on what I am missing?
These are independent problems, I am trying to run with 1 or the other, not both at the same time, yet both cause this same issue. Any help/ideas would be great :)
They are being loaded by the relevant team - Avatar is called from MarineTeam, RedMarine was being called by the working RedTeam.
Any obvious things I may be missing?
Comments
@JimWest, it is loaded from MarineTeam.lua, that works across both client and server. I don't load the file specifically in client, server or shared, but then I also have removed Marine.lua from Shared, but it still loads. You have given me some ideas though, I'll look into that further...
EDIT ------
Ok, very odd, while Marine.lua loads happily from either JetpackMarine.lua, or MarineTeam.lua, not sure which, my Avatar wouldn't. I added it to Shared.lua, and it worked, well then gave other problems, namely that weapon.lua wasn't called in shared either, despite that working, so I added that, then found out I had to move it up the list, it appears, order of loading files also matters :P
Anyway, I am ironing out a few related issues, but it seems (fingers crossed) to be working now. Thanks for the help guys.
As I said earlier, I just had to sort out one or two minor code changes I had inflicted, but it is all working perfectly now :)