Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Feature requests and bug reports
ReferenceError: ccbGetCopperCubeVariable undefined

DouweDabbe
Guest
Quote
2022-05-25 03:59:37

I have:
1 PlayerNode
2 Enemy Nodes
3 PlayerStatus reporting Nodes

I do this
The avatars are all similar so I generalize my code.
So I call a function to read the avatar status and write the answer in one concatenated string to the output.

in my function I see my avatar involved and I see it properties.

my code goes like this
var sHealth = String.fromCharCode(35) +
......................this.name.toString() +
......................"health";
// ...... is just for place holding here on forum
// String.fromCharCode(35) results in =||= the hashcharacter.
// sHeath is now "=||=P1.health" as a string --> looks good to me

var vHealth = ccbGetCopperCubeVariable(sHealth);
// BUG message:
// script 330: ReferenceError: ccbGetCopperCubeVariable is not defined.

// I know =||= is an illegal character in jscode, so i try:
var vHealth = ccbGetCopperCubeVariable( sHealth.toString() );
// results in same error, I now try as I would with clerk samples:
var vHealth = ccbGetCopperCubeVariable( "=||=P1.health");
// =||= is ofcourse 1 character also known as Hash character
// result same script 332: ReferenceError: ccbGetCopperCubeVariable is not defined.

Did I break the engine or what is going on here ???


DouweDabbe
Guest
Quote
2022-05-25 16:58:28

I just found that:

this problem only exist in the scripting window.
not in the running app

apparently you cant check the clerk and others intestines when he is not really alive and going around.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internat?onal" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact