Jump to content

Vanilla Core [latest: r71480]


Vanilla

Recommended Posts

  • 1 month later...
item.cpp:1962:12: error: use of undeclared identifier 'VOID'; did you mean 'VOID2'?
        SetWindow(VOID);
                  ^~~~
                  VOID2
./../../common/length.h:476:2: note: 'VOID2' declared here
        VOID2
        ^
1 error generated.
gmake: *** [Makefile:77: debug/item.o] Error 1
gmake: *** Waiting for unfinished jobs....

i'm using clang etc. and i have to ask, change VOID to VOID2 is good option? Finally it's compiled, but im not sure :v

Link to comment
Share on other sites

  • 2 weeks later...

Hey everyone, sorry for the lack of updates. Real life and stuff. Anyway, I'm preparing a bigger update. Lots of code cleaning and error fixing. I read what you wrote and will try to fix what you reported. Thanks to you all for reporting bugs and suggest changes.

Though I will start upgrading the code to c++17 standard which means that I'll most likely not make changes to macro definitions like mentioned above. People should build the project like it's meant to be and under the same feature sets and compilers like I did, to make sure there's less room for errors. If you want to port the code, you can do so of course, I don't mind that. But for 'official' release they won't be included.

  • Love 5

We are the tortured.
We're not your friends.
As long as we're not visible.
We are unfixable.

Link to comment
Share on other sites

  • 3 weeks later...
  • Management
11 hours ago, Hik said:

Thank's for Your work, Vanilla! 

I think it would be useful to create a small guide on how to configure a virtual machine that can compile your files without errors.
This would allow more people to test the file :D

He already did it:

raw

raw

Link to comment
Share on other sites

  • 1 month later...

No need to re-upload. Next version is already distributed to a few people for testing. If everything works it will be released :) Just waiting for feedback. If someone wants to test it, feel free to drop me a message.

  • Love 3

We are the tortured.
We're not your friends.
As long as we're not visible.
We are unfixable.

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
  • 4 weeks later...
vor 16 Minuten schrieb krokogames:

Hello how to fix this error

 

KP1nt7G.png?1

you need to build liblua which is located at the 'Internal' directory of the source.

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1

We are the tortured.
We're not your friends.
As long as we're not visible.
We are unfixable.

Link to comment
Share on other sites

12 hours ago, Vanilla said:

you need to build liblua which is located at the 'Internal' directory of the source.

thanks but i have new error 

can i replace code:  

  template <typename T> T MIN(T a, T b)
    {
        return a < b ? a : b;
    }

    template <typename T> T MAX(T a, T b)
    {
        return a > b ? a : b;
    }

    template <typename T> T MINMAX(T min, T value, T max)
    {
        T tv;

        tv = (min > value ? min : value);
        return (max < tv) ? max : tv;
    }

to:  

 template <typename T> T _MIN(T a, T b)
    {
        return a < b ? a : b;
    }

    template <typename T> T _MAX(T a, T b)
    {
        return a > b ? a : b;
    }

    template <typename T> T _MINMAX(T min, T value, T max)
    {
        T tv;

        tv = (min > value ? min : value);
        return (max < tv) ? max : tv;
    }

 

 

4hEp.png

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

  • Honorable Member
7 hours ago, krokogames said:

thanks but i have new error 

can i replace code:  


  template <typename T> T MIN(T a, T b)
    {
        return a < b ? a : b;
    }

    template <typename T> T MAX(T a, T b)
    {
        return a > b ? a : b;
    }

    template <typename T> T MINMAX(T min, T value, T max)
    {
        T tv;

        tv = (min > value ? min : value);
        return (max < tv) ? max : tv;
    }

to:  


 template <typename T> T _MIN(T a, T b)
    {
        return a < b ? a : b;
    }

    template <typename T> T _MAX(T a, T b)
    {
        return a > b ? a : b;
    }

    template <typename T> T _MINMAX(T min, T value, T max)
    {
        T tv;

        tv = (min > value ? min : value);
        return (max < tv) ? max : tv;
    }

 

 

4hEp.png

delete that codes from stl.h and use these:

std::min

std::max

std::minmax

note:

#include <algorithm>
Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1

 

Link to comment
Share on other sites

  • 3 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.