Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (lijoyi2011), 1,034 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Invalid optimize parameters #453165
07/09/15 19:34
07/09/15 19:34
Joined: Jan 2014
Posts: 27
G
GameLight Offline OP
Newbie
GameLight  Offline OP
Newbie
G

Joined: Jan 2014
Posts: 27
When Zorro finishes the first walk I got the "Invalid optimize parameters" error without any number.
When I tested my strategy functions individually I got no error messages. I tried to replace one parameter by AI and this fixed the issue, but I removed the AI and inserted the parameter again and the error message returned.

After the error (when I click retry) message it show:
Selected p16[1] = 0 => -34028234663852886000000

I verified I'm not calling optimize conditionally and I'm not changing the BarPeriod value or even TimeFrame.

What this error message means?

What I found was:
Error 040: Inconsistent optimize calls

But I think that's not the error.

My script have nearly to 300 lines.

Re: Invalid optimize parameters [Re: GameLight] #453182
07/10/15 16:55
07/10/15 16:55
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
You need not check all 300 lines, only your optimize calls: a parameter must not be 0. It must be a positive number.

Re: Invalid optimize parameters [Re: jcl] #453185
07/10/15 18:43
07/10/15 18:43
Joined: Jan 2014
Posts: 27
G
GameLight Offline OP
Newbie
GameLight  Offline OP
Newbie
G

Joined: Jan 2014
Posts: 27
I checked but it seems well. A point is that I remove a single optimize parameter and it seems to work.

I remove the following:
delay = optimize(4, 1, 9, 1);

Re: Invalid optimize parameters [Re: GameLight] #453196
07/11/15 09:04
07/11/15 09:04
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
That optimize call looks ok. So the error must be elsewhere. I would not leave it at that, but look for the problem. If you can't find it, you can contact Support for help.


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1