Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Quad, aliswee), 835 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Zorro.exe -run main.c does not close Zorro after finishing job #473501
07/16/18 10:09
07/16/18 10:09
Joined: Dec 2013
Posts: 14
O
oligodar Offline OP
Newbie
oligodar  Offline OP
Newbie
O

Joined: Dec 2013
Posts: 14
Command "Zorro.exe -run main.c" does not close Zorro after finishing job.

It has the same behavior as -stay switch.

Can anybody help me?

Re: Zorro.exe -run main.c does not close Zorro after finishing job [Re: oligodar] #473505
07/16/18 15:09
07/16/18 15:09
Joined: Feb 2017
Posts: 1,718
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,718
Chicago
This works for me: "zorro -run Workshop1"

What's your Zorro version? Is the strategy in your strategy folder like it's supposed to?

Re: Zorro.exe -run main.c does not close Zorro after finishing job [Re: AndrewAMD] #473506
07/16/18 18:13
07/16/18 18:13
Joined: Dec 2013
Posts: 14
O
oligodar Offline OP
Newbie
oligodar  Offline OP
Newbie
O

Joined: Dec 2013
Posts: 14
Zorro.exe is v1.8.3.2. Yes, main.c is in "./strategy" folder. But zorro.exe is executed from Python. That might be a problem...

Last edited by oligodar; 07/16/18 18:14.
Re: Zorro.exe -run main.c does not close Zorro after finishing job [Re: oligodar] #473508
07/16/18 21:29
07/16/18 21:29
Joined: Feb 2017
Posts: 1,718
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,718
Chicago
Windows batch files work correctly.

Three things:
* Post your python script.
* Python version?
* Windows or Linux/Wine?

Re: Zorro.exe -run main.c does not close Zorro after finishing job [Re: AndrewAMD] #473509
07/17/18 07:26
07/17/18 07:26
Joined: Dec 2013
Posts: 14
O
oligodar Offline OP
Newbie
oligodar  Offline OP
Newbie
O

Joined: Dec 2013
Posts: 14
Yes, windows batch file works correctly.

1. Python script Convert

2. Python version 2.7.13 run from Cygwin64

3. Windows 10x64

Scripts originated: statsmage.com

Caption of main Zorro windows changed from "Zorro .." to "Z Client S ..." Z Client S

Re: Zorro.exe -run main.c does not close Zorro after finishing job [Re: oligodar] #473510
07/17/18 11:59
07/17/18 11:59
Joined: Feb 2017
Posts: 1,718
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,718
Chicago
Using Python 3.6 in Windows (native), with Zorro Beta 1.85.1:
Code:
import os
os.system("C:\ZorroBeta\zorro -run Workshop1")


Zorro ("Z Client") opens, runs, closes. os.system returns 0.

By the way, this command line does not work:

Code:
zorro Workshop1 -run

... but this does:
Code:
zorro -run Workshop1

Perhaps there was a change in the command line rules?

Sure enough, in your script, I see this:

Code:
zorro_call = '{} ConvertData -run -i {} -i {} -a {} -d TCK'.format(

... should be

Code:
zorro_call = '{} -run ConvertData -i {} -i {} -a {} -d TCK'.format(

... and there's a similar line in there in need of correction.

Last edited by AndrewAMD; 07/17/18 12:12.
Re: Zorro.exe -run main.c does not close Zorro after finishing job [Re: AndrewAMD] #473511
07/17/18 12:16
07/17/18 12:16
Joined: Dec 2013
Posts: 14
O
oligodar Offline OP
Newbie
oligodar  Offline OP
Newbie
O

Joined: Dec 2013
Posts: 14
I have changed:

zorro.exe ConvertData -run >> zorro.exe -run ConvertData

and it works!

Thank you a lot AndrewAMD

Last edited by oligodar; 07/17/18 12:48.

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1