About Store Forum Documentation Contact



Post Reply 
Hi, just got Esenthel RPG 2 (Source Code) today and need some help
Author Message
andreamillspaugh Offline
Member

Post: #1
Hi, just got Esenthel RPG 2 (Source Code) today and need some help
Hi, I just got Esenthel RPG 2 (Source Code) today from the store and I just wanted to test play it but I got this Error.

Quote:1>------ Build started: Project: Esenthel RPG 2, Configuration: Debug Win32 ------
1> stdafx.cpp
1> Torchiere.cpp
1> Storage.cpp
1> Save Game.cpp
1> Quest.cpp
1> Player.cpp
1> Options.cpp
1> Menu.cpp
1> Main.cpp
1> Item.cpp
1> Inventory Gui.cpp
1> Inventory.cpp
1> Intro.cpp
1> Horse.cpp
1> Game.cpp
1> Fireball.cpp
1> Door.cpp
1> Cursor.cpp
1> Controls.cpp
1> Constants.cpp
1> Chr.cpp
1>c:\esenthel\projects\_build_\esenthel rpg 2\source\chr.cpp(99): error C2102: '&' requires l-value
1>c:\esenthel\projects\_build_\esenthel rpg 2\source\chr.cpp(100): error C2102: '&' requires l-value
1> Generating Code...
1> Compiling...
1> Camera.cpp
1> Auto.cpp
1> Attack.cpp
1> AI.cpp
1> Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I have tried to change the \hold ready-1 with a deferent one but give me error, I'm still learning Esenthel so I don't really know what & requires l-value means yet I'v been changing some stuff just to see if I can get it working I even went to the Docs but can someone help me out with this sorry about that. smile I'm home more now so I really going though as much as I can smile
01-03-2015 12:13 AM
Find all posts by this user Quote this message in a reply
Remie Offline
Member

Post: #2
RE: Hi, just got Esenthel RPG 2 (Source Code) today and need some help
I will chime in as much as I can. I am new to Esenthel as well. While I am currently still learning C++, please bare with me smile. The issue seem's to lie within 'setUnsavedMembers();'. It has to do with the animations for the left and right ready stance of a controlled skeleton. While I am still confused and trying to figure out a fix ( new to C++ still ! ) you can simply just remove the lines below.

Code:
setUnsavedMembers();

   void setUnsavedMembers()
   {
      sac_hold_l=&cskel.getSkelAnim(UID( Anims/hold/ready-l));
      sac_hold_r=&cskel.getSkelAnim(UID( Anims/hold/ready-r));
  
   }

Removing those line's should allow your game to launch.
01-03-2015 01:25 AM
Find all posts by this user Quote this message in a reply
andreamillspaugh Offline
Member

Post: #3
RE: Hi, just got Esenthel RPG 2 (Source Code) today and need some help
Thanks, I just hid it just like you said just for now I just wanted to test it and see how its done, thanks Remie for your help. smile

void setUnsavedMembers()
{
///sac_hold_l=&cskel.getSkelAnim(UID( Anims/hold/ready-l));
/// sac_hold_r=&cskel.getSkelAnim(UID( Anims/hold/ready-r));

}
(This post was last modified: 01-03-2015 02:05 AM by andreamillspaugh.)
01-03-2015 02:04 AM
Find all posts by this user Quote this message in a reply
Remie Offline
Member

Post: #4
RE: Hi, just got Esenthel RPG 2 (Source Code) today and need some help
Glad it works! If I figure out a fix I'll post it here, good luck!
01-03-2015 02:22 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #5
RE: Hi, just got Esenthel RPG 2 (Source Code) today and need some help
Hello,

If you're using an older version of the engine, then this should be:
Code:
void setUnsavedMembers()
   {
      sac_hold_l=&cskel.getSkelAnim(UID(3312360691, 1302751452, 1883813276, 202279320));
      sac_hold_r=&cskel.getSkelAnim(UID(2956582258, 1243069028, 2584702351, 834408350));
   }


if you're on a newer version of the engine, then this should be:
Code:
void setUnsavedMembers()
   {
      sac_hold_l=cskel.getSkelAnim(UID(3312360691, 1302751452, 1883813276, 202279320));
      sac_hold_r=cskel.getSkelAnim(UID(2956582258, 1243069028, 2584702351, 834408350));
   }
01-03-2015 04:25 AM
Find all posts by this user Quote this message in a reply
andreamillspaugh Offline
Member

Post: #6
RE: Hi, just got Esenthel RPG 2 (Source Code) today and need some help
Thanks Esenthel smile
01-03-2015 05:40 AM
Find all posts by this user Quote this message in a reply
JRizzle Offline
Member

Post: #7
RE: Hi, just got Esenthel RPG 2 (Source Code) today and need some help
I will update this thread and say that the issue still stands. I just downloaded it 5 minutes before this post and when I went to build the project it received the error.

Esenthels solution is 100% correct.

Thanks Esenthel!
01-04-2015 01:36 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #8
RE: Hi, just got Esenthel RPG 2 (Source Code) today and need some help
Thanks, I'll be updating the RPG source together with the next Engine release in a few days smile
01-04-2015 01:45 AM
Find all posts by this user Quote this message in a reply
Post Reply