please help

  • DanielGalrito
    17th Aug 2017 Member 0 Permalink

    I too am having problems compiling.

    When debugging it gives me the errors: cannot open source file "lua5.1/lua.h" in file LuaCompat.h ,

    lauxlib.h and lualib.h also cannot be opened.

  • zaccybot2
    17th Aug 2017 Member 0 Permalink

    What compiler and IDE (if you are using one) are you using?

  • DanielGalrito
    17th Aug 2017 Member 0 Permalink

    Sorry, Visual Studio 2015, what is the IDE?

  • zaccybot2
    17th Aug 2017 Member 0 Permalink

    That is the ide, the compiler is Microsoft visual c, but that's all I need. Did you set up the solution manually or did you download the premade one?

  • DanielGalrito
    17th Aug 2017 Member 0 Permalink

    Manually, from the Powder Toy github repository, using the premade project gives me even more errors, like the whole src folder was missing.

  • zaccybot2
    17th Aug 2017 Member 0 Permalink

    Check your project properties under VC++ directories > include directories. Check that you added the $(ProjectDir)\includes\lua5.1 setting 

     

    Sorry I can't help any better, I don't feel like turning on my computer at 1am.

     

    Edit: I'm going to sleep now, if no one has helped you by the morning, I can do it but right now i can only assume that you got caught up with something in real life. 

    Edited 4 times by zaccybot2. Last: 17th Aug 2017
  • DanielGalrito
    17th Aug 2017 Member 0 Permalink

    Yeah, still getting the same error. I had $(ProjectDir)\includes\lua5.2 instead, but changing it to 5.1 didn't seem to help.

    And only now i noticed the meaning of that setting, $(ProjectDir)\data or $(ProjectDir)\src lead to the folders with these names in the directory, but i dont have any folder named "include".

  • jacob1
    17th Aug 2017 Developer 0 Permalink
    You probably haven't downloaded "Required Libraries.zip". A lot of people forget to do this when doing manual setup.

    ----> https://drive.google.com/uc?id=0B1XWtCTn2YPASHFkeGZZZzR4U28&export=download

    By the way, you should try the premade project again. I updated it 2 or 3 days ago. I do strongly recommend attempting the premade one first, and only doing manual setup if it doesn't work. If it doesn't work, can you paste in here the errors you get?
    If you got VS 2015, you most likely followed the guide before I updated it. The new guide uses VS 2017, but definitely keep using 2015 if you already have it installed, I kept support for that too.
    Edited once by jacob1. Last: 17th Aug 2017
  • DanielGalrito
    17th Aug 2017 Member 0 Permalink

    I got the updated premade project and built mostly without errors, but in the end I get an error about CreateFile2 in KERNEL32.dll.

  • zaccybot2
    17th Aug 2017 Member 0 Permalink

    Is that the only error you get? And can you copy and paste the complete error, (if it is very large, put it on pastebin and share the link here)?