Frictional Games Forum (read-only)
Improved Notepad++ HPS Support - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Resources (https://www.frictionalgames.com/forum/forum-42.html)
+---- Thread: Improved Notepad++ HPS Support (/thread-9783.html)



Improved Notepad++ HPS Support - Apjjm - 08-15-2011

The old notepad++ files which most people have installed had faults. I have been slowly tweaking these files as I have used them. Today I decided to fully finish the job. Below is a list of fixes I have made:

Hps Language Definition File (hps.xml)
  • Removed several unsupported functions
  • Added 3 new functions which are supported as of 1.2 justine patch
  • Added various missing supported type keywords (E.g uint)
  • Added keywords for classes, interfaces, enumarates, typedef and funcdef and possibly others
  • Removed "PlayerStartArea_" keyword
  • Probably a couple of other things too

Hps user defined lang file (userdefinedlang.xml)
  • Added folding regions (See sample hps file)
  • Overhauled color coding
  • Added appropriate color coding for all supported keywords
  • Added color for OnStart, OnLeave, OnEnter and OnGameStart events
  • Strings now have the escape char defined

Preview: Sample Script

I have also included a sample script file, and a text document containing installation instructions (note that these instructions will still work if you already have the current version installed - but you may have to restart notepad++ to see the changes take effect)

Download link (FIXED!)

I propose that we update the wiki with these new versions for the notepad++, but I feel I should ask the community first if you are happy with this, and if there are any alterations you would like to propose to the above files.


Edit (v1.2): Old download link "userdefinedlang.xml" missing 1 folding set because of swap with old link


RE: Improved Notepad++ HPS Support - palistov - 08-15-2011

Neat! I may give that a shot. I like the C++ style I'm working with though Smile

By the way, I tried out your parsing functions in my sandbox map. REALLY need stuff dude, it cut out about 10 lines of code Smile


RE: Improved Notepad++ HPS Support - DRedshot - 08-15-2011

thanks for this, the folding regions is something i've wanted for a long time. However, i'm struggling to import the userdefinedlang.xml it says 'import successful' but none of the features work, even after a restart of notepad :/ however, the hps.xml works great! I just need some help with the userlang.xml - thanks



RE: Improved Notepad++ HPS Support - Apjjm - 08-15-2011

(08-15-2011, 11:06 PM)DRedshot Wrote: thanks for this, the folding regions is something i've wanted for a long time. However, i'm struggling to import the userdefinedlang.xml it says 'import successful' but none of the features work, even after a restart of notepad :/ however, the hps.xml works great! I just need some help with the userlang.xml - thanks
Try removing any HPS entries (there might be two!) from the user-defined-dialogue window, re-add the new version, then restart notepad++. If that still doesn't work, I updated the zip again (v1.2 already - totally professional Wink), so try that version of the userdefinedlang.xml.

(08-15-2011, 11:02 PM)palistov Wrote: Neat! I may give that a shot. I like the C++ style I'm working with though Smile

By the way, I tried out your parsing functions in my sandbox map. REALLY need stuff dude, it cut out about 10 lines of code Smile
Cheers Wink - the colouring is kind of a hybrid between the old style and c# - I find it really helps scan in long functions though.


RE: Improved Notepad++ HPS Support - Kyle - 08-16-2011

Thanks, it really helps clear up any misleading functions. I've always forgotten the Justine command functions and had to look it up on the forum or a previous script I used it with.

I also recommend that when you do update the wiki (which I hope you will do), that you'll put an alternate link to the .hps format on this page for your modification:

http://wiki.frictionalgames.com/hpl2/third_party_tools/text/notepad


RE: Improved Notepad++ HPS Support - Phoroneus - 08-16-2011

Absolutely beautiful. Thank you for this, the folding regions are especially welcome. Smile


RE: Improved Notepad++ HPS Support - Your Computer - 08-16-2011

I took the liberty to generate a tags file for Geany from your updated HPL2 functions list. It can be found here: http://wiki.frictionalgames.com/hpl2/third_party_tools/text/geany


RE: Improved Notepad++ HPS Support - xtron - 08-16-2011

Great job Apjjm! <3


RE: Improved Notepad++ HPS Support - Apjjm - 08-16-2011

I would update the wiki with this, but it appears I don't have permission to upload files to the wiki - either that or I am doing it wrong. If somebody else could try to add these it would be appreciated.