Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
dynamic level loading

tim12345
Guest
Quote
2017-06-20 23:38:33

Hey ya! As I understand it, when using the ccbSwitchToCCBFile() javascript feature, you must store your other .ccb level files in an accessible area so the game can load it. But what is to stop the user from simply opening up the other .ccb levels with a copy CopperCube??


crackyourspeaker
Registered User
Quote
2017-06-21 00:25:48

When using this can i simply add my level files in a folder anywhere in on computer or does the files need to be in a specific area?


crackyourspeaker
Registered User
Quote
2017-06-21 00:58:21

When I try to use the script this error pops up saying

Syntax error: missing ; before statement

I'm not a coder so idk what it means


crackyourspeaker
Registered User
Quote
2017-06-21 01:20:21

Ok nevermind the error, that's fixed now when I use the script it doesn't do anything


tim12345
Guest
Quote
2017-06-21 02:06:24

it needs to have the quotation marks in order to work like so ---> ccbSwitchToCCBFile("otherfile.ccb");
The original announcement only had single quotes for some reason which is inaccurate.


crackyourspeaker
Registered User
Quote
2017-06-21 05:44:19

I actually saw that and fixed it so it works now thanks


tim12345
Guest
Quote
2017-06-23 09:15:39

uh oh... I didn't get a response to my question. i must have angered the gods again...


niko
Moderator
Quote
2017-06-23 19:12:37

Ah, sorry
You are right, there is nothing preventing other people from opening your file, just like with other engines. If you want, you could encrypt them (then decrypt them temporarily and open the decrypted file), or at least don't give them the extension 'ccb', use anything else, like .dat.

And yes. you can use the file anywhere on your disk, use a path relative to your game executable to load it.


hgi
Registered User
Quote
2017-06-23 22:59:06

while we're on the subject of this, can this be used to make custom loading screens, as in showing a scene until a new one is loaded?


Create reply:


Posted by: (you are not logged in)


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