Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Nut Scripts

Featured Replies

  • Author
  • Localization

Ekey, posted Sat Oct 24, 2015 11:38 am (8853)


May be someone knows what the Script Engine is used to work with *.nut / *.nutx files (Magic Header ID is RIQS and in the end magic id is LIAT)?

Edited: Seems it's Squirrel programming language but not sure.
  • Author
  • Localization

aluigi, posted Sat Oct 24, 2015 12:14 pm (8857)


Yes, they are compiled Squirrel scripts.
  • Author
  • Localization

Ekey, posted Sat Oct 24, 2015 12:22 pm (8858)


Ok. Then there is another question: Is there a for compiled scripts Disassembler / Decompiler? :)
  • Author
  • Localization

aluigi, posted Sat Oct 24, 2015 12:46 pm (8861)


Honestly I didn't even know Squirrel but it looks like it's known in the gaming community and there are some decompilers available.
Just a quick google search reveals something interesting, like this project:
https://github.com/rockfireredmoon/icee ... /UTILITIES
I didn't test it.
  • Author
  • Localization

Ekey, posted Sat Oct 24, 2015 2:49 pm (8879)


NutCrack don't works. I guess because not supports Unicode strings. Thanks anyway.
  • Author
  • Localization

einstein95, posted Sun Oct 25, 2015 12:58 pm (8908)


I've used NutCracker in the past and it's worked well.

NutCracker.zip

  • Author
  • Localization

Ekey, posted Sun Oct 25, 2015 1:20 pm (8911)


Thanks for source's. I've tried decompile provided by me scripts but got:

Code:
Error: NUT file compiled for different size of char that expected.


Problem here:

Code:
   if (reader.ReadInt32() != sizeof(char))
      throw Error("NUT file compiled for different size of char that expected.");


In script i changed DWORD value 2 at offset 0x6 > to 1 =

Code:
Error: Expected string object not found in source binary file.


That error because strings length written with ANSI size but the string itself is written in UNICODE. I changed part code in BinaryReader.h - void ReadSQString( std::string& str ) for read UNICODE strings but while decompile i got some parts disassembled code like this:

Code:
  // [003]  bad allocation    3      0    0    0
::require($[stack offset 3]);
  // [007]  bad allocation    3      0    0    0
  // [011]  bad allocation    4      0    0    0
this.GMI_SETUP_DEPEND($[stack offset 3], $[stack offset 4]);
  // [015]  bad allocation    3      0    0    0
  // [017]  bad allocation    4      0    0    0
this.glog($[stack offset 3], $[stack offset 4]);
  // [022]  bad allocation    3      0    0    0
::require($[stack offset 3]);
  // [027]  bad allocation    3      0    0    0
::requiredir($[stack offset 3]);


I guess scripts from game compiled with newest or / older 2.2.4 version of Squirrel compiler, also seems developers have made some changes :(
  • Author
  • Localization

aluigi, posted Sun Oct 25, 2015 1:22 pm (8912)


@einstein95
Any homepage/github/author? Just curious because I see no references on google except in some talks
  • Author
  • Localization

Ekey, posted Sun Oct 25, 2015 1:23 pm (8913)


aluigi wrote:
@einstein95
Any homepage/github/author? Just curious because I see no references on google except in some talks

I see some talks only on Steam forums.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.