Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

Scriptfehler Deponia-Interface

  • #20, by SimonS 14 years ago Zitieren
    I tell ya, nothing is more complicated and confusing like many lua scripts or long ones. The editor is just missing all the things that programming interfaces normally offer (I hope we fix that with the next release).
    If you could see the scripts you'd understand why they did stick to action parts wink Just image the size of a mainLoop function for all the things where animations as such are used.
  • #21, by afrlme 14 years ago Zitieren
    I have a few of their project files so I've seen their scripts ...
    the only confusing thing about them using Lua is that majority of them haven't bothered adding comments to their scripts meaning you have to try & figure out what's what by looking at it & then connect the dots to other sections of same script which is spread throughout multiple scripts like for instance their improved walk cycle script.

    For mainLoop function I don't add the code itself I just link to another function & if I don't want it to constantly loop I wrap in a small if query.

    Have you seen the custom event handler/listener scripts inside of the wiki (on here) that Dundil has been working on - sound promising.

    & could you specify what you had in mind for programming interface please on here, pm or even skype wink

    I use "sublime text" myself, which David recommended to me...
    In which I create a small include script inside of VS editor to link to the external .lua file I'm working on inside sublime which saves time & then when script i finished I copy/paste into VS. I do agree VS script interface could do with some stuff like line number display & color coded syntax. I'm not expecting all the bells & whistles of sublime though (auto complete & multi-line/word editing & dark background/theme) razz
  • #22, by SimonS 14 years ago Zitieren
    Some prefer short scripts, some prefer many comments.

    Now I've seen the custom script. It comes down to a big mainLoop after all, and that might be slow (at least for the current engine, next release won't have these problems), but it should help keeping overview.

    You know we want to add some basic things, code highlighting, auto complete and such.
  • #23, by afrlme 14 years ago Zitieren
    ah nice, David didn't mention anything about updating the script editor to me.
    ctrl+a (select all) would also be nice - currently you have to left click & drag.

    I prefer many comments (short term memory) as it means I can always go back to something & I know what it's for/it does.

    I know the engine is getting a major overhaul that should reduce required processing power, cpu/ram/vram etc & I'm betting Alex is definitely glad to have you on board as you seem to have been just the thing to get them motivated wink
  • #24, by superscheibenkleiste 14 years ago Zitieren
    Sorry, wenn ich mich erstmal nicht mehr melde!
    Ich kann grade nichts neues ausprobieren, weil ich ALLE BILDER VERLOREN HABE...
    Ich hab sie zwar wiedergefunden, aber jetzt muss ich sie alle neu einbinden, Menno...
    Ich melde mich wenn sich was tut,
    Superscheibenkleiste