H3ntai 10 Posted November 24, 2012 Share Posted November 24, 2012 I have a Eroge I downloaded and after I launch it with AppLocale it runs for like 3-8mins and it gives me a blue screen in a different window that pops up anybody know whats going on? "//============================================================== // Global Data //============================================================== class TGlobalData{ var data; //-------------------------------------------------------------- // Constructor //-------------------------------------------------------------- function TGlobalData(){ data=new Dictionary(); data.environment=new Dictionary(); data.environment.charvolume=new Dictionary(); data.savecounter=new Dictionary(); data.flags=new Dictionary(); data.flags.global=new Array(); data.flags.select=new Dictionary(); data.flags.title=new Array(); data.flags.album=new Array(); data.flags.scene=new Array(); data.flags.kidoku=new Dictionary(); initializeEnvironmentSystem(); initializeEnvironmentSound(); initializeFlags(); } //-------------------------------------------------------------- // Destructor //-------------------------------------------------------------- function finalize(){ delete data; } //-------------------------------------------------------------- // 初期化 //-------------------------------------------------------------- function initializeEnvironmentSystem(){ data.environment.messageSpeed=ConfigMessageSpeedDefault; // メッセージスピード data.environment.autoSpeed=ConfigAutoSpeedDefault; // ページめくりスピード data.environment.fullscreen=false; // false:ウィンドウ true:フルスクリーン data.environment.movieoff=false; // false:ムービーを再生する ture:しない data.environment.effectoff=false; // false:画面効果する true:しない data.environment.kidokuoff=false; // false:既読のみスキップ true:全てスキップ data.environment.skipoff=false; // false:選択肢後skip継続 true:skip解除 data.environment.autooff=false; // false:選択肢後auto継続 true:auto解除 data.environment.mbRight=ConfigmbRightHide; // 右ボタンの設定 } function initializeEnvironmentSound(){ data.environment.masterVolume=ConfigMasterVolumeDefault; // マスターボリューム data.environment.bgmVolume=ConfigBGMVolumeDefault; // BGMボリューム data.environment.seVolume=ConfigSEVolumeDefault; // SEボリューム data.environment.voiceVolume=ConfigVoiceVolumeDefault; // Voiceボリューム (Dictionary.clear incontextof data.environment.charvolume)();// キャラごとのボリューム data.environment.voicecut=true; // false:文章送り時に音声を継続 true:停止 // キャラ音声初期化 var temp=[]; temp.assign(data.environment); for(var i=0;i if(temp.substring(0,8)=="voiceoff"){ data.environment[temp]=false; } } } function initializeSaveCounter(){ data.savecounter.new=0; data.savecounter.auto=0; data.savecounter.quick=0; } function initializeFlags(){ clearGlobal(); clearSelect(); clearTitle(); clearAlbum(); clearScene(); clearKidoku(); } //-------------------------------------------------------------- // volume //-------------------------------------------------------------- function getVolumeBGM(){ return data.environment.masterVolume*data.environment.bgmVolume\10; } function getVolumeSE(){ return data.environment.masterVolume*data.environment.seVolume\10; } function getVolumeVoice(){ return data.environment.masterVolume*data.environment.voiceVolume\10; } function getVolumeChar(tag){ return data.environment.masterVolume*data.environment.voiceVolume*getVolumeCharRow(tag)\1000; } function getVolumeCharRow(tag){ var str=(new RegExp("^.*_")).replace(tag,""); if(data.environment.charvolume[str]===void){ data.environment.charvolume[str]=ConfigCharVolumeDefault; } return data.environment.charvolume[str]; } function setVolumeCharRow(tag,volume){ var str=(new RegExp("^.*_")).replace(tag,""); return data.environment.charvolume[str]=volume; } //-------------------------------------------------------------- // Save Counter //-------------------------------------------------------------- function setNewSaveCounter(value){data.savecounter.new=value;} function getNewSaveCounter(){return data.savecounter.new;} function setAutoSaveCounter(value){data.savecounter.auto=value;} function getAutoSaveCounter(){return data.savecounter.auto;} function setQuickSaveCounter(value){data.savecounter.quick=value;} function getQuickSaveCounter(){return data.savecounter.quick;} //-------------------------------------------------------------- // グローバルフラグ //-------------------------------------------------------------- function clearGlobal(){ data.flags.global.clear(); } function setGlobal(index,flag){ data.flags.global[index]=flag; } function getGlobal(index){ var result=data.flags.global[index]; return result===void?0:result; } //-------------------------------------------------------------- // 選択肢フラグ // flags.select[スクリプト名][index] //-------------------------------------------------------------- function clearSelect(){ (Dictionary.clear incontextof data.flags.select)(); } function setSelect(filename,index,flag){ if(data.flags.select[filename]===void){ // arrayが未定義なら作成する data.flags.select[filename]=new Array(); } data.flags.select[filename][index]=flag; } function getSelect(filename,index){ if(data.flags.select[filename]===void){ return 0; } var result=data.flags.select[filename][index]; return result===void?0:result; } //-------------------------------------------------------------- // タイトルメニューフラグ //-------------------------------------------------------------- function clearTitle(){ data.flags.title.clear(); } function setTitle(index,flag=true){ if(flag)data.flags.title[index\64]|=1 else data.flags.title[index\64]&=~(1 } function getTitle(index){ var result=data.flags.title[index\64]; return result===void?0:(result>>(index%64))&1; } function isTitle(){ return data.flags.title.count>0; } //-------------------------------------------------------------- // アルバムフラグ //-------------------------------------------------------------- function clearAlbum(){ data.flags.album.clear(); } function setAlbum(index,flag=true){ if(index>=0){ if(flag)data.flags.album[index\64]|=1 else data.flags.album[index\64]&=~(1 } } function getAlbum(index){ if(index>=0){ var result=data.flags.album[index\64]; return result===void?0:(result>>(index%64))&1; }else{ return -1; } } //-------------------------------------------------------------- // 回想フラグ //-------------------------------------------------------------- function clearScene(){ data.flags.scene.clear(); } function setScene(index,flag=true){ if(flag)data.flags.scene[index\64]|=1 else data.flags.scene[index\64]&=~(1 } function getScene(index){ var result=data.flags.scene[index\64]; return result===void?0:(result>>(index%64))&1; } //-------------------------------------------------------------- // 既読フラグ // スクリプトファイルごとに既読フラグを持つ // flags.kidoku[スクリプト名][Array] //-------------------------------------------------------------- function clearKidoku(){ (Dictionary.clear incontextof data.flags.kidoku)(); } function setKidoku(filename,index,flag=true){ if(data.flags.kidoku[filename]===void){ // arrayが未定義なら作成する data.flags.kidoku[filename]=new Array(); } if(flag)data.flags.kidoku[filename][index\64]|=1 else data.flags.kidoku[filename][index\64]&=~(1 } function getKidoku(filename,index){ if(data.flags.kidoku[filename]===void){ return 0; } var result=data.flags.kidoku[filename][index\64]; return result===void?0:(result>>(index%64))&1; } //-------------------------------------------------------------- // セーブ、ロード //-------------------------------------------------------------- function save(){ if(tScript.script.scene){ return; } data.screen.left=tWindow.left; data.screen.top=tWindow.top; (Dictionary.saveStruct incontextof data)(System.dataPath+GlobalSaveData,isDebug()?'':'z'); } function load(){ try{ data=Scripts.evalStorage(System.dataPath+GlobalSaveData); }catch{ } } } //============================================================== // Local Data //============================================================== class TLocalData{ var data; //-------------------------------------------------------------- // Constructor //-------------------------------------------------------------- function TLocalData(){ data=new Dictionary(); data.reserv=new Array(); data.image=new Dictionary(); data.script=new Dictionary(); data.flags=new Dictionary(); data.flags.local=new Array(); initializeReserv(); initializeImage(); initializeScript(); initializeFlags(); } //-------------------------------------------------------------- // Destructor //-------------------------------------------------------------- function finalize(){ delete data; } //-------------------------------------------------------------- // 初期化 //-------------------------------------------------------------- function initializeReserv(){ data.reserv.clear(); } function initializeImage(){ (Dictionary.clear incontextof data.image)(); } function initializeScript(){ (Dictionary.clear incontextof data.script)(); data.script.name=""; data.script.counter=0; data.script.stack=new Array(); data.script.savetitle=""; data.script.messageString=""; data.script.messageString0=""; data.script.messageString1=""; data.script.messageVisible=false; data.script.messageWait=false; data.script.messageMode=0; data.script.messageWindowB=void; data.script.messageWindowL=void; data.script.messageWindowC=void; data.script.messageWindowR=void; data.script.systemBase=new Array(); data.script.bgm=new Array(); data.script.voiceName=""; data.script.autosave=false; data.script.logDisabled=false; data.script.map=void; data.script.selectCursor=new Array(); data.script.shake=new Dictionary(); data.script.shake.interval=100; data.script.shake.screen=false; data.script.shake.message=false; data.script.shake.virtical=false; data.script.shake.horizontal=false; data.script.dictionary=new Dictionary(); data.script.gameSystem=new Dictionary(); data.script.button=new Array(); data.script.effect=new Dictionary(); data.script.wipeCancelDisabled=false; } function initializeFlags(){ data.flags.local.clear(); } //-------------------------------------------------------------- // イメージ //-------------------------------------------------------------- function setImageDefault(id,center,order){ if(data.image[id]!==void){ delete data.image[id]; } data.image[id]=new Dictionary(); data.image[id].centerDefault=center; data.image[id].orderDefault=order; } function clearImage(id){ data.image[id].filename=void; data.image[id].x=0; data.image[id].y=0; data.image[id].size=1; data.image[id].center=data.image[id].centerDefault; data.image[id].color=0; data.image[id].alpha=255; data.image[id].order=data.image[id].orderDefault; data.image[id].anime=void; data.image[id].visible=false; } function setImageFilename(id,filename){data.image[id].filename=filename;} function setImageX(id,x){data.image[id].x=x;} function setImageY(id,y){data.image[id].y=y;} function setImageSize(id,size){data.image[id].size=size;} function setImageCenter(id,center){data.image[id].center=center;} function setImageColor(id,color){data.image[id].color=color;} function setImageAlpha(id,alpha){data.image[id].alpha=alpha;} function setImageOrder(id,order){data.image[id].order=order;} function setImageAnime(id,anime){data.image[id].anime=anime;} function setImageVisible(id,visible){data.image[id].visible=visible;} function getImageFilename(id){return data.image[id].filename;} function getImageX(id){return data.image[id].x;} function getImageY(id){return data.image[id].y;} function getImageSize(id){return data.image[id].size;} function getImageCenter(id){return data.image[id].center;} function getImageColor(id){return data.image[id].color;} function getImageAlpha(id){return data.image[id].alpha;} function getImageOrder(id){return data.image[id].order;} function getImageAnime(id){return data.image[id].anime;} function getImageVisible(id){return data.image[id].visible;} //-------------------------------------------------------------- // スクリプトデータ //-------------------------------------------------------------- function setScriptName(name){data.script.name=name;} function getScriptName(){return data.script.name;} function setScriptCounter(counter){data.script.counter=counter;} function getScriptCounter(){return data.script.counter;} function setScriptSaveTitle(str){data.script.savetitle=str;} function getScriptSaveTitle(){return data.script.savetitle;} function setScriptMessage(str){data.script.messageString=str;} function getScriptMessage(){return data.script.messageString;} function setScriptMessage0(str){data.script.messageString0=str;} function getScriptMessage0(){return data.script.messageString0;} function setScriptMessage1(str){data.script.messageString1=str;} function getScriptMessage1(){return data.script.messageString1;} function setScriptMessageVisible(visible){data.script.messageVisible=visible;} function getScriptMessageVisible(){return data.script.messageVisible;} function setScriptMessageWait(flag){data.script.messageWait=flag;} function getScriptMessageWait(){return data.script.messageWait;} function setScriptMessageMode(mode){data.script.messageMode=mode;} function getScriptMessageMode(){return data.script.messageMode;} function setMessageWindowFile(base,left,center,right){ data.script.messageWindowB=base; data.script.messageWindowL=left; data.script.messageWindowC=center; data.script.messageWindowR=right; } function getMessageWindowFileB(){return data.script.messageWindowB;} function getMessageWindowFileL(){return data.script.messageWindowL;} function getMessageWindowFileC(){return data.script.messageWindowC;} function getMessageWindowFileR(){return data.script.messageWindowR;} function clearSystemBase(){ data.script.systemBase=new Array(); } function setSystemBase(index,filename){ data.script.systemBase[index]=filename; } function getSystemBase(index){ return data.script.systemBase[index]; } function makeScriptBgmDefault(track){ if(data.script.bgm[track]===void){ data.script.bgm[track]=new Dictionary(); data.script.bgm[track].name=void; data.script.bgm[track].count=0; data.script.bgm[track].volume=100; data.script.bgm[track].pause=false; } } function clearScriptBgm(track){ if(track=="all"){ data.script.bgm=new Array(); }else{ data.script.bgm[track]=void; } } function setScriptBgmName(track,str){makeScriptBgmDefault(track);data.script.bgm[track].name=str;} function getScriptBgmName(track){makeScriptBgmDefault(track);return data.script.bgm[track];} function setScriptBgmCount(track,value){makeScriptBgmDefault(track);data.script.bgm[track].count=value;} function getScriptBgmCount(track){makeScriptBgmDefault(track);return data.script.bgm[track].count;} function setScriptBgmVolume(track,value){ if(track=="all"){ for(var i=0;i setScriptBgmVolume(i,value); } }else{ makeScriptBgmDefault(track); data.script.bgm[track].volume=value; } } function getScriptBgmVolume(track){makeScriptBgmDefault(track);return data.script.bgm[track].volume;} function setScriptBgmPause(track,flag){ if(track=="all"){ for(var i=0;i setScriptBgmPause(i,flag); } }else{ makeScriptBgmDefault(track); data.script.bgm[track].pause=flag; } } function getScriptBgmPause(track){makeScriptBgmDefault(track);return data.script.bgm[track].pause;} function restoreScriptBgm(){ for(var i=0;i if(data.script.bgm!==void&&data.script.bgm.name!==void){ if(data.script.bgm.pause==false){ tSound.play(TrackBGM.sprintf(i),data.script.bgm.name,data.script.bgm.volume,data.script.bgm.count,0,0); } } } } function setScriptVoiceName(str){data.script.voiceName=str;} function getScriptVoiceName(){return data.script.voiceName;} function setScriptAutosave(flag){data.script.autosave=flag;} function getScriptAutosave(){return data.script.autosave;} function setScriptLogDisabled(flag){data.script.logDisabled=flag;} function getScriptLogDisabled(){return data.script.logDisabled;} function setScriptSelectCursor(id,param){data.script.selectCursor[id]=param;} function getScriptSelectCursor(id){return data.script.selectCursor[id];} function setScriptShakeInterval(time){data.script.shake.interval=time;} function getScriptShakeInterval(){return data.script.shake.interval;} function setScriptShakeScreen(flag){data.script.shake.screen=flag;} function getScriptShakeScreen(){return data.script.shake.screen;} function setScriptShakeMessage(flag){data.script.shake.message=flag;} function getScriptShakeMessage(){return data.script.shake.message;} function setScriptShakeVirtical(flag){data.script.shake.virtical=flag;} function getScriptShakeVirtical(){return data.script.shake.virtical;} function setScriptShakeHorizontal(flag){data.script.shake.horizontal=flag;} function getScriptShakeHorizontal(){return data.script.shake.horizontal;} function setScriptDictionary(key,object){data.script.dictionary[key]=object;} function getScriptDictionary(key){return data.script.dictionary[key];} function setScriptGameSystemVisible(flag){data.script.gameSystem.visible=flag;} function getScriptGameSystemVisible(){return data.script.gameSystem.visible;} function setScriptGameSystemHide(flag){data.script.gameSystem.hide=flag;} function getScriptGameSystemHide(){return data.script.gameSystem.hide;} function clearScriptEffect(){data.script.effect=new Dictionary();} function setScriptEffectFilename(param){data.script.effect.filename=param;} function setScriptEffectMax(param){data.script.effect.max=param;} function setScriptEffectPop(param){data.script.effect.pop=param;} function setScriptEffectInterval(param){data.script.effect.interval=param;} function setScriptEffectPatternCount(param){data.script.effect.patterncount=param;} function setScriptEffectPatternInterval(param){data.script.effect.patterninterval=param;} function setScriptEffectMoveType(param){data.script.effect.movetype=param;} function setScriptEffectStartFlag(param){data.script.effect.startflag=param;} function setScriptEffectVisible(param){data.script.effect.visible=param;} function getScriptEffectFilename(){return data.script.effect.filename;} function getScriptEffectMax(){return data.script.effect.max;} function getScriptEffectPop(){return data.script.effect.pop;} function getScriptEffectInterval(){return data.script.effect.interval;} function getScriptEffectPatternCount(){return data.script.effect.patterncount;} function getScriptEffectPatternInterval(){return data.script.effect.patterninterval;} function getScriptEffectMoveType(){return data.script.effect.movetype;} function getScriptEffectStartFlag(){return data.script.effect.startflag;} function getScriptEffectVisible(){return data.script.effect.visible;} function setScriptWipeCancelDisabled(flag){ data.script.wipeCancelDisabled=flag; } function getScriptWipeCancelDisabled(){ return data.script.wipeCancelDisabled; } function setScriptAutosaveDisabled(flag){ data.script.autosaveDisabled=flag; } function getScriptAutosaveDisabled(){ return data.script.autosaveDisabled; } //-------------------------------------------------------------- // スタック //-------------------------------------------------------------- function pushStack(param){ data.script.stack.push(param); } function popStack(){ return data.script.stack.pop(); } function clearStack(){ return data.script.stack.clear(); } //-------------------------------------------------------------- // ローカルフラグ //-------------------------------------------------------------- function setLocal(index,flag){ data.flags.local[index]=flag; } function getGlobal(index){ var result=data.flags.local[index]; return result===void?0:result; } //-------------------------------------------------------------- // セーブ、ロード //-------------------------------------------------------------- function save(index){ if(tScript.script.scene){ return; } var date=new Date(); data.date="%04d/%02d/%02d %02d:%02d:%02d".sprintf(date.getYear(),(date.getMonth()+1),date.getDate(),date.getHours(),date.getMinutes(),date.getSeconds()); var i=LocalSaveData.indexOf("."); var filename=LocalSaveData.substring(0,i)+index+LocalSaveData.substring(i); var tempMessageWait=getScriptMessageWait(); // if(tMessage.isBusy()){ // setScriptMessageWait(true); // } (Dictionary.saveStruct incontextof data)(System.dataPath+filename,isDebug()?'':'z'); // setScriptMessageWait(tempMessageWait); var layer=new Layer(tWindow,tWindow.primaryLayer); layer.type=ltAlpha; layer.setSize(tWindow.layer.width,tWindow.layer.height); if(tCanvas.layers['bg']!==void){ tCanvas.layers['bg'].setVisible2(true); layer.piledCopy(0,0,tWindow.layer,0,0,tWindow.layer.width,tWindow.layer.height); tCanvas.layers['bg'].setVisible2(false); } layer.stretchCopy(0,0,tSaveLoad.thumbnailWidth,tSaveLoad.thumbnailHeight,layer,0,0,layer.width,layer.height,stLinear); layer.setImageSize(tSaveLoad.thumbnailWidth,tSaveLoad.thumbnailHeight); layer.saveLayerImage(System.dataPath+ThumbnailSaveData+index+ThumbnailSaveDataExt,"bmp24"); //★最後にセーブした(最新の)データがあるページを記憶させる if(indextSettings.quickSaveOffset+tSettings.quickSaveCount-1){ if(indextSettings.autoSaveOffset+tSettings.autoSaveCount-1){ // if(index tGlobalData.data.environment.saveloadpage=(index)\8; } } //★ } function quickSave(){ if(tScript.script.scene){ return; } if(tSettings.quickSaveOffset!==void&&tSettings.quickSaveCount!==void){ var count=0; if(tSettings.quickSaveCount!=1){ count=tGlobalData.getQuickSaveCounter(); save(tSettings.quickSaveOffset+count); if(++count>=tSettings.quickSaveCount){ count=0; } }else{ save(tSettings.quickSaveOffset); } tGlobalData.setQuickSaveCounter(count); tGlobalData.save(); } } function autoSave(){ if(tScript.script.scene||getScriptAutosaveDisabled()){ return; } if(tSettings.autoSaveOffset!==void&&tSettings.autoSaveCount!==void){ var count=tGlobalData.getAutoSaveCounter(); save(tSettings.autoSaveOffset+count); if(++count>=tSettings.autoSaveCount){ count=0; } tGlobalData.setAutoSaveCounter(count); tGlobalData.save(); } } function load(index){ data=loadData(index); } function loadData(index){ var i=LocalSaveData.indexOf("."); var filename=LocalSaveData.substring(0,i)+index+LocalSaveData.substring(i); if(Storages.isExistentStorage(System.dataPath+filename)){ return Scripts.evalStorage(System.dataPath+filename); } return void; } //★クイックロード拡張 function quickLoad(){ if(tScript.script.scene){ return; } var loadNum=tGlobalData.getQuickSaveCounter()-1; if(loadNum loadNum+=tSettings.quickSaveOffset; var i=LocalSaveData.indexOf("."); var filename=LocalSaveData.substring(0,i)+loadNum+LocalSaveData.substring(i); if(!Storages.isExistentStorage(System.dataPath+filename)) return; if(askYesNo("クイックロードしますか")){ tCanvas.initialize(); data=loadData(loadNum); tScript.restartScript(); } } } " Quote Link to post Share on other sites
ultimecea 22 Posted November 24, 2012 Share Posted November 24, 2012 let me just do a simple guess.... you need to run it in Jap locale.. instead of app locale >>> Quote Link to post Share on other sites
pramit 22 Posted November 24, 2012 Share Posted November 24, 2012 does it happen with a particular eroge (if so, please name it), or all eroges Quote Link to post Share on other sites
OneManArmy 82 Posted November 24, 2012 Share Posted November 24, 2012 Yeah and please use a spoiler. I'm currently using my mobile phone and it took me hours to get down here. Quote Link to post Share on other sites
Kirai Aizuren 10 Posted November 25, 2012 Share Posted November 25, 2012 who read them all? raise your dick? Quote Link to post Share on other sites
Helvetica Standard 17 Posted November 25, 2012 Share Posted November 25, 2012 That's a whole bible worth of code :/ ermm.. Sorry but jap locale is not something i would recommend, at all (to anyone) next time, change your locale language MANUALLY vía control panel and language settings- cheers :3 Quote Link to post Share on other sites
ultimecea 22 Posted November 25, 2012 Share Posted November 25, 2012 That's a whole bible worth of code :/ ermm.. Sorry but jap locale is not something i would recommend, at all (to anyone) next time, change your locale language MANUALLY vía control panel and language settings- cheers :3 lolz...thats what it mean by running in jap locale aka Jap region uni-code >.> Quote Link to post Share on other sites
renvateru 10 Posted December 20, 2012 Share Posted December 20, 2012 if the applocale could not working use NTLEA, but better change the jap local on your computer. app local and ntlea only temporary solution for problem Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.