can i make a cog with 9 * arrays[50]?
I did it it crashed me. (i dont think there is any number errors, i "generated" the names with excel)
I just read there is things to allocate memory :
***
HeapFree
Frees the allocated heap array for a certain cog. HeapFree(); Note: The heap verbs allocate memory to a system, making it possible to accomplish complex tasks via cog. The heap verbs may not be retained in singleplayer saved game files.
HeapGet
Returns the allocation of a heap. int = HeapGet(int_heap);
HeapNew Allocates memory elements of any size (the largest size being a vector) to a cog. HeapSet(Int_Size);
HeapSet
Sets a heap size to a certain heap. HeapSet(int_heap, int_value);
***
How does it work exaclty ?
I did it it crashed me. (i dont think there is any number errors, i "generated" the names with excel)
I just read there is things to allocate memory :
***
HeapFree
Frees the allocated heap array for a certain cog. HeapFree(); Note: The heap verbs allocate memory to a system, making it possible to accomplish complex tasks via cog. The heap verbs may not be retained in singleplayer saved game files.
HeapGet
Returns the allocation of a heap. int = HeapGet(int_heap);
HeapNew Allocates memory elements of any size (the largest size being a vector) to a cog. HeapSet(Int_Size);
HeapSet
Sets a heap size to a certain heap. HeapSet(int_heap, int_value);
***
How does it work exaclty ?