- Debug Error!
- Program: ItemViewer.exe
- Invalid allocation size: 4294967295 bytes.
- (Press Retry to debug the application).
If you want to give it a try, here are a few things you need to do:
1°) download the code from his svn (see his google code website for this http://code.google.com/p/r3e/),
2°) download this .zip and unzip it into the "/libraries/include/" folder from his project so you have "/libraries/include/glnew/",
3°) change some stuff in his code:
a°) in project Item Viewer:
Change this path to the path of your extracted client:
- FileSystem::SetFileSystem((FileSystem*)(new BufferedFileSystem("D:\\Games\\RuffVFS Clean\\")));
REPLACE:
- #include <gl/glu.h>
BY:
- #include <glnew/gl3.h>
b°) in R3E project:
In file "OpenGl.hpp":
REPLACE:
- #include <gl/gl.h>
- #include <gl/glext.h>
BY:
- #include <glnew/gl3.h>
- #include <glnew/glext.h>
In file "OpenGl.hpp":
REPLACE:
- #include <gl/gl.h>
BY:
- #include <glnew/gl3.h>
4°) change the include and lib folder in the projects:
Click on one project (R3E or Item Viewer) first.
You must do it in debug and release configurations.
include:
You need to change the "include" for both projects.
The path to change is in "project->properties->configuration properties->c/c++->general-> additional include directories"
change "D:\Programming\Projects\R3E\Libraries\include"
to your "xxxxxxx\libraries\include" folder.
lib:
You need to change the "lib" only for R3E.
The path to change is in "project->properties->configuration properties->librarian-> additional library directories"
change "D:\Programming\Projects\R3E\Libraries\lib"
to your "xxxxxxx\libraries\lib" folder.
5°) rebuild the solution.
It seems sometimes it fails finding "R3E.lib". If that's the case, right click on "R3E" and hit "Rebuild", then when it's done, right click on "Item Viewer" and hit rebuild, should do the trick.
6°) after you build his code, don't forget to copy the two files in "/shaders/" folder to the folder the item "viewer.exe" is (or "/debug/" or "/release/").
WARNING
By the way there is a small bug in one of the shaders, named "1tex_skin_mesh.vsh", easy to fix. It causes some visual troubles like body moving like crazy and textures beeing weird or body not appearing at all.
Use those files rather (unrar it into the folder where "item viewer.exe" is):