Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 08/17/26 19:28
Max Number of Strategies in /Strategy folder
by Martin_HH. 08/17/26 07:54
Pause button for evaluation shell?
by AndrewAMD. 08/13/26 17:16
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 08/10/26 12:46
phantom() not defined in indicators.c
by jcl. 08/07/26 11:45
Accepting new programming clients
by AndrewAMD. 08/06/26 21:25
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (TipmyPip), 14,508 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Student_64151, Koti
19230 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Pause button for evaluation shell? #489575
08/05/26 13:42
08/05/26 13:42
Joined: Feb 2017
Posts: 1,829
Chicago
AndrewAMD Offline OP
Serious User
AndrewAMD  Offline OP
Serious User

Joined: Feb 2017
Posts: 1,829
Chicago
I've been running thousands of evaluation shell jobs on my PC. Unfortunately I use this PC for other high-demand purposes, so a new feature comes to mind:

"Pause" button on the panel will have the shell pause between jobs. Press "unpause" to resume.

Actually, I would write the feature myself, but I don't know if the shell is being revised at the moment.

Re: Pause button for evaluation shell? [Re: AndrewAMD] #489578
08/06/26 05:33
08/06/26 05:33
Joined: Feb 2017
Posts: 1,829
Chicago
AndrewAMD Offline OP
Serious User
AndrewAMD  Offline OP
Serious User

Joined: Feb 2017
Posts: 1,829
Chicago
UPDATE: I was going to propose a code update to eval.c, but the click() function wasn’t working after Job #2 begins. I might need to file a bug report with support.

Re: Pause button for evaluation shell? [Re: AndrewAMD] #489581
08/07/26 11:43
08/07/26 11:43
Joined: Jul 2000
Posts: 28,132
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,132
Frankfurt
The click function is working, but has no effect during the process. However, a Pause button makes sense. We will probably add this function to the Stop button, in a similar way as in Trade mode.

Re: Pause button for evaluation shell? [Re: AndrewAMD] #489600
08/13/26 17:16
08/13/26 17:16
Joined: Feb 2017
Posts: 1,829
Chicago
AndrewAMD Offline OP
Serious User
AndrewAMD  Offline OP
Serious User

Joined: Feb 2017
Posts: 1,829
Chicago
Here's my temporary workaround, which I injected into my copy of eval.c:
Code
#define PAUSE_RESUME ".\\_pause_.txt"
#ifdef PAUSE_RESUME
void pauseLoop() {
	if (Live)return;
	if (!file_length(PAUSE_RESUME)) return;
	print(TO_ANY, "\nJobs are PAUSED.");
	while (wait(0) && file_length(PAUSE_RESUME)) {
		if (msg("Resume Jobs?")) { file_delete(PAUSE_RESUME); break; };
	}
	print(TO_ANY, "\nJobs have RESUMED.");
}
#endif
DLLFUNC void evaluate()
{
#ifdef PAUSE_RESUME
	pauseLoop();
#endif

To pause, all I need to do is to make a file "_pause_.txt" in the Zorro folder with a nonzero number of characters in the body.


Moderated by  Petra 

Gamestudio download | 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