About Store Forum Documentation Contact



Post Reply 
[SOLVED] Error building RPG 2
Author Message
nomax5 Offline
Member

Post: #1
[SOLVED] Error building RPG 2
I think I've set up RPG 2 in the same way as I did the MMO example:
coppied the Esenthel RPG 2 folder into EsenthelEngineSDK
coppied all the physX dll's from EsenthelEngine/PhysX into Esenthel RPG 2/bin
coppied engine.pak from EsenthelEngine/Data into Esenthel RPG 2/Data

Ran Editor 64.exe
Reset the data path
Closed the editor
Restarted the editor and set the path to EsenthelEngineSDK/ Esenthel RPG 2/Data
I clicked explore to check the path is EsenthelEngineSDK/ Esenthel RPG 2/Data/World/land.world
Load the world
Did Clean All Build All

Exited the editor
double clicked Esenthel RPG 2 /Esenthel RPG 2 VS 2010.sln
it gives me the choice of
Visual C++ Express 2010
Visual C++ Express 10
(I've tried them both)

I get this error:

1>c:\esenthelenginesdk\esenthel rpg 2\source\game.cpp(450): error C2664: 'void EE::Game::ObjParams::type(Bool,const EE::Str &)' : cannot convert parameter 2 from 'const EE::UID' to 'const EE::Str &'
1> Reason: cannot convert from 'const EE::UID' to 'const EE::Str'
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called

I've search the forum for the error, Any help greatly appreciated
(This post was last modified: 02-24-2013 01:55 PM by nomax5.)
02-24-2013 11:51 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Error building RPG 2
Hi,

Did you try updating the sdk to latest version?
02-24-2013 11:57 AM
Find all posts by this user Quote this message in a reply
nomax5 Offline
Member

Post: #3
RE: Error building RPG 2
I have now, I will always run EsenthelEngineSDK/Autoupdate.exe in future before asking questions.

There are actually 2 errors Player.cpp and Game.cpp

1>------ Build started: Project: Esenthel RPG 2, Configuration: Debug Win32 ------
1> Player.cpp
1>c:\esenthelenginesdk\esenthel rpg 2\source\player.cpp(315): error C2664: 'void EE::Game::ObjParams::type(Bool,const EE::Str &)' : cannot convert parameter 2 from 'const EE::UID' to 'const EE::Str &'
1> Reason: cannot convert from 'const EE::UID' to 'const EE::Str'
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1> Game.cpp
1>c:\esenthelenginesdk\esenthel rpg 2\source\game.cpp(450): error C2664: 'void EE::Game::ObjParams::type(Bool,const EE::Str &)' : cannot convert parameter 2 from 'const EE::UID' to 'const EE::Str &'
1> Reason: cannot convert from 'const EE::UID' to 'const EE::Str'
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1> Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I might have a clue: In the editor when I load the world everything is there except the player character model I can see the club the health potion and the goblins etc.
but no player model.
When I Play Last build there is no character either just a camera.

I seem to be missing the character model
02-24-2013 12:23 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: Error building RPG 2
After updating the SDK, could you try doing "Rebuild" option in the Visual Studio so that it will recompile the precompiled header?
I think that should help

Quote:I might have a clue: In the editor when I load the world everything is there except the player character model I can see the club the health potion and the goblins etc.
but no player model.
When I Play Last build there is no character either just a camera.

I seem to be missing the character model
that's not related, the character is created dynamically in the codes, so everything is ok with that smile
02-24-2013 12:37 PM
Find all posts by this user Quote this message in a reply
nomax5 Offline
Member

Post: #5
RE: Error building RPG 2
OMG (microsoft) Build doesn't rebuild?
In visual studio I had to change menu Tools - settings and set it to "Expert Settings" to get the Rebuild Solution Option in the menu

I used Rebuild Solution and it seems to have worked
1>------ Rebuild All started: Project: Esenthel RPG 2, Configuration: Debug Win32 ------
1> stdafx.cpp
1> Torchiere.cpp
1> Storage.cpp
1> SaveGame.cpp
1> Quest.cpp
1> Player.cpp
1> Options.cpp
1> Menu.cpp
1> Main.cpp
1> Item.cpp
1> Inventory.cpp
1> Inventory Gui.cpp
1> Intro.cpp
1> Horse.cpp
1> Game.cpp
1> Fireball.cpp
1> Door.cpp
1> Controls.cpp
1> Chr.cpp
1> Camera.cpp
1> AI.cpp
1> Generating Code...
1> Esenthel RPG 2.vcxproj -> C:\EsenthelEngineSDK\Esenthel RPG 2\Esenthel RPG 2.exe
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

Then I restarted Visual studio and in the output section I see

C:\EsenthelEngineSDK\Esenthel RPG 2\Esenthel RPG 2.vcxproj : warning : Platform 'x64' referenced in the project file 'Esenthel RPG 2' cannot be found. Please make sure you have it installed under '%VCTargetsPath%\Platforms\x64'.

I click Build - Build Solution and get

========== Build: 0 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========

when I try to run the exe I get

Shader Param "BendFactor" not found pop up

I searched the forums and there is a similar error here http://www.esenthel.com/community/showth...Shader+Par

the solution was " you have to use the latest engine.pak and it needs a rebuild if you just updated through the update tool."

how do I rebuild engine.pak?

The thought occurs is RPG 2 multiplayer? is it MMO? will I end up with a Server and a Client exe?
02-24-2013 01:27 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
RE: Error building RPG 2
Hi,

After you've upgraded to latest SDK using Autoupdate, please also copy the latest "engine.pak" to the RPG 2 folder as in the installation instructions.

ERPG2 is not MMO, it's only single player, with 1 EXE file.
02-24-2013 01:29 PM
Find all posts by this user Quote this message in a reply
nomax5 Offline
Member

Post: #7
RE: Error building RPG 2
Thank you for your excellent help once again Esenthel

I have been stupid and bought the wrong thing, I assumed that RPG2 was multiplayer, I have no interest what-so-ever in single player games.

I'm going to buy Ineisis Online (Source Code) is there any chance of a refund on erpg2 ? I will never use it.

Copying the engine.pak in to the folder worked, and I know to do that in the future when ever I Autoupdate.
02-24-2013 01:54 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #8
RE: [SOLVED] Error building RPG 2
Hello,

I apologize but in Esenthel Store the items are non-refundable.

You can see Esenthel Store Terms in http://www.esenthel.com/?id=store
when you click "Login / Register" there is:
"By logging in, you agree to Esenthel Store Terms."
02-24-2013 02:01 PM
Find all posts by this user Quote this message in a reply
nomax5 Offline
Member

Post: #9
RE: [SOLVED] Error building RPG 2
I know it was my fault :(
02-24-2013 02:21 PM
Find all posts by this user Quote this message in a reply
Post Reply