GithubHelp home page GithubHelp logo

Comments (7)

OneLoneCoder avatar OneLoneCoder commented on July 19, 2024 2

Correct. How would you like this to be resolved?

from javidx9.

adamrt avatar adamrt commented on July 19, 2024 2

This solves it for me https://github.com/OneLoneCoder/videos/pull/54/files

from javidx9.

RealDoigt avatar RealDoigt commented on July 19, 2024

maybe we should implement a windows subsystem for lin... oh nvm it's called wine.

from javidx9.

Xeraster avatar Xeraster commented on July 19, 2024

Is the olcConsoleGameEngineSDL.h file compatible with Linux? It doesn't contain an include windows.h anywhere. It keeps complaining about there being no matching function call for the ifstream stuff on line 348 and 374 and also this stuff:
olc3d.cpp: In member function ‘CHAR_INFO olcEngine3D::GetColour(float)’: olc3d.cpp:540:5: error: ‘struct CHAR_INFO’ has no member named ‘Attributes’ c.Attributes = bg_col | fg_col; ^~~~~~~~~~ olc3d.cpp:541:5: error: ‘struct CHAR_INFO’ has no member named ‘Char’ c.Char.UnicodeChar = sym; ^~~~ olc3d.cpp: In member function ‘virtual bool olcEngine3D::OnUserUpdate(float)’: olc3d.cpp:698:28: error: ‘struct CHAR_INFO’ has no member named ‘Attributes’ triTransformed.col = c.Attributes; ^~~~~~~~~~ olc3d.cpp:699:28: error: ‘struct CHAR_INFO’ has no member named ‘Char’ triTransformed.sym = c.Char.UnicodeChar;

The file seems to be meant to work on Linux but there's probably something I need to be doing that I don't know about.

from javidx9.

Xeraster avatar Xeraster commented on July 19, 2024

So after messing around, I replaced the std::ofstream f(path.c_str(), std::ios::out | std::ios::binary); line with std::ofstream f(path.c_str(), std::ios::out | std::ios::binary); and then the std::ifstream f(path.c_str(), std::ios::in | std::ios::binary); line with std::ifstream f(path.c_str(), std::ios::in | std::ios::binary);.

Since I was trying to get the old engine 3d part 4 file to work, I fixed those problems by replacing the "attributes" and "unicodeChar" variables with "color" and "glyph". It ended up actually working. The cube only appears showing up every other time I run the program but other than that it seems to work.

from javidx9.

alu0101131108 avatar alu0101131108 commented on July 19, 2024

What do you mean by changing some code for itself twice, or you misswrote it?

from javidx9.

truemaker avatar truemaker commented on July 19, 2024

lol forgot this was still open

from javidx9.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.