MantisBT - VCMI
View Issue Details
0000714VCMIGUI - PreGamepublic2011-03-07 20:262014-05-30 17:40
Zamolxis 
Tow 
highfeaturehave not tried
closedfixed 
0.84 
0.89 
0000714: Restart Scenario functionality (+ request for Quick Restart functionality)
From System Options window > the button, or hotkeys R, Shift+R or Ctrl+R.

It is becoming more and more tedious for me as tester to investigate a bug properly, in order to produce the best report, if I need so many mouse clicks only to restart a scenario. So it would be very much appreciated if this can be implemented soon.
SUGGESTION: A Quick Restart function would also be welcomed, as in directly from Adventure Map (now we need to be in the System Options for the above hotkeys to work). It could either be associated with Shift+R or Ctrl+R (H3 hotkeys not mentioned in the official manual), or otherwise with Alt+R (not allocated in H3).
No-harm enhancement
related to 0000181closed ubuntux Ability to restart / reload games 
related to 0000715closed Tow Load Game functionality (+ request for Quick Load functionality) 
related to 0000716assigned Dydzio Last started/saved game not remembered (+ enhancement suggestions) 
Issue History
2011-03-07 20:26ZamolxisNew Issue
2011-03-07 20:26ZamolxisIssue generated from: 0000181
2011-03-07 20:26ZamolxisRelationship addedrelated to 0000181
2011-03-07 20:26ZamolxisTag Attached: No-harm enhancement
2011-03-07 20:35ZamolxisIssue cloned: 0000715
2011-03-07 20:35ZamolxisRelationship addedrelated to 0000715
2011-03-07 20:36ZamolxisSummaryRestart Scenario functionality => Restart Scenario functionality (+ request for Quick Restart functionality)
2011-03-07 23:51ZamolxisRelationship addedrelated to 0000716
2012-03-11 07:52ZamolxisNote Added: 0002297
2012-03-11 07:52ZamolxisPrioritynormal => high
2012-03-11 07:57ZamolxisCategoryOther => GUI - PreGame
2012-03-11 08:08WarmongerNote Added: 0002299
2012-03-11 08:17ZamolxisStatusnew => assigned
2012-03-11 08:17ZamolxisAssigned To => Tow
2012-03-11 08:21ZamolxisNote Added: 0002300
2012-03-11 08:23ZamolxisNote Edited: 0002300bug_revision_view_page.php?bugnote_id=2300#r1535
2012-03-11 08:26WarmongerNote Added: 0002301
2012-03-11 10:00ZamolxisNote Added: 0002302
2012-03-11 10:19WarmongerNote Added: 0002303
2012-03-11 14:43TowNote Added: 0002305
2012-04-08 03:08TowNote Added: 0002341
2012-04-08 03:08TowStatusassigned => resolved
2012-04-08 03:08TowFixed in Version => 0.89
2012-04-08 03:08TowResolutionopen => fixed
2014-05-30 17:40beegeeStatusresolved => closed

Notes
(0002297)
Zamolxis   
2012-03-11 07:52   
Raised priority as I bump into the need for this functionality almost every time I test for VCMI. Same goes for the other two feature requests related to this one: 0000715 & 0000716. If you could implement one of these three (at least), with each of the next releases, it would make my testing efforts notably easier (as they involve a lot of restarting/reloading in order to narrow down causes, find patterns and check reproducibility). Thanks.
(0002299)
Warmonger   
2012-03-11 08:08   
I believe this may be at least partially helpful, from Tow:

 I’ve created a few new command-line options for my convenience but I guess they can be useful for other developers. It’s possible to save a starting configuration (map, options) in pregame by typing „sinfo fname”. Then VCMI can be started with option „-i --start=fname” and it’ll automatically start the game.
(0002300)
Zamolxis   
2012-03-11 08:21   
(edited on: 2012-03-11 08:23)
Didn't work for me. Maybe I'm doing something wrong. I tried typing it in the console both in PreGame or after game started. Is it supposed to work for a tester using the main release? Or is it perhaps a very recent change (after 0.88)?

But if a functionality is there, maybe it can be bound to the Menu buttons. I moved the assignment to Tow as I should have created this as "GUI - PreGame" item from the beginning anyway. (of course, if anyone can handle it, they're more than welcome:)

(0002301)
Warmonger   
2012-03-11 08:26   
Nono, it's a command line option for operating system console (cmd on Windows).
(0002302)
Zamolxis   
2012-03-11 10:00   
Sorry for my n00bness, but can you please confirm the following before I mess something up:
1) In cmd.exe I should change dir to the game folder?
2) sinfo fname is to be typed in cmd after making my selections in PreGame, or after I click Begin (i.e.: after the game opens in Adv.Map)?
3) -i --start=fname is to be typed in cmd before I re-start the application, while I'm in PreGame, or even when I'm in the game? If in PreGame, does it matter if I restarted the client, or does it only work if I go back to Main Menu?
(0002303)
Warmonger   
2012-03-11 10:19   
No, you need to type:

VCMI_client.exe -i --start=filename

In order to launch new VCMI program with these settings.

Well, I just tried to use it for the first time and it has frozen. Maybe works better in release version ;P
(0002305)
Tow   
2012-03-11 14:43   
> Well, I just tried to use it for the first time and it has frozen.
> Maybe works better in release version ;P

It works for me now. Please give me steps to reproduce freeze, it may be a bug.


@Zamolxis
"sinfo filename" should be typed in the moment that clicking "Begin" in pregame is possible (that is after selecting map and before starting the actual game). That should create file named "filename" that contains that starting configuration.

To have VCMI automatically start that config, you should run it with "-i --start=filename" parameters.

You can enter command prompt (ie cmd.exe), and type:
cd C:\VCMI
VCMI_client.exe -i --start=filename

It may be more convenient to create a shortcut running VCMI with that parameters ( http://vgstrategies.about.com/od/faq/a/CommandLineP.htm [^] ).
(0002341)
Tow   
2012-04-08 03:08   
Implemented in r2618, including Quick Restart functionality bound to Ctrl+R.