Browse Source

Fixed issue with login server and opcode fix

LethalEncounter 4 years ago
parent
commit
6cd5cb1548

+ 1 - 1
EQ2/source/LoginServer/LoginDatabase.cpp

@@ -375,7 +375,7 @@ int32 LoginDatabase::SaveCharacter(PacketStruct* create, LoginAccount* acct, int
 	//mark any remaining characters with same id as deleted (creates problems if world deleted their db and started assigning new char ids)
 	DeactivateCharID(create->getType_int32_ByName("server_id"), world_charid, last_insert_id);
 	int32 char_id = last_insert_id;
-	if (client_version <= 283) {
+	if (client_version <= 546) {
 		SaveCharacterFloats(char_id, "skin_color", create->getType_float_ByName("skin_color", 0), create->getType_float_ByName("skin_color", 1), create->getType_float_ByName("skin_color", 2));
 		SaveCharacterFloats(char_id, "eye_color", create->getType_float_ByName("eye_color", 0), create->getType_float_ByName("eye_color", 1), create->getType_float_ByName("eye_color", 2));
 		SaveCharacterFloats(char_id, "hair_color1", create->getType_float_ByName("hair_color1", 0), create->getType_float_ByName("hair_color1", 1), create->getType_float_ByName("hair_color1", 2));

+ 1 - 1
EQ2/source/common/opcodemgr.cpp

@@ -60,7 +60,7 @@ bool OpcodeManager::LoadOpcodesMap(map<string, uint16>* eq, OpcodeSetStrategy *s
 		res = eq->find(op_name);
 		if(res == eq->end()) {
 			LogWrite(OPCODE__WARNING, 1, "Opcode", "Opcode %s is missing from the opcodes table.", op_name);
-			s->Set(emu_op, 0);
+			s->Set(emu_op, 0xFFFF);
 			continue;	//continue to give them a list of all missing opcodes
 		}
 		

BIN
server/EQ2Login__Debug64.exe


BIN
server/EQ2World__Debug_x64.exe