Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
custom scripts is not defined when loading other .ccb

lovareth_dev
Registered User
Quote
2017-12-12 03:20:30

I want to load other .ccb file from the main game program. The .ccb file loaded but throw an error into the console:

script1.ReferenceError: action_mycustomscript is not defined

I think the problem only occurs for custom script.

Actually i found a solution by putting the custom script inside the main game program (just putting inside any object) so the main program "knows" the custom script.

But,
how to appropiately define my custom script for loaded .ccb file?


niko
Moderator
Quote
2017-12-12 10:12:41

Hi,
this is a bug in the engine, sorry for this. There will be an update next week which also fixes this problem. Hope you can wait until then.


lovareth_dev
Registered User
Quote
2017-12-12 14:03:23

Oh i see.. glad that the fix is on next update
Can't wait for the next update! Thanks for the response!


ryandavanzo
Registered User
Quote
2023-12-30 23:00:52

still not fixed...


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Intern?tional" (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