About Store Forum Documentation Contact



Post Reply 
Strange Errors
Author Message
pwsi Offline
Member

Post: #1
Strange Errors
Getting errors I can not figure out why... Will replicate steps here. Re-Installed Esenthel (got New Computer is reason), Had copy of RPG 2 project source (downloaded from last year I think). Re-Downloaded that source and imported it ... Got crazy errors HERE will list below, however running the old project that I downloaded last year works fine... Thoughts?

[ Player.cpp
Source\Player.cpp(298): error C2065: 'ActiveCam': undeclared identifier [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
Source\Player.cpp(298): error C2228: left of '.at' must have class/struct/union [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
Source\Player.cpp(298): note: type is 'unknown-type'
Source\Player.cpp(298): error C2440: '<function-style-cast>': cannot convert from 'EE::Vec' to 'EE::Plane' [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
Source\Player.cpp(298): note: No constructor could take the source type, or constructor overload resolution was ambiguous
Source\Player.cpp(298): error C2665: 'EE::SweepPointPlane': none of the 4 overloads could convert all the argument types [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
d:\esenthel_engine\bin\esenthelengine\Math/Shapes/Plane.h(135): note: could be 'Bool EE::SweepPointPlane(const EE::VecD &,const EE::VecD &,const EE::PlaneD &,Dbl *,EE::VecD *,EE::VecD *,Bool)'
d:\esenthel_engine\bin\esenthelengine\Math/Shapes/Plane.h(134): note: or 'Bool EE::SweepPointPlane(const EE::Vec &,const EE::Vec &,const EE::Plane &,Flt *,EE::Vec *,EE::Vec *,Bool)'
d:\esenthel_engine\bin\esenthelengine\Math/Shapes/Plane.h(133): note: or 'Bool EE::SweepPointPlane(const EE::VecD2 &,const EE::VecD2 &,const EE::PlaneD2 &,Dbl *,EE::VecD2 *,EE::VecD2 *,Bool)'
d:\esenthel_engine\bin\esenthelengine\Math/Shapes/Plane.h(132): note: or 'Bool EE::SweepPointPlane(const EE::Vec2 &,const EE::Vec2 &,const EE::Plane2 &,Flt *,EE::Vec2 *,EE::Vec2 *,Bool)'
Source\Player.cpp(298): note: while trying to match the argument list '(EE::Vec, EE::Vec, nullptr, EE::Vec *)'
Game.cpp
Source\Game.cpp(312): error C2065: 'ActiveCam': undeclared identifier [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
Source\Game.cpp(312): error C2228: left of '.matrix' must have class/struct/union [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
Source\Game.cpp(312): note: type is 'unknown-type'
Source\Game.cpp(312): error C2228: left of '.pos' must have class/struct/union [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
Source\Game.cpp(452): error C2039: 'setDepthForDebugDrawing': is not a member of 'EE::RendererClass' [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
d:\esenthel_engine\bin\esenthelengine\Graphics/Renderer.h(57): note: see declaration of 'EE::RendererClass'
Source\Game.cpp(473): error C2065: 'ActiveCam': undeclared identifier [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
Source\Game.cpp(473): error C2228: left of '.matrix' must have class/struct/union [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
Source\Game.cpp(473): note: type is 'unknown-type'
Source\Game.cpp(473): error C2228: left of '.pos' must have class/struct/union [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
Camera.cpp
Source\Camera.cpp(16): error C2065: 'ActiveCam': undeclared identifier [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
Source\Camera.cpp(16): error C2228: left of '.matrix' must have class/struct/union [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
Source\Camera.cpp(16): note: type is 'unknown-type'
Source\Camera.cpp(16): error C2228: left of '.pos' must have class/struct/union [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
Source\Camera.cpp(17): error C2228: left of '.vel' must have class/struct/union [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
Source\Camera.cpp(17): error C2065: 'ActiveCam': undeclared identifier [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
Source\Camera.cpp(18): error C2228: left of '.orn' must have class/struct/union [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
Source\Camera.cpp(18): error C2065: 'ActiveCam': undeclared identifier [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
Source\Camera.cpp(18): error C2228: left of '.matrix' must have class/struct/union [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
Source\Camera.cpp(18): note: type is 'unknown-type'
Source\Camera.cpp(18): error C2228: left of '.z' must have class/struct/union [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
Source\Camera.cpp(18): error C2228: left of '.y' must have class/struct/union [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
Source\Camera.cpp(24): error C2065: 'ActiveCam': undeclared identifier [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
Source\Camera.cpp(24): error C2228: left of '.at' must have class/struct/union [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
Source\Camera.cpp(24): note: type is 'unknown-type'
Source\Camera.cpp(25): error C2228: left of '.vel' must have class/struct/union [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
Source\Camera.cpp(25): error C2065: 'ActiveCam': undeclared identifier [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
Source\Camera.cpp(26): error C2228: left of '.orn' must have class/struct/union [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
Source\Camera.cpp(26): error C2065: 'ActiveCam': undeclared identifier [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
Source\Camera.cpp(26): error C2228: left of '.yaw' must have class/struct/union [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
Source\Camera.cpp(26): note: type is 'unknown-type'
Auto.cpp
Generating Code...
[/code]]
09-05-2017 10:49 AM
Find all posts by this user Quote this message in a reply
RedcrowProd Offline
Binary Licensee

Post: #2
RE: Strange Errors
The engine might have changed some classes used in rpg2.
Take a look at activecam class and try updating your code to match new names
09-05-2017 03:19 PM
Find all posts by this user Quote this message in a reply
pwsi Offline
Member

Post: #3
RE: Strange Errors
Yes I changed ActiveCam to Cam... Errors are gone there. Still getting this...

Game.cpp
Source\Game.cpp(452): error C2039: 'setDepthForDebugDrawing': is not a member of 'EE::RendererClass' [D:\ESENTHEL_ENGINE\Projects\_Build_\Esenthel RPG 2\Project.vcxproj]
d:\esenthel_engine\bin\esenthelengine\Graphics/Renderer.h(57): note: see declaration of 'EE::RendererClass'
Camera.cpp
Generating Code...

Looks like setDepthForDebugDrawing need to look at.

BOOM.

That was it

Had to change GAME/ line 535
to the following......
if(Renderer.rebuildDepthNeededForDebugDrawing())Renderer.rebuildDepth();

So basically the current download of RPG 2 source has ActiveCam and also EE:RenderClass set up up wrong?
(This post was last modified: 09-05-2017 08:00 PM by pwsi.)
09-05-2017 07:52 PM
Find all posts by this user Quote this message in a reply
RedcrowProd Offline
Binary Licensee

Post: #4
RE: Strange Errors
Yes if you have latest engine version and downloaded again the source of rpg2 then it might be outdated. Normally greg is pretty good at keeping the source working and im sure he will fix it in no time smile but im glad you could figure it out in the mean time wink
(This post was last modified: 09-05-2017 08:41 PM by RedcrowProd.)
09-05-2017 08:41 PM
Find all posts by this user Quote this message in a reply
pwsi Offline
Member

Post: #5
RE: Strange Errors
Found another issue in the Visual Event System, PM'd Tottel said he's aware but was trying to fix my damn self... ha

stdafx.cpp
d:\esenthel_engine\projects\_build_\visualeventsystem\source\@BaseEvent.h(36): error C2059: syntax error: 'nullptr' [D:\ESENTHEL_ENGINE\Projects\_Build_\VisualEventSystem\Project.vcxproj]
d:\esenthel_engine\projects\_build_\visualeventsystem\source\@BaseEvent.h(36): error C2238: unexpected token(s) preceding ';' [D:\ESENTHEL_ENGINE\Projects\_Build_\VisualEventSystem\Project.vcxproj]
d:\esenthel_engine\projects\_build_\visualeventsystem\source\@BaseEvent.h(37): error C2059: syntax error: 'nullptr' [D:\ESENTHEL_ENGINE\Projects\_Build_\VisualEventSystem\Project.vcxproj]
d:\esenthel_engine\projects\_build_\visualeventsystem\source\@BaseEvent.h(37): error C2238: unexpected token(s) preceding ';' [D:\ESENTHEL_ENGINE\Projects\_Build_\VisualEventSystem\Project.vcxproj]
09-05-2017 08:42 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
RE: Strange Errors
Hi, Sorry for the problem, the game source code was already updated to the latest engine version that's not released yet. It will work ok when I update the engine in a few days.
If you don't want to wait, you can replace all 'ActiveCam' with 'Cam'.
09-06-2017 01:38 AM
Find all posts by this user Quote this message in a reply
pwsi Offline
Member

Post: #7
RE: Strange Errors
Yes that is what I did... If you have any advice on the Visual Event System let me know.
(This post was last modified: 09-06-2017 02:17 AM by pwsi.)
09-06-2017 02:17 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #8
RE: Strange Errors
The update for Visual Event System has already been accepted to the store, you can redownload it.
09-06-2017 02:19 AM
Find all posts by this user Quote this message in a reply
pwsi Offline
Member

Post: #9
RE: Strange Errors
Just did,, Thank you
09-06-2017 02:42 AM
Find all posts by this user Quote this message in a reply
Post Reply