• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[ProtocolGame::onRecvFirstMessage] - RSA Decrypt Failed HELP !!

venoman12

New Member
Joined
Feb 15, 2020
Messages
24
Reaction score
0
I wanted to connect to the server via otclientv8, but on the server console I get "[ProtocolGame::eek:nRecvFirstMessage] - RSA Decrypt Failed" and on otlicnetv8 "your connection has been lost, either your network or the server has stopped working (error2). I will add that it is a canary server, I changed the key in otclient on the "key.pem" server also and "otsserv.cpp" to the same as the key generator generated for me, who can help me?
 

EDIT: Make sure you use the same TibiaClient as ServerClient. Example 8.60 server needs a Tibia client of 8.60 version to be connected. In other words, it always need to be the same client and serverclient.
 
key.pem
-----BEGIN RSA PRIVATE KEY-----
MIICXAIBAAKBgQCbZGkDtFsHrJVlaNhzU71xZROd15QHA7A+bdB5OZZhtKg3qmBWHXzLlFL6AIBZ
SQmIKrW8pYoaGzX4sQWbcrEhJhHGFSrT27PPvuetwUKnXT11lxUJwyHFwkpb1R/UYPAbThW+sN4Z
MFKKXT8VwePL9cQB1nd+EKyqsz2+jVt/9QIDAQABAoGAQovTtTRtr3GnYRBvcaQxAvjIV9ZUnFRm
C7Y3i1KwJhOZ3ozmSLrEEOLqTgoc7R+sJ1YzEiDKbbete11EC3gohlhW56ptj0WDf+7ptKOgqiEy
Kh4qt1sYJeeGz4GiiooJoeKFGdtk/5uvMR6FDCv6H7ewigVswzf330Q3Ya7+jYECQQERBxsga6+5
x6IofXyNF6QuMqvuiN/pUgaStUOdlnWBf/T4yUpKvNS1+I4iDzqGWOOSR6RsaYPYVhj9iRABoKyx
AkEAkbNzB6vhLAWht4dUdGzaREF3p4SwNcu5bJRa/9wCLSHaS9JaTq4lljgVPp1zyXyJCSCWpFnl
0WvK3Qf6nVBIhQJBANS7rK8+ONWQbxENdZaZ7Rrx8HUTwSOS/fwhsGWBbl1Qzhdq/6/sIfEHkfeH
1hoH+IlpuPuf21MdAqvJt+cMwoECQF1LyBOYduYGcSgg6u5mKVldhm3pJCA+ZGxnjuGZEnet3qeA
eb05++112fyvO85ABUun524z9lokKNFh45NKLjUCQGshzV43P+RioiBhtEpB/QFzijiS4L2HKNu1
tdhudnUjWkaf6jJmQS/ppln0hhRMHlk9Vus/bPx7LtuDuo6VQDo=
-----END RSA PRIVATE KEY-----
const.lua
-- @docconsts @{

FloorHigher = 0
FloorLower = 15

SkullNone = 0
SkullYellow = 1
SkullGreen = 2
SkullWhite = 3
SkullRed = 4
SkullBlack = 5
SkullOrange = 6

ShieldNone = 0
ShieldWhiteYellow = 1
ShieldWhiteBlue = 2
ShieldBlue = 3
ShieldYellow = 4
ShieldBlueSharedExp = 5
ShieldYellowSharedExp = 6
ShieldBlueNoSharedExpBlink = 7
ShieldYellowNoSharedExpBlink = 8
ShieldBlueNoSharedExp = 9
ShieldYellowNoSharedExp = 10
ShieldGray = 11

EmblemNone = 0
EmblemGreen = 1
EmblemRed = 2
EmblemBlue = 3
EmblemMember = 4
EmblemOther = 5

VipIconFirst = 0
VipIconLast = 10

Directions = {
North = 0,
East = 1,
South = 2,
West = 3,
NorthEast = 4,
SouthEast = 5,
SouthWest = 6,
NorthWest = 7
}

Skill = {
Fist = 0,
Club = 1,
Sword = 2,
Axe = 3,
Distance = 4,
Shielding = 5,
Fishing = 6,
CriticalChance = 7,
CriticalDamage = 8,
LifeLeechChance = 9,
LifeLeechAmount = 10,
ManaLeechChance = 11,
ManaLeechAmount = 12
}

North = Directions.North
East = Directions.East
South = Directions.South
West = Directions.West
NorthEast = Directions.NorthEast
SouthEast = Directions.SouthEast
SouthWest = Directions.SouthWest
NorthWest = Directions.NorthWest

FightOffensive = 1
FightBalanced = 2
FightDefensive = 3

DontChase = 0
ChaseOpponent = 1

PVPWhiteDove = 0
PVPWhiteHand = 1
PVPYellowHand = 2
PVPRedFist = 3

GameProtocolChecksum = 1
GameAccountNames = 2
GameChallengeOnLogin = 3
GamePenalityOnDeath = 4
GameNameOnNpcTrade = 5
GameDoubleFreeCapacity = 6
GameDoubleExperience = 7
GameTotalCapacity = 8
GameSkillsBase = 9
GamePlayerRegenerationTime = 10
GameChannelPlayerList = 11
GamePlayerMounts = 12
GameEnvironmentEffect = 13
GameCreatureEmblems = 14
GameItemAnimationPhase = 15
GameMagicEffectU16 = 16
GamePlayerMarket = 17
GameSpritesU32 = 18
GameTileAddThingWithStackpos = 19
GameOfflineTrainingTime = 20
GamePurseSlot = 21
GameFormatCreatureName = 22
GameSpellList = 23
GameClientPing = 24
GameExtendedClientPing = 25
GameDoubleHealth = 28
GameDoubleSkills = 29
GameChangeMapAwareRange = 30
GameMapMovePosition = 31
GameAttackSeq = 32
GameBlueNpcNameColor = 33
GameDiagonalAnimatedText = 34
GameLoginPending = 35
GameNewSpeedLaw = 36
GameForceFirstAutoWalkStep = 37
GameMinimapRemove = 38
GameDoubleShopSellAmount = 39
GameContainerPagination = 40
GameThingMarks = 41
GameLooktypeU16 = 42
GamePlayerStamina = 43
GamePlayerAddons = 44
GameMessageStatements = 45
GameMessageLevel = 46
GameNewFluids = 47
GamePlayerStateU16 = 48
GameNewOutfitProtocol = 49
GamePVPMode = 50
GameWritableDate = 51
GameAdditionalVipInfo = 52
GameBaseSkillU16 = 53
GameCreatureIcons = 54
GameHideNpcNames = 55
GameSpritesAlphaChannel = 56
GamePremiumExpiration = 57
GameBrowseField = 58
GameEnhancedAnimations = 59
GameOGLInformation = 60
GameMessageSizeCheck = 61
GamePreviewState = 62
GameLoginPacketEncryption = 63
GameClientVersion = 64
GameContentRevision = 65
GameExperienceBonus = 66
GameAuthenticator = 67
GameUnjustifiedPoints = 68
GameSessionKey = 69
GameDeathType = 70
GameIdleAnimations = 71
GameKeepUnawareTiles = 72
GameIngameStore = 73
GameIngameStoreHighlights = 74
GameIngameStoreServiceType = 75
GameAdditionalSkills = 76
GameDistanceEffectU16 = 77
GamePrey = 78
GameDoubleMagicLevel = 79

GameExtendedOpcode = 80
GameMinimapLimitedToSingleFloor = 81
GameSendWorldName = 82

GameDoubleLevel = 83
GameDoubleSoul = 84
GameDoublePlayerGoodsMoney = 85
GameCreatureWalkthrough = 86 -- add Walkthrough for versions less than 854, unpass = msg->getU8(); in protocolgameparse.cpp
GameDoubleTradeMoney = 87
GameSequencedPackets = 88
GameTibia12Protocol = 89

GameNewWalking = 90
GameSlowerManualWalking = 91
GameItemTooltip = 93

GameBot = 95
GameBiggerMapCache = 96
GameForceLight = 97
GameNoDebug = 98
GameBotProtection = 99

GameCreatureDirectionPassable = 100
GameFasterAnimations = 101
GameCenteredOutfits = 102
GameSendIdentifiers = 103
GameWingsAndAura = 104
GamePlayerStateU32 = 105
GameOutfitShaders = 106
GameForceAllowItemHotkeys = 107
GameCountU16 = 108
GameDrawAuraOnTop = 109

GamePacketSizeU32 = 110
GamePacketCompression = 111

GameOldInformationBar = 112
GameHealthInfoBackground = 113
GameWingOffset = 114
GameAuraFrontAndBack = 115 -- To use that: First layer is bottom/back, second (blend layer) is top/front

GameMapDrawGroundFirst = 116 -- useful for big auras & wings
GameMapIgnoreCorpseCorrection = 117
GameDontCacheFiles = 118 -- doesn't work with encryption and compression
GameBigAurasCenter = 119 -- Automatic negative offset for aura bigger than 32x32
GameNewUpdateWalk = 120 -- Walk update rate dependant on FPS
GameNewCreatureStacking = 121 -- Ignore MAX_THINGS limit while adding to tile
GameCreaturesMana = 122 -- get mana from server for creatures other than Player
GameQuickLootFlags = 123 -- enables quick loot feature for all protocols
GameDontMergeAnimatedText = 124
GameMissionId = 125
GameItemCustomAttributes = 126
GameAnimatedTextCustomFont = 127

LastGameFeature = 130

TextColors = {
red = '#f55e5e', --'#c83200'
orange = '#f36500', --'#c87832'
yellow = '#ffff00', --'#e6c832'
green = '#00EB00', --'#3fbe32'
lightblue = '#5ff7f7',
blue = '#9f9dfd',
--blue1 = '#6e50dc',
--blue2 = '#3264c8',
--blue3 = '#0096c8',
white = '#ffffff', --'#bebebe'
}

MessageModes = {
None = 0,
Say = 1,
Whisper = 2,
Yell = 3,
PrivateFrom = 4,
PrivateTo = 5,
ChannelManagement = 6,
Channel = 7,
ChannelHighlight = 8,
Spell = 9,
NpcFrom = 10,
NpcTo = 11,
GamemasterBroadcast = 12,
GamemasterChannel = 13,
GamemasterPrivateFrom = 14,
GamemasterPrivateTo = 15,
Login = 16,
Warning = 17,
Game = 18,
Failure = 19,
Look = 20,
DamageDealed = 21,
DamageReceived = 22,
Heal = 23,
Exp = 24,
DamageOthers = 25,
HealOthers = 26,
ExpOthers = 27,
Status = 28,
Loot = 29,
TradeNpc = 30,
Guild = 31,
PartyManagement = 32,
Party = 33,
BarkLow = 34,
BarkLoud = 35,
Report = 36,
HotkeyUse = 37,
TutorialHint = 38,
Thankyou = 39,
Market = 40,
Mana = 41,
BeyondLast = 42,
MonsterYell = 43,
MonsterSay = 44,
Red = 45,
Blue = 46,
RVRChannel = 47,
RVRAnswer = 48,
RVRContinue = 49,
GameHighlight = 50,
NpcFromStartBlock = 51,
Last = 52,
Invalid = 255,
}

OTSERV_RSA = "1257278388773059323894442716487592351678313096682718797759346249" ..
"8799586437388039656239699544482659580983445089215828652182036487" ..
"4927094749711392445750195536773255730391615638123547395290847683" ..
"9450619532149270938018032598011774591846719539513785872578850312" ..
"09351510262192838158448586062449384450641266915078039"

CIPSOFT_RSA = "1321277432058722840622950990822933849527763264961655079678763618" ..
"4334395343554449668205332383339435179772895415509701210392836078" ..
"6959821132214473291575712138800495033169914814069637740318278150" ..
"2907336840325241747827401343576296990629870233111328210165697754" ..
"88792221429527047321331896351555606801473202394175817"

-- set to the latest Tibia.pic signature to make otclient compatible with official tibia
PIC_SIGNATURE = 0x56C5DDE7

OsTypes = {
Linux = 1,
Windows = 2,
Flash = 3,
OtclientLinux = 10,
OtclientWindows = 11,
OtclientMac = 12,
}

PathFindResults = {
Ok = 0,
Position = 1,
Impossible = 2,
TooFar = 3,
NoWay = 4,
}

PathFindFlags = {
AllowNullTiles = 1,
AllowCreatures = 2,
AllowNonPathable = 4,
AllowNonWalkable = 8,
}

VipState = {
Offline = 0,
Online = 1,
Pending = 2,
}

ExtendedIds = {
Activate = 0,
Locale = 1,
Ping = 2,
Sound = 3,
Game = 4,
Particles = 5,
MapShader = 6,
NeedsUpdate = 7
}

PreviewState = {
Default = 0,
Inactive = 1,
Active = 2
}

Blessings = {
None = 0,
Adventurer = 1,
SpiritualShielding = 2,
EmbraceOfTibia = 4,
FireOfSuns = 8,
WisdomOfSolitude = 16,
SparkOfPhoenix = 32
}

DeathType = {
Regular = 0,
Blessed = 1
}

ProductType = {
Other = 0,
NameChange = 1
}

StoreErrorType = {
NoError = -1,
PurchaseError = 0,
NetworkError = 1,
HistoryError = 2,
TransferError = 3,
Information = 4
}

StoreState = {
None = 0,
New = 1,
Sale = 2,
Timed = 3
}

AccountStatus = {
Ok = 0,
Frozen = 1,
Suspended = 2,
}

SubscriptionStatus = {
Free = 0,
Premium = 1,
}

ChannelEvent = {
Join = 0,
Leave = 1,
Invite = 2,
Exclude = 3,
}

-- @}
 
The multiprotocol pr simply isn't working yet, it's still under development, I've also tried everything and nothing, I've already reported the error to dudantas.
 
ok, then I am looking for a guide to additionally connect the tibia 10 client, is there such or someone would be able to help me?
 
There is an old code that allows multiprotocol, I'll send you a link

when i want to compile it gives me this error which is wrong what should i do?
[ 1%] Linking CXX executable ../bin/tfs
/usr/bin/ld: cannot find -lcryptopp-static: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/tfs.dir/build.make:1476: bin/tfs] Error 1
make[1]: *** [CMakeFiles/Makefile2:98: src/CMakeFiles/tfs.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
 
Back
Top