Jump to content

Compile Server Source With VS22


Recommended Posts

My two cents - since the topic is about using newer developer tools, it could be better to use less legacy solution than  _USE_32BIT_TIME_T.  The alternative isn't a refactor overkill, a mere four line change. In a file xdirent.cpp you need to make sure that DIR->handle operates in intptr_t and results of both _findfirst and _findnext in there do not cast back to long.

Link to comment
Share on other sites

  • 2 weeks later...
  • Honorable Member

Old: 

This is the hidden content, please

New: 

This is the hidden content, please

Generated from clean(kraizy) mainline source. (Even the strings are fine)

(Use new version if you have a brain)

Just Better

  • Metin2 Dev 228
  • kekw 5
  • Eyes 11
  • Dislove 1
  • Angry 2
  • Not Good 1
  • Sad 2
  • Smile Tear 2
  • Think 3
  • Confused 5
  • Scream 2
  • Lmao 2
  • Good 82
  • muscle 1
  • Love 19
  • Love 153

 

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...
  • 1 month later...
  • 2 weeks later...
  • 1 year later...
  • 1 month later...
  • 2 months later...

Thank you for the release. Visual Studio 2022 gives an error though. Do you know how I may fix it?

 

Severity	Code	Description	Project	File	Line	Suppression State	Details
Error	C2666	'CUBE_VALUE::operator ==': overloaded functions have similar conversions	game	C:\Users\Furkan\Desktop\yosunline\Server\Server\game\src\cube.cpp	736		

 

Link to comment
Share on other sites

On 1/10/2024 at 1:37 PM, Debloat said:

Thank you for the release. Visual Studio 2022 gives an error though. Do you know how I may fix it?

 

Severity	Code	Description	Project	File	Line	Suppression State	Details
Error	C2666	'CUBE_VALUE::operator ==': overloaded functions have similar conversions	game	C:\Users\Furkan\Desktop\yosunline\Server\Server\game\src\cube.cpp	736		

 

Fix:

cube.h

Change this struct like so:
 

struct CUBE_VALUE
{
    DWORD vnum;
    int count;

    bool operator==(const CUBE_VALUE& b) const
    {
        return (this->count == b.count) && (this->vnum == b.vnum);
    }
};


And now it's working, thank you again, Mali!:
raw

Edited by Metin2 Dev International
Core X - External 2 Internal
Link to comment
Share on other sites

  • 2 weeks later...

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.