jonbaer Posted May 22, 2016 Share Posted May 22, 2016 Hi, Trying to figure out if I am missing a hotkey or if this is possible, in pyrogenesis -editor, the Actor viewer does not seem to pick up XML changes, is there a hack to do this? Thanks. - Jon Link to comment Share on other sites More sharing options...
sanderd17 Posted May 22, 2016 Share Posted May 22, 2016 Iirc, hotloading in atlas only works when the simulation is running. Link to comment Share on other sites More sharing options...
jonbaer Posted May 22, 2016 Author Share Posted May 22, 2016 I am not sure that applies to the Actor files, I read on the engine documentation: "The Atlas GUI is also scriptable. It is implemented in binaries/data/tools/atlas/scripts. Atlas also supports ''hotloading'' GUI scripts, so it is possible to edit a script and immediately see its effect in a running Atlas window. The goal is to eventually support hotloading for the game GUI and possibly even game logic scripts in 0 A.D." While I can't see a "scripts" directory it looks like a TemplateLoader (C++) isn't really called anywhere, which I am assuming would reload an entity. What I mean by this is say for example I removed this, <prop actor="props/units/heads/spart_agis.xml" attachpoint="helmet"/>, to see that change in Atlas w/o having to restart. Link to comment Share on other sites More sharing options...
jonbaer Posted May 22, 2016 Author Share Posted May 22, 2016 (edited) Hmmm, there is this bit here (in which case I changed flushcache to true instead of false (as it is hardcoded in Atlas), but did not seem to have any effect) - thought it would have caused the template to be read again + re rendered ... http://trac.wildfiregames.com/browser/ps/trunk/source/tools/atlas/GameInterface/Messages.h#L391 MESSAGE(SetActorViewer, ((std::wstring, id)) ((std::wstring, animation)) ((int, playerID)) ((float, speed)) ((bool, flushcache)) // true => unload all actor files before starting the preview (because we don't have proper hotloading yet) ); Edited May 22, 2016 by jonbaer Link to comment Share on other sites More sharing options...
sanderd17 Posted May 22, 2016 Share Posted May 22, 2016 I just tested it, and if you start the simulation test in Atlas, then saving the actor file does trigger hotloading. But it doesn't work in the actor viewer AFAICS. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now