ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Wed Dec 13, 2017 10:50 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Wed Sep 21, 2011 1:57 pm 
Offline
Loremaster

Joined: Thu Sep 23, 2010 10:18 pm
Posts: 3516
Location: London, England
As per title. Sometimes it can be hard finding the relevant module output between all the engine loading stuff. Or perhaps suppress the output for the boot module, since it all seems to work fine anyway.

_________________
http://www.gamesofgrey.com - My own T-Engine games!
Roguelike Radio - A podcast about roguelikes


Top
 Profile  
 
PostPosted: Wed Sep 21, 2011 2:51 pm 
Offline
Perspiring Physicist

Joined: Thu Feb 17, 2011 5:20 am
Posts: 889
Grey, I suggest making the output of your module grep-able from the main log. Make your own module print function as below:
Code:
mprint = function(...)
    print("[MY_MODULE]", ...)
end
and use "mprint" in your module instead of "print". This allows you to do `grep '[MY_MODULE]' te4_log.txt` to see all the module-related output.


Top
 Profile  
 
PostPosted: Wed Sep 21, 2011 3:06 pm 
Offline
Loremaster

Joined: Thu Sep 23, 2010 10:18 pm
Posts: 3516
Location: London, England
And what the frell is grep?

(Actually I sorta know what it is, and quite specifically know it's not available to me.)

_________________
http://www.gamesofgrey.com - My own T-Engine games!
Roguelike Radio - A podcast about roguelikes


Top
 Profile  
 
PostPosted: Wed Sep 21, 2011 3:31 pm 
Offline
Wayist

Joined: Fri Sep 16, 2011 11:54 am
Posts: 27
grep outputs (in this case) just the lines that meet the condition. On Windows, you can use an editor like Notepad++ - it's search-in-files function works quite similar, if a bit uglier.


Top
 Profile  
 
PostPosted: Thu Sep 22, 2011 12:45 am 
Offline
Wyrmic

Joined: Wed May 21, 2008 2:08 am
Posts: 291
A little rough but this could also help
http://www.wingrep.com/

_________________
http://angband.oook.cz/ladder-browse.php?e=budswell
http://te4.org/user/1471/characters


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group