Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Nostale
You last visited: Today at 11:27

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Unpacking .NOS file Issue

Discussion on Unpacking .NOS file Issue within the Nostale forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2015
Posts: 12
Received Thanks: 3
Unhappy Unpacking .NOS file Issue

Hi I have been working on repacking .nos file in order to import a lot of files.
I tried to rewrite onex explorer in C#
However, the unpacking doesn't work, when it tries to read the file count It always return a wrong number, regardless of big endian or little endian...
Same Issue exists when I try to use HXD to view the filecount.
Here's the C# code I translated from Onex's c++ code
Code:
BinaryReader reader = new BinaryReader(fs);      
            byte[] header = reader.ReadBytes(10);
            MessageBox.Show(Encoding.Default.GetString(header));
            /*
             * int LittleEndianConverter::fromInt(QByteArray array) {
               return qFromLittleEndian<qint32>(reinterpret_cast<const uchar *>(array.data()));
               }
             */
            int fileAmount = reader.ReadInt32();
            MessageBox.Show(fileAmount.ToString());
            //OnexTreeItem* item = createItemFromHeader(header, neatFileName(file.fileName()), header);
            reader.ReadByte();
Any hints on fixing this issue? thanks!!
sd5986 is offline  
Old 10/05/2020, 18:47   #2
 
WalrossGreat's Avatar
 
elite*gold: 0
Join Date: Mar 2015
Posts: 871
Received Thanks: 1,229


The header is 0x10 length (16 in dec), and not 10.
WalrossGreat is offline  
Thanks
1 User
Old 10/05/2020, 19:01   #3
 
elite*gold: 0
Join Date: Mar 2015
Posts: 12
Received Thanks: 3
Quote:
Originally Posted by WalrossGreat View Post


The header is 0x10 length (16 in dec), and not 10.
thanks this solved the issue

Quote:
Originally Posted by WalrossGreat View Post


The header is 0x10 length (16 in dec), and not 10.
After rewriting packing, unpack and cryptography in C# I finally achieved repacking files without importing files one by one. Wayyyy better than the onex explorer. Thanks so much for your help.
sd5986 is offline  
Reply


Similar Threads Similar Threads
Project Issue / Sro_client Issue / Help if you can!!
09/08/2019 - SRO Private Server - 7 Replies
There's thousands of edits i want to make on the sro_client.exe but i don't want to regret later because i choosed the wrong sro_client.exe to build in, so help me guys with a good sro_client.exe to build my project on I see many servers with virusless sro_client.exe that i prefer to use, but i with no knowledge of what did they edit on it, i can't use it So i need a Sro_client.exe with 3 conditions 1. No Edits 2. No Virus 3. Fit with vsro 1.88 The answers will be really...
Strange issue with mbot crack , looking if any people had similar issue
04/29/2017 - Silkroad Online - 1 Replies
After many years without playing any silkroad private servers i ended come back, but after download mbot to run it, i tried run the cracked vesion download directly from joysro forum , but when i run that i get blue screen. Was looking if someone had simillar issue since nowadays i'm using W10 , in the build 15063.138 , so i was wondering if it could be a issue with the softwere or related to hardwere since i'm using a laptop nowadays.
Nos Suite Nos-File Backup Tool [Release]
09/15/2014 - Nostale - 4 Replies
http://i.imgur.com/XMhYOUj.png http://i.imgur.com/JZkolPJ.png Deutsch: Da bei mehrmaligem (Re-)Packen und Überschreiben derselben die .NOS Dateien zerschreddert werden, hab ich mir gedacht, ein bescheidenes .NOS File Backup Tool zu erstellen. Es gibt folgende Funktionen: Auswählen, welche .NOS Dateitypen gesichert werden soll (String, IMG Resources, IMG Sprites)
.Nos Unpacking[I search help X:]
11/16/2012 - Nostale - 0 Replies
Hi guys! I looking to unpack .nos files(NsLangData.nos , NsGtdData.nos(no graphic files)) and i know some data for unpack algorythm, i will explain with file nsgtddata.nos :) ------------------------------ First we need know how many files are in NsGtdData.NOS. It's first byte in file. 0x2E = 46 (Simple Conversion) Are 46 files... Second step we need go to byte 0x08, in that byte are 0x0C = 12, that byte is file 1 name lenght, file name 1 starts un byte 0x0C(key "k") and simple for can...
[Help]Unpacking Dat.pak File
06/12/2009 - Dekaron Private Server - 6 Replies
i tryed Dark somethingsData Unpacker and it doesn't work.. anyone has a solution? placed it in a folder outside data folder.. however you can only think about. thanks in Advace.



All times are GMT +1. The time now is 11:28.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.