{"id":29,"date":"2014-09-01T00:00:14","date_gmt":"2014-08-31T15:00:14","guid":{"rendered":"http:\/\/www.biscrat.com\/blog\/?p=29"},"modified":"2014-09-01T11:25:14","modified_gmt":"2014-09-01T02:25:14","slug":"ignore-missing-error-kag","status":"publish","type":"post","link":"https:\/\/biscrat.com\/blog\/ignore-missing-error-kag\/","title":{"rendered":"\u30d5\u30a1\u30a4\u30eb\u304c\u7121\u3044\u3068\u304d\u306e\u30a8\u30e9\u30fc\u6291\u5236(KAG\u7528)"},"content":{"rendered":"<p>KAG\u3067\u306f\u5b58\u5728\u3057\u306a\u3044\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u3068\u30a8\u30e9\u30fc\u3067\u30b2\u30fc\u30e0\u304c\u6b62\u307e\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br \/>\n\u4e9b\u7d30\u306a\u6307\u5b9a\u30df\u30b9\u3067\u30b2\u30fc\u30e0\u3092\u518d\u8d77\u52d5\u3059\u308b\u306e\u3082\u5927\u5909\u306a\u306e\u3067\u6b62\u307e\u3089\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059\u3002<br \/>\n<!--more--><br \/>\n\u4e0b\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092ignoreMissing.tjs\u3068\u3057\u3066\u4fdd\u5b58\u3057\u3001override.tjs\u3067\u300cScripts.evalStorage(&#8220;ignoreMissing.tjs&#8221;);\u300d\u306e\u3088\u3046\u306b\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<p>\u5f8c\u306ffirst.ks\u306a\u3069\u3067[eval exp=&#8221;global.ignoreImageMissing = true&#8221;]\u3068\u3059\u308b\u3068\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3057\u306a\u304f\u3066\u3082\u30a8\u30e9\u30fc\u505c\u6b62\u3057\u306a\u304f\u306a\u308a\u307e\u3059\u3002<br \/>\n[eval exp=&#8221;global.ignoreSEMissing = true&#8221;]\u3068\u3059\u308b\u3068\u52b9\u679c\u97f3\u30d5\u30a1\u30a4\u30eb\u306b\u3064\u3044\u3066\u3082\u540c\u3058\u304f\u505c\u6b62\u3057\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: tjs; title: ignoreMissing.tjs; notranslate\" title=\"ignoreMissing.tjs\">\r\nglobal.ignoreSEMissing = false;\r\nglobal.ignoreImageMissing = false;\r\n\r\nSESoundBuffer.play = function(elm, resetvolume = true) {\r\n\tvar SUPER = global.WaveSoundBuffer;\r\n\tSUPER.stop();\r\n\tstopFade();\r\n\tvar storage = elm.storage;\r\n  var start = elm.start;\r\n  var found = true;\r\n\tif (!Storages.isExistentStorage(storage)) {\r\n\t\tvar test;\r\n\t\tif(test = storage + &quot;.wav&quot;, Storages.isExistentStorage(test)) storage = test;\r\n\t\telse if(test = storage + &quot;.ogg&quot;, Storages.isExistentStorage(test)) storage = test;\r\n\t\telse if(test = storage + &quot;.tcw&quot;, Storages.isExistentStorage(test)) storage = test;\r\n\t\telse found = false;\r\n\t}\r\n\tif(!found) {\r\n\t\tif (global.ignoreSEMissing) { \/\/ \u4f8b\u5916\u3092\u6291\u5236\r\n\t\t\tdm(&quot;\u52b9\u679c\u97f3 &quot; + storage + &quot; \u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093&quot;);\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tthrow new Exception(&quot;\u52b9\u679c\u97f3 &quot; + storage + &quot; \u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093&quot;);\r\n\t\t}\r\n\t}\r\n\tvar loop = elm.loop === void ? false : +elm.loop;\r\n\tlooping = loop;\r\n\tif(loop) currentStorage = storage;\r\n\telse currentStorage = &quot;&quot;;\r\n\ttry {\r\n        SUPER.open(storage);\r\n        if(resetvolume) SUPER.volume = currentVolume * 1000;\r\n        \/\/ \u518d\u751f\u4f4d\u7f6e\u6307\u5b9a\r\n        if (start !== void &amp;&amp;\r\n            SUPER.labels !== void &amp;&amp;\r\n            (start = SUPER.labels&#x5B;start]) !== void &amp;&amp;\r\n            (start = start.samplePosition) !== void) {\r\n            SUPER.samplePosition = start;\r\n        }\r\n        SUPER.play();\r\n\t} catch(e) {\r\n\t\t\tdm(&quot;\u52b9\u679c\u97f3\u306e\u518d\u751f\u306b\u5931\u6557\u3057\u307e\u3057\u305f(\u5b9f\u884c\u306f\u7d9a\u884c\u3067\u304d\u307e\u3059) : &quot; + e.message);\r\n\t}\r\n};\r\n\r\nKAGLayer.loadImages = function(storage, key) {\r\n\tvar SUPER = global.Layer;\r\n\tkey = adjustColorKey(key);\r\n\ttry {\r\n\t\treturn SUPER.loadImages(storage, key);\r\n\t} catch(e) {\r\n\t\tif (global.ignoreImageMissing) { \/\/ \u4f8b\u5916\u3092\u6291\u5236\r\n\t\t\tdm(&quot;\u753b\u50cf(&quot; + storage + &quot;)\u306e\u8aad\u307f\u8fbc\u307f\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002&quot; + e.message);\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t}\r\n};\r\n<\/pre>\n<p>\u6614\u66f8\u3044\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u767a\u6398\u3057\u305f\u306e\u3067\u516c\u958b\u3002<br \/>\nKAG\u5c02\u7528\u3067\u3059\u3002KAGEX\u3067\u306f\u6700\u521d\u304b\u3089\u6b62\u307e\u3089\u306a\u3044\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>KAG\u3067\u306f\u5b58\u5728\u3057\u306a\u3044\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u3068\u30a8\u30e9\u30fc\u3067\u30b2\u30fc\u30e0\u304c\u6b62\u307e\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002 \u4e9b\u7d30\u306a\u6307\u5b9a\u30df\u30b9\u3067\u30b2\u30fc\u30e0\u3092\u518d\u8d77\u52d5\u3059\u308b\u306e\u3082\u5927\u5909\u306a\u306e\u3067\u6b62\u307e\u3089\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,12],"tags":[3,4,2],"class_list":["post-29","post","type-post","status-publish","format-standard","hentry","category-kag","category-krkr","tag-kag","tag-tjs","tag-2"],"_links":{"self":[{"href":"https:\/\/biscrat.com\/blog\/wp-json\/wp\/v2\/posts\/29","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/biscrat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/biscrat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/biscrat.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/biscrat.com\/blog\/wp-json\/wp\/v2\/comments?post=29"}],"version-history":[{"count":10,"href":"https:\/\/biscrat.com\/blog\/wp-json\/wp\/v2\/posts\/29\/revisions"}],"predecessor-version":[{"id":66,"href":"https:\/\/biscrat.com\/blog\/wp-json\/wp\/v2\/posts\/29\/revisions\/66"}],"wp:attachment":[{"href":"https:\/\/biscrat.com\/blog\/wp-json\/wp\/v2\/media?parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/biscrat.com\/blog\/wp-json\/wp\/v2\/categories?post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/biscrat.com\/blog\/wp-json\/wp\/v2\/tags?post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}