Saturday, November 28, 2009

Setting up a Notepad++ Environment

This is a short write-up on how to get Notepad++ to work with your game, which basically only means setting up Unreal Script highlighting.


Video Version


Subject: Setting up a Notepad++ Environment
Skill Level: Beginner
Run-Time: 6Min
Author: Michael Allar
Notes: A video-guided process of RTFM for Notepad++


Streaming:     720×480 1920×1080


Download:     Low-Res (12MB) Hi-Res (25MB)



Written Version


Subject: Setting up a Notepad++ Environment
Skill Level: Beginner
Author: Notepad++
Notes: One of many ways to set up a development environment for UDK.
Prerequisites: UDK



Acquiring The Software



  1. Download and Install Notepad++ (Listed under Binary Files)

  2. Download the UnrealScript Highlighter for Notepad++


Setting Up Unreal Script Highlighting


These instructions are directly taken from the download page of Notepad++ (here) under the User Defined Language Files section.

  1. Download the user-defined language to your computer

  2. Open the file with your favourite text editor (such as notepad++ or notepad)

  3. Click start, run, (or hit Windows Key + R), and  type (or paste in) %APPDATA%Notepad++ then click ok

  4. Open userDefineLang.xml with a text editor if it exists, if not, create a new file named userDefineLang.xml

  5. If this is the first userdefined language you are adding, copy/paste the entire first file (which you downloaded) into the userDefineLang.xml, replacing all that was there. If this is the second or more language you add, simply copy everything from the first file starting at <UserLang...> to </UserLang> and paste it at the end of the userDefineLang.xml right before </NotepadPlus>

  6. Save the newly improved userDefineLang.xml

  7. Restart Notepad++


Your Done!


Now while you don't get the fancy organizational features you'd get with something like nFringe, Notepad++ should suffice for your code making needs. To build/compile/test your code however, you will need to use the UnrealFrontend instead of the build buttons in Visual Studio.

Credit


The people over at Notepad++ for documenting how to install a user-defined file :D

21 comments:

  1. [...] You also need a way to edit .ini and .uc files. Notepad will work, but I strongly recommend setting up nFringe or Notepad++. [...]

    ReplyDelete
  2. I have notepad++ installed to an external harddrive, as the computers at my school auto-restore on reboot. so I had to save userDefinedLang.xml to my installation folder and copy it over to the "%APPDATA%/Notepad++" area everytime I login to one of the school computers. do you know if there is a way to work out of the installation folder so I don't have to set it up every time?

    ReplyDelete
  3. Not that I know of, working on school computers kinda sucks sometimes.

    ReplyDelete
  4. Notepad++ und UnrealScript | ThesisJune 14, 2010 at 11:02 PM

    [...] [...]

    ReplyDelete
  5. Wow, this is one of the best tutorials I've read and watched on Unrealscript I have ever since. If there was anything bad about the tutorial is that sometimes you say "..and...ya.." or "um.. ok" to many times in a row which gave a slight distraction. But other than that, GREAT JOB and thank you very much.

    ReplyDelete
  6. Wow, this is one of the best tutorials I've read and watched on Unrealscript ever. If there was anything bad about the tutorial is that sometimes you say "..and...ya.." or "um.. ok" to many times in a row which gave a slight distraction. But other than that, GREAT JOB and thank you very much.

    ReplyDelete
  7. Thanks, I'm trying to stop that.

    ReplyDelete
  8. Thanks, great tip for notepad++ and Unreal Script :)

    ReplyDelete
  9. I have now succesfully installed notepad++ with UScript highlighting, but i have serious problems with the whole thing! I am accustomed to the Eclipse IDE, that comes with many luxury features, such as Auto-Complete, Call-Hierarchy, Hover-Info etc. I cant live without this stuff -.- Is programming with UDK REALLY that crappy? Please say no :'-(

    ReplyDelete
  10. Wotgreal is the best your gonna get in terms of those features. Its pretty crappy.

    ReplyDelete
  11. ok would you say this isnt worth it, or do you say its still great fun to develop games with udk? i want to make games like zelda and rpg games

    ReplyDelete
  12. If you can tame UDK, its pretty worthwhile imo.

    ReplyDelete
  13. might sound silly, but i dont know how to install the unrealscript highlighter for notepad++. I need help urgently please!!

    ReplyDelete
  14. You're not silly, they've basically changed everything from this tutorial. Its not working for me either. I'll just give up on it I have other ones working I was just trying notepad++ out again.

    ReplyDelete
  15. Followed tutorial to the T. But Pad++ doesnt show unrealscript as an option. A little lost and need help please.

    ReplyDelete
  16. The tutorial worked fine for me (Notepad++ v5.6.8 on 32-bit Windows 7)

    Make sure you are creating/copying "userDefineLang.xml" in the right folder (Win7 default: C:Users[your account]AppDataRoamingNotepad++) and that the .xml file is named exactly that.

    If you've set it up correctly, in N++ the UnrealScript option will appear at the bottom of the Languages menu.

    ReplyDelete
  17. The link of "the UnrealScript Highlighter for Notepad++" has an error

    ReplyDelete
  18. There's one here. I just downloaded it and got it working.
    http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=User_Defined_Language_Files

    ReplyDelete
  19. The Best 3D Animation Software Review...

    [...]Setting up a Notepad++ Environment « Allar's AWESOME Blog[...]...

    ReplyDelete
  20. knocko...

    [...]Setting up a Notepad++ Environment « Allar's AWESOME Blog[...]...

    ReplyDelete