Jump to content

FlutteryChicken

Members
  • Posts

    7
  • Joined

  • Last visited

Reputation

0 Neutral

Contact Methods

Profile Information

  • About me
    Bottle Rocketeer
  1. I have noticed that on chrome as well, it\'s because the code tag is having a style attribute attached to it ('style='height: 20px;'), where as the one\'s that are fine don\'t have this. it\'s caused by this code in the theme.js?fin20 function smf_codeBoxFix() { var codeFix = document.getElementsByTagName(\'code\'); for (var i = codeFix.length - 1; i >= 0; i--) { if (is_webkit && codeFix[i].offsetHeight < 20) codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + \'px\'; else if (is_ff && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0)) codeFix[i].style.overflow = \'scroll\'; else if (\'currentStyle\' in codeFix[i] && codeFix[i].currentStyle.overflow == \'auto\' && (codeFix[i].currentStyle.height == \'\' || codeFix[i].currentStyle.height == \'auto\') && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0)) codeFix[i].style.height = (codeFix[i].offsetHeight + 24) + \'px\'; } } The problem occurs when the spoiler tag is wrapped around the code tag. The easiest fix would be to change the line if (is_webkit && codeFix[i].offsetHeight < 20) to if (is_webkit && codeFix[i].offsetHeight < 20 && codeFix[i].parentNode.style.display != 'none')
  2. Now I just need to find a 3D printer
  3. I am assuming it is this try catch try { using (StreamWriter w = File.AppendText(kspDir + 'isa_RAM_Mapper/isa_RAM_' + bodyName + '_Data.csv')) { while( isa_RAM_Buffer.Count > 0 ) { w.WriteLine(isa_RAM_Buffer.Dequeue ()); } w.Close (); isa_RAM_Pass_Count = 1; } } catch (IOException e) { Console.WriteLine('File Write Error. Pass #' + isa_RAM_Pass_Count + ' (' + e + \')\'); ++isa_RAM_Pass_Count; } if so, do this to check that it is actually an IOException by changing the IOException to Exception then using the ToString method to find out the actual cause of the exception. Note, do not leave it as exception, once you know what is can cause it, use the correct exception. try { using (StreamWriter w = File.AppendText(kspDir + 'isa_RAM_Mapper/isa_RAM_' + bodyName + '_Data.csv')) { while( isa_RAM_Buffer.Count > 0 ) { w.WriteLine(isa_RAM_Buffer.Dequeue ()); } w.Close (); isa_RAM_Pass_Count = 1; } } catch (Exception e) { Console.WriteLine(e.ToString()); //Console.WriteLine('File Write Error. Pass #' + isa_RAM_Pass_Count + ' (' + e + \')\'); //++isa_RAM_Pass_Count; }
  4. No problem, just started having a play with creating a plugin yesterday, but if you need a hand give a shout out.
  5. In your \'walkParts\' method change the line \'totalCost += Convert.ToInt32(namedPartsCost[p.name]);\' to \'totalCost += p.partInfo.cost;\' that should get the cost of the part without having to load up the cfg files seperately
  6. Yep, didn\'t think to look there, not sure why. Thank You
  7. Hey Guys, Just wondering if anyone can hook me up with a link to download the SDK for Windows, the one in the wiki has expired and I can\'t seem to find one on the forums.
×
×
  • Create New...