Jump to content

Дада (: фулдилка


Recommended Posts

  • Replies 2.4k
  • Created
  • Last Reply

Top Posters In This Topic

Запустив 1.2 сервер заметил какое то непонятное значение рядом с фпс(в скобочках)

http://s017.radikal.ru/i415/1112/42/a321767c54f7.jpg

Что это за цифры о_О?

UP^^

В скобках это фпс второго потока (thread) который используется для новой легкой синхронизации.

Link to comment

Товарисчи, подскажите (:

сервер нормально перенесёт сохранение убийств\смертей через setAccountData сразу в событии?

Или использовать setElementData, а при выходе, например, игрока - сохранять?

Link to comment

большой шаг вперед в плане создания новых карт

Товарисчи, подскажите (:

сервер нормально перенесёт сохранение убийств\смертей через setAccountData сразу в событии?

Или использовать setElementData, а при выходе, например, игрока - сохранять?

второе

первая функция юзает SQL запросы для сохранения и может слегка подвешивать сервер при частых вызовах

Link to comment
  • Other Languages Moderators

Тестирование r3566 r3568.

Объект удаляется после того как выходит из стримера.

До:

bc943f6a.jpg

После:

29b91eaf20.jpg

При этом я использовал в ранкоде функцию:removeWorldBuilding( 3337,50,-152.398, 529.172, 5.688) (только клиентская)

Link to comment
В нашей большой стране, даже имея авторские права на что-либо и не имея денег, вам мягко укажут на дверь. Что касается скриптов для мультиплеера с открытым исходным кодом.. то, просто скомпилируйте те скрипты ресурса, без которых остальное работать не будет. И честно говоря, это чисто русский синдром - пытаться скрыть от чужих глаз то, что даже в открытом виде никому не нужно.

Конечно, можно попросить удалить ваш ресурс, который распространяется без лицензии, но это уже по желанию владельца сервера.

MX_Master,

Вы расист? Говорите лучше за свою страну.

Link to comment
День добрый! Опять вопрос =\

Каким образом можно, если можно вообще, вывести в GUI текст из .txt файла с веб-сайта? Либо из .xml, разницы нет..

callRemote, потом переслать данные клиенту и отобразить в GUI

Link to comment

Вечер добрый! Вопрос хочу задать такой: раньше (в 1.0.5) сообщения в чате появлялись с плавной анимацией, будто их прокручивают с помощью pageup\pagedown. С версии 1.1 они появляются тупо сразу после набора.

Можно ли вернуть анимацию? :(

Link to comment

Ребят, хочу вывести картинку над игроком, когда тот пишет в чат\консоль. Проверку знаю как сделать :)

Делаю по примеру

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

[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

Пробуй

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...