The Forums Are Now Closed!

The content will remain as a historical reference, thank you.

[MOD][UI] Squelch and Ignore Fix v1.0

By on November 23, 2009 7:25:41 PM from Demigod Forums Demigod Forums

Features:
- Fixes the /squelch and /ignore commands. They currently do not work fully without this mod. (only normally works if the player's name that you are squelching is already all lowercase.)

Notes:
This is a User-Interface mod, so it doesn't require anyone else to have it installed.

How to Install:

Extract the folder into the Mods directory for Demigod.
eg. C:\Program Files (x86)\Stardock Games\Demigod\bindata\mods

How to Enable:
Inside Demigod, and under the Mod Manager, simply enable the mod!

If you have problems, make sure that your directory setup is akin to:
C:\Program Files (x86)\Stardock Games\Demigod\bindata\mods\Squelch and Ignore Fix\mod_info.lua

Files modified (for mod conflict checking only):
lua\ui\game\chat.lua

Download here
or
Here

+45 Karma | 17 Replies
November 23, 2009 8:03:10 PM from Demigod Forums Demigod Forums

Ah... ui mod!  This is actually very useful then.  Thanks Chirmaya. 

November 23, 2009 8:22:00 PM from Demigod Forums Demigod Forums

So umm.... now when i type " /ignore xxxx" it not display chat messages from a certain player in game?

Also: what does /squelch do?

Nobody from Stardock told us what these 2 things do or how to enable them.

November 23, 2009 8:53:26 PM from Demigod Forums Demigod Forums

They are exactly the same And yeah, /ignore JoeBuddyDude in chat. Do it again to un-ignore.

November 23, 2009 9:14:08 PM from Demigod Forums Demigod Forums

Quoting Chirmaya,
They are exactly the same And yeah, /ignore JoeBuddyDude in chat. Do it again to un-ignore.

Thanks!

November 23, 2009 10:42:07 PM from Demigod Forums Demigod Forums

Quoting Chirmaya,
They are exactly the same And yeah, /ignore JoeBuddyDude in chat. Do it again to un-ignore.

Thanks for the clarification.  Updated op mayhaps?  Thanks for all your work on mods Chirmaya.  I'm glad you still play dg and are willing to put the time into modding.  You too, morph.  Kudos!

November 23, 2009 10:56:10 PM from Demigod Forums Demigod Forums

You too, morph. Kudos!

No not me.  Kudos to Chirmaya! I learned from him some very basic things.

 

November 23, 2009 11:19:52 PM from Demigod Forums Demigod Forums

Superb!

November 24, 2009 7:05:04 AM from Demigod Forums Demigod Forums

Thank you again Chirmaya!

November 24, 2009 11:55:49 PM from Demigod Forums Demigod Forums

Does the ignore for a particular player carry over from one game to the next?

November 25, 2009 12:00:06 AM from Demigod Forums Demigod Forums

I don't believe it does, trigeminal. 

Chirmaya - do you know if it would be possible for us to edit the mod itself so that specific individuals would automatically be blocked?  I'm guessing no, but I am curious. 

November 25, 2009 12:15:26 AM from Demigod Forums Demigod Forums

yes.  Open up hook\lua\ui\game\chat.lua and find this code:

 

function SetupIgnoreList()
    local armies = GetArmiesTable()
    local focus = armies.focusArmy
    for id, army in armies.armiesTable do
        -- Can't ignore yourself, as much as you may want to
        if id != focus and army.human then
            ignoredPlayers[string.lower(army.nickname)] = false
        end
    end
end

Now change the line that sets ignoredPlayers to false to instead read:

ignoredPlayers[string.lower(army.nickname)] = army.nickname=='IHateThisGuy' or army.nickname=='ThisGuyHasAPottyMouth' or army.nickname=='TalksTooMuch'
November 25, 2009 12:50:44 AM from Demigod Forums Demigod Forums

Nice!  Glad you guys took the time to learn lua.  I'm so tempted now.  What's another language, after all.

December 2, 2009 8:32:25 PM from Demigod Forums Demigod Forums

Won't this cause even more broken teamwork in game play?

December 5, 2009 10:52:16 PM from Demigod Forums Demigod Forums

No it won't, However, irresponsible and excessive abuse of this mod on the part of the mod user him/herself would.

April 14, 2011 5:04:57 PM from Demigod Forums Demigod Forums

Bumping for future reference - think I'm going to add this to the combined installer.

edit - hmm... this is apparently listed in the change log for Demigod 1.2.  Will have to test to see if the squelch command works without the mod.

April 14, 2011 6:57:59 PM from Demigod Forums Demigod Forums

The ignoredPlayers list looks to be properly keyed and referenced with all lowercase values now.  It should work fine.

April 14, 2011 7:03:36 PM from Demigod Forums Demigod Forums

Ah - ok then.  Saved me some testing time then.  Thanks!

Stardock Forums v1.0.0.0    #108435  walnut2   Server Load Time: 00:00:00.0000297   Page Render Time:

Stardock Magazine | Register | Online Privacy Policy | Terms of Use

Copyright ?? 2012 Stardock Entertainment and Gas Powered Games. Demigod is a trademark of Gas Powered Games. All rights reserved. All other trademarks and copyrights are the properties of their respective owners. Windows, the Windows Vista Start button and Xbox 360 are trademarks of the Microsoft group of companies, and 'Games for Windows' and the Windows Vista Start button logo are used under license from Microsoft. ?? 2012 Advanced Micro Devices, Inc. All rights reserved. AMD, the AMD Arrow logo and combinations thereof are trademarks of Advanced Micro Devices, Inc.