Jump to content

rbradfordMach

Community Newbie
  • Posts

    4
  • Joined

  • Last visited

rbradfordMach's Achievements

Tiro

Tiro (1/14)

0

Reputation

  1. Thanks for the info, that helped me get in working. Thanks for the info, got it working.
  2. The replay and video capture is not open source. We will be submitting the visual replay changes to 0AD for inclusion into the code base. (And also the mods to 0AD to integrate the functionality, if desired) I would expect that the company would likely provide a run time binary add on or distribution with 0AD at no charge, if desired and provided that it didn't require a distribution of the source code. BUT I am NOT authorized to make that decision, it's just my personal opinion. The video system works via C++ through LUA plugins that determine what gets covered and how it looks. Those would be open source and the user or developer community could modify or make their own director and shot plugins. (Decoda has a nice lua debugger that works well with the 0AD and the lua director scripts.)
  3. The reason we want to do this is that we have hooked c++ code into the engine to track game play events and unit position updates during game play (recording) so we can automatically generate cinematic camera coverage for visual replays (we extended the replay system to do visual replays). System then generates a webm video with sound. Currently, projectile units are all we have in the engine for battle events. Melee events are entirely handled in script. Looking for some guidance on how to do this from attack.js ie code examples in script/engine that show exposed API being called by script. in other places how does a particular script know about the exposed API calls ? I need unit ids to or unique unit names for the instigator and the target. How do I look at or find out the js object hierarchy, members ?
  4. Working on visual replay system and need to add event tracking for attacks/kills I've only worked with the C++ code base mostly so far.<br class="Apple-interchange-newline"> Need some quick advice on how to proceed Need to call C++ function with unit Names or IDs or attacker and damage receiver cppTakeDamage(attackerID, victimID, damageLevel, victimHealthBefore, victimHealthAfter) // don't really need the health stuff... Attack.js CauseDamage() looks like the place to do it Help on the following would be appreciated1. general task list to add a cpp funciton and how it gets exposes to JS 2. any way to debug the JS ?
×
×
  • Create New...