Limitations in Fancade scripting: Difference between revisions
(→Number of created objects: link to Object) Tags: Mobile edit Mobile web edit Advanced mobile edit |
(Added late update limit) Tags: Mobile edit Mobile web edit Advanced mobile edit |
||
| Line 43: | Line 43: | ||
== Number limit == | == Number limit == | ||
The biggest [[number]] you can make is just under 2^128 which is | The biggest [[number]] you can make is just under 2^128 which is around 3.40e38, a number with 38 digits. | ||
Going higher gives <code>inf</code> instead. | Going higher gives <code>inf</code> instead. | ||
| Line 53: | Line 53: | ||
The maximum index of a [[list]] is 1,048,575. | The maximum index of a [[list]] is 1,048,575. | ||
Going higher gives the "List too big!" error. | Going higher gives the "List too big!" error. | ||
== Late Update limit == | |||
The maximum amount of late updates is 255. Going higher gives "Stack overflow! Infinite loop?" error. | |||
This counts the total number of times [[Late Update]] blocks have been executed in the current frame, which means a late update inside a [[Loop]] is counted for each iteration. | |||
Late updates inside late updates are not counted. | |||
[[Category:Scripting]] | [[Category:Scripting]] | ||
Latest revision as of 15:26, 15 December 2025
This page compiles a list of restrictions in a Fancade game.
Number of created objects
The limit of objects that you can create with Create Object on Play is 4096 blocks.
Script limit
- Main article: Script limit
Wire splitting
- Main article: Wire splits
The limit is 8 connections per output, or input.
Number of variables
The maximum number of variables of any type and any kind (local, global or saved) is 4096. The maximum number of of saved variables is 64.
Ports of scripts
A custom script can only have up to 16 input or output terminals.
Size of a block
The maximum size of a single custom block is restricted to 4x4x4 blocks, or 32x32x32 voxels.
Maximum levels
100 maximum levels can be created for a game. This limit may cap further given many custom blocks, see following section for details.
Maximum custom blocks
The number of custom blocks in your game plus the number of levels cannot exceed 256. So you can have 255 custom blocks if you only have 1 level. If you have 100 levels, then you can only have 156 blocks. Similarly, if you have over 156 blocks, then you may not have 100 levels.
Also, keep in mind that a single object encompassing multiple blocks will accumulate occupied blocks towards the limit. For instance a 2x2x1-filled block counts as 4 blocks.
Number limit
The biggest number you can make is just under 2^128 which is around 3.40e38, a number with 38 digits.
Going higher gives inf instead.
The biggest number up to which integer precision holds, where every whole number can be represented is 2^24 or 16,777,216. 16,777,217 and most whole mumbers above that are unrepresentable.
List limit
The maximum index of a list is 1,048,575. Going higher gives the "List too big!" error.
Late Update limit
The maximum amount of late updates is 255. Going higher gives "Stack overflow! Infinite loop?" error. This counts the total number of times Late Update blocks have been executed in the current frame, which means a late update inside a Loop is counted for each iteration. Late updates inside late updates are not counted.