Здравствуйте, гость ( Вход | Регистрация )

 
Ответить в эту темуОткрыть новую тему
> 2 questions about LUA scripts
kaltorak
сообщение 31.3.2023, 21:19
Сообщение #1


**

Neophyte
Сообщений: 21
Регистрация: 12.10.2021
Группа: Пользователи
Наличность: 6
Пользователь №: 20.106
Возраст: 30



First I would like to thank all the forum contributors, it's been a little over 1 year since I started using UoPilot and dozens of topics I read here helped me a lot to evolve.

And it was thinking about this evolution that I started studying LUA to try to make more complex codes, since the standard language of UoPilot limits some resources. It is a great pity that Discord does not work so that we had a more direct contact.

Let's get to the questions:

1- On a scale of 1%-100% are commands like FindImage for example in LUA executed faster than the default FindImage in UoPilot or will the speed be the same?

2- Is it possible to take the value of a variable from Script 1 that was written with the default language of UoPilot and read it in Script 2 in lua code?

Ex:
Script tab 1:
set #a 1530

Script 2:
--lua
var = #a.1
Пользователь в офлайнеDelete PostОтправить личное сообщение
Вернуться в начало страницы
+Ответить с цитированием данного сообщения
Cockney
сообщение 31.3.2023, 21:31
Сообщение #2


********

Master
Сообщений: 1.395
Регистрация: 22.6.2013
Группа: Пользователи
Наличность: 21064
Пользователь №: 16.156



Цитата(kaltorak @ 31.3.2023, 21:19) *

First I would like to thank all the forum contributors, it's been a little over 1 year since I started using UoPilot and dozens of topics I read here helped me a lot to evolve.

And it was thinking about this evolution that I started studying LUA to try to make more complex codes, since the standard language of UoPilot limits some resources. It is a great pity that Discord does not work so that we had a more direct contact.

Let's get to the questions:

1- On a scale of 1%-100% are commands like FindImage for example in LUA executed faster than the default FindImage in UoPilot or will the speed be the same?

2- Is it possible to take the value of a variable from Script 1 that was written with the default language of UoPilot and read it in Script 2 in lua code?

Ex:
Script tab 1:
set #a 1530

Script 2:
--lua
var = #a.1


1. The speed will be the same.
2. Probably not, usually the problem of transferring data between scripts is solved by a file, tcp connection or clipboard
Пользователь в офлайнеDelete PostОтправить личное сообщение
Вернуться в начало страницы
+Ответить с цитированием данного сообщения

Ответить в эту темуОткрыть новую тему
2 чел. читают эту тему (гостей: 2, скрытых пользователей: 0)
Пользователей: 0

 

- Текстовая версия | Версия для КПК Сейчас: 27.4.2024, 23:06
Designed by Nickostyle