Skip to content

Commit

Permalink
1.6.0 release, adds further Create support & user comfort, closes #7
Browse files Browse the repository at this point in the history
long awaited and funded 1.6.0 release, made possible by 3 donaters:
Daniel Fernandes,
林瑋誠,
github.com/grawlinson,
Forever immortalized in this git commit. Thank you.
  • Loading branch information
PyroSamurai committed May 2, 2024
1 parent 1b6f2e5 commit b4ab8b3
Show file tree
Hide file tree
Showing 14 changed files with 2,362 additions and 1,688 deletions.
17 changes: 3 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,10 @@ Non-updated forks are annoying. BTW, Followers > Stars > Watchers > Forks

------------------------------------

How to compile and package TNT
----------------------------------
__Compiling and Packaging__:

Install the Java JDK, links: [here](http://jdk.java.net) or [here](https://github.com/ojdkbuild/ojdkbuild)
Access the `src` folder from the command prompt or terminal.

Then run the following command:
```bash
javac *.java
```

Then to package TNT into a `.jar` file, run this command in the same directory:
```bash
jar cfe TNT.jar Main *.class
```
1. Install the Java JDK, links: [here](http://jdk.java.net) or [here](https://github.com/ojdkbuild/ojdkbuild)
2. Double-click `compile-jar.bat` or `compile-jar.sh` to make `TNT.jar`

Now you can copy & paste TNT.jar anywhere you like and use it from there.

Expand Down
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.6.00
13 changes: 13 additions & 0 deletions compile-jar.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@ECHO OFF
SET "ReadMe=TNT\README.md"
ATTRIB -r TNT.jar
DEL TNT.jar
CD ..
jar cf TNT\src\TNT.jar TNT\src\*.java TNT\docs TNT\LICENSE TNT\VERSION %ReadMe%
CD TNT\src
javac *.java
jar ufe TNT.jar Main *.class
CD ..
DEL src\*.class
MOVE src\TNT.jar TNT.jar
ATTRIB +r TNT.jar
12 changes: 12 additions & 0 deletions compile-jar.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
src="TNT/src"
rm -f TNT.jar
cd ..
jar cf $src/TNT.jar $src/*.java TNT/docs TNT/LICENSE TNT/VERSION TNT/README.md
cd $src
javac *.java
jar ufe TNT.jar Main *.class
cd ..
rm src/*.class
mv src/TNT.jar TNT.jar
chmod 705 TNT.jar
8 changes: 4 additions & 4 deletions docs/NORI_format.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# NORI Format Specification

<pre>
Copyright (C) 2014-2020 Libre Trickster Team
Copyright (C) 2014-2024 Libre Trickster Team

Note: All sizes throughout the specification are measured in bytes.

Expand Down Expand Up @@ -45,7 +45,7 @@ NORI file as it is suppose to look:
+--------------+-----+---------------------------------------------------------+
| nParam2 | 4 | Unidentified data (ex: majority of mapbgeffect NORI) |
+--------------+-----+---------------------------------------------------------+
| nParam3 | 4 | negative var of some sort (ex: most of the mapbgeffect) |
| nParam3 | 4 | Unidentified data (ex: majority of mapbgeffect NORI) |
+--------------+-----+---------------------------------------------------------+
| nParam4 | 4 | Unidentified data (ex: majority of mapbgeffect NORI) |
+--------------+-----+---------------------------------------------------------+
Expand Down Expand Up @@ -138,7 +138,7 @@ NORI file as it is suppose to look:
| Name |Bytes| Description |
+--------------+-----+---------------------------------------------------------+
| bmp_count | 4 | When >1, img subset exists, subs lack a bmpOffset value |
| | | When =0, it skips the rest of BitmapData |
| | | When =0, the BitmapData section & this var do not exist |
+--------------+-----+---------------------------------------------------------+
+--------------+-----+---------------------------------------------------------+
| data_length | 4 | data size(=sod) |
Expand Down Expand Up @@ -260,7 +260,7 @@ They are structured visually like this:
+--------------+-----+---------------------------------------------------------+
| mcParam6 | 4 | Unidentified data (could be a length param) |
+--------------+-----+---------------------------------------------------------+
| mcParam7 | A | Unidentified, A=(mcParam1 x mcParam2), stored base64RLE |
| mcParam7 | A | Unidentified, A=(mcParam1 x mcParam2), stored base64 |
+--------------+-----+---------------------------------------------------------+
| mcParam8 | 20 | Unidentified data, currently XML-stored as base64 |
+--------------+-----+---------------------------------------------------------+
Expand Down
6 changes: 6 additions & 0 deletions docs/Unsupported.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
NORI Features Not Supported In Create
-------------------------------------

RLE compression, b/c zlib's DEFLATE is better if you need compression
Palettes for non-8bit NORI, b/c they are not used
Creation of 0 bmpCount NORI files
Loading

1 comment on commit b4ab8b3

@grawlinson
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay! Thank you for persevering for so long, Pyro. :)

Please sign in to comment.