Gamestudio Links
Zorro Links
Newest Posts
Bug in train mode, or it seem to me
by jcl. 09/22/26 14:47
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 09/22/26 12:21
Capital slider is not saving in Z12
by Petra. 09/22/26 06:49
Parent/child object
by VoroneTZ. 09/22/26 05:52
Zorro tutorial ideas?
by AndrewAMD. 09/21/26 14:50
Trades during a running bar
by Martin_HH. 09/21/26 12:03
Avoiding pop-up training parameter results
by Martin_HH. 09/16/26 21:31
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Jubilee, Opus), 1,548 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Opus, Jubilee, lopezsergio07, mistery, lokkalyansamiti
19239 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,832
Chicago
AndrewAMD Offline OP
Serious User
AndrewAMD  Offline OP
Serious User

Joined: Feb 2017
Posts: 1,832
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,832
Chicago
AndrewAMD Offline OP
Serious User
AndrewAMD  Offline OP
Serious User

Joined: Feb 2017
Posts: 1,832
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,135
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,135
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,832
Chicago
AndrewAMD Offline OP
Serious User
AndrewAMD  Offline OP
Serious User

Joined: Feb 2017
Posts: 1,832
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