The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SA Enhanced Client facetx.uop
Author Message
karma
Moderator
****

Posts: 178
Likes Given: 17
Likes Received: 32 in 29 posts
Joined: Jul 2012
Reputation: 3



Post: #3
RE: SA Enhanced Client facetx.uop
New problem: Mythic Package Editor (v 1.03) does not recognize 1 file when unpacking facets (even if it doesn't say "x unknown hashes" in the dictionary, which is strange because it means the dictionary contains this hash and its translation in text). This problem means also that i can't repack the uop (including in it that file, wich i guess is needed Big Grin).
I wanted to know if this file contains info for a map block, like all the others in the uop, or other data, so i did this calculation:
- Learning from Kons (http://code.google.com/p/kprojects/wiki/Sector), each 64x64 tiles block is stored in a single file.
- Map/Facet 0 dimension is 7168 x 4096 (x,y)
- MPE says that inside facet0.uop there are 7169 files.

Now, if 7168*4096 = 29360128 tiles in the map and 64*64 = 4096 tiles per block (or, per file), so 29360128/4096 = 7168 blocks for map0, which is also the number of files that describe blocks in the uop.
If MPE tells me there are 7169 files in facet0.uop and i find that there are 7168 files for the map blocks, it means that there's 1 extra file, which does not contain info for a map block.
To get an idea of what it can contain, i looked up in the Radstar's map converter code (yes i know, file formats are different from KR to SA, but this part may have remained at least similar, i hope) and found that, in addition to map block files, there is another file that contains Height and Width of the map.
Code:
private static void WriteMapResolution( TileMatrix tileMatrix, string path, byte mapIndex )
        {
            FileStream mapBlock = new FileStream( path + "\\" + "facet" + mapIndex.ToString() + "-00_00.raw", FileMode.Create );
            BinaryWriter writer = new BinaryWriter( mapBlock );
            writer.Write( tileMatrix.Height );
            writer.Write( tileMatrix.Width );
            writer.Close();
        }
This is the first file written during the conversion process. TileMatrix comes from UltimaSDK (ultima.dll); in this function, tileMatrix.Height and tileMatrix.Width returns Height and Width of the map as integers (int) i think.

The only way to let MPE know the name of the unknown file is to guess it, so it hashes the name and checks if hashes coincide, if yes, we have found the file name. This because we can't crack the hash. I tried to guess its name (which i think must contain its path, which can be "build/sectors/facet0/") but i didn't succeed.


Does anyone know this file name or managed to convert the map? Valios, some other forum member, sphere devs like Khaos?
(This post was last modified: 11-30-2013 10:09 PM by karma.)
11-30-2013 09:45 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
SA Enhanced Client facetx.uop - karma - 11-29-2013, 06:00 AM
RE: SA Enhanced Client facetx.uop - karma - 11-29-2013, 07:29 AM
RE: SA Enhanced Client facetx.uop - karma - 11-30-2013 09:45 PM
RE: SA Enhanced Client facetx.uop - XuN - 12-01-2013, 12:35 AM
RE: SA Enhanced Client facetx.uop - Feeh - 12-01-2013, 01:29 AM
RE: SA Enhanced Client facetx.uop - karma - 12-01-2013, 03:57 AM
RE: SA Enhanced Client facetx.uop - karma - 12-01-2013, 08:16 AM
RE: SA Enhanced Client facetx.uop - karma - 12-06-2013, 02:42 AM
RE: SA Enhanced Client facetx.uop - karma - 12-11-2013, 11:15 PM
RE: SA Enhanced Client facetx.uop - alrick - 12-24-2015, 10:31 PM
RE: SA Enhanced Client facetx.uop - XuN - 12-12-2013, 12:50 AM
RE: SA Enhanced Client facetx.uop - karma - 12-12-2013, 01:02 AM
RE: SA Enhanced Client facetx.uop - karma - 12-13-2013, 12:37 AM
RE: SA Enhanced Client facetx.uop - karma - 12-24-2015, 10:50 PM
RE: SA Enhanced Client facetx.uop - alrick - 12-25-2015, 03:34 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)