Jump to content

Digest October-December

We talk about what was done and updated in the past month. We help keep abreast of events.

December November October

Servers monitoring and the Addons Editor

We present you two legends. All dreams come true.

Servers monitoring The Addons Editor

A statistics bot for Telegram

Convenient analytics right on your phone.

Read more

Game tooltips

Tooltips provide a way for 3rd party fansites and extensions to display detailed information on mouseover.

Read more

The Addons Updater

Let us to introduce the addons updating software and to share the details

Read more Download


Lafayette

Recommended Posts

ChatLogByN00b

Просмотр файла

Аддон для логирования чата в лог-файл Allods Online\Personal\Logs\mods.txt

This addon saves all chat messages to log file Allods Online\Personal\Logs\mods.txt


 

Link to comment
Share on other sites

Хотелось бы заранее предупредить. Файл mods.txt периодически очищается. Поэтому, если вы собираетесь хранить очень большую историю чата, заранее позаботьтесь о копировании оной в другой файл через некоторое количество времени.

Link to comment
Share on other sites

  • 3 months later...

А разве в LUA нету функции для создания текстового файла и записи данных туда, вместо mods.txt?

Link to comment
Share on other sites

в LUA есть такие функции, но они выделены в отдельную стандартную библиотеку io, которая НЕ включена в клиент.

Link to comment
Share on other sites

  • 1 month later...

После установки обновления 6.0 аддон перестал указывать время и дату. В mods.txt это выглядит так:

 

Info: addon ChatLogByN00b: --:--:--

 

Возможно ли это поправить?

Link to comment
Share on other sites

Дата и время появились. Однако, не обходится без "но": при запуске аддон выдаёт ошибки

 

Error: addon ChatLogByN00b: Game::LuaCommonInternalLog: param 11 (type: ValuedText) not meet the given condition: state.IsString( i ) || state.IsWString( i ), details: int __cdecl Game::LuaCommonInternalLog(struct lua_State *,enum Lua::LogType,const class nstl::basic_string<char> &,bool)
Error: addon ChatLogByN00b: 
Error: addon ChatLogByN00b:   
Error: addon ChatLogByN00b:   func: LogInfo, field, line: -1, defined: C, line: -1, [C]
Error: addon ChatLogByN00b:     func: ?, ?, line: 80, defined: Lua, line: 37, [string "Mods/Addons/ChatLogByN00b/ChatLogByN00b.lua"]
Error: addon ChatLogByN00b: Game::LuaCommonInternalLog: param 11 (type: ValuedText) not meet the given condition: state.IsString( i ) || state.IsWString( i ), details: int __cdecl Game::LuaCommonInternalLog(struct lua_State *,enum Lua::LogType,const class nstl::basic_string<char> &,bool)
Error: addon ChatLogByN00b: 
Error: addon ChatLogByN00b:   
Error: addon ChatLogByN00b:   func: LogInfo, field, line: -1, defined: C, line: -1, [C]
Error: addon ChatLogByN00b:     func: ?, ?, line: 80, defined: Lua, line: 37, [string "Mods/Addons/ChatLogByN00b/ChatLogByN00b.lua"]
 
И время указывает примерно на 53 минуты раньше (сообщение было написано в 00:55, аддон пишет 00:02, про секунды сказать ничего не могу, не посмотрел)
 
Info: addon ChatLogByN00b: 2015.02.10 00:02:25
 
В любом случае спасибо! Это гораздо лучше чёрточек.
Link to comment
Share on other sites

  • 3 weeks later...
ВНИМАНИЕ!
Обязательна информация из \Personal\Logs\mods.txt для диагностики ошибки.
Иначе вам не помочь.
В игре включите в Меню → Интерфейс → Общие настройки → Запись ошибок пользовательских дополнений. Затем запустите аддон в игре.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using our site you agree to the Terms of Use