WHDLoad MantisBT - SwordsOfTwilight
View Issue Details
0003065SwordsOfTwilight[All Projects] Generalpublic2014-09-20 23:562014-10-02 07:36
Reporterpoppy 
Assigned ToPsygore 
PrioritynormalSeverityminorReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
MachineA1200
CPU68020
CPUSpeed7
ChipSetAGA
GFXCardNone
ChipMem2 MB
FastMem0 MB
WorkbenchOS 3.0
KickROM40 - Kick 3.1
KickSoftNone
WHDLoad
imported
Summary0003065: Swords of Twilight - doesn't save in home castle
DescriptionYou can save anywhere outside of castles with F10, which does work.
But inside the home castle it doesn't, where it also should. No save files are written then.
Steps To ReproduceStart the game. Choose a party (player 1+2 as computer, player 3 as human for easier controls).
Wait for the end of the dialog with the queen. Move south outside of the castle. Enter it again. After the dialog with the queen you can choose to save (s) or regroup (r). Try to save here and nothing is written. The game then goes to the title screen and your state is lost.
TagsNo tags attached.
Attached Files? SOT11.lha (3,365) 2014-09-28 22:53
http://mantis.whdload.de/file_download.php?file_id=356&type=bug

Notes
(0004079)
Psygore   
2014-09-28 22:56   
pls try the attached slave 1.1
it should correctly save now and set custom1=1 to start a new game.
(0004085)
poppy   
2014-10-02 07:36   
I tried version 1.0 again, actually saving does work here when quitting the game with "*" also inside the castle. I'm sorry. I was confused because saving inside the castles is 10 times faster and after saving it clears the party and switches to the regroup menu, which I interpreted as an error. When quitting with "*" after saving in the castle and restarting the game there is no apparent indication that a saved game was loaded, but it is.

Saving is done in RAM only and when resetting the Computer instead of quitting with "*" the modified files are not written back to disk. You should add this important fact to the readme.
Can the save files become incomplete/corrupted when pressing "*" too early, while files are written to RAM?


Slave v1.1 breaks the game:
"Regroup" does not work anymore. So it is impossible to change the party members. When selecting "r" to regroup in the home castle one can only change Computer/Human(Keyboard|Joystick), but not the characters, as if the game was saved outside with F10 and continued.
When saving ("s") inside the castle or regrouping ("r") the game should continue inside the castle, but now you start outside for both, which is wrong.


Setting "custom1=1" the game seems to start from the beginning always at first. But it does not work this way, the game still loads modified game files. I can see this quickly in the different start dialog with queen Gloriana.
When I delete all edited files the game refuses to start because of missing data files, which indicates that the original data files are modified upon saving. I claim that the only way of resetting the game properly is restoring the original game files from a backup.

Here is a list of all the modified files in the game dir "data" after saving (maybe incomplete):
allworlds.data
ElementFeelings
inprogress
ourguys.data
tchests.data
td (WHDLoad file? Modified date changes when quitting with "*" always, also without saving)
WorldFeelings
DungeonFeelings
monster.data
thegame.data
where_info

Except "td" all those files are already there when the game is installed freshly, containing the game state when starting from the beginning.


There is still a speed issue: The regrouping menu is ok, but the ingame menu is too fast and difficult to control. A parameter to adjust this speed may solve this.

Issue History
2014-09-20 23:56poppyNew Issue
2014-09-23 23:17WeplProjectDIC => SwordsOfTwilight
2014-09-23 23:18WeplAssigned To => Psygore
2014-09-23 23:18WeplStatusnew => assigned
2014-09-28 22:53PsygoreFile Added: SOT11.lha
2014-09-28 22:56PsygoreNote Added: 0004079
2014-10-02 07:36poppyNote Added: 0004085