Wiimms SZS Tools - Mario Kart Wii - The Biggest Mario Kart Wii & Mario Kart 7 Forum
PASSWORD
USERNAME
Author of Wiimms ISO+SZS Tools



Old
Wiimms SZS Tools
 
 
03-30-2011, 08:21 PM
  #1 (permalink)  
"
I have released Wiimms SZS Tools v0.34a.
(A command line toolset for Linux, Mac and Windows)

What's new:
  • I have now implemented all planned things for the KMP compiler/parser:
    • Variables in different name spaces.
    • Numeric expressions with integers, floats and vectors.
    • Nested if..elif..else..endif.
    • 5 kinds of nested loops.
    • Includes. (new!)
    • Many predefined functions.
    • User defined macros and functions. (new!)
    • Commands for special features.
    • Conditional compiling controlled by command line settings.

    For Details read the new online syntax and semantics documentation:.

Change Log:
Code:
szs v0.34a r3659 - 2012-05-12

 - KMP text parser extensions:

    - New commands:
       @INCLUDE "filename": include text files.
       @RETURN [val]: returns from the current input file.
       @EXIT: exit the parser execution.
       @ASSERT condition: exit execution, if 'condition' is false.
       @MACRO .. @ENDMACRO: Define named macros.
       @FUNCTION .. @ENDFUNCTION: Like @MACRO, but can also be used as
          function in numerical expressions.
       @CALL macroname(...): Call a previos defined macro with parameters.
          '@:macroname(...)' is a short cut for '@CALL macroname(...):'
       @DOIF (condition) anytext: Execute 'anytext', if 'condition' is true.

    - New private variable name space: @PDEF
       - P-Variables are only defined for the current source file or function.
       - Loop variables (@FOR,@FOREACH) and macro parameters are defined in
         this new private name space.

 - New options for command FUNCTIONS (list parser functions):
    - Option --long: The entered keys are compared against the description.
    - Option --verbose: The description is printed too.

 - Bug fix: Parser function minMax() returned wrong results.
Links:
Last edited by Wiimm; 05-12-2012 at 10:46 AM.
 
Reply With Quote
has no status.

Old
 
 
03-31-2011, 02:12 PM
  #2 (permalink)  
"
Good Job! good good i use
 
Reply With Quote
This thread needs to be about 20% cooler.



Old
 
 
03-31-2011, 03:56 PM
  #3 (permalink)  
"
Good job,
I'm sure it will be useful to have command line tools to automate things.
 
Reply With Quote

Author of Wiimms ISO+SZS Tools



Old
 
 
03-31-2011, 04:14 PM
  #4 (permalink)  
"
I have updated the tools:
  • Windows (Cygwin), Linux (32+64 bit) and Mac (universal binaries) are available.
  • New command "CREATE": create a SZS file by adding files of a directory structure.
  • I have made several tests and also compared the results with extraction of SZS Explorer.
  • I have also extracted and created many SZS files. Then I have created an ISO image and played it without problems.
  • Source code available (SVN repository).
Download and more details: Wiimms SZS Tools - Custom Mario Kart
Last edited by Wiimm; 03-31-2011 at 04:22 PM.
 
Reply With Quote
MKW Fan

Old
 
 
03-31-2011, 07:27 PM
  #5 (permalink)  
"
I have made some tests and recreated some track files. No problems found!

I'm surprised about the speed. And the size of the new created track files are always smaller. For example Six King Labyrinth is reduced from 6mb to 3mb.

Good Job!!!
 
Reply With Quote
At Cambridge. CTGPR 1.02 crawling slowly to the finish.



Old
 
 
03-31-2011, 09:09 PM
  #6 (permalink)  
"
Thanks for that, it certainly saves me adding in command line support.

The size issue is actually Mr Bean's fault, as he always sets it to lowest levels of compression in the szs modifier to save save time, which means his files are much larger . If you use maximum compression, no one bit of software should be better than any other.
 
Reply With Quote
Author of Wiimms ISO+SZS Tools



Old
 
 
03-31-2011, 09:18 PM
  #7 (permalink)  
"
hi chadderz,
I have problems when I recreate scene/ui/title.szs. If using the recreated file mkw hangs with a black screen. I have compared the extracted content, they are identical. I think it must be a sorting or a aligning issue. Are there some specials that I must know?
 
Reply With Quote
At Cambridge. CTGPR 1.02 crawling slowly to the finish.



Old
 
 
03-31-2011, 09:25 PM
  #8 (permalink)  
"
I think the files all have to be aligned to 0x20 but I can't think of anything else off hand. Could you compare it to a version created from scratch with the szs explorer perhaps?
 
Reply With Quote
Author of Wiimms ISO+SZS Tools



Old
 
 
03-31-2011, 09:38 PM
  #9 (permalink)  
"
alignment with 0x20 is default, i have also tried 0x40. I will make some more tests with the szs explorer tomorrow.
 
Reply With Quote
Author of Wiimms ISO+SZS Tools



Old
 
 
03-31-2011, 11:27 PM
  #10 (permalink)  
"
szs explorer and my wszst creates the same szs file: offsets and sizes are identical. But szs makes an mistake (I believe it):

Code:
* SZS explorer

off/hex siz/hex size/dec  file or directory/
-------------------------------------------------------------------------------
      -       -        -  ./
      -       -        -  bg/
      -       -        -  bg/anim/
   5480      98      152  bg/anim/bg_Loop.brlan
      -       -        -  bg/blyt/
   5520     3f8     1016  bg/blyt/bg.brlyt
   5920     65c     1628  bg/blyt/obi_bottom.brlyt
   5f80     be4     3044  bg/blyt/obi_bottom_message.brlyt
...
The first directory "." is not the base of all others. Compare this:
Code:
* wszst | original

off/hex siz/hex size/dec  file or directory/
-------------------------------------------------------------------------------
      -       -        -  ./
      -       -        -  ./bg/
      -       -        -  ./bg/anim/
   5480      98      152  ./bg/anim/bg_Loop.brlan
      -       -        -  ./bg/blyt/
   5520     3f8     1016  ./bg/blyt/bg.brlyt
   5920     65c     1628  ./bg/blyt/obi_bottom.brlyt
   5f80     be4     3044  ./bg/blyt/obi_bottom_message.brlyt
...
I will test the created title.szs tomorrow.
Last edited by Wiimm; 03-31-2011 at 11:29 PM.
 
Reply With Quote
Reply

Thread Tools
Display Modes
Linear Mode Linear Mode

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
 
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump