Jump to content

Essle

Members
  • Posts

    70
  • Joined

  • Last visited

Everything posted by Essle

  1. Key J is already used for inventory open. IP adress? What do you mean?
  2. Essle

    Objects streamer

    Hello. What are methods of optimization with a large count of objects on server? Are there streamers?
  3. I'll do it. What key use for inventory with AZERTY keyboard? After update 3.0.1 inventory is fixed
  4. (I apologize for my bad english) I present is a completely new MTA project with a survival mode in world full of zombies. Server is created from scratch and has many unique systems. Creation and up-level of bases, raids on bases of other players. Hunting, fishing and growing vegetables for food. Attacks on camps and military bases, captured by bandits. Craft of various items and much more... New mapping: IP #1 SERVER - 176.32.36.145:22003 IP #2 SERVER - 176.32.37.43:22003 YouTube - https://www.youtube.com/channel/UCbKSMM9yIFhM1cMQvhIEUHA VK - https://vk.com/mta.zombie
  5. Here frequency is the distance between trees. That is, the smaller frequency, the more objects. Default frequency - 40.0, up to 20.0 it is possible to lower.
  6. More than 50% does not continue? Show script logs.
  7. Forest generator 1.0.0 ---------------------------------------------------------- ---------------------------------------------------------- Use /forestgen <frency> (frequency is distance between trees) ---------------------------------------------------------- Settings fg_client.lua / generatorData - Generation settings fg_server.lua / treesList - Object settings Forest exported to .map file in root directory of script ---------------------------------------------------------- Download: https://community.multitheftauto.com/index.php?p=resources&s=details&id=14680
  8. First need to finish it. Then I'll think about public release.
  9. Hello. I'm present a new mapping editor (beta). Developed for Project Zero.
  10. On tests you will not even notice difference.
  11. This function is needed to convert .map to .ipl In all converters rotation is not calculated correctly. But this function works perfectly. Example local file = File.new("map-test.ipl") file:write("inst\n") for _, theSubject in ipairs(Element.getAllByType("object")) do local rX, rY, rZ = getElementRotation(theSubject, "ZXY") local rW = 0 rX, rY, rZ, rW = math.quaternion(rX, rY, rZ) file:write( theSubject.model..", "..engineGetModelNameFromID(theSubject.model)..", 0, ".. theSubject.position.x..", "..theSubject.position.y..", "..theSubject.position.z..", ".. rX..", "..rY..", "..rZ..", "..rW..", -1\n" ) end file:write("end") file:flush() file:close()
  12. Function to translate angles of Euler into quaternions. Arguments: RotX, RotY, RotZ Return: RotX, RotY, RotZ, RotW function math.quaternion(x, y, z) local c = { math.cos(math.rad(-x)), math.cos(math.rad(-y)), math.cos(math.rad(z)) } local s = { math.sin(math.rad(-x)), math.sin(math.rad(-y)), math.sin(math.rad(z)) } local t = { c[2] * c[3], s[1] * s[2] * s[3] + c[1] * c[3], c[1] * c[2] } return math.drt(1.0 + t[1] - t[2] - t[3], (c[3] * s[1] - c[1] * s[2] * s[3]) - (-s[1] * c[2])), math.drt(1.0 - t[1] + t[2] - t[3], s[2] + (c[1] * s[2] * c[3] + s[1] * s[3])), math.drt(1.0 - t[1] - t[2] + t[3], (s[1] * s[2] * c[3] - c[1] * s[3]) - (c[2] * s[3])), math.drt(1.0 + t[1] + t[2] + t[3]) end function math.drt(a, b) a = math.sqrt(math.max(0.0, a)) * 0.5 return (b and ((b < 0) and -math.abs(a) or math.abs(a)) or a) end
  13. I found - http://gtaforums.com/topic/378291-how-to-make-realistic-radar/ Question is closed
  14. I guess i'm asking incorrect question. What program/tools can create a map image? I think that it is possible to render in 3D-Max, but as I do not know.
  15. It is necessary to create such an image
  16. No. Need render my new map for radar.
  17. Hello. How can render a 3D-map for radar? Examples: http://i.playground.ru/i/13/48/41/00/file/content/fxlynsb0.png http://img15.hostingpics.net/pics/5430340e6bbff866149242c9e6af77a5ffb59c.jpg
  18. Прям каждый пункт уникален.
  19. Проверял на возвращаемый рузультат engineLoadDFF и engineLoadTXD. Даже если модель не заменилась из-за недостатка ОЗУ, то не возвращает false
  20. Доброго времени суток. Не знаю поднималась ли тема ранее, но все же задался вопросом. Так как при выходе с сервера память освобождается не вся, то рано или поздно у игрока с небольшим ОЗУ при входе на сервер не заменятся объекты. При этом в логах не будет никаких ошибок. Для меня такая ситуация критична и крайне требуется способ обнаружения того, что у игрока не заменились модели. Было несколько раз что в такой ситуации не создавалась и шейдеры, которые оставляли за собой варнинги. Но так было не всегда, а значит нужна проверка надежнее.
  21. Клиент продолжает работать после потери соединения. Например при нажатии на клавишу с клиента на сервер отправляется триггер. Игрок отключает интернет, жмет клавишу, подключает интернет и триггер в этот момент отправляется на сервер.
  22. Приветствую. Каким образом можно отследить что игрок отключил интернет? Ибо после отключения интернета некоторое время игрок остается на сервере, совершая различные действия, которые при подключении интернета обратно вызывают баги.
  23. Похоже нашел проблему. В дебаг забыл вывести кол-во колшейпов. Сейчас вывел и нашел утечку. Через часа два работы сервера их около 10.000 штук
×
×
  • Create New...