Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old April 21, 2009, 22:16   #1
Magnate
Angband Devteam member
 
Join Date: May 2007
Location: London, UK
Posts: 5,054
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate Send a message via Skype™ to Magnate
Hackers triumph over pricing.log beast-file ...

For those on the bleeding edge, r1373 now truncates the pricing.log file every time you (re)start the program, which means it can't get out of control unless you play for months at a time ... it also means that if you spot a pricing anomaly, you need to post the relevant bit of log file before the next time you start the game.

Thanks to Paul Blay for the code ideas - I had a look around play_game() and init_angband(), but there wasn't an obviously better way to do it.

Now, if I can just work out why it calls object_value twice for every object, I can halve the size of pricing.log still further ...
Magnate is offline   Reply With Quote
Old April 22, 2009, 02:44   #2
s0be
Apprentice
 
Join Date: Jan 2008
Posts: 96
s0be is on a distinguished road
You could just try to mark the file read-only. (I haven't tried it)
s0be is offline   Reply With Quote
Old April 22, 2009, 10:41   #3
Magnate
Angband Devteam member
 
Join Date: May 2007
Location: London, UK
Posts: 5,054
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate Send a message via Skype™ to Magnate
Quote:
Originally Posted by s0be View Post
You could just try to mark the file read-only. (I haven't tried it)
?? Why would one want to do that?
Magnate is offline   Reply With Quote
Old April 23, 2009, 00:00   #4
s0be
Apprentice
 
Join Date: Jan 2008
Posts: 96
s0be is on a distinguished road
For those uninterested in viewing the log or reporting back the results of it, that might prevent it from growing. It might just prevent the program from running too.
s0be 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
Automatic pricing quirks Pete Mack Vanilla 29 April 16, 2009 22:11
Angband/65 development log PaulBlay Development 0 April 16, 2009 19:55
Power-based pricing available (r1284) Magnate Vanilla 35 April 4, 2009 09:04
Export entire message log to text file PaulBlay Vanilla 2 February 28, 2009 20:24
Greater Hell-Beast xxitheworld Variants 4 February 18, 2008 05:46


All times are GMT +1. The time now is 12:35.


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