You are not logged in.

Wiimm

Developer

(309)

  • "Wiimm" started this thread
  • Deutschland

Posts: 1,449

Location: Dortmund

Occupation: Software-Entwicklung

  • Send private message

1

Thursday, March 31st 2011, 6:34pm

Wiimms SZS Tools

I have released Wiimms SZS Tools v0.35a.
(A command line tool set for Linux, Mac and Windows)

What's new:
  • Now I have turned to KCL:
    .
    • The new option --kcl-flag=list allows to modify KCL flags by translation rules.
      .
    • The new option --kcl-parse=file allows to call a script, that may analyze the KCL triangle data and modify the KCL flag. This allows a more specific selection and calculation as --kcl-flag.
      .
    • I have implemented a KCL object exporter. It works fine for all tested Nintendo and Custom tracks, but is has some known issues.

    .

  • The next step is an object to KCL converter. Therefor I need more info how to create the Spatial Index.
    If you have info or an example code (in any programming language), please share it with me.

    .


Change Log:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
szs v0.35a r3681 - 2012-05-20

 - New options for "wstrt TRACKS+ARENAS": --brief --no-header

 - KMP sections CKPH+ENPH+ITPH: Accept unsorted groups.

 - New patching options:
    - For wszst and wkclt: --kcl-flag=list: Exchange KCL flags in KCL files.
    - For wszst and wkclt: --kcl-parse=script: Execute the script for each KCL
      file and to calculate/modify the KCL flags.
    - For wszst and wkmpt: --rm-gobj=list: Remove global objects in KMP files.

 - New command: wkclt FLAGS: Print usage statistics about KCL flags.

 - New parser functions: ptInCube(cube1,cube2,pt1,...) and a strict variant
   ptInCubeS(cube1,cube2,pt1,...): Count the points in the cube.

 - KCL exporter creates now 3dsMax compatible OBJ files with some issues.


Links:

PN ohne persönlichen Charakter werden ignoriert. Support-Anfragen gehören ins Forum.

This post has been edited 23 times, last edit by "Wiimm" (May 20th 2012, 8:32pm)


Wiimm

Developer

(309)

  • "Wiimm" started this thread
  • Deutschland

Posts: 1,449

Location: Dortmund

Occupation: Software-Entwicklung

  • Send private message

2

Friday, April 1st 2011, 9:02pm

Ich habe das erste Release veröffentlicht. Veränderungen im Vergleich zur vorherigen beta:
  • Bug fix for "wstsz CREATE": Wrong calculation of parent directory link.
  • New option: wstsz CREATE --align: Overwrite the default aligment (32=0x20).
  • wstsz LIST: If --long is set three times debugging mode is enabled.
  • wstsz LIST: If listing a directory, then a virtual SZS file is created (like CREATE do it) and listed.
  • New command: wszst DIFF: Compare two sources (each SZS, U8 or directory) on file level and report mismatches for each sub file.
  • TESTS: I have replaced all files of Scene/UI and Race/Course and can playing it without any problems.

Download und mehr Details: Wiimms SZS Tools

PN ohne persönlichen Charakter werden ignoriert. Support-Anfragen gehören ins Forum.

Wiimm

Developer

(309)

  • "Wiimm" started this thread
  • Deutschland

Posts: 1,449

Location: Dortmund

Occupation: Software-Entwicklung

  • Send private message

3

Monday, April 4th 2011, 8:13pm

Ein neues Tool ist da: wbmgt (Wiimms BMG Tool)
* Features
* Download

PN ohne persönlichen Charakter werden ignoriert. Support-Anfragen gehören ins Forum.


Wiimm

Developer

(309)

  • "Wiimm" started this thread
  • Deutschland

Posts: 1,449

Location: Dortmund

Occupation: Software-Entwicklung

  • Send private message

4

Wednesday, April 6th 2011, 5:22pm

I habe gerade eben Wiimms SZS Tools v0.03a freigegeben.

Alle meine Wünsche habe ich implementiert; beide Tools (wszst+wbmgt) sind aus meiner Sicht komplett.

Das Hauptziel war die automatische Ersetzung der Streckennamen von Mario Kart in alle Dateien mit Mitteilungen für alles Sprache. Für die PAL Version müssen hierzu 50 SZS Dateien entpackt, die Mitteilungsdateien angepasst und die SZS Dateien wieder erzeugt werden. Auf meinem Linux.Entwicklungsrechner benötige ich dafür gerade nal 4 Sekunden.

* features
* download

PN ohne persönlichen Charakter werden ignoriert. Support-Anfragen gehören ins Forum.

5

Monday, April 11th 2011, 8:36pm

Hallo,
Erst einmal möchte ich mich bei dir für deine Tools bedanken - sie nehmen einem viel Arbeit ab, die sonst mühsam und Zeitaufwendig ist

Allerdings habe ich ein kleines Problem mit deinem SZS Tools, und zwar mit der Funktion Compress - die .szs Dateien die dabei entstehen haben eine Größe von 0KB, was ja irgendwie nicht normal sein kann.

Diesbezüglich 2 Fragen:
1. Müssen die zu komprimierenden .szs Dateien vorher mit Create erstellt werden bevor das Komprimieren klappt?
2. Ist mein Syntax möglicherweise falsch? Ich versuche es jeweils mit folgendem Syntax:

Source code

1
wszst COMPRESS (Name der zu erstellenden .szs Datei)

Source code

1
wszst COMPRESS (Name der zu erstellenden .szs Datei) -C 9


Ich habe auch versucht die .szs Dateien erst mit Hilfe von Create zu erzeugen und dann zu komprimieren, scheint auf den ersten Blick zu funktionieren, nur leider ist zwischen den unkomprimierten und komprimierten Dateien kein Unterschied zu erkennen.

Soviel zu meinen Problemen, vielen Dank für deine Hilfe im Vorraus

Wiimm

Developer

(309)

  • "Wiimm" started this thread
  • Deutschland

Posts: 1,449

Location: Dortmund

Occupation: Software-Entwicklung

  • Send private message

6

Monday, April 11th 2011, 9:06pm

Die Frage ist, welche Version (Nummer und OS) du nutzt. Aktuell ist 0.04, was ich wohl hier vergessen habe anzukündigen.
Bei 0.03 war ein bug drin, dass es eine leere SZS erstellt, wenn keine Quelle da ist.

Und da sind wir bei deiner 2. Frage:
Man muss natürlich wissen, was er komprimieren soll. In der Kommandozeile wird die Quelle angegeben. Es es eine *szs-Datei, dann wird sie geladen, neu gepackt und überschrieben. Anderenfalls wird eine neue SZS Datei erzeugt.

Willst du ein Verzeichnis packen, dann musst du "wszst create source_dir" verwenden. Und notfalls einfach mal "wszst help" aufrufen oder gleich hier schauen: http://szs.wiimm.de/wszst/#cmd
Bei COMPRESS habe ich mich wohl ein wenig mehrdeutig ausgedrückt -- nobody is perfect ;)

PN ohne persönlichen Charakter werden ignoriert. Support-Anfragen gehören ins Forum.


Wiimm

Developer

(309)

  • "Wiimm" started this thread
  • Deutschland

Posts: 1,449

Location: Dortmund

Occupation: Software-Entwicklung

  • Send private message

7

Friday, April 15th 2011, 4:07pm

I habe eine neue Version freigegeben: Wiimms SZS Tools v0.05a.

I habe einige kleinere Fehler beseitigt und noch vie mehr Dinge im Detail verbessert:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 - Code view & fine tuning (many little things...)

 - wszst NORMALIZE: Bug fixed if source does not contain a "." directory.

 - wszst CREATE+NORMALIZE: The files are ordered like Nintendo does it.

 - New command: wszst SHA1: calculate and print the SHA1 checksum of
   the decompressed data of all source files.

 - wszst+wbmgt DIFF: If option --dest is set then all sources are compared
   with the destination.

 - New option: wszst --pdir (`point directory'): Decides if a base directory
   named "." should be created. Modes are: REMOVE, AUTO, FORCE.

 - New option: --preserve: If set, mtime and atime of the source(s) are used
   to set the destination time stamps.

 - wbmgt: If creating a text BMG file option --ho-header (or -H) suppresses
   the output of the syntax information section.

 - wbmgt: If creating a text BMG file the message IDs for tracks, battle
   tracks and chat messages will be replaced by 'Txx', 'Uxx' and 'Mxx'.
   This feature is disabled if option ---long is set.


* Eigenschaften
* Download
* Custom Mario Kart Wiiki

PN ohne persönlichen Charakter werden ignoriert. Support-Anfragen gehören ins Forum.

Wiimm

Developer

(309)

  • "Wiimm" started this thread
  • Deutschland

Posts: 1,449

Location: Dortmund

Occupation: Software-Entwicklung

  • Send private message

8

Wednesday, April 27th 2011, 12:47pm

I habe eine neue Version herausgebracht: Wiimms SZS Tools v0.06a.

Was ist neu?
  • Tool wszst kann nun BRRES-Dateien ohne Vorlage erzeugen. Dazu werden alle Dateien eine Verzeichnisstruktur kopiert.

  • Tool wszst kann SZS, U8 and BRRES Archive nun rekursiv extrahieren und erstellen. Dieses macht den Zugriff auf einzelnen Komponenten extrem einfach.

  • Tool wszst kann nun direkt beim Extrahieren oder Erzeugen von Archiven BMG Dateien decodieren oder kodieren.

Change Log:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
szs v0.06a r2540 - 2011-04-27

 - If extracting a SZS, U8 or BRRES archive a file named 'wszst-setup.txt' is
   created. It contains some infos for a following creation.

 - New option --ignore-setup: Ignore setup file 'wszst-setup.txt'.

 - Option --pdir renamed to --pt-dir. --pdir is still allowed.

 - wszst CREATE: Can now create a BRRES file as copy of a directory structure.

 - wbmgt: If creating text BMG files, than unicode escapes "\z{801,hexnum}"
   are written as \u{hexnum}. v0.05a can already scan such unicode escapes.

 - wbmgt: new patch mode "print": create a new text using %s-escapes (like
   print functions) to insert the old one.

 - "wszst EXTRACT" can extract recursive and can decode BMG files on the fly.
   This is controlled by the options --recurse, --decode and --all. All needed
   information for recreation is stored in the setup file 'wszst-setup.txt'.

 - "wszst CREATE" creates a recursive directory structure created by EXTRACT
   using 'wszst-setup.txt' as script. Files will be encoded again.

Links:

PN ohne persönlichen Charakter werden ignoriert. Support-Anfragen gehören ins Forum.

Wiimm

Developer

(309)

  • "Wiimm" started this thread
  • Deutschland

Posts: 1,449

Location: Dortmund

Occupation: Software-Entwicklung

  • Send private message

9

Monday, May 2nd 2011, 9:24pm

BRRES erzeugen ist allerdings fehlerhaft und auch chadderz hat damit so seine Probleme -- ich arbeite daran.

Dafür kann meine aktuelle Arbeitskopie rekursiv entpacken und anzeigen (also z.B. BRRES in SZS).

PN ohne persönlichen Charakter werden ignoriert. Support-Anfragen gehören ins Forum.


Wiimm

Developer

(309)

  • "Wiimm" started this thread
  • Deutschland

Posts: 1,449

Location: Dortmund

Occupation: Software-Entwicklung

  • Send private message

10

Thursday, May 12th 2011, 8:21pm

Ich habe ein Update auf v0.08a gemacht: http://szs.wiimm.de/

PN ohne persönlichen Charakter werden ignoriert. Support-Anfragen gehören ins Forum.

Wiimm

Developer

(309)

  • "Wiimm" started this thread
  • Deutschland

Posts: 1,449

Location: Dortmund

Occupation: Software-Entwicklung

  • Send private message

11

Tuesday, May 17th 2011, 6:54pm

Wegen des geringen Interesses habe ich keine Lust auf eine Übersetzung -- dennoch sollt ihr nicht dumm sterben ;)

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

I have released Wiimms SZS Tools v0.09a.

What's new:
  • New tool: wstrt: Wiimms StaticR Tool: manipulate StaticR files of MKW.
  • 2 new option for all 3 tools: --tracks and --arenas: Define a new track and/or arena order.


Change Log:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
szs v0.08a r2617 - 2011-05-12

 - Improved support for BRRES sub file versions (more string pointers).

 - wszst EXTRACT --raw: Extract BRRES sub file in raw mode and do not adjust
   string pointers and other offsets.


szs v0.09a r2636 - 2011-05-17
 - New tool: wstrt: Wiimms StaticR Tool: manipulate StaticR files of MKW.

    - It can analyze StaticR files and detects CTGP 4.4. patches and
      modifications of track and arena orders.

    - It can patch StaticR files and modifies the track and arena order.
      So it is possible to move tracks with special features (like snow
      or fog) to other slots.

    - Commands TRACKS and ARENAS show details about tracks and arenas.
      The order may be in StaticR related order.

    - Command FILES shows the track and sound file names of all tracks and
      arenas in machine readable format (not vertically formatted, one space
      to separate columns). The order may be in 'StaticR' related order.

   IMPORTANT: wstrt is EXPERIMENTAL!

 - New option: --tracks=list: This option allow to define a new track order
   for Mario Kart Wii. Tool wstrt uses this option for patching the track
   order. Tools wszst and wbmgt use this to define the relation between Txx
   and real message IDs.

 - New option: --arenas=list: Does the same for arenas as --tracks for tracks.
 

Known bugs:
  - If creating a BRRES the internal name of the sub file is not set to
    the filename. This could be problematic if a sub file was renamed.


Links:

PN ohne persönlichen Charakter werden ignoriert. Support-Anfragen gehören ins Forum.

Wiimm

Developer

(309)

  • "Wiimm" started this thread
  • Deutschland

Posts: 1,449

Location: Dortmund

Occupation: Software-Entwicklung

  • Send private message

12

Saturday, May 21st 2011, 8:14am

I have released Wiimms SZS Tools v0.10a.

What's new:
  • wstrt (Wiimms StaticR Tool): support of JAP and KOREA version of StaticR files.


Change Log:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
szs v0.09a r2636 - 2011-05-17
 - New tool: wstrt: Wiimms StaticR Tool: manipulate StaticR files of MKW.

    - It can analyze StaticR files and detects CTGP 4.4. patches and
      modifications of track and arena orders.

    - It can patch StaticR files and modifies the track and arena order.
      So it is possible to move tracks with special features (like snow
      or fog) to other slots.

    - Commands TRACKS and ARENAS show details about tracks and arenas.
      The order may be in StaticR related order.

    - Command FILES shows the track and sound file names of all tracks and
      arenas in machine readable format (not vertically formatted, one space
      to separate columns). The order may be in 'StaticR' related order.

   IMPORTANT: wstrt is EXPERIMENTAL!

 - New option: --tracks=list: This option allow to define a new track order
   for Mario Kart Wii. Tool wstrt uses this option for patching the track
   order. Tools wszst and wbmgt use this to define the relation between Txx
   and real message IDs.

 - New option: --arenas=list: Does the same for arenas as --tracks for tracks.
 

szs v0.10a r2651 - 2011-05-21

 - wstrt: Support for NTSC/JAP and KOREA version of StaticR.rel.

 - wstrt: new command: FIND: Find tracks and arenas by name.


Known bugs:
  - If creating a BRRES the internal name of the sub file is not set to
    the filename. This could be problematic if a sub file was renamed.


Links:

PN ohne persönlichen Charakter werden ignoriert. Support-Anfragen gehören ins Forum.


Wiimm

Developer

(309)

  • "Wiimm" started this thread
  • Deutschland

Posts: 1,449

Location: Dortmund

Occupation: Software-Entwicklung

  • Send private message

13

Saturday, June 4th 2011, 1:55pm

I have released Wiimms SZS Tools v0.11a.

What's new:
  • Tool wszst can now list and extract BREFF and BREFT files.

Change Log:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
szs v0.10a r2651 - 2011-05-21

 - wstrt: Support for NTSC/JAP and KOREA version of StaticR.rel.

 - wstrt: new command: FIND: Find tracks and arenas by name.


szs v0.11a r2670 - 2011-06-04

 - New option: --single-line (-1): No continuation lines for BMG text output.

 - Support for BREFF and BREFT files: Listing and extraction, but not creation:

    - wszst LIST: List also BREFF and BREFT files inlcuding recursive lists.

    - wszst EXTRACT: Extract also BREFF and BRRES files. Recursive extraction
      of theses file types is implemented but disabled because of not
      implemented creation support.


Known bugs:

  - If creating a BRRES the internal name of the sub file is not set to
    the filename. This could be problematic if a sub file was renamed.

  - Creating BREFF and BREFT file is not implemented yet.


Links:

PN ohne persönlichen Charakter werden ignoriert. Support-Anfragen gehören ins Forum.

Wiimm

Developer

(309)

  • "Wiimm" started this thread
  • Deutschland

Posts: 1,449

Location: Dortmund

Occupation: Software-Entwicklung

  • Send private message

14

Thursday, June 16th 2011, 2:42pm

I have released Wiimms SZS Tools v0.12a.

What's new:
  • Tool wszst can now list, extract and create BREFF and BREFT files.


Change Log:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
szs v0.11a r2670 - 2011-06-04

 - New option: --single-line (-1): No continuation lines for BMG text output.

 - Support for BREFF and BREFT files: Listing and extraction, but not creation:

    - wszst LIST: List also BREFF and BREFT files inlcuding recursive lists.

    - wszst EXTRACT: Extract also BREFF and BRRES files. Recursive extraction
      of theses file types is implemented but disabled because of not
      implemented creation support.


szs v0.12a r2693 - 2011-06-16

 - Bug fix for Windows install script: Remove duplicate SZS entries from PATH.

 - wszst CREATE: Create BREFF and BREFT files.


Known bugs:

  - If creating a BRRES the internal name of the sub file is not set to
    the filename. This could be problematic if a sub file was renamed.


Links:

PN ohne persönlichen Charakter werden ignoriert. Support-Anfragen gehören ins Forum.

Wiimm

Developer

(309)

  • "Wiimm" started this thread
  • Deutschland

Posts: 1,449

Location: Dortmund

Occupation: Software-Entwicklung

  • Send private message

15

Saturday, July 9th 2011, 9:56pm

Wegen des nur relativ geringem Interesses spare ich mir die Übersetzung:


I have released Wiimms SZS Tools v0.13a.
(A command line toolset for Linux, Mac and Windows)

What's new:
  • Tool wszst can now export images to PNG files while extracting. Try "wszst extract --all MY.szs" and traverse the new directory "MY.d".
  • If tool wszst creates an archive, to looks for new PNG files and convert them back to the internal file and image format.
  • The new tool wimgt list files and geometry data.
  • The new tool wimgt converts images between file and image formats.
  • Supported file formats: BREFT subfiles, TPL, TEX0 and PNG.
  • Supported image formats: I4, I8, IA4, IA8, RGB565, RGB5A3, RGBA32, C4, C8, C14X2, CMPR and PNG.

I'll write a guide how to convert images in the next days.

Change Log:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
szs v0.13a r2840 - 2011-07-09

 - Bug fix for tool wszst: Tool chrashed when creating BRRES files with empty
   sub directories.

 - wszst: Export of internal images (BREFT subfiles, TPL, TEX0) to PNG files
   is done while extracting archives if decoding is enabled. Supported image
   formats: I4, I8, IA4, IA8, RGB565, RGB5A3, RGBA32, C4, C8, C14X2 and CMPR.

 - New tool: wimgt = Wiimms Image Tool : Convert and manage images files.
   Supported file types: BREFT subfiles, TPL, TEX0 and PNG.
    - wimgt LIST:    List images files and print types and geometry data.
    - wimgt DECODE:  Export an internal image to a PNG file.
    - wimgt ENCODE:  Import PNG images and store them in internal formats.
    - wimgt CONVERT: Convert formats (file and image format).

 - All tools: new command FILETYPE (=FT): Scan the header of the entered files
   and print file type and path for each file as list.


Known bugs:

  - If creating a BRRES the internal name of the sub file is not set to
    the filename. This could be problematic if a sub file was renamed.

  - Creating TPL images files with more than 1 image is not supported yet.
    Only file 'savebanner.tpl' is known to have 2 images.


Links:

PN ohne persönlichen Charakter werden ignoriert. Support-Anfragen gehören ins Forum.


Wiimm

Developer

(309)

  • "Wiimm" started this thread
  • Deutschland

Posts: 1,449

Location: Dortmund

Occupation: Software-Entwicklung

  • Send private message

16

Sunday, August 7th 2011, 3:56pm

Wegen des nur relativ geringem Interesses spare ich mir die Übersetzung:

I have released Wiimms SZS Tools v0.15a.
(A command line toolset for Linux, Mac and Windows)

What's new:
  • The new tool wkmpt can decode (convert to text) and encode (convert to binary) KMP files.
  • Command wkmpt DECODE converts each source file into text mode. These text files can be edited with any text editor and it's complete power. Also script or other text tools may manipulated theses text files.
  • Command wkmpt ENCODE converts each source file into raw mode. Indexing and grouping are done automatically. Some other automatic calculations can be enabled by switches within the text files.
  • Tool wszst can now decodes KMP files while extracting. Try wszst extract --decode MY.szs and traverse the new directory "MY.d".
  • If tool wszst creates an archive, to looks for new KMP text files and convert them back to the internal KMP file format.


Change Log:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
szs v0.15a r2917 - 2011-08-07

 - New tool: wkmpt: Wiimms KMP Tool

   - wkmpt DECODE: Decode a binary KMP file and store the results
     as user friendly, but machine readable text file.

   - wkmpt ENCODE: Encode a text KMP file and store the results binary.
     Indexing and grouping and some other stuff are done automatically. 

 - wszst EXTRACT: KMP files are decoded automatically.

 - wszst CREATE: Encode KMP files automatically if changed.

 - New image options for wszst: --transform= --encode-img


Known bugs:

  - If creating a BRRES the internal name of the sub file is not set to
    the filename. This could be problematic if a sub file was renamed.

  - Creating TPL images files with more than 1 image is not supported yet.
    Only file 'savebanner.tpl' is known to have 2 images.


Links:

PN ohne persönlichen Charakter werden ignoriert. Support-Anfragen gehören ins Forum.

Wiimm

Developer

(309)

  • "Wiimm" started this thread
  • Deutschland

Posts: 1,449

Location: Dortmund

Occupation: Software-Entwicklung

  • Send private message

17

Tuesday, August 16th 2011, 2:19pm

I have released Wiimms SZS Tools v0.17a.
(A command line toolset for Linux, Mac and Windows)

What's new:
  • The new tool wkmpt can decode (convert to text) and encode (convert to binary) KMP files.
  • Command wkmpt DECODE converts each source file into text mode. These text files can be edited with any text editor and it's complete power. Also script or other text tools may manipulated theses text files.
  • Command wkmpt ENCODE converts each source file into raw mode. Indexing and grouping are done automatically. Some other automatic calculations can be enabled by switches within the text files.
  • Tool wszst can now decodes KMP files while extracting. Try wszst extract --decode MY.szs and traverse the new directory "MY.d".
  • If tool wszst creates an archive, to looks for new KMP text files and convert them back to the internal KMP file format.
    .
  • Since this release, internal links to other sections (CAME+GOBJ to POTI, CKPT to JGPT) can use names instead of numbers. This makes list modifications (inserting, removing, reordering) much easier. The text export uses automatically generic names as predefinition.


Change Log:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
szs v0.17a r2941 - 2011-08-16

 - Scan KMP text: Correct line numbers in error messages.

 - KMP: [CAME], [GOBJ] and [CHKT] entries can use names to point to the route
   or respawn entries into the [POST] or [JGPT] sections. This makes list
   modifications (inserting, removing, reordering) much easier.

 - KMP: Parameter '@AUTO-ID=1' enables automatic setting of ID values.

 - KMP text export:
     - Improved and more detailed documentation.
     - The sections are now sorted alphabetically.
     - Links into other section uses generic names instead of index numbers.


Known bugs:

  - If creating a BRRES the internal name of the sub file is not set to
    the filename. This could be problematic if a sub file was renamed.

  - Creating TPL images files with more than 1 image is not supported yet.
    Only file 'savebanner.tpl' is known to have 2 images.


Links:

PN ohne persönlichen Charakter werden ignoriert. Support-Anfragen gehören ins Forum.

Wiimm

Developer

(309)

  • "Wiimm" started this thread
  • Deutschland

Posts: 1,449

Location: Dortmund

Occupation: Software-Entwicklung

  • Send private message

18

Friday, August 26th 2011, 1:39pm

I have released Wiimms SZS Tools v0.18a.
(A command line toolset for Linux, Mac and Windows)

What's new:
  • The new tool wkmpt can decode (convert to text) and encode (convert to binary) KMP files. Both operations are improved and support now variables instead of indices. This makes list modifications (inserting, removing, reordering) much easier. See the examples below.


Change Log:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
szs v0.18a r2959 - 2011-08-26

 - KMP: Improved text output with additinal infos.

 - KMP: More intelligent group naming.

 - KMP: Linear calculated points in CKPT, ENPT and ITPT.

 - KMP: User may define local and global variables.

 - KMP: Objects can be referenced my name (eg. o$itembox).

 - KMP: Inter section links (AREA->CAME, CAME->POTI, GOBJ->POTI, CKPT->JGPT)
   using names instead of indices. This allows easy reorganisation.

 - KMP: AREA+CAME syntax (table layout) changed, old format stays compatible.


Known bugs:

  - If creating a BRRES the internal name of the sub file is not set to
    the filename. This could be problematic if a sub file was renamed.

  - Creating TPL images files with more than 1 image is not supported yet.
    Only file 'savebanner.tpl' is known to have 2 images.


Links:


Example: Check + respawn points:

Spoiler Spoiler


Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#CKPT#
#-------------------------------------------------------------------------
#       _____start_point_____    ______end_point______ respawn   prev
#idx         x           y            x           y          mode    next
#-------------------------------------------------------------------------

 ...

 $GROUP G2,  next: G3A G3B
  # == section 5,  prev: s1,  next: s8 s9

  12    36400.000  -31600.000    28400.000  -31600.000    j3 -1  11  13
  13    33550.000  -24850.000    25400.000  -28500.000    j3a  -1  12  14
  $LINE 2
  14    33400.000  -24400.000    24800.000  -21700.000    j4  -1  13  15
 ...

Grouping/sectioning is done by inserting "$GROUP" lines. Names are used for links. The KMP Modifier section names are printed as comment for easier orientation.

Source code

1
2
3
4
5
6
7
8
9
10
#JGPT#
#------------------------------------------------------------------------------
#     _____________position_____________ _______rotation________ related
#idx        x           y           z        x       y       z       id effect
#------------------------------------------------------------------------------
 ...
  j3   23100.000     750.000  -30700.000    0.00  157.00    0.00      2 0xffff
  j3a  31353.293    1417.722  -34329.320    0.00   30.00    0.00      3 0xffff
  j4   28920.000    2414.103  -23650.000    0.00   19.00    0.00      4 0xffff
 ...

This corresponding JPTP section. "j3a" is a new point, renaming of th others does the encoder.


Example: objects + routes:

Spoiler Spoiler


Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#GOBJ#
#-----------------------------------------------------------------------------------
#    obj-id ______position/rotation/scale______  _________settings_________   route
#idx /unknw        x           y           z     #1/#5  #2/#6  #3/#7  #4/#8 /p-flag
#-----------------------------------------------------------------------------------
   # o$itembox : An itembox
  o8   0x65    9563.316       1.000    8366.569      0      0      0      0      -1
   >      0       0.000       0.000       0.000      0      0      0      0    0x3f
   >              1.000       1.000       1.000
#-----------------------------------------------------------------------------------
   # o$f_itembox : Moving itembox (explodes)
  o9   0xc9   45211.914    9680.000   32788.789   0x32      0      0      0      r5
   >      0       0.000       0.000       0.000      0      0      0      0    0x3f
   >              1.000       1.000       1.000
#-----------------------------------------------------------------------------------

This is the definition of 2 item boxes. The comments explain the object type. The route is referenced by name.

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#POTI#
#--------------------------------------------------------
#      _____________position_____________   __settings__
#idx         x           y           z         #1     #2
#--------------------------------------------------------
 $ROUTE r5, settings:  0x101
   # GOBJ reference: 6 7 9 79

   1    46018.512    9680.000   20785.742     0xc      0
   2    41915.566    9680.000   15091.461     0xc      0
   3    31791.070    9680.000   15837.438     0xc      0
   4    29012.793    9680.000    9291.073     0xc      0
   5    30221.631    9680.000    -501.291     0xc      0
   6    25380.010    9680.000   -3120.385     0xc      0
   7    24102.535    9680.000   -8507.992     0xc      0
   8    17311.211    9680.000  -11962.936     0xc      0
   9    13300.522    9680.000  -10459.839     0xc      0

This corresponding POTI section. A comment lists the objects using this route.


Example: Camera:

Spoiler Spoiler


Source code

1
2
3
4
5
6
7
8
9
10
11
12
#CAME#
#--------------------------------------------------------------------
#idx  type           ________position   (x,y,z)________     zoom_beg
#     next     4x    ________unknown    (x,y,z)________     zoom_end
#   unknown settings ________view point (x,y,z)________         -
#    route           ________view dest  (x,y,z)________        time
#--------------------------------------------------------------------
  c6     2       0    -5879.912   14726.437    7036.634       53.000
   >    c7     0x8        0.000       0.000       0.000        8.000
   >     0       0       30.000      -1.000     550.000
   >   r11       0        5.000       1.000       0.000        0.000
#--------------------------------------------------------------------

This is a camera route. Again names are used for all links.

Source code

1
2
3
4
5
6
7
8
#----------------------------------------------------------------------------------
#     mode type    _____position/rotation/scale______   _________settings_________
#idx    id unknown       x           y           z         #1     #2     #3     #4
#----------------------------------------------------------------------------------
  a0     0    0      -179.760   -5801.323    8313.767       0      0 0xffff      0
   >    c6    0         0.000       0.000       0.000 
   >                    1.000       2.000       1.300
#----------------------------------------------------------------------------------

And here is a area entry linked to the camera entry above.

PN ohne persönlichen Charakter werden ignoriert. Support-Anfragen gehören ins Forum.


Wiimm

Developer

(309)

  • "Wiimm" started this thread
  • Deutschland

Posts: 1,449

Location: Dortmund

Occupation: Software-Entwicklung

  • Send private message

19

Thursday, September 15th 2011, 1:09pm

I have released Wiimms SZS Tools v0.19a.
(A command line toolset for Linux, Mac and Windows)

What's new:
  • The KMP encoder/compiler (included into the tools wkmpt and wszst) supports now:
    • Predefined variables via command line.
    • Local and global variabels in the source file.
    • C like arithmetic expressions.
    • Nested @IF..@ELIF..@ELSE..@ENDIF structures.

    This means yo can write generic and conditional KMP files.
  • If genereting a KMP text file it contains much more info like distance and direction info or settings info for global variables.
  • It is possible to Cut&Paste from SZS Modifier's KMP Editor to a KMP text file. Set "@SZS-MODIFIER = 1" to enable the other syntax.


Change Log:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
szs v0.19a r3033 - 2011-09-15

 - New option: --const NAME=VALUE,...
   With this option the user can predefine variables in the command line.

 - KMP scanner supports C like arithmetic expressions.

 - KMP scanner supports nested @IF..@ELIF..@ELSE..@ENDIF structures.

 - The KMP scanner accept copy&paste text of the SZS-Modifier, if parameter
   @SZS-MODIFIER is set to 1.

 - If decoding a KMP text file, names of entries of the source are used
   instead of generic names while creating the destination output.

 - Object infos (name, short description, parameters) are inluded into the
   KMP object list.

 - A decoded KMP file contains a template for parameters and conditional
   encoding. Option --no-param (-P) disables the template.

 - Several small KMP decoding+encoding improvements.

 - New command: wkmpt SYMBOLS: Print a table with all predefined symbols.

 - wszst CAT --decode: Decode files before output if possible.

 - New command: wszst KMP: Open the sub file @course.kmp@, decode and print it.

 - New command: wszst INFO: Print the content of the subfile 'info.txt'
   or 'credits.txt' (first found file used, case ignored).


Known bugs:

  - If creating a BRRES the internal name of the sub file is not set to
    the filename. This could be problematic if a sub file was renamed.

  - Creating TPL images files with more than 1 image is not supported yet.
    Only file 'savebanner.tpl' is known to have 2 images.


Links:

PN ohne persönlichen Charakter werden ignoriert. Support-Anfragen gehören ins Forum.

Wiimm

Developer

(309)

  • "Wiimm" started this thread
  • Deutschland

Posts: 1,449

Location: Dortmund

Occupation: Software-Entwicklung

  • Send private message

20

Friday, September 30th 2011, 4:05pm

I have released Wiimms SZS Tools v0.20a.
(A command line toolset for Linux, Mac and Windows)

What's new:
  • The KMP encoder and decoder have been improved again (see change log for details). For the moment I have finshed my KMP work.
  • The Mac support changed (my host has a new installation)
    • The new LIBPNG does not support PPC. So I must discontinue PPC support, sorry.
    • LIBPNG is now linked static. So there is no longer a need for Mac users to install LIBPNG.



Change Log:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
szs v0.20a r3069 - 2011-09-30

 - Bug fix for KMP decoding: A wrong name was written for the opening camera.

 - New option: --brief: Create KMP text files without most info lines. If set
   twice, the output of unneeded sections is also suppressed.

 - Tools exit with error status on encoding errors.

 - The new KMP command '$BEZIER' works similar like '$LINE' and create
   quadratic and cubic bezier curves for CKPT, ENPT, ITPT and POTI sections.

 - New KMP commands: @ECHO and @WARN: Print a message or a warning.

 - New option: --no-echo: Suppress messages made by the new '@ECHO' command.

 - The KMP encoder and decoder support a free info string. It is stored at
   and load from the end of the KMP file behind all sections.

 - Mac: Support for PPC disabled, because the new LIBPNG does not support it.

 - Mac: LIBPNG is now linked static. So there is no longer a need for Mac
   users to install LIBPNG.


Known bugs:

  - If creating a BRRES the internal name of the sub file is not set to
    the filename. This could be problematic if a sub file was renamed.

  - Creating TPL images files with more than 1 image is not supported yet.
    Only file 'savebanner.tpl' is known to have 2 images.


Links:

PN ohne persönlichen Charakter werden ignoriert. Support-Anfragen gehören ins Forum.