• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Warning Message - Missing Channel

potinho

Advanced OT User
Joined
Oct 11, 2009
Messages
1,402
Solutions
17
Reaction score
150
Location
Brazil
Hello guys, I have added a loot channel in my 7.6 server and works, but OTCv8 terminal send a warning every monster i killed:

WARNING: message in channel id 12 which is unknown, this is a server bug, relogin if you want to see messages in this channel

I keep the channel close for preference, when open channel error dont happen. There's a way to supress error?

1665097366558.pngotc
 
XML:
<?xml version="1.0" encoding="UTF-8"?>
<channels>
    <channel id="1" name="Staff" access="3"/>
    <channel id="2" name="Counselor" access="1"/>
    <channel id="3" name="Rule Violations" logged="yes" access="4"/>
    <channel id="4" name="Game-Chat" level="2"/>
    <channel id="5" name="Trade" level="2" muted="120" conditionId="3" conditionMessage="You may only place one offer in two minutes."/>
    <channel id="6" name="RL-Chat" level="2"/>
    <channel id="7" name="Help" logged="yes" muted="60" conditionId="3" conditionMessage="Doubt only chat that has a 1 minute cooldown. If you want to chat, use Game-Chat."/>
    <channel id="12" name="Loot" active="0"/>
    <channel id="65535" name="Private Chat Channel"/>
</channels>
Post automatically merged:

show chatchannels.xml
here
 
How to prevent players to close a channel? As default channel tab, there's a way to block a player to close a custom channel? If yes, can you teach me how?

1666704483455.png
1666704492666.png
 
That is just a warning from game_console module of the client


If you want disable that warning use

Lua:
if channel then
  addText(composedMessage, speaktype, channel, name)
end
So, its just change this

Lua:
If channel then
addText(composedMessage, speaktype, channel, name)
-- server sent a message on a channel that is not open[/TD]
 pwarning('message in channel id ' .. channelId .. ' which is unknown, this is a server bug, relogin if you want to see messages in this channel')[/TD]
end
end

To this:

Lua:
if channel then
  addText(composedMessage, speaktype, channel, name)
end

?
 
So, its just change this

Lua:
If channel then
addText(composedMessage, speaktype, channel, name)
-- server sent a message on a channel that is not open[/TD]
 pwarning('message in channel id ' .. channelId .. ' which is unknown, this is a server bug, relogin if you want to see messages in this channel')[/TD]
end
end

To this:

Lua:
if channel then
  addText(composedMessage, speaktype, channel, name)
end

?
yes change this if/else

Lua:
 if channel then
      addText(composedMessage, speaktype, channel, name)
    else
      -- server sent a message on a channel that is not open
      pwarning('message in channel id ' .. channelId .. ' which is unknown, this is a server bug, relogin if you want to see messages in this channel')
    end
 
where did you get the loot channel from? i want it too
 
so how do i prevent a channel from being closed?
Lua:
function onCloseChannel(channelId)
  local channel = channels[channelId]
  if channel then
    local tab = getTab(channel)
    if tab then
      consoleTabBar:removeTab(tab)
    end
    for k, v in pairs(channels) do
      if (k == tab.channelId) then channels[k] = nil end
    end
  end
end

After
Code:
if channel then
check your channel id and then return.
 
Back
Top