From: Laszlo T. <ave...@us...> - 2012-08-26 10:49:08
|
ielister: Total/Midnight Commander lister plugin for displaying IE filetypes The branch master has been updated via d09b5642bb48795e03c697a74c313f4808210a3f (commit) Summary of changes: ielister.cpp | 80 ++++++++++++++++++++++++++++++++-------------------------- 1 files changed, 44 insertions(+), 36 deletions(-) from e8be98c686d8dfb18b4475aaff6fb8d67db04044 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- http://gemrb.git.sourceforge.net/git/gitweb.cgi?p=gemrb/ielister;a=commitdiff;h=d09b5642bb48795e03c697a74c313f4808210a3f commit d09b5642bb48795e03c697a74c313f4808210a3f Author: Avenger <ave...@so...> Date: Sun Aug 26 12:48:43 2012 +0200 a few fields clarified diff --git a/ielister.cpp b/ielister.cpp index 6fc40c3..4e98204 100644 --- a/ielister.cpp +++ b/ielister.cpp @@ -569,17 +569,14 @@ int OutStream::AddByte(const char *label) void CreateOutputVariable(OutStream &os) { - int k; - os.AddString(VARSIZE,"Variable"); os.AddIndent(); - os.AddDword("UNKNOWN"); - os.AddDword("UNKNOWN"); - os.AddDword("Value"); - for(k=0;k<10;k++) - { - os.AddDword("UNKNOWN"); - } + os.AddWord("Type"); + os.AddWord("ResRef Type"); + os.AddDword("Dword Value"); + os.AddDword("Int Value"); + os.AddPointLong("Double Value"); + os.AddString(VARSIZE,"String Value"); os.EndIndent(); } @@ -601,10 +598,8 @@ void CreateOutputITM(OutStream &os) os.AddWord("Itemtype"); os.AddDword("Usability"); os.AddWord("Animation"); - os.AddByte("MinLevel"); - os.AddByte("UNKNOWN"); - os.AddByte("MinStr"); - os.AddByte("UNKNOWN"); + os.AddWord("MinLevel"); + os.AddWord("MinStr"); os.AddByte("MinStrBonus"); os.AddByte("Kit 1"); os.AddByte("MinInt"); @@ -615,8 +610,7 @@ void CreateOutputITM(OutStream &os) os.AddByte("Kit 4"); os.AddByte("MinCon"); os.AddByte("Proficiency"); - os.AddByte("MinCha"); - os.AddByte("UNKNOWN"); + os.AddWord("MinCha"); os.AddDword("Price"); os.AddWord("Stack"); os.AddString(RESREFSIZE,"Inventory"); @@ -1442,7 +1436,7 @@ void CreateOutputCRE(OutStream &os) os.AddByte("Bastardsword"); for(i=0;i<38;i++) { - os.AddByte("Unknown"); + os.AddByte("UNKNOWN"); } os.AddByte("Alchemy"); @@ -1464,7 +1458,7 @@ void CreateOutputCRE(OutStream &os) for(i=0;i<50;i++) { - os.AddByte("Unknown"); + os.AddByte("UNKNOWN"); } os.AddByte("CR"); for(i=0;i<8;i++) @@ -1980,6 +1974,7 @@ void CreateOutputARE(OutStream &os) int dooroffset, doorcount; int animoffset, animcount; int tiledoffset, tiledcount; + int tileflagoffset, tileflagcount; int songoffset, restoffset; int noteoffset, notecount; int trapoffset, trapcount; @@ -2005,7 +2000,7 @@ void CreateOutputARE(OutStream &os) os.AddWord("Snow"); os.AddWord("Fog"); os.AddWord("Lightning"); - os.AddWord("Unknown weather"); + os.AddWord("Wind Speed"); if(iwd2) { for(i=0;i<4;i++) @@ -2038,25 +2033,26 @@ void CreateOutputARE(OutStream &os) ambioffset=os.AddDword("Ambient offset");//8 if(!ambicount) ambioffset=0; varoffset=os.AddDword("Variable offset"); - varcount=os.AddDword("Variable count");//9 + varcount=os.AddWord("Variable count");//9 if(!varcount) varoffset=0; - os.AddDword("UNKNOWN"); + tileflagcount=os.AddWord("Tile count");//10 + tileflagoffset=os.AddDword("Tile offset"); os.AddString(RESREFSIZE,"Area script"); exploredcount=os.AddDword("Explored size"); - exploredoffset=os.AddDword("Explored offset");//10 + exploredoffset=os.AddDword("Explored offset");//11 if(!exploredcount) exploredoffset=0; doorcount=os.AddDword("Door count"); - dooroffset=os.AddDword("Door offset");//11 + dooroffset=os.AddDword("Door offset");//12 if(!doorcount) dooroffset=0; animcount=os.AddDword("Anim. count"); - animoffset=os.AddDword("Anim. offset");//12 + animoffset=os.AddDword("Anim. offset");//13 if(!animcount) animoffset=0; tiledcount=os.AddDword("Tiled count"); //unused feature - tiledoffset=os.AddDword("Tiled offset");//unused feature 13 + tiledoffset=os.AddDword("Tiled offset");//unused feature 14 if(!tiledcount) tiledoffset=0; - songoffset=os.AddDword("Song offset");//14 - restoffset=os.AddDword("Rest offset");//15 - noteoffset=os.AddDword("Mapnote offset"); + songoffset=os.AddDword("Song offset");//15 + restoffset=os.AddDword("Rest offset");//16 + noteoffset=os.AddDword("Mapnote offset");//17 if(noteoffset==-1) //pst screwup { pst=1; @@ -2385,7 +2381,8 @@ retry: os.AddWord("Open block count"); os.AddWord("Closed block count"); os.AddDword("Closed block index"); - os.AddDword("UNKNOWN"); //strref? + os.AddWord("HP"); + os.AddWord("AC"); os.AddString(RESREFSIZE,"Open sound"); os.AddString(RESREFSIZE,"Close sound"); os.AddDword("Cursor type"); @@ -2462,7 +2459,7 @@ retry: os.AddIndent(); os.AddString(VARSIZE,"Label"); os.AddString(RESREFSIZE, "Name"); - os.AddDword("UNKNOWN"); + os.AddDword("Flags"); os.AddDword("Primary index"); os.AddDword("Primary count"); os.AddDword("Secondary index"); @@ -2477,6 +2474,13 @@ retry: continue; } + if(tileflagcount && (tileflagoffset==os.fileoffset) ) + { + os.AddString(0,"Unknown structure"); + tileflagoffset=0; + continue; + } + if(songoffset==os.fileoffset) { os.AddString(0, "Song header"); @@ -2625,7 +2629,7 @@ retry: if( actoroffset || triggeroffset|| spawnoffset|| entranceoffset || containeroffset|| itemoffset|| vertexoffset|| ambioffset|| varoffset|| - exploredoffset|| dooroffset|| animoffset|| tiledoffset|| + exploredoffset|| dooroffset|| animoffset|| tiledoffset|| tileflagoffset || songoffset|| restoffset || noteoffset || trapoffset) { os.AddString(0, "**Error**"); @@ -2671,6 +2675,9 @@ retry: if (tiledoffset) { os.AddString(0, "tile missing"); } + if (tileflagoffset) { + os.AddString(0, "tileflag missing"); + } if (songoffset) { os.AddString(0, "song missing"); } @@ -2853,7 +2860,8 @@ void CreateOutputWED(OutStream &os) wgcount=((j+9)/10)*((k*2+14)/15); } os.AddString(RESREFSIZE,"Tileset"); - os.AddDword("UNKNOWN"); + os.AddWord("Unique tiles"); + os.AddWord("Movement type"); ovtileoffsets[i]=os.AddDword("Tilemap offset"); ovlookupoffsets[i]=os.AddDword("Lookup offset"); if(!ovtilecounts[i]) @@ -3284,7 +3292,7 @@ void CreateOutputVEF(OutStream &os) os.AddString(0,"Primary Block"); for(j=0;i<count1;j++) { os.AddDword("Start delay"); - os.AddDword("Unknown"); + os.AddDword("UNKNOWN"); os.AddDword("Loop count"); os.AddDword("Type"); os.AddString(RESREFSIZE, "Resource"); @@ -3297,7 +3305,7 @@ void CreateOutputVEF(OutStream &os) os.AddString(0,"Secondary Block"); for(j=0;i<count2;j++) { os.AddDword("Start delay"); - os.AddDword("Unknown"); + os.AddDword("UNKNOWN"); os.AddDword("Loop count"); os.AddDword("Type"); os.AddString(RESREFSIZE, "Resource"); @@ -3780,8 +3788,8 @@ void CreateOutputGAM(OutStream &os) pcoffset=os.AddDword("PC offset"); pccount=os.AddDword("PC count"); if(!pccount) pcoffset=0; - staticoffset=os.AddDword("Unknown offset"); - staticcount=os.AddDword("Unknown count"); + staticoffset=os.AddDword("Inventory offset"); + staticcount=os.AddDword("Inventory count"); if(!staticcount) staticoffset=0; staticcount*=20; //sizeof this unknown area npcoffset=os.AddDword("NPC offset"); @@ -3791,7 +3799,7 @@ void CreateOutputGAM(OutStream &os) varcount=os.AddDword("Variable count"); if(!varcount) varoffset=0; os.AddString(RESREFSIZE,"Area"); - os.AddDword("UNKNOWN"); + os.AddDword("Current Link"); journalcount=os.AddDword("Journal count"); journaloffset=os.AddDword("Journal offset"); if(!journalcount) journaloffset=0; ----------------------------------------------------------------------- This is an automated email from the git hooks/post-receive script. -- ielister: Total/Midnight Commander lister plugin for displaying IE filetypes |