Skip to content

Probing Objects

Serialized objects are created by your module at run time, with the properties autoplay2c read from the project. With a2c probe you can check that they come out the same as the objects AutoPlay Media Studio creates itself.

a2c probe <project> -o <copy> --log <log file>
Option Description Required
-o\|--output The probed copy of the project to write Yes
--log The log file the pages write to, as a full path on the machine that runs the project Yes

The probed copy is your project with one addition: whenever a page or dialog is shown, it appends every object's properties to the log, including the items of list boxes and combo boxes and the nodes of trees.

Comparing a Build With the Original

  1. Make a probed copy of your project:

    a2c probe MyProject.autoplay -o probe.autoplay --log C:\Temp\objects.txt
    
  2. Build the probed copy with serialized objects:

    a2c build probe.autoplay --serialize-objects --project-output probe.a2c.autoplay
    
  3. Open probe.autoplay in AutoPlay Media Studio, preview it, and visit every page and dialog. Then rename C:\Temp\objects.txt to original.txt.

  4. Open probe.a2c.autoplay, preview it, and visit the same pages and dialogs. Its log, C:\Temp\objects.txt again, now holds the serialized objects.
  5. Compare original.txt with objects.txt in any text compare tool.

The logs only differ where a serialized object lost or changed something. If you find a difference, you can leave that object (or its kind) in the project with --exclude-object or --exclude-kind. Please let us know about it as well, so it can be fixed.