ruffle-rs / ruffle

A Flash Player emulator written in Rust
https://ruffle.rs
Other
15.54k stars 805 forks source link

Information texts not visable in the Nobel Prize PCR game #4254

Closed hansmehlin closed 2 months ago

hansmehlin commented 3 years ago

Hello!

A bit into the game, after you have broken the PCR machine, placed the water baths on the bench and turned on the power, you are supposed to write a title, the name of the step of the procedure, on each water bath and after that set the temperature and time for each step. However, all the feedback dialogue texts are empty from now on. Therefore you do not know what to do and you cannot continue the game. Up until this point, the texts have been working fine.

URL: https://educationalgames.nobelprize.org/educational/chemistry/pcr-ruffle/game/index.html

SWF file: https://educationalgames.nobelprize.org/educational/chemistry/pcr-ruffle/game/main.swf

Original Flash page: https://educationalgames.nobelprize.org/educational/chemistry/pcr/game/index.html

Version: ruffle-nightly-2021_05_05-web-selfhosted tested in several browsers.

pcr-2

Hans

adrian17 commented 3 years ago

Blocked on unimplemented __resolve (script used it on XMLNode).

Herschel commented 3 years ago

The script in question, which allows accessing the XML children as properties on the XML object, E4X-style:

XMLNode.prototype.getNode = function(name)
{
   var _loc2_ = this;
   var _loc3_ = name;
   var _loc1_ = _loc2_.childNodes.length;
   while(true)
   {
      _loc1_;
      if(!_loc1_--)
      {
         break;
      }
      if(_loc3_ == _loc2_.childNodes[_loc1_].nodeName)
      {
         return _loc2_.childNodes[_loc1_];
      }
   }
   return false;
};
XMLNode.prototype.__resolve = function(a)
{
   return this.getNode(a);
};
n0samu commented 2 months ago

Should be fixed by #16284