Results 1 to 4 of 4

Thread: DK Level script plugin for Notepad++

  
  1. #1

    Default DK Level script plugin for Notepad++

    I was doing some scripting, and I've put the Dungeon Keeper syntax into Notepad++. This means syntax highlighting and auto-complete functionality.
    So no more typo's.

    This is the result:

    Click image for larger version. 

Name:	notepad++.png 
Views:	130 
Size:	41.8 KB 
ID:	1510

    I'm happy to share. It requires two files, the syntax and the autocomplete list.

    Installation instructions.

    1. Download the files here:
      NotepadDKSyntax.zip

    2. Extract to a temporary folder on your PC

    3. Open Notepad++. In the menu: View - User-Defined Dialog.... Then select 'Import..' and select the file syntax_keeperfx.xml which you've just downloaded. Click 'Open' then close Notepad++.

    4. Move the file keeperfx.xml to the folder 'C:\Program Files (x86)\Notepad++\plugins\APIs', or wherever you have installed notepad++.


    Finished. Now when you open a dungeon keeper level script file in Notepad++, select 'KeeperFX' from the language menu.
    If autocomplete does not show up - and you are sure you've installed it correctly - you have autocomplete disabled(standard). To enable: Settings-Preferences-Backup/Autocompletion -> check 'Enable auto-completion on each input'.

    Included are all script commands from KeeperFX until the current nightly(r1366), so usable for Dungeon Keeper and KeeperFX.



    EDIT:
    I made an update. The above doesn't work anymore due to updates in notepad++. And there have been many more script commands.
    Download the update here: NotepadDKSyntaxV20191225.zip

    As for the installation, the file keeperfx.xml now goes to the folder 'C:\Program Files\Notepad++\autoCompletion', or wherever you have installed notepad++. The other file can be handles as above, and you can enable it now through Settings->Preferences->Auto-Completion.



    EDIT 2:

    The Notepad++ menu seems to change with every version. Now it's: 'Language->User Defined Language -> Define Your Language -> Import'
    Last edited by YourMaster; March 20th, 2021 at 00:30.

  2. #2
    Imp
    Join Date
    Sep 2014
    Location
    Germany
    Posts
    7

    Default Re: DK Level script plugin for Notepad++

    Thats nice work men! Thanks for that. Works superb

  3. #3

    Default Re: DK Level script plugin for Notepad++

    I can't get it to work, maybe my notepad++ needs to be updated.

    I saw no import at User Defined Dialog..., but found an import at Settings>Import>Import Style themes, where XML formats could be imported.
    The api map at the notepad directory has more xml files, and I already had put keeperfx.xml file there, before I imported syntax_keeperfx.xml.
    I also restarted notepad++, two times now, but I can't find keeperFX in the language menu.

  4. #4

    Default Re: DK Level script plugin for Notepad++

    I don't know how old your version is, but this topic is almost 2 years old so it worked with an old version as well. In the latest version the menu's have changed a bit.

    In 6.8.1 of notepad++ click 'language', then 'define your language' and you'll have the import button right there.

Similar Threads

  1. New script commands
    By mefistotelis in forum KeeperFX
    Replies: 89
    Last Post: May 18th, 2016, 09:04
  2. need help with script
    By Edwin in forum DK1 Mapmaking
    Replies: 5
    Last Post: March 18th, 2014, 08:52
  3. There is an error in my script??
    By Kerdinario in forum KeeperFX
    Replies: 4
    Last Post: June 2nd, 2013, 14:27
  4. Script error in level 20
    By friscmanseby in forum KeeperFX
    Replies: 1
    Last Post: June 19th, 2012, 04:36
  5. Research Order Script
    By Metal Gear Rex in forum DK1 Mapmaking
    Replies: 4
    Last Post: November 5th, 2010, 18:15

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •