Войти в систему

Home
    - Создать дневник
    - Написать в дневник
       - Подробный режим

LJ.Rossia.org
    - Новости сайта
    - Общие настройки
    - Sitemap
    - Оплата
    - ljr-fif

Редактировать...
    - Настройки
    - Список друзей
    - Дневник
    - Картинки
    - Пароль
    - Вид дневника

Сообщества

Настроить S2

Помощь
    - Забыли пароль?
    - FAQ
    - Тех. поддержка



Пишет nancygold ([info]nancygold)
@ 2021-10-24 15:49:00


Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Настроение: accomplished
Entry tags:gamdev

Scripting
My voxel editor now supports scripting, just like the big professional apps:

Adding scripting required just a few lines of code.
Because Symta, like most other Lisp systems, has complete introspection.
Easiest feature ever!



(Добавить комментарий)


[info]nashhgold
2021-10-24 22:11 (ссылка)
What if such a script contains an error? Will it crash or hang the whole app? Like a syntax error or an endless loop.

(Ответить) (Ветвь дискуссии)


[info]nancygold
2021-10-24 23:14 (ссылка)
app.run_script Filename =
| host_set Me
| Root PD.replace('\\' '/')
| Srcs: "[WD]src_core/"
| Uses: rt_ core_ host_
| Val eval_file Filename RootFolder!Root SrcFolders!Srcs Uses!Uses
| if Val.is_bterror: $ui.notify "Error: [Val.text]"

(Ответить) (Уровень выше)


[info]nancygold
2021-10-24 23:16 (ссылка)
A endless loop error will indeed hang the app, since it is single threaded. And there is no easy way to handle that, since limiting runnig time will limit what such script can do.

(Ответить) (Уровень выше)