About Store Forum Documentation Contact



Post Reply 
RPG2 - build
Author Message
FranticAU Offline
Member

Post: #1
RPG2 - build
Hi Team,

Getting an error with the RPG2 build?

Anyone help with a basic guide to get it up and running would be appreciated, thanks

VS - compile issue

Output Window Compiling...

Main.cpp

c:\adventure island\rpg2\source\chr.h(43) : error C2146: syntax error : missing ';' before identifier 'type'

c:\adventure island\rpg2\source\chr.h(43) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\adventure island\rpg2\source\chr.h(43) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

c:\adventure island\rpg2\source\main.cpp(22) : error C2679: binary '=' : no operator found which takes a right-hand operand of type 'int' (or there is no acceptable conversion)

c:\program files (x86)\microsoft visual studio 9.0\vc\include\esenthelengine\graphics\color.h(70): could be 'EE::Color &EE::Color::operator =(const EE::Color &)'
while trying to match the argument list '(EE::Color, int)'

Results Build log was saved at "file://c:\ADVENTURE ISLAND\RPG2\Debug DX10+\BuildLog.htm"
Tutorials - 4 error(s), 0 warning(s)
07-05-2010 08:48 AM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #2
RE: RPG2 - build
Hello, probably I need to update ERPG2 source codes to the latest engine version.
I'll try to do it soon, if you don't want to wait you can check the Forum\Version History\ and Check all the changes made (especially marked with IMPORTANT), and also take a look at the Name Changes thread
07-05-2010 10:11 AM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #3
RE: RPG2 - build
Hello, I've checked it,

You need to download this part too - http://www.esenthel.com/download/Private...ta/Misc.7z

because "Main.h" from the source codes refers to
"#include "../data/enum/_enums.h"

that file is in the link above.

Inside it contains all enums used by the game which were generated by the World Editor.

As for the Color errors
'EE::Color &EE::Color::operator =(const EE::Color &)'
while trying to match the argument list '(EE::Color, int)'
in one of latest engine changes
colors can no longer be assigned from Int's
so if the code has something like this:
Color col=0xFFFFFF..
please change it into this:
Color col=Color(255,255,255,255);

I'll make the changes by myself while I will be releasing the next engine version in next few days.
07-07-2010 10:22 AM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #4
RE: RPG2 - build
ok, I've managed to update the sources now (before the next version)
07-07-2010 10:37 AM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #5
RE: RPG2 - build
I've uploaded the updated sources again, to match the latest SDK release uploaded just now
07-07-2010 10:33 PM
Find all posts by this user Quote this message in a reply
FranticAU Offline
Member

Post: #6
RE: RPG2 - build
Hi run engine auto update downloaded RPG2 update and still have one compile error?

Sorry new so not good enough to debug.... Thanks again

1>------ Build started: Project: Tutorials, Configuration: Release DX10+ x64 ------
1>Compiling...
1>Main.cpp
1>.\Source\Main.cpp(22) : error C2679: binary '=' : no operator found which takes a right-hand operand of type 'int' (or there is no acceptable conversion)
1> c:\program files (x86)\microsoft visual studio 9.0\vc\include\esenthelengine\Graphics/Color.h(70): could be 'EE::Color &EE::Color::operator =(const EE::Color &)'
1> while trying to match the argument list '(EE::Color, int)'
1>Build log was saved at "file://c:\ADVENTURE ISLAND\RPG2\x64\Release DX10+\BuildLog.htm"
1>Tutorials - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
07-08-2010 10:43 AM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #7
RE: RPG2 - build
you're not using latest .rar file, please re-download
07-08-2010 10:52 AM
Find all posts by this user Quote this message in a reply
FranticAU Offline
Member

Post: #8
RE: RPG2 - build
Thanks that did it, can you provide help with the section I need to comment for getting the RPG2 to build VS/load and getting around the "loading data pak with secure key is not included." thanks noob to the engine, thanks again
07-08-2010 01:27 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #9
RE: RPG2 - build
Hello, I recommend trying out first the tutorials from the SDK, or the Bloody Massacre demo, it has full source codes and data, so you can compile and run it no problem.
07-09-2010 08:14 AM
Find all posts by this user Quote this message in a reply
FranticAU Offline
Member

Post: #10
RE: RPG2 - build
Hello, thanks have bloody massacre operational. (forgot about that demo)

With RPG2 have it building now and loading with new players for the character selection but throwing an error in the savegame.cpp when loading the level

Error – Can’t load world “current_world=world_dir”

Any pointers would be helpful, thanks for the great engine having fun learning the tutorials, would be useful for me to have the RPG2 operational while learning.
(This post was last modified: 07-11-2010 10:47 PM by FranticAU.)
07-11-2010 10:47 PM
Find all posts by this user Quote this message in a reply
Zervox Offline
Member

Post: #11
RE: RPG2 - build
yeah you are not loading a world. thats your problem
in game.cpp

static Bool Init()


This line
SG.New("world/"name of world to load".world");
07-12-2010 01:36 AM
Find all posts by this user Quote this message in a reply
FranticAU Offline
Member

Post: #12
RE: RPG2 - build
Thanks for that, used your line

SG.New("world/"land.world");

looks like the land.world which is included with RPG2 is missing the (game) directory with (Area) and (Waypoints) so chucks another error when trying to load, is this not included in RPG2?
07-12-2010 11:18 AM
Find all posts by this user Quote this message in a reply
Zervox Offline
Member

Post: #13
RE: RPG2 - build
create your own world, create a waypoint with start in its property. simple : )
07-12-2010 01:14 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #14
RE: RPG2 - build
the "game" folder wasnt included to make archive file smaller, you can load the world in World Editor, press build, it will generate the game folder for you
07-12-2010 01:44 PM
Find all posts by this user Quote this message in a reply
FranticAU Offline
Member

Post: #15
RE: RPG2 - build
Thanks have the game building.

Had some issues with the mesh and objects not included in RPG2 but was able to work around them. thanks for the help
07-13-2010 06:16 AM
Find all posts by this user Quote this message in a reply
Post Reply