C4DT Editors

Revision as of 11:01, 19 April 2010 by Mortimer (talk | contribs)

Introduction

As of now, you should have created an OpenClonk project and be sitting in front of something that is quite comparable to the original Clonk Editor. On the left side you have the Project Explorer (or on the right side or wherever you like, since all views can be freely arranged in Eclipse). You can use it to navigate packets as you'd do when using the editor.

Unlike the editor though, files are generally openend not it an external program but in a tab in the Eclipse window. You can still set programs to handle specific files by either using the Open With command in the context menu of the Project Explorer or by setting a program in the preferences. The first method works on a file-by-file basis so you could tell Eclipse to open a specific graphics file with Photoshop while opening others with Paint. The second method (Preferences -> General -> Editors -> File Associations) sets a file association for all files of that type.

Eclipse provides different internal editors for different file types. For Clonk-specific files, C4DT adds some more to the list. Among those are a

  • C4Script Editor
  • Landscape.txt Editor
  • Ini Files Editor (DefCore.txt, ActMap.txt etc)

All editors provided by C4DT offer suitable syntax highlighting. Apart from that they include special support for the types of files they were intended for:

  • The C4Script Editor is supposed to help you write scripts more quickly by displaying errors and warnings contained in the script as soon as you save them and offering you a list of identifiers you can insert in specific places. It also tries to make writing properly formatted scripts easier by automatically inserting closing brackets and indenting. In addition to that it also strives to make navigation among and in scripts easier by hyperlinking between them and providing an outline of the script.
  • The Landscape.txt Editor is tailored for editing - surprise! - Landscape.txt files. Sadly, it doesn't offer a live preview on how the generated map would like so it's probably a good idea to use Mape instead. There are plans to include similar functionality directly in Eclipse though.
  • The Ini Files Editor also includes support for hyperlinks.

Navigation

Getting Content Assistance