Are there limits when creating a startup?

Hello guys,I have been meaning to ask about the size required for a startup,are the limits there?Like when you are creating a startup you should not exceed a certain size or words.
Or it’s limitiless

2 Likes

Each file, not just startup, is limitless. However it is generally recommended you prevent the file from exceeding 2500 lines if i remember correctly, to keep loading times down.

2 Likes

Ok thanks man, true about the loading time,I AM WORKING on an interactive that I am not going to reveal and have encountered such a problem it’s now taking more seconds to flip a page,is there any way this can be resolved?

3 Likes

Other than breaking it up into more individual scene files so that each one contains less code, there isn’t really a way I’m afraid. It also may be dependend on the power of your device but I am unable to confirm that myself.

2 Likes

Yeh the problem didn’t start when I was icreasing the size of like chapter1 or chapter2 it started when I did that to the startup.Maybe it’s my device coz I’m using an android 1GB RAM to do this.

1 Like

Yeah thats prolly the problem then. You probably shouldn’t be doing coding on a phone unless its really high end. From my experience choicscript works relatively well on even crappy laptops, so if you have a computer I would recommend you do your coding on there rather than your phone.

3 Likes

If only I had one I did do that in a heartbeat,thanks man you have been helpful.

1 Like

I feel like there is a bit of issue there too, dashingdon only supports up to twenty files if I am recalling correctly, and a few file slots are taken up by the essentials (stat screen & startup).

2 Likes

I remember some string manipulation loops used to cause a lot of lag.

Anyone that used twigger_fluff solution to code inventories with more than 100 items will also experience loong lags while running a game…

1 Like

What apps are you using to code and run your game? Making sure they’re up to date and/or switching to less resource intensive ones could possibly help.

Do you have a lot of *gosub_scene commands in your startup.txt file? I’ve found they can be rather slow, and unfortunately there’s not much you can do about it.

The 20 file limit is a limit on how many files you can upload at once. Not sure if there’s a limit on total number of files per game, but if there is it’s pretty high.

3 Likes

Thanks for clarifying that, I couldn’t quite remember. I am glad to hear I don’t have to merge chapters later on in my project, I was quite resenting the prospect to be honest.

4 Likes

Without taking things to absurd extremes, the biggest slowdown seems to be gosub_scene. Usually takes a second to load.

3 Likes

An entire second? Wow!

Good to know.

Will try to keep the activities of my subroutines inside the active scene the maximum possible. Thanks for the tip. :smiley:

1 Like