Difference between revisions of "User:AVS/Scripting"

From VCMI Project Wiki
Jump to: navigation, search
Line 6: Line 6:
 
# (*) WoG objects ''(if will not be already written in ERM)''
 
# (*) WoG objects ''(if will not be already written in ERM)''
 
# (*) WoG artifacts ''(if will not be already written in ERM)''
 
# (*) WoG artifacts ''(if will not be already written in ERM)''
 +
 +
== TODOs ==
 +
 +
* all battle packets shall check curB
  
 
== Implementation details ==
 
== Implementation details ==

Revision as of 09:05, 20 January 2013

Roadmap

  1. [Done] make "hellow world" works
  2. add new test objects
  3. implement WoG henchman script (just as an example)
  4. WoG 3.59 creature abilities (from new towns)
  5. (*) WoG objects (if will not be already written in ERM)
  6. (*) WoG artifacts (if will not be already written in ERM)

TODOs

  • all battle packets shall check curB

Implementation details

  • Lua 5.2.1 static + SLB


Directory structure

  • [Done] "ALL/Scripts" - autoloading scripts. Independent of each other.
  • [Todo] "ALL/ScriptLib" - script library, load on demand.
  • recomended to put scripts in mod subfolder

Persistence

  • [Todo] JsonNode`s in Advmap objects.
  • (*) global state of scripts and scripts itself. + reloading scripts (Era like)

Engine interaction

  • read only through callbacks
  • ALL changes through NetPacks

Problems

  • How to override server logic when script acts at client side?