ScriptEd 1.50 is back from the dead!

Discussion in 'Modding and Scripting Support' started by Dj_Unique, Apr 16, 2018.

Remove all ads!
Support Terra-Arcanum:

GOG.com

PayPal - The safer, easier way to pay online!
  1. Dj_Unique

    Dj_Unique Member

    Messages:
    74
    Likes Received:
    3
    Joined:
    Nov 14, 2001
    So this is another long break of not posting here, almost 10 years has passed since I started my ScriptEd resurrection project, after a little while development got halted and only now I found inspiration to continue development. So here's Build 4 of 1.50-beta: https://www.dropbox.com/s/nca0e9pawwewnya/ScriptEd_1_50-beta-build4-setup.exe?dl=0

    A major code change was done to the script parser, it should now compile all possible lines properly, thanks to Anthony Bailey for doing the fixes for me (he reached me via e-mail) From this build onward I will try to refine the dialogue editor, particularly the player option editor to allow easier editing of conditions and actions via a specialized menu system that contains human readable descriptions of each command. Also going through the suggestions that 'team a' gave me in the previous thread and possibly implementing some of them.

    If you install the program to C:\Program Files (x86) (if on 64-bit system), you'll need to run it as administrator. Otherwise there will be file access denied errors. If you install to any other folder, it should be fine without running as administrator.

    changelog:

    - Added script creation date and modification date columns to the module script loader

    - fixed MES editor entry deletion: deleting the last entry would cause an access violation (only related to updating the listview)

    - added a fancy splash screen on startup

    - Ported code to work with Delphi 10 Seattle

    - Fancy VCL style now applied to the editor

    - Fixes made to the script compiler code incorporated. Thanks to Anthony Bailey for the fixes. Some lines would not compile, for example such as this one: "stat 4 of Triggerer: adjust by PC Variable 1001 of Triggerer"

    - Added plugin for creating speech files using the Windows SAPI5 Text to Speech Engine. Requires lame.exe in system path

    - MRU menu was not working properly in the new Delphi 10 Seattle build, functionality restored.

    + other fixes I don't remember doing, it's been a while since I touched the code.
     
    Dark Elf likes this.
  2. FilthyJack

    FilthyJack Member

    Messages:
    84
    Likes Received:
    10
    Joined:
    Jan 27, 2011
    Thanks for the update! I've used your compiler for quite some time and was wondering if this one had some command line funtionality. It would be great for when you have multiples scripts working together and have to recompile them often. Anyways great tool!
     
  3. Dj_Unique

    Dj_Unique Member

    Messages:
    74
    Likes Received:
    3
    Joined:
    Nov 14, 2001
    A commandline compiler is coming up in the next build, I'm currently optimizing it for smaller executable file size, I'm also going to add a mass compile function to it.
     
  4. FilthyJack

    FilthyJack Member

    Messages:
    84
    Likes Received:
    10
    Joined:
    Jan 27, 2011
    Maybe you already know this but you can pack your final delphi 2010 executables with UPX, there is not much space to save when you don't build with runtime packets.
    Thanks again!
     
  5. Dj_Unique

    Dj_Unique Member

    Messages:
    74
    Likes Received:
    3
    Joined:
    Nov 14, 2001
    I managed to compress it to just 300kb using upx, here it is ahead of the next installer build: https://www.dropbox.com/s/2ecqh4s4kxpb83a/scriptcompiler.zip?dl=0

    F-secure was giving me trouble but I excluded my ScriptEd folder from scanning so it wouldn't delete the upx packed executables

    if you wish to compile all txt files in a folder, just run the commandline ScriptCompiler.exe -bc
    for decompiling all scr files use the commandlnie ScriptCompiler.exe -a

    (make sure it is in the scripted folder because it tries to access scripted.ini for configuration information. add it to the system path also in environment variables)
     
    Dark Elf likes this.
  6. FilthyJack

    FilthyJack Member

    Messages:
    84
    Likes Received:
    10
    Joined:
    Jan 27, 2011
  7. t-roll

    t-roll New Member

    Messages:
    18
    Likes Received:
    5
    Joined:
    Apr 30, 2017
    Neither the old one nor the new one know how to compile this action

    transform (obj) to basic prototype (num)

    While it recognizes the action it does not know the opcode.


    Also thank you for this, is very handy .
     
  8. Dj_Unique

    Dj_Unique Member

    Messages:
    74
    Likes Received:
    3
    Joined:
    Nov 14, 2001
    I'm working on fixing this issue. It happens because the command string contains the keyword Attachee so the parser gets confused and thinks it's an (obj) parameter. A few code changes should do the trick. This fix will be in the next build that I will try to get out as soon as possible.
     
  9. Dj_Unique

    Dj_Unique Member

    Messages:
    74
    Likes Received:
    3
    Joined:
    Nov 14, 2001
    Here is the new build that I compiled today: https://www.dropbox.com/s/eenl4v8tdntd68z/ScriptEd_1_50-beta-build5-setup.exe?dl=0

    Changelog:

    - Fixed a critical bug in the script parser that caused the 'transform Attachee into basic prototype (num)' line fail to compile. Now it should work just fine.

    - Plugins should now deinitialize properly, there was an access violation occurring in PLG_CheckRefs.dll on exiting ScriptEd, traced back to JCL Unit Versioning, which I disabled.

    - Plugins now use the same VCL skin as the main program

    - Option to use Troika's original DbMaker.exe for building module databases, instead of the internal routines.

    - Added a commandline tool: ScriptCompiler.exe for mass decompiling scripts to txt and back to scr, also able to decompile all main game scripts

    - Added button to dialogue editor for automatic voiceover numbering, makes voicing characters easier, especially when using the SAPI5 plugin.

    - ArcanumSCRLib installation folder read from registry should now work properly.

    - Speech playback implemented for dialogues with voiceover
     
    t-roll likes this.
  10. t-roll

    t-roll New Member

    Messages:
    18
    Likes Received:
    5
    Joined:
    Apr 30, 2017
    WOW that was fast. thank you.

    Is action implemented in this version? I am still using the old one because is easier to pull action references but ill use this one to compile the missing opcode in the older one. :D
     
Our Host!