Jump to content
Alloder.pro  about Allods with love 😱
Search In
  • More options...
Find results that contain...
Find results in...

Servers monitoring and the Addons Editor

We present you two legends. All dreams come true.

Servers monitoring The Addons Editor

Digest April

We talk about what was done and updated in the past month. We help keep abreast of events.

Read more

Game tooltips

Tooltips provide a way for 3rd party fansites and extensions to display detailed information on mouseover.

Read more

io.input ([file])


icreator
 Share

Recommended Posts

".../Allods Online/data/Mods/Docs/ModdingDocuments/Creating.html"

Quote:
Игра использует Lua версии 5.0.NNN.

Подключены стандартные библиотеки: coroutine, table, string, math.

Загружать ресурсы другим способом помимо ввода ссылки в ресурсную иерархию никак :(

Link to comment
Share on other sites

я поняла как загрузить - грузим как файл для выполнения:

например так:

Code:

local filename = "C:/Program Files/Games/Allods Online/data/Mods/Addons/GuildCommissionaire/Scripts/list.txt"

gList = {}

dofile (filename)

researchObj(" load:", gList)

а в файле list.txt пишет это:

Code:
gList = {

----------------------data

MyPers = 1234,

 ["Большая Розочка"]  = " уже совсем взрослая",

 ["dddd"]  = 111,

MyPers2 = 233

---------------------

}

в результате у нас будут загружены данные из файла! результат работы в ЛогФайле:

Code:
Info: addon GuildCommissionaire:  load:    MyPers2:=233{number}

Info: addon GuildCommissionaire:  load:    Большая Розочка:=уже совсем взрослая{string}

Info: addon GuildCommissionaire:  load:    dddd:=111{number}

Info: addon GuildCommissionaire:  load:    MyPers:=1234{number}

Link to comment
Share on other sites

Неужели работает? :) Здорово! :)

Может быть, можно указывать не полные, а относительные пути, и тогда, можно загрузить любое количество любых файлов, даже из СОСЕДНИХ аддонов :)) Так, например, в одном аддоне может быть какая-нибудь БД, но и другие аддоны тоже могут ею пользоваться :)

Link to comment
Share on other sites

конечно можно грузить из разных аддонов. вот еще проще (DB.txt):

Code:
choice.DB ["Заговоренный трофей"]  = 1

choice.DB ["Благословленный трофей"]  = 1

choice.DB ["Зачарованный трофей"]  = 1

choice.DB ["Заколдованный трофей"]  = 1

choice.DB ["Юбилейная медная монета"]  = 1

choice.DB ["Юбилейная серебряная монета"]  = 1

choice.DB ["Знак Рвения"]  = 1

Link to comment
Share on other sites

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

By using our site you agree to the Terms of Use