Login

Fancade Wiki

Replace some third party image links with uploaded images to protect high tracking

... ...
@@ -1,9 +1,10 @@
1 1
Fancade has a hard script limit. After a certain number of scripts in the editor, adding anything else will cause a "Too many scripts" error. The game will refuse to run as long as the extra scripts are not removed. Games that do not optimise scripts affecting multiple objects into loops are most likely to run into this issue.
2
![Too many scripts!](https://cdn.discordapp.com/attachments/852037487987392529/852037576935211018/Too_many_scripts.png)
2
3
[[/uploads/Too_many_scripts.png]]
3 4
4 5
# History
5 6
Script limit has been a mystery for a long time. An elusive upper limit that creators randomly hit, and are forced to scrap their ambitious project. Fancade 1.2 significantly improved the scenario by introducing Advanced Inspect blocks. Those blocks, when enabled, showed how much of the script limit has the game consumed already.
6
![Advanced Inspect](https://cdn.discordapp.com/attachments/852037487987392529/852039104958824478/Screenshot_20210609-094759_Fancade.png)
7
[[/uploads/Screenshot_20210609-094759_Fancade.png]]
7 8
8 9
# Technical Details
9 10
The introduction of advanced inspect allowed for more robust testing, which helped in discovering some key insights regarding the elusive script limit. Among those, Andrew Clark's discoveries were crucial for our current understanding of it.
... ...
@@ -17,7 +18,8 @@ The limit is 4096. The value doesn't matter as much as how you decide to use the
17 18
18 19
### Script Blocks
19 20
Every script block counts as 1 script towards the total limit. It does not matter which script block it is, as long as it is an inbuilt script block, it adds 1 to the counter. The attached image has 4 script blocks, thus the script consumption is 4/4096 or roughly 0.1%.
20
![4 Script Blocks](https://cdn.discordapp.com/attachments/852037487987392529/855423620397662238/Screenshot_20210618-113130_Fancade.png)
21
22
[[/uploads/Screenshot_20210618-113130_Fancade.png]]
21 23
22 24
### Wire Splits
23 25
A wire split counts as 1 script towards the limit. Thus the script in image A adds 4 scripts (3 script blocks + 1 wire split) to the counter.
Fancade Wiki