otcv8-dev icon indicating copy to clipboard operation
otcv8-dev copied to clipboard

Error on compile

Open Vagnerking opened this issue 3 years ago • 14 comments

image

Vagnerking avatar Mar 04 '23 00:03 Vagnerking

The error is resolved after using visual studio 2022 and moving to v143

Vagnerking avatar Mar 04 '23 14:03 Vagnerking

An extra note on this issue:

This issue can occur whenever you have multiple compilers installed, such as v142 (14.28.29910) and v143 (14.34.31933). vcpkg could have chosen to use v143 over v142. If you then attempt to compile in v142 using VS2019, this error can occur as the linked library was compiled using a different/newer compiler.

Kezuino avatar Mar 04 '23 14:03 Kezuino

Can i have more than 1 visual studion installed? because i use another version to compile my otserver

victorvadl avatar Aug 21 '23 02:08 victorvadl

Can i have more than 1 visual studion installed? because i use another version to compile my otserver

You can, however, with some libraries you have make sure the library itself is build with the same compiler as the application or tool you're trying to build, else link errors can occur.

Kezuino avatar Aug 21 '23 11:08 Kezuino

@Kezuino can you help me with that issue? I'm already using VS 2022 but I still getting error. I solved most of them but now I'm having problem with 'beast' from 'boost'. All 52 errors is from 'beast'.

image

victorvadl avatar Aug 21 '23 12:08 victorvadl

Can i have more than 1 visual studion installed? because i use another version to compile my otserver

You can, however, with some libraries you have make sure the library itself is build with the same compiler as the application or tool you're trying to build, else link errors can occur.

Idk if im selecting right options here too: image image

Dont have win64 option here

victorvadl avatar Aug 21 '23 13:08 victorvadl

Worked bro! Now its working. I have only one error now. with 'tostring' Can i remove it or have another way to fix it? m_result->size = atoi(msg["Content-Length"].to_string().c_str());

Severity	Code	Description	Project	File	Line	Suppression State
Error	C2039	'to_string': is not a member of 'boost::core::basic_string_view<char>'	otclient	C:\Users\victor_rafael\Downloads\otcv8-dev-master\otcv8-dev-master\src\framework\http\session.cpp	124	

image

victorvadl avatar Aug 21 '23 13:08 victorvadl

I presume you can change it to be the same as this commit https://github.com/OTAcademy/otclientv8/commit/5688d70d801e489953c8218fe0adbaeb7b2bb7d3

Kezuino avatar Aug 21 '23 13:08 Kezuino

I presume you can change it to be the same as this commit OTAcademy/otclientv8@5688d70

Thank buddy! It worked! Now im having another issue haha i cant connect even selecting protocol 8.0 I got msg that only clients with procotol 8.0 allowed. Should i change something in source too for this?

image

victorvadl avatar Aug 21 '23 14:08 victorvadl

I presume you can change it to be the same as this commit OTAcademy/otclientv8@5688d70

Thank buddy! It worked! Now im having another issue haha i cant connect even selecting protocol 8.0 I got msg that only clients with procotol 8.0 allowed. Should i change something in source too for this?

image

That is the server replying that only protocol 8.0 is allowed. You'll have to change settings around so it knows your client is using protocol 8.00. These settings can be changed in the init.lua. Basically in the server list you can define the server's properties. (e.g. ip:port:protocol[:features]* or 127.0.0.1:7171:800)

But if you have questions not detailing the current issue, I would like to refer you to the discord or OTAcademy or OTClientV8.

Kezuino avatar Aug 21 '23 14:08 Kezuino

I presume you can change it to be the same as this commit OTAcademy/otclientv8@5688d70

Thank buddy! It worked! Now im having another issue haha i cant connect even selecting protocol 8.0 I got msg that only clients with procotol 8.0 allowed. Should i change something in source too for this? image

That is the server replying that only protocol 8.0 is allowed. You'll have to change settings around so it knows your client is using protocol 8.00. These settings can be changed in the init.lua. Basically in the server list you can define the server's properties. (e.g. ip:port:protocol[:features]* or 127.0.0.1:7171:800)

But im using custom look:

image

I testes changed to 7.92 on server side and also on client. both in 8.00 but got the same error

victorvadl avatar Aug 21 '23 14:08 victorvadl

That is the server replying that only protocol 8.0 is allowed. You'll have to change settings around so it knows your client is using protocol 8.00. These settings can be changed in the init.lua. Basically in the server list you can define the server's properties. (e.g. ip:port:protocol[:features]* or 127.0.0.1:7171:800)

Presumably there is still a mismatch in version/protocol or signatures. Best to double check that on both client and server side.

However, your issue no longer concerns this GH issue on this page, I would like to refer you to the discord of OTAcademy or OTClientV8 for other questions.

Kezuino avatar Aug 21 '23 14:08 Kezuino

That is the server replying that only protocol 8.0 is allowed. You'll have to change settings around so it knows your client is using protocol 8.00. These settings can be changed in the init.lua. Basically in the server list you can define the server's properties. (e.g. ip:port:protocol[:features]* or 127.0.0.1:7171:800)

Presumably there is still a mismatch in version/protocol or signatures. Best to double check that on both client and server side.

However, your issue no longer concerns this GH issue on this page, I would like to refer you to the discord of OTAcademy or OTClientV8 for other questions.

Ye thanks, do you have discord? Can i talk with you there?

victorvadl avatar Aug 21 '23 14:08 victorvadl

That is the server replying that only protocol 8.0 is allowed. You'll have to change settings around so it knows your client is using protocol 8.00. These settings can be changed in the init.lua. Basically in the server list you can define the server's properties. (e.g. ip:port:protocol[:features]* or 127.0.0.1:7171:800)

Presumably there is still a mismatch in version/protocol or signatures. Best to double check that on both client and server side. However, your issue no longer concerns this GH issue on this page, I would like to refer you to the discord of OTAcademy or OTClientV8 for other questions.

Ye thanks, do you have discord? Can i talk with you there?

Currently not, as I am at work. But there are many others who can help you on either Discords :).

Kezuino avatar Aug 21 '23 14:08 Kezuino