ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Sun Mar 26, 2017 6:50 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Mon Nov 03, 2014 6:53 am 
Offline
Wyrmic

Joined: Thu May 23, 2013 12:25 am
Posts: 244
I've looked for an addon for what I'm trying to do, without much success: Disable the calendar messages. Sorry darkgod, but they drive me batty.

In effort to find how to turn them of, I found myself in Game.lua at function _M:onTurn, with this line:

if not self.day_of_year or self.day_of_year ~= self.calendar:getDayOfYear(self.turn) then
self.log(self.calendar:getTimeDate(self.turn))
self.day_of_year = self.calendar:getDayOfYear(self.turn)
end

It's been a while since I did any coding (and never in lua), but the self.log() section seems to be the issue. I assume I have to either have it not call, or set self.calendar to null, or something similar.

Using the example teaa file I see that I can write a superload for onTurn, but I'm stuck at what exactly I should do to disable the log function or pass it null data.

Any ideas?

Thanks in advance,
ibanix

_________________
Please help with the ToME wiki!


Top
 Profile  
 
PostPosted: Mon Nov 03, 2014 10:42 am 
Offline
Perspiring Physicist

Joined: Sun Sep 09, 2012 7:43 am
Posts: 5384
Just don't self.log?

_________________
My feedback meter decays into coding. Give me feedback and I make mods.


Top
 Profile  
 
PostPosted: Mon Nov 03, 2014 11:00 am 
Offline
Wyrmic

Joined: Thu May 23, 2013 12:25 am
Posts: 244
How?

_________________
Please help with the ToME wiki!


Top
 Profile  
 
PostPosted: Mon Nov 03, 2014 11:26 pm 
Offline
Perspiring Physicist

Joined: Sun Sep 09, 2012 7:43 am
Posts: 5384
Overwrite the entire function in the superload file, and don't include the log command.

_________________
My feedback meter decays into coding. Give me feedback and I make mods.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 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