Angband.oook.cz
Angband.oook.cz
AboutDownloadVariantsLadderForumCompetitionSpoilersComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Variants

Reply
 
Thread Tools Display Modes
Old July 6, 2010, 05:23   #1
Therem Harth
Knight
 
Join Date: Jan 2008
Posts: 748
Therem Harth is on a distinguished road
TFork 0.2

Yeah, I decided not to kill it after all.

0.2 is rewritten from unmodified 2.3.8-ah. It makes a bunch of changes; the most important of those though is permadeath being made optional, about which there's a fairly long rant in the changelog. Suffice to say I got sick of the choice between permanent character death and no death at all.

It's available here: http://users.norwoodlight.com/danlev/tfork-0.2.tar.bz2

Edit: Grr argh permadeath isn't being disabled properly. I'll have a fix up shortly.

Last edited by Therem Harth; July 6, 2010 at 06:00.
Therem Harth is offline   Reply With Quote
Old July 6, 2010, 06:45   #2
Therem Harth
Knight
 
Join Date: Jan 2008
Posts: 748
Therem Harth is on a distinguished road
Wow, this is really quite amazing... Even after I tell ToME to call quit(NULL) on anything that looks remotely like an interrupt/terminate/kill signal, it still autosaves the game when the window is closed. Congrats darkgod, you've made the game pretty much proof against scumming.

Now if only it were also proof against common Angband vexations...
Therem Harth is offline   Reply With Quote
Old July 6, 2010, 12:12   #3
d_m
Angband Devteam member
 
d_m's Avatar
 
Join Date: Aug 2008
Location: Philadelphia, PA, USA
Age: 34
Posts: 1,500
d_m is on a distinguished road
I don't know anything about the ToME codebase, but it's worth noting that quit() isn't a normal C library function. In V, this function is built to run all the "clean up" stuff as well as hooks including saving the game.

You will probably need to read the implementation of quit() in order to get this working, or use something like exit() which should actually end the program immediately.
__________________
linux->xterm->screen->pmacs
d_m is offline   Reply With Quote
Old July 6, 2010, 16:22   #4
Therem Harth
Knight
 
Join Date: Jan 2008
Posts: 748
Therem Harth is on a distinguished road
D'oh! Thank you, I did not think of that.
Therem Harth is offline   Reply With Quote
Old July 6, 2010, 16:56   #5
Therem Harth
Knight
 
Join Date: Jan 2008
Posts: 748
Therem Harth is on a distinguished road
OMG that didn't work. It still saves the game even on exit(0). What is going on?

Edit: And FWIW quit(NULL) basically just invokes exit(0).
Therem Harth is offline   Reply With Quote
Old July 6, 2010, 17:51   #6
AnonymousHero
Knight
 
AnonymousHero's Avatar
 
Join Date: Jun 2007
Posts: 578
AnonymousHero is on a distinguished road
I'm guessing that it registers an exit handler with atexit().
AnonymousHero is offline   Reply With Quote
Old July 6, 2010, 17:51   #7
d_m
Angband Devteam member
 
d_m's Avatar
 
Join Date: Aug 2008
Location: Philadelphia, PA, USA
Age: 34
Posts: 1,500
d_m is on a distinguished road
So I went ahead and looked at the source because I was curious. Seems like it won't be that hard to change this, although I feel conflicted about helping you bypass permadeath.

I imagine you could do something like "bool bypass_save_player =FALSE" and then modify the save_player() function in loadsave.c with "if(bypass_save_player) return;"
__________________
linux->xterm->screen->pmacs
d_m is offline   Reply With Quote
Old July 6, 2010, 17:54   #8
Therem Harth
Knight
 
Join Date: Jan 2008
Posts: 748
Therem Harth is on a distinguished road
Thanks.

FWIW I also intend to remove scores. If too many people are opposed to a non-permadeath variant though, I can take it down.

Edit: on further review I've taken it down. If people here don't want a non-permadeath variant, I won't upload one.

Last edited by Therem Harth; July 6, 2010 at 18:30.
Therem Harth is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Announcing TFork Therem Harth ToME 31 September 19, 2010 04:23
TFork 0.1 Therem Harth Variants 1 July 3, 2010 16:54


All times are GMT +1. The time now is 15:06.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.