Too many upvalues!

Find quick help here to get you started with Hollywood
Post Reply
User avatar
Juan Carlos
Posts: 410
Joined: Mon Sep 06, 2010 1:02 pm
Location: Palencia
Contact:

Too many upvalues!

Post by Juan Carlos » Tue Jan 30, 2018 8:58 pm

I only get this message error when I compile my program, are there a limit of variables and functions in the Hollywood code?

User avatar
Juan Carlos
Posts: 410
Joined: Mon Sep 06, 2010 1:02 pm
Location: Palencia
Contact:

Re: Too many upvalues!

Post by Juan Carlos » Thu Feb 01, 2018 3:11 pm

So, is there number limit of code lines?

User avatar
airsoftsoftwair
Posts: 2531
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: Too many upvalues!

Post by airsoftsoftwair » Thu Feb 01, 2018 7:31 pm

Please post a minimal code sample.

User avatar
Juan Carlos
Posts: 410
Joined: Mon Sep 06, 2010 1:02 pm
Location: Palencia
Contact:

Re: Too many upvalues!

Post by Juan Carlos » Thu Feb 01, 2018 8:26 pm

I'm sorry but my code has 6000 lines with code, it is impossible put here all code, so is there a limit of "if - endIf" instructions?

User avatar
Juan Carlos
Posts: 410
Joined: Mon Sep 06, 2010 1:02 pm
Location: Palencia
Contact:

Re: Too many upvalues!

Post by Juan Carlos » Thu Feb 01, 2018 11:50 pm

Also I did other test with one old copy of source code and is curious, i copyed a variable declaration and inside the old code and it gives the error, i renamed it and continues the problem, i think that Hollywood ide corrupt the source code, even under Windows 7 the IDE sometimes crashed the 32 and 64 bits, in a test the IDE doesn't find one sound and instead of show the error the IDE crashed and Windows close it.

User avatar
airsoftsoftwair
Posts: 2531
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: Too many upvalues!

Post by airsoftsoftwair » Sat Feb 03, 2018 1:06 pm

Juan Carlos wrote:I'm sorry but my code has 6000 lines with code, it is impossible put here all code, so is there a limit of "if - endIf" instructions?
There is a limit concerning the span of control structure blocks, i.e. you cannot do the following:

Code: Select all

If a = True
   (insert thousands of lines of code here)
EndIf
The problem with this code is that if a is not TRUE, Hollywood needs to jump to the end of the if block and this jump is coded in a single opcode which uses 24 bits for the destination PC. So you are limited to about 16.7 million instructions per if block.
Juan Carlos wrote:Also I did other test with one old copy of source code and is curious, i copyed a variable declaration and inside the old code and it gives the error, i renamed it and continues the problem, i think that Hollywood ide corrupt the source code, even under Windows 7 the IDE sometimes crashed the 32 and 64 bits, in a test the IDE doesn't find one sound and instead of show the error the IDE crashed and Windows close it.
Once again, I need clear instructions on how to reproduce this issue, otherwise I can't help.

User avatar
Juan Carlos
Posts: 410
Joined: Mon Sep 06, 2010 1:02 pm
Location: Palencia
Contact:

Re: Too many upvalues!

Post by Juan Carlos » Mon Feb 05, 2018 7:06 pm

It is difficult, because I shall send you the code with sounds and graphics but the game proyect is the Sabrina SS, I shall try other like game to appear the problem.

Post Reply