UjAPI

Добавлен , опубликован
Лауреат премии 2023 года


Данный ресурс работает ТОЛЬКО с патчами 1.24e/1.26а/1.27a/1.27b/1.28f

Как пользоваться?

  1. Распакуйте все файлы из архива, желательно в отдельную папку, вот так:
скриншоты
  1. Запустите UjAPI.exe.
    • Если же у вас приложение не запускается, то скачайте и установите: .NET Framework 4.7.2.
    • Если же ни в игре, ни в World Editor UjAPI не работает, то скачайте и установите: C++ Redistributable 2012
  2. Установите путь для Warcraft 3, вот так:
скриншоты
  • Можно указать и на Frozen Throne.exe или же на Warcraft III.exe (но рекомендуется использовать именно war3.exe для патчей 1.27б и ниже).
  • На патче 1.28.5(f) рекомендуется использовать непосредственно Warcraft III.exe.
  1. Установите путь для World Editor, вот так:
скриншоты
  • Рекомендуется использовать JNGP версии Прометея: скачать
  • Пароль от архива: JNGP
4.1 Для удобства, добавления подсветки/автозаполнения, скачайте: [UjAPI] TESH Подсветка (спасибо DevilVsLife и Nazarpunk) и просто положите его в папку tesh/data вот так:
скриношоты
  1. Готово, вы можете теперь смело запускать как игру, так и World Editor через UjAPI Launcher.
    • Для использования оконного режима в Warcraft III нажмите галочку на "Additional command line arguments" и в появившееся окно, пропишите -window, вот так:
скриншоты

Полезные файлы

`
ОЖИДАНИЕ РЕКЛАМЫ...

Показан только небольшой набор комментариев вокруг указанного. Перейти к актуальным.
Этот комментарий удален
27
Ev3nt, можно в качестве мрдуля прдключать разные луа скрипты? В рефе это нафиг выкл
38
МрачныйВорон, а wlpm на что?) или ты про рилтайм?
27
wlpm не пробовал. Я про то, что в карту грузим несколько скриптов. А там в каждом по смыслу, пример: в первом математическая библиотека, вл втором скилы итд. Если ошибка, то исправляем нужный скрипт, не х.. целый скрипт каждый раз ковырять

wlpm я даже не понимаю, что это такое))
19
Ev3nt, можно в качестве мрдуля прдключать разные луа скрипты? В рефе это нафиг выкл
Да, конечно. Я сделал так, чтобы в обычном режиме вам была доступна подгрудка модулей исключительно с карты, однако, если вы переключитесь в режим разработчика, то помимо этого вы сможете грузить скрипты ещё с вашего диска. Мы часто это используем, когда тестируем новый функционал на наличие ошибок.

Ах да, забыл сказать. Если использовать war3_lua с UjAPI, то в lua появится доступ ко всем новым нативкам.
30
Ev3nt, require для lua реализован или самому сборкой заниматься?
38
Ну вот, тем более require в рилтайме работает, можно удаленно скрипты скачивать)
20
ScorpioT1000, и пока скрипт не скачается игрок будет лагать)))
30
и пока скрипт не скачается игрок будет лагать)))
Нехай асинхронно качает.
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.11.53

  1. Новые Нативные Функции:
Unit
native IsUnitAlive takes unit whichUnit returns boolean
native SetUnitModelEx takes unit whichUnit, string modelName, integer playercolourId returns nothing
native SetUnitMaterialTexture takes unit whichUnit, string textureName, integer materialId, integer textureIndex returns nothing
native SetUnitTexture takes unit whichUnit, string textureName, integer textureIndex returns nothing

Item
native SetItemModelEx takes item whichItem, string modelFile, integer playerColourId returns nothing
native SetItemMaterialTexture takes item whichItem, string textureName, integer materialId, integer textureIndex returns nothing
native SetItemTexture takes item whichItem, string textureName, integer textureIndex returns nothing
native SetItemReplaceableTexture takes item whichItem, string textureName, integer textureIndex returns nothing

Missile
native GetMissileTargetUnit takes missile whichMissile returns unit
native GetMissileTargetItem takes missile whichMissile returns item
native GetMissileTargetDestructable takes missile whichMissile returns destructable
native GetTriggerMissileTargetUnit takes nothing returns unit
native GetTriggerMissileTargetItem takes nothing returns item
native GetTriggerMissileTargetDestructable takes nothing returns destructable
Widget
native IsWidgetVisible takes widget whichWidget returns boolean
native SetWidgetVisible takes widget whichWidget, boolean visible returns nothing
native IsWidgetInvulnerable takes widget whichWidget returns boolean
native SetWidgetInvulnerable takes widget whichWidget, boolean invulnerable returns nothing
native GetWidgetPositionLocation takes widget whichWidget returns location
native SetWidgetPosition takes widget whichWidget, real x, real y returns nothing
native SetWidgetPositionLocation takes widget whichWidget, location whichLocation returns nothing
native SetWidgetX takes widget whichWidget, real x returns nothing
native SetWidgetY takes widget whichWidget, real y returns nothing
native GetWidgetVertexColour takes widget whichWidget returns integer
native SetWidgetVertexColour takes widget whichWidget, integer red, integer green, integer blue, integer alpha returns nothing
native GetWidgetTimeScale takes widget whichWidget returns real
native SetWidgetTimeScale takes widget whichWidget, real timeScale returns nothing
native GetWidgetScale takes widget whichWidget returns real
native SetWidgetScale takes widget whichWidget, real scale returns nothing
native GetWidgetFacing takes widget whichWidget returns real
native SetWidgetFacing takes widget whichWidget, real facing, boolean isInstant returns nothing
native SetWidgetSpaceRotation takes widget whichWidget, real yaw, real pitch, real roll, integer eulerOrder returns nothing
native SetWidgetOrientation takes widget whichWidget, real yaw, real pitch, real roll returns nothing
native GetWidgetYaw takes widget whichWidget returns real
native SetWidgetYaw takes widget whichWidget, real yaw returns nothing
native GetWidgetPitch takes widget whichWidget returns real
native SetWidgetPitch takes widget whichWidget, real pitch returns nothing
native GetWidgetRoll takes widget whichWidget returns real
native SetWidgetRoll takes widget whichWidget, real roll returns nothing
native SetWidgetModel takes widget whichWidget, string modelFile returns nothing
native SetWidgetModelEx takes widget whichWidget, string modelFile, integer playerId returns nothing
native SetWidgetAnimationWithRarityByIndex takes widget whichWidget, integer animIndex, raritycontrol rarity returns nothing
native SetWidgetAnimationWithRarity takes widget whichWidget, string animation, raritycontrol rarity returns nothing
native SetWidgetAnimationByIndex takes widget whichWidget, integer animIndex returns nothing
native SetWidgetAnimation takes widget whichWidget, string animation returns nothing
native QueueWidgetAnimationByIndex takes widget whichWidget, integer animIndex returns nothing
native QueueWidgetAnimation takes widget whichWidget, string animation returns nothing
native SetWidgetMaterialTexture takes widget whichWidget, string textureName, integer materialId, integer textureIndex returns nothing
native SetWidgetTexture takes widget whichWidget, string textureName, integer textureIndex returns nothing
native SetWidgetReplaceableTexture takes widget whichWidget, string textureName, integer textureIndex returns nothing

Destructable
native GetDestructablePositionLocation takes destructable whichDestructable returns location
native SetDestructablePosition takes destructable whichDestructable, real x, real y returns nothing
native SetDestructablePositionLocation takes destructable whichDestructable, location whichLocation returns nothing
native SetDestructableX takes destructable whichDestructable, real x returns nothing
native SetDestructableY takes destructable whichDestructable, real y returns nothing
native SetDestructableModel takes destructable whichDestructable, string modelFile returns nothing
native SetDestructableModelEx takes destructable whichDestructable, string modelFile, integer playerColourId returns nothing
native GetDestructableVertexColour takes destructable whichDestructable returns integer
native SetDestructableVertexColour takes destructable whichDestructable, integer red, integer green, integer blue, integer alpha returns nothing
native GetDestructableTimeScale takes destructable whichDestructable returns real
native SetDestructableTimeScale takes destructable whichDestructable, real timeScale returns nothing
native GetDestructableScale takes destructable whichDestructable returns real
native SetDestructableScale takes destructable whichDestructable, real scale returns nothing
native GetDestructableFacing takes destructable whichDestructable returns real
native SetDestructableFacing takes destructable whichDestructable, real facing, boolean isInstant returns nothing
native SetDestructableSpaceRotation takes destructable whichDestructable, real yaw, real pitch, real roll, integer eulerOrder returns nothing
native SetDestructableOrientation takes destructable whichDestructable, real yaw, real pitch, real roll returns nothing
native GetDestructableYaw takes destructable whichDestructable returns real
native SetDestructableYaw takes destructable whichDestructable, real yaw returns nothing
native GetDestructablePitch takes destructable whichDestructable returns real
native SetDestructablePitch takes destructable whichDestructable, real pitch returns nothing
native GetDestructableRoll takes destructable whichDestructable returns real
native SetDestructableRoll takes destructable whichDestructable, real roll returns nothing
native SetDestructableModel takes destructable whichDestructable, string modelFile returns nothing
native SetDestructableModelEx takes destructable whichDestructable, string modelFile, integer playerId returns nothing
native SetDestructableMaterialTexture takes destructable whichDestructable, string textureName, integer materialId, integer textureIndex returns nothing
native SetDestructableTexture takes destructable whichDestructable, string textureName, integer textureIndex returns nothing
native SetDestructableReplaceableTexture takes destructable whichDestructable, string textureName, integer textureIndex returns nothing
native SetDestructableAnimationWithRarityByIndex takes destructable whichDestructable, integer animIndex, raritycontrol rarity returns nothing
native SetDestructableAnimationWithRarity takes destructable whichDestructable, string animation, raritycontrol rarity returns nothing
native SetDestructableAnimationByIndex takes destructable whichDestructable, integer animIndex returns nothing
native QueueDestructableAnimationByIndex takes destructable whichDestructable, integer animIndex returns nothing
  1. Исправлен фриз игры, когда срабатывал ивент FRAMEEVENT_SLIDER_VALUE_CHANGED после использования нативной функции SetFrameValue.
  2. Get/SetUnitArmourType теперь используют тип defensetype заместо типа integer.
  3. Исправлена критическая ошибка от нативных функций: SetUnitFacingEx and SetUnitFacingInstant.
  4. CastAbilityTarget теперь использует тип widget заместо unit.
  5. Нативная функция CastAbilityGround более не использует unit в аргументах вызова.
  6. Обновлена версия War3 lua.
Показан только небольшой набор комментариев вокруг указанного. Перейти к актуальным.
Чтобы оставить комментарий, пожалуйста, войдите на сайт.