MX_Master Posted December 19, 2011 Share Posted December 19, 2011 Анимацию сменить нельзя. Насчет числа справа в консоли от ФПС, возможно, это FPS синхры. А тот ФПС, что слева, это FPS работы сервера. Link to comment
lil Toady Posted December 19, 2011 Author Share Posted December 19, 2011 Запустив 1.2 сервер заметил какое то непонятное значение рядом с фпс(в скобочках) http://s017.radikal.ru/i415/1112/42/a321767c54f7.jpg Что это за цифры о_О? UP^^ В скобках это фпс второго потока (thread) который используется для новой легкой синхронизации. Link to comment
Arimance Posted December 21, 2011 Share Posted December 21, 2011 Товарисчи, подскажите (: сервер нормально перенесёт сохранение убийств\смертей через setAccountData сразу в событии? Или использовать setElementData, а при выходе, например, игрока - сохранять? Link to comment
DakiLLa Posted December 21, 2011 Share Posted December 21, 2011 Заметил интересную весчь: функции для удаления стандартных объектов на карте (http://code.google.com/p/mtasa-blue/sou ... ail?r=3566). Link to comment
MX_Master Posted December 21, 2011 Share Posted December 21, 2011 большой шаг вперед в плане создания новых карт Товарисчи, подскажите (:сервер нормально перенесёт сохранение убийств\смертей через setAccountData сразу в событии? Или использовать setElementData, а при выходе, например, игрока - сохранять? второе первая функция юзает SQL запросы для сохранения и может слегка подвешивать сервер при частых вызовах Link to comment
Other Languages Moderators Disinterpreter Posted December 21, 2011 Other Languages Moderators Share Posted December 21, 2011 Тестирование r3566 r3568. Объект удаляется после того как выходит из стримера. До: После: При этом я использовал в ранкоде функцию:removeWorldBuilding( 3337,50,-152.398, 529.172, 5.688) (только клиентская) Link to comment
Kernell Posted December 22, 2011 Share Posted December 22, 2011 В нашей большой стране, даже имея авторские права на что-либо и не имея денег, вам мягко укажут на дверь. Что касается скриптов для мультиплеера с открытым исходным кодом.. то, просто скомпилируйте те скрипты ресурса, без которых остальное работать не будет. И честно говоря, это чисто русский синдром - пытаться скрыть от чужих глаз то, что даже в открытом виде никому не нужно.Конечно, можно попросить удалить ваш ресурс, который распространяется без лицензии, но это уже по желанию владельца сервера. MX_Master, Вы расист? Говорите лучше за свою страну. Link to comment
Arimance Posted December 22, 2011 Share Posted December 22, 2011 День добрый! Опять вопрос =\ Каким образом можно, если можно вообще, вывести в GUI текст из .txt файла с веб-сайта? Либо из .xml, разницы нет.. Link to comment
MX_Master Posted December 22, 2011 Share Posted December 22, 2011 День добрый! Опять вопрос =\Каким образом можно, если можно вообще, вывести в GUI текст из .txt файла с веб-сайта? Либо из .xml, разницы нет.. callRemote, потом переслать данные клиенту и отобразить в GUI Link to comment
Arimance Posted December 22, 2011 Share Posted December 22, 2011 Спасибо, попробуем (: Link to comment
Arimance Posted December 23, 2011 Share Posted December 23, 2011 (edited) Edited December 26, 2011 by Guest Link to comment
Arimance Posted December 26, 2011 Share Posted December 26, 2011 Вечер добрый! Вопрос хочу задать такой: раньше (в 1.0.5) сообщения в чате появлялись с плавной анимацией, будто их прокручивают с помощью pageup\pagedown. С версии 1.1 они появляются тупо сразу после набора. Можно ли вернуть анимацию? Link to comment
_Vincent_ Posted December 26, 2011 Share Posted December 26, 2011 хоть я в этом деле мало смыслю, но вряд ли. я помню, что с чатом что-то мутили для повышения производительности, быть может, это и явилось следствием. Link to comment
Arimance Posted December 26, 2011 Share Posted December 26, 2011 Жаль Анимация приятной фичей была Link to comment
DakiLLa Posted December 26, 2011 Share Posted December 26, 2011 Нет, это у вас какие-то проблемы. У меня все в порядке с анимацией, сижу на 1.2. Link to comment
Arimance Posted December 27, 2011 Share Posted December 27, 2011 Точно я на минимальных настройках эффектов играл. Средние установил - всё окей. Link to comment
Arimance Posted December 27, 2011 Share Posted December 27, 2011 Ребят, хочу вывести картинку над игроком, когда тот пишет в чат\консоль. Проверку знаю как сделать Делаю по примеру addEventHandler("onClientRender",getRootElement(), function() local px, py, pz, tx, ty, tz, dist px, py, pz = getCameraMatrix() for k, v in ipairs(getElementsByType("player")) do tx, ty, tz = getElementPosition(v) dist = math.sqrt((px - tx) ^ 2 + (py - ty) ^ 2 + (pz - tz) ^ 2) if dist < 30.0 then if isLineOfSightClear(px, py, pz, tx, ty, tz, true, false, false, true, false, false, getLocalPlayer()) then local sx, sy, sz = getPedBonePosition(v, 5) local x,y = getScreenFromWorldPosition(sx, sy, sz + 0.3) if x then -- getScreenFromWorldPosition returns false if the point isn't on screen dxDrawText(getPlayerName(v), x, y, x, y, tocolor(150, 50, 0), 0.85 + (15 - dist) * 0.02, "bankgothic") end end end end end ) Почему же текст не отображается, не могу понять.. Link to comment
Kenix Posted December 27, 2011 Share Posted December 27, 2011 /debugscript 3 Ничего не пишет? Мб ты не на клиенте скрипт юзаешь? Link to comment
Arimance Posted December 27, 2011 Share Posted December 27, 2011 Нет, я тщательно смотрю, где и что делаю. Дебаг молчит. Link to comment
Kenix Posted December 27, 2011 Share Posted December 27, 2011 Посмотри тогда лог в ПАПКА МТА/MTA/clientscript.log И кинь последние сообщения в логе сюда. meta.xml Твоего ресурса покажи желательно. Link to comment
Arimance Posted December 27, 2011 Share Posted December 27, 2011 [2011-12-27 14:19:39] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:39] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:39] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:39] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:39] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:39] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:39] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:40] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:41] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:42] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:42] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:42] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:42] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:42] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:42] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:42] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:42] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] [2011-12-27 14:19:42] WARNING: survival\survival_client.lua:442: Bad argument @ 'isLineOfSightClear' [Expected bool at argument 13, got player] meta.xml: Link to comment
Kenix Posted December 27, 2011 Share Posted December 27, 2011 Пробуй addEventHandler( "onClientRender",root, function( ) local px, py, pz, tx, ty, tz, dist px, py, pz = getCameraMatrix( ) for k, v in ipairs( getElementsByType( "player" ) ) do tx, ty, tz = getElementPosition( v ) dist = math.sqrt( (px - tx) ^ 2 + (py - ty) ^ 2 + (pz - tz) ^ 2 ) if dist < 30.0 then if isLineOfSightClear( px, py, pz, tx, ty, tz, true, false, false, true, false, false, false, localPlayer ) then local sx, sy, sz = getPedBonePosition( v, 5 ) local x,y = getScreenFromWorldPosition( sx, sy, sz + 0.3 ) if x then -- getScreenFromWorldPosition returns false if the point isn't on screen dxDrawText( getPlayerName( v ), x, y, x, y, tocolor( 150, 50, 0 ), 0.85 + ( 15 - dist ) * 0.02, "bankgothic" ) end end end end end ) Link to comment
Arimance Posted December 27, 2011 Share Posted December 27, 2011 Спасибо огромное, всё отлично (: Интересно, сервер onClientRender сильно грузит? Или грузит только компьютер игрока? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now