![]() |
#1 |
Scout
Join Date: May 2009
Posts: 40
![]() |
![]()
Hi,
I was fighting an Orc Captain with my mage. When I was almost dying (just 6 HP), I saved my game. Now, when I load this game, just after the load process, the captain attacks me, and I die. I think the game should start in "paused" mode. Isn't that right, or a bug? Can I still save this char? Vanilla official beta from rephial.org (3.1.2v2), downloaded last week. Savegame attached. Help, please. |
![]() |
![]() |
![]() |
#2 |
Prophet
Join Date: Dec 2009
Posts: 9,024
![]() |
Given that you can only save the game when it's your turn, this does sound like a bug; it should still be your turn when you load the game.
|
![]() |
![]() |
![]() |
#3 | |
Prophet
Join Date: Mar 2008
Posts: 2,712
![]() |
Quote:
The problem is that in an attempt to give you the first move, someone took it away. At around line 1400 in src/dungeon.c it reads Code:
/* Player gets to go first */ p_ptr->energy = 100; Code:
/* Player gets to go first */ if (p_ptr->energy < 100) p_ptr->energy = 100; |
|
![]() |
![]() |
![]() |
#4 |
Scout
Join Date: May 2009
Posts: 40
![]() |
Compilation problem
Hi,
I downloaded the source from the Download tab in this forum. Followed the instructions in http://rephial.org/wiki/Compiling using Dev C++ for Windows, targeting a Windows environment. I had to remove the Nintendo DS stuff, and everything seems to compile ok. But the angband.exe had no "main menu". So, I saw a "Click file menu" message and no menu at all. Which of the "compiling instructions" is 100% safe for the windows port using dev c++? I have to compile WITH or WITHOUT the stl references? Thanks in advance. |
![]() |
![]() |
![]() |
#5 |
Scout
Join Date: May 2009
Posts: 40
![]() |
MinGW ok
Hi,
The compilation using MinGW worked flawlessly. I think the Dev C++ issue is related to the lack of "make" support using the supplied makefile.win. I'm still curious how to compile angband with Dev C++. :-) |
![]() |
![]() |
![]() |
#6 |
Prophet
Join Date: Mar 2008
Posts: 2,712
![]() |
If you are having problems, I just cast teleport self and saved. Hopefully I zipped and attached it to this message.
|
![]() |
![]() |
![]() |
#7 |
Scout
Join Date: May 2009
Posts: 40
![]() |
Ok
Thanks a lot.
About this change in the code: is it necessary to open a ticket for this issue myself to add it to the nightlies? You already did it? Any other option? Clayton. |
![]() |
![]() |
![]() |
#8 | |
Prophet
Join Date: Mar 2008
Posts: 2,712
![]() |
Quote:
I think someone else needs to do the fix. Direct changes to p_ptr->energy should only happen in 3 places -- birth, the do an action loop, and the one game turn passes loop. The fix I suggested is wrong. The line should be removed entirely. Whoever put it there must have had a reason, and presumably that reason ought to be addressed some other way. I guess it wouldn't hurt to make the change I suggested and redo or comment the ticket, so long as a record of the need to remove it entirely remains. BTW - Thanks a whole lot for finding this!!! I've felt like something occasionally seemed strange on reload, but never could figure out what or where to look. |
|
![]() |
![]() |
![]() |
#9 |
Prophet
Join Date: Dec 2009
Posts: 9,024
![]() |
Shouldn't all creature energy be saved when the game is saved? And the game can't be saved when it isn't the player's turn, right? Therefore, all creature energy should be restored properly on load, meaning it should always be the player's turn when a save is loaded.
Basically I'm trying to figure out why manipulating energy on load would ever be necessary. |
![]() |
![]() |
![]() |
#10 |
Prophet
Join Date: Mar 2008
Posts: 2,712
![]() |
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ringil from an orc pit! | Philip | Vanilla | 3 | February 7, 2010 20:29 |
Attacking unseen invisibles | buzzkill | Development | 2 | January 5, 2010 05:20 |
Can't load savefile on linux. | Modeco | Vanilla | 12 | November 14, 2009 13:39 |
Slay Orc / Troll and Westernesse | AceRimmer | Vanilla | 10 | August 4, 2009 02:20 |
SLOW load on Vista64 | Orillian | Vanilla | 2 | February 8, 2009 00:37 |