tag:blogger.com,1999:blog-4857474508902511130.post591216014129354082..comments2023-06-14T03:31:06.313-07:00Comments on tech lore by igor: How to Cheat in Dungeon Crawligorhttp://www.blogger.com/profile/12087999668155540136noreply@blogger.comBlogger79125tag:blogger.com,1999:blog-4857474508902511130.post-23857950934357079042015-11-01T09:41:11.430-08:002015-11-01T09:41:11.430-08:00The script and batch files were labors of love for...The script and batch files were labors of love for me, things I worked on that were just as fun as playing Crawl and maybe more so. Of course I went whole hog to "show off" and be as elaborate as I could be. In doing so, I learned more about script writing but mainly just had fun. If you want to program your own scripts, do so and have a ball!<br /><br />I will probably not post further updates, because I've quit using the batch file. I have arrived at a state of mind where I am OK with perma-death.igorhttps://www.blogger.com/profile/12087999668155540136noreply@blogger.comtag:blogger.com,1999:blog-4857474508902511130.post-90864313681341769392015-10-11T19:26:00.561-07:002015-10-11T19:26:00.561-07:00While I'm sure the script behaves in the manne...While I'm sure the script behaves in the manner you desire, I found the core concept totally buried in all the fancy color control, window resizing, etc. It's also a bit odd that you use "*.*" on unix, and that you have a directory called "save_file" that contains a directory path.<br /><br />Anyway, here's the barebones scummer inside my script that does other unrelated conveniences.<br /><br />Thanks for the inspiration to try out playing this way. If it's fun<br />enough, I'll probably play this way time to time. Attempting to hack<br />around the lack of formatting control in blogger posts with dots...<br /><br />. while true; do<br />... playgame "$name" "$class" "$race"<br /><br />... # do we still have files for the player after quitting?<br />... savefile="${name}.sav"<br />... if [ -f "$savefile" ]; then<br />..... echo "You seem to have saved succesfully; will backup, ctrl-c to stop"<br />..... read<br />..... cp "${name}"* backup/<br /><br />..... echo "Game backed up; will relaunch, ctrl-c to break"<br />..... read -t 3<br />... else<br />..... #glob failed, so we get the star back<br />..... echo "Oh no, you died!; will restore, ctrl-c to stop"<br />..... read<br />..... cp backup/"${name}"* .<br /><br />..... echo "Game restored; will relaunch, ctrl-c to break"<br />..... read -t 3<br />... fi<br />. done<br />jrodmanhttps://www.blogger.com/profile/06567198770927408479noreply@blogger.comtag:blogger.com,1999:blog-4857474508902511130.post-46040309182117483832015-03-05T17:25:44.257-08:002015-03-05T17:25:44.257-08:00That is what the batch does.That is what the batch does.igorhttps://www.blogger.com/profile/12087999668155540136noreply@blogger.comtag:blogger.com,1999:blog-4857474508902511130.post-6839238147334829722015-03-05T16:16:55.693-08:002015-03-05T16:16:55.693-08:00Hi, I know next to nothing about programming. I us...Hi, I know next to nothing about programming. I used to play Crawl when anybody could manually save scum by going into the 'saves' folder or whatever it was and making a copy that you could rename after dying. That way, you could play the same character many different ways, like a choose-your-own-adventure book, worshiping different gods without renouncing any of them, etc.<br />From what I understand, the batch doesn't let you do this because it just takes your last save point, right? Just thought I'd ask in case I was missing another opportunity. Thanks!bildorfnoreply@blogger.comtag:blogger.com,1999:blog-4857474508902511130.post-20414109087764152682014-09-01T08:23:24.755-07:002014-09-01T08:23:24.755-07:00That is probably true. I think I will leave it as-...That is probably true. I think I will leave it as-is though because the functionality is the same. There is usually a couple of different ways to do something in any robust programming language, and Linux scripting is no different.igorhttps://www.blogger.com/profile/12087999668155540136noreply@blogger.comtag:blogger.com,1999:blog-4857474508902511130.post-89048473181167236862014-09-01T04:17:23.603-07:002014-09-01T04:17:23.603-07:00BTW, instead of doing:
echo "one" >&...BTW, instead of doing:<br /><br />echo "one" >> "$macro"<br />echo "#two three" >> "$macro"<br />echo "whatever" >> "$macro"<br /><br />you can do:<br /><br />cat <<EOS >> "$macro"<br />#one<br />two three<br />whatever<br />EOS<br /><br />or:<br /><br />(<br />echo "one"<br />echo "#two three"<br />echo "whatever"<br />) >> "$macro"<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4857474508902511130.post-3514600661133299792014-08-27T18:52:23.656-07:002014-08-27T18:52:23.656-07:00I think the script file prints a little helpful hi...I think the script file prints a little helpful hint about getting things going in Linux. You do have to enter commands on the command line to change the permissions for some crawl directories. The script does not necessarily have to run with root privileges, but if it does then that also solves the problem... <br /><br />I don't play on Linux nowadaze so can't be of further assistance with the Linux script... one guy wrote in to gripe about the scipt as used in Open Suse. But he expected me to do all the work and wasn't willing to lift a finger. I expect rather someone fix the problem, debug and send me the newly fixed script. Igor not do work of the free variety all the time--only when on sabbatical. Sabbatical over.igorhttps://www.blogger.com/profile/12087999668155540136noreply@blogger.comtag:blogger.com,1999:blog-4857474508902511130.post-29287394404525948252014-08-27T12:30:46.263-07:002014-08-27T12:30:46.263-07:00Hello Igor,
Used to use your windows regen versio...Hello Igor,<br /><br />Used to use your windows regen version, worked great. I switched to Unbuntu. I've gotten the launcher set up, I think. After I die however it doesn't regenerate my character. The modifying the script hasn't been done properly. I tried entering it in terminal but no luck as of yet. A more detailed walk-through might help as I'm and extreme newbie. When I run the launcher it say -This script is not running with root privileges. Help appreciated.Blizzackhttps://www.blogger.com/profile/07268981954123121792noreply@blogger.comtag:blogger.com,1999:blog-4857474508902511130.post-77031275204885015682013-10-30T08:02:42.066-07:002013-10-30T08:02:42.066-07:00Thanks for the praise, but there is a link, on the...Thanks for the praise, but there is a link, on the right-hand side, in the "Topics" box. I think I need to alter the color of the Topics box so that it stands out a little more. The whole blog just looks like one color at the moment. I will work on that this morning. Maybe change the Topics box from black to, say, dark green.<br /><br />Yes, Linux is all I ever use anymore. The Windows batch file works fine too for Windows, but I will probably not be making any more changes on it. I love Linux because one can customize the operating system, it is FREE, and it seems a lot safer from malware, although not immune obviously. I think that all home users, around the world, should be using Linux instead of Windows. I can't count the number of people that pay me to reinstall Windows due to malware infection.igorhttps://www.blogger.com/profile/12087999668155540136noreply@blogger.comtag:blogger.com,1999:blog-4857474508902511130.post-64480966948332365452013-10-30T07:27:59.077-07:002013-10-30T07:27:59.077-07:00Thank you for this script. Working very well and s...Thank you for this script. Working very well and saves me the hassle of tracking my save files. I can freely experiment without loosing my character on which I have worked so hard.<br /><br />By the way, it is very difficult to find this script through your blog. I heard repeated mentions in your posts but found it only by chance by searching for something unrelated on DCSS. Please include a permanent download link somewhere on your blog so that more people benefit.<br /><br />P.S - I am using Linux so you can imagine how glad I am that someone for once made an effort to support this platform. Anonymoushttps://www.blogger.com/profile/04951386075539932686noreply@blogger.comtag:blogger.com,1999:blog-4857474508902511130.post-40857944784534648792013-01-07T09:24:47.660-08:002013-01-07T09:24:47.660-08:00Yes, I have been playing roguelikes myself since t...Yes, I have been playing roguelikes myself since the original Rogue (on the original IBM-PC that used to be 4.77 Mhz, not Ghz!) and the greatest roguelike that ever was until DCSS, Larn, which failed to get updated...<br /><br />I don't pay any mind to what 'some' say about 'cheating'. They fret over someone posting scores derived from cheating, and how it might make them look, when they didn't cheat. The point of a solitary game is to have fun, and if cheating makes it more fun, then cheating is the right way, as one is not competing against other human beings...only the computer, which is a good sport. The online tournaments sort out the best players, if such a thing matters.<br /><br />Good luck and I am glad to note your implication that the batch file works OK on your system (not sure whether XP or Windows 7/8). As for me, I've moved to Linux, so for the time being, am playing without.<br /><br />I've got to get some tea going this morning... that's what was missing yesterday.igorhttps://www.blogger.com/profile/12087999668155540136noreply@blogger.comtag:blogger.com,1999:blog-4857474508902511130.post-43843982909911733362013-01-07T04:11:41.517-08:002013-01-07T04:11:41.517-08:00Hello. I have been playing roguelikes since Moria,...Hello. I have been playing roguelikes since Moria, and though my passion for the genre has never declined, my love of the community and those it creates has dimmed considerably; I find there are many people within said community who defend bad decisions as simply bad, and refuse to update with the times. In addition to the extremely odd attitude on savescumming, there is also the fact that so many roguelikes today include the concept of 'score' and 'winning'. I *know* if I am doing well by how far I have delved and my equipment, knowledge, etc - I do not need the accolades of the 'community' to tell me that. <br /><br />I have no desire to interact with said community or past yasv, and was looking for a more convenient method of scumming then copying saves. For me, scumming makes me a far better player, as it allows me a familiarity with the variables and possibilities that would take a great deal more time if playing the way people spout as correct. So cheers and thank you very kindly for helping me, and likely many others out!<br /><br />And I think my new-years is somewhat similar to yours, aha; but so it goes. I am cautiously optimistic for the new year, though... Maybe all the tea. I am not usually this verbose, tishe - but even if I don't comment much, I think I will watch this space. You have very interesting comments and thoughts. Well! All the best!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4857474508902511130.post-46284319059894967612013-01-01T10:33:32.395-08:002013-01-01T10:33:32.395-08:00Yes, your understanding is correct. I'd like t...Yes, your understanding is correct. I'd like to point out that the batch file is easy to patch, if all you're doing is changing output directories, which I think may be the issue here. A problem Windows 7 has had in the past is storing game files in a different folder than Windows XP.igorhttps://www.blogger.com/profile/12087999668155540136noreply@blogger.comtag:blogger.com,1999:blog-4857474508902511130.post-2711545166439263972013-01-01T10:17:55.015-08:002013-01-01T10:17:55.015-08:00Unfortunately, I am not that good in batch program...Unfortunately, I am not that good in batch programming. Better said, I have some basic understanding of programming languages but it would exceed my knowledge to develop a specific patch. <br />But do I understand it correctly, the regen.bat does just copy the save file into another backup folder? Wouldn't that implicate that I could alo manually copy the saved files into another folder?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4857474508902511130.post-73674655707943438722013-01-01T08:41:07.879-08:002013-01-01T08:41:07.879-08:00With Windows 7, I am not at all sure what is going...With Windows 7, I am not at all sure what is going on, because I haven't gotten around yet to installing Win 7 on my answering machine, due to shipping delays during the holiday season and other things. Also, since I am now using Linux on my htpc, desktop and laptop, it not likely I will do much batch programming on Windows 7. If you wish to be of service to the Dungeon Crawl community, please post your solution and/or any insight into the issue here. If you develop a specific patch, post it here. I need some help here.igorhttps://www.blogger.com/profile/12087999668155540136noreply@blogger.comtag:blogger.com,1999:blog-4857474508902511130.post-35775029189075531032013-01-01T08:06:02.322-08:002013-01-01T08:06:02.322-08:00Hey Igor,
I just installed your Batchfile in the ...Hey Igor,<br /><br />I just installed your Batchfile in the appropriate folder Win 7). Starting the game vie regen.bat works. But after saving the game and restarting, the regen.bat says that the save data can't be found in the mentioned folder (\games\crawl\backup_saves). The regen.bat itself didn't create these folders, so I manually created them at \games\crawl\ as well as in the win7-specific roaming-folders. But regen.bat doesn't create save-files after saving and exitting. Could the administration rights be the problem?<br /><br />Regards<br />SvenAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4857474508902511130.post-17383257410065624932012-11-17T17:02:25.463-08:002012-11-17T17:02:25.463-08:00No, and I've only been a Linux user for < 1...No, and I've only been a Linux user for < 1 month, so it is most doubtful whether I will ever get around to porting regen.bat for Linux, for by the time I get proficient at Linux script-writing, the need for the batch may no longer exist, or so says my secret source. In the interim, if you code a script for Linux, then drop it to me in an email, and if I like it, then I will post it here or post a link to it.igorhttps://www.blogger.com/profile/12087999668155540136noreply@blogger.comtag:blogger.com,1999:blog-4857474508902511130.post-36921990023931418002012-11-17T06:09:15.696-08:002012-11-17T06:09:15.696-08:00Do you know where the Linux version of Dungeion Cr...Do you know where the Linux version of Dungeion Crawl puts its save file?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4857474508902511130.post-78073321478587916312012-11-14T21:53:39.200-08:002012-11-14T21:53:39.200-08:00I just want to say I love you, igor. I cant tell y...I just want to say I love you, igor. I cant tell you how many times i've went down a flight of stairs and was immediately greeted and slain by 1-3 named mobs. Sometimes theres just nothing you can do about death, and that gets to me.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4857474508902511130.post-49618311334968438332012-10-21T22:33:58.126-07:002012-10-21T22:33:58.126-07:00regen.bat never alters the save, but merely preser...regen.bat never alters the save, but merely preserves it from deletion. I think of it as "cheating lite," just a little bit of help in case I tap the wrong key at the wrong time. <br /><br />Wiz Mode is big-time cheating. It allows mods of every variety, so you should use Wiz Mode if that is what you have in mind. Wiz Mode is powerful and comprehensive in its scope, so there is no real need to code anything to make mods to a save.igorhttps://www.blogger.com/profile/12087999668155540136noreply@blogger.comtag:blogger.com,1999:blog-4857474508902511130.post-1996492044123611302012-10-21T20:20:41.271-07:002012-10-21T20:20:41.271-07:00Love the concept of saving the saves (lol). I know...Love the concept of saving the saves (lol). I know its not the right place, but someone mentioned before that you could move items across characters, is this still possible in the newest version 0.11?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4857474508902511130.post-45045051711083685422012-10-21T20:17:05.801-07:002012-10-21T20:17:05.801-07:00Ah, thanks for the reply...I have alt-itis, I'...Ah, thanks for the reply...I have alt-itis, I'm afraid.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4857474508902511130.post-32976712435200407032012-10-20T05:23:56.476-07:002012-10-20T05:23:56.476-07:00The (!) delete option deletes all saves and start ...The (!) delete option deletes all saves and start afresh. In the newest version of regen.bat, this option shows up if regen.bat detects a save, but is hidden otherwise.<br /><br />Note that regen.bat assumes one save, not many. regen.bat does not support "alternates" or deleting only one save but not others. One possible solution would be to code a subroutine to accept an input field from the user, so that the batch might be instructed as to which save to delete. That is not something I will work on at this time, but anyone who does may share their patch here. It is an interesting idea. At present, I play with one save at a time and have done so for years. If I want to play a different character I just let the other one die.igorhttps://www.blogger.com/profile/12087999668155540136noreply@blogger.comtag:blogger.com,1999:blog-4857474508902511130.post-65441822009353916562012-10-19T22:07:56.828-07:002012-10-19T22:07:56.828-07:00How do you delete a character, say you want to if ...How do you delete a character, say you want to if you've run out of room by having too many alts? If I let a character die or exit the dungeon on the first floor, the regen.bat simply restores him.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4857474508902511130.post-6048961140750543632011-12-12T23:32:05.222-08:002011-12-12T23:32:05.222-08:00In version 0.7 (may have been 0.8 not sure) I used...In version 0.7 (may have been 0.8 not sure) I used to have a really enjoyable trick where I would drop all my equipment in the temple and make a spare copy of the file called 'temple.01b'. Then, in future games, I would copy over my 'temple.01b' file so that I had all the old character's equipment.<br /><br />I found this really enjoyable as I could make progress from player to player, and it felt realistic and non-cheating as I imagined each player was on the same team and would share equipment :)<br /><br />Do you reckon there's a similar way to achieve this in 0.9? I would love to be able to copy individual level files between games.Tom Khttps://www.blogger.com/profile/07834937707137475414noreply@blogger.com