which when I run the project directly from construct 2 the save_obj["type"] contains "c_laser" (a names type from my project). And the type is looked up from the runtime no problem.
However, when I run it from a served HTML 5 webpage, the line crashes because runtime.types does not contain "c_laser", it not contains things encode "t1" ... "t50".
So I assume the type names have been compressed or something, but I did not minify when exporting the project (though I would like to in the future).
Is the inconsistency in the runtime.types dictionary to be expected??
Is there a different way of looking up runtime types by name?
I would like to be able to develop big object graphs in the development site and still be able to read them afer exporting them to a different runtime. Is that a crazy idea?