andreamillspaugh
Member
|
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. I'm home more now so I really going though as much as I can
|
|
01-03-2015 12:13 AM |
|
Remie
Member
|
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 . 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 |
|
andreamillspaugh
Member
|
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.
void setUnsavedMembers()
{
///sac_hold_l=&cskel.getSkelAnim(UID( Anims/hold/ready-l));
/// sac_hold_r=&cskel.getSkelAnim(UID( Anims/hold/ready-r));
}
|
|
01-03-2015 02:04 AM |
|
Remie
Member
|
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 |
|
Esenthel
Administrator
|
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 |
|
JRizzle
Member
|
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 |
|