Limitations in Fancade scripting: Difference between revisions

(Adapted from the old wiki page, sections are titled shorter.)
 
Tags: Mobile edit Mobile web edit Advanced mobile edit
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This page compiles a list of restrictions in a Fancade game.
This page compiles a list of restrictions in a Fancade game.


== Number of created blocks ==
== Number of created objects ==


The limit of objects that you can create with [[Create Object]] on Play is 4096 blocks.
The limit of [[object]]s that you can create with [[Create Object]] on Play is 4096 blocks.


== Script limit ==
== Script limit ==
Line 14: Line 14:


The limit is 8 connections per output, or input.
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 ==
== Ports of scripts ==
Line 34: Line 39:
Similarly, if you have over 156 blocks, then you may not have 100 levels.
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.
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 ==
== Number limit ==


The number limit is 2^128 which is ~3.40e38. Going higher gives <code>inf</code> instead.
The biggest [[number]] you can make is just under 2^128 which is ~3.40e38.
Going higher gives <code>inf</code> 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.


[[Category:Scripting]]
[[Category:Scripting]]