Comments (7)
Correct. How would you like this to be resolved?
from javidx9.
This solves it for me https://github.com/OneLoneCoder/videos/pull/54/files
from javidx9.
maybe we should implement a windows subsystem for lin... oh nvm it's called wine.
from javidx9.
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.
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.
What do you mean by changing some code for itself twice, or you misswrote it?
from javidx9.
lol forgot this was still open
from javidx9.
Related Issues (20)
- Easier to use SetConsoleScreenBufferInfoEx
- olcConsoleGameEngine.h does not display correctly HOT 3
- Non-circular Spline - looks strange or I don't get it :)
- ERROR: SCREEN Height / Font Height Too Big
- olcConsoleGameEngine.h - ERROR: Screen Height / Font Height Too Big
- Unhandled exception thrown: write access violation. this->m_bufScreen was 0x1110112. HOT 2
- Video
- Should reset dw1_step to zero here too.
- OneLoneCoder_olcEngine3D_Part3.cpp line 330 can be deleted
- 3D Graphics Engine Part #3. Clip against the frustum
- onUserSoundSample bug at 127 seconds after start HOT 2
- Not an issue but a request. Hidden line removal
- Small bug with Perlin-like noise generator HOT 1
- 3d console game engine does not display properly in Windows Terminal HOT 3
- Out of bounds? HOT 1
- Missing assets from multiple videos HOT 1
- Shame on David for boasting about his stupidity. HOT 3
- RPG_Main.cpp(55,24): error C2440: '=': cannot convert from 'OneLoneCoder_RPG *' to 'RPG_Engine *' HOT 2
- DDA vMapCheck truncation only works in positive axis
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javidx9.