Lafayette Posted September 4, 2014 Share Posted September 4, 2014 ChatLogByN00b Просмотр файла Аддон для логирования чата в лог-файл Allods Online\Personal\Logs\mods.txt This addon saves all chat messages to log file Allods Online\Personal\Logs\mods.txt Добавил Lafayette Добавлено 04.09.2014 Категория Аддоны Quote Link to comment Share on other sites More sharing options...
animationstime Posted September 5, 2014 Share Posted September 5, 2014 На нельзя сохранять в отдельный файл ? Quote Link to comment Share on other sites More sharing options...
logg Posted September 5, 2014 Share Posted September 5, 2014 На нельзя сохранять в отдельный файл ?нет Quote Link to comment Share on other sites More sharing options...
LEM Posted September 6, 2014 Share Posted September 6, 2014 Хотелось бы заранее предупредить. Файл mods.txt периодически очищается. Поэтому, если вы собираетесь хранить очень большую историю чата, заранее позаботьтесь о копировании оной в другой файл через некоторое количество времени. Quote Link to comment Share on other sites More sharing options...
Jexon Posted December 18, 2014 Share Posted December 18, 2014 А разве в LUA нету функции для создания текстового файла и записи данных туда, вместо mods.txt? Quote Link to comment Share on other sites More sharing options...
Altair Posted December 18, 2014 Share Posted December 18, 2014 в LUA есть такие функции, но они выделены в отдельную стандартную библиотеку io, которая НЕ включена в клиент. Quote Link to comment Share on other sites More sharing options...
MinёR Posted February 6, 2015 Share Posted February 6, 2015 После установки обновления 6.0 аддон перестал указывать время и дату. В mods.txt это выглядит так: Info: addon ChatLogByN00b: --:--:-- Возможно ли это поправить? Quote Link to comment Share on other sites More sharing options...
Artdos Posted February 9, 2015 Share Posted February 9, 2015 Проверяйте ChatLogByN00b 6.0.1.zip Quote Link to comment Share on other sites More sharing options...
MinёR Posted February 10, 2015 Share Posted February 10, 2015 Дата и время появились. Однако, не обходится без "но": при запуске аддон выдаёт ошибки 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 В любом случае спасибо! Это гораздо лучше чёрточек. Quote Link to comment Share on other sites More sharing options...
Lafayette Posted February 27, 2015 Author Share Posted February 27, 2015 Обновил дистрибутив, но на базе фикса от budunovmv Quote Link to comment Share on other sites More sharing options...
MinёR Posted March 1, 2015 Share Posted March 1, 2015 Спасибо! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Обязательна информация из \Personal\Logs\mods.txt для диагностики ошибки.
Иначе вам не помочь.
В игре включите в Меню → Интерфейс → Общие настройки → Запись ошибок пользовательских дополнений. Затем запустите аддон в игре.