| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
hpl2:resources:preprocess [2012/05/07 23:50] homicide13 [Reccomended Extra Installation Setup] |
hpl2:resources:preprocess [2012/06/06 20:37] (current) apjjm [Setting Up] |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| The C pre-processer is a powerful tool that allows programers many options when writing their code - among these options are commands such as #include ””, which allows the user to include the contents from one code file into another. | The C pre-processer is a powerful tool that allows programers many options when writing their code - among these options are commands such as #include ””, which allows the user to include the contents from one code file into another. | ||
| + | |||
| + | [[http://www.frictionalgames.com/forum/thread-12023.html|Original Post]] | ||
| ===== Setting Up ===== | ===== Setting Up ===== | ||
| Line 33: | Line 35: | ||
| - | __Warning: Do not press “run” (or F6 if you bound it) on a script file which ends in ”.hps”! This will wipe the script file!!! Give your script files which use the pre-processor a different extension (E.g .phps or .lhps). u | + | __**Warning: Do not press “run” (or F6 if you bound it) on a script file which ends in ”.hps”! This will wipe the script file!!! Give your script files which use the pre-processor a different extension (E.g .phps or .lhps). ** __ |
| ===== Usage ===== | ===== Usage ===== | ||
| Line 91: | Line 94: | ||
| - Go to where you installed notepad (Probably C:\Program Files\Notepad++ or C:\Program Files (X86)\Notepad++\) | - Go to where you installed notepad (Probably C:\Program Files\Notepad++ or C:\Program Files (X86)\Notepad++\) | ||
| - Go to the folder "Plugins" Then to the folder "APIs" | - Go to the folder "Plugins" Then to the folder "APIs" | ||
| - | - Copy across the downloaded version of "hps.xml" into this folder. If you a prompted to overwrite, say | + | - Copy across the downloaded version of "hps.xml" into this folder. If you a prompted to overwrite, say yes. |
| - | yes | + | |
| - | . | + | |
| - Start notepad++ | - Start notepad++ | ||
| - | - Go into view-> User-Defined Dialogue | + | - Go into view→ User-Defined Dialogue |
| - On the drop-down box, if there is the option to select "HPS", select it and and click "Remove" | - On the drop-down box, if there is the option to select "HPS", select it and and click "Remove" | ||
| - Click import, and import "UserDefinedDialogue.xml" | - Click import, and import "UserDefinedDialogue.xml" | ||
| - | \\ \\ You will now a fixed functions list for amnesia (Adds missing functions & keywords, removes non-existing ones), as well as a new color scheme, folding regions (//+ //- /<nowiki>*</nowiki><nowiki>*</nowiki> <nowiki>*</nowiki><nowiki>*</nowiki>/ //Begin // End) etc. ”.hps, .phps, .lhps” are now detected, and ”#…” are coloured correctly. | + | \\ \\ You will now a fixed functions list for amnesia (Adds missing functions & keywords, removes non-existing ones), as well as a new color scheme, folding regions (//+ //- /<nowiki>*</nowiki><nowiki>*</nowiki> <nowiki>*</nowiki><nowiki>*</nowiki>/ //Begin // End) etc. ”.hps, .phps, .lhps” are now detected, and ”#…” are coloured correctly. |
| - | + | ||
| - | + | ||
| - | Origional thread: [[http://www.frictionalgames.com/forum/thread-12023.html|http://www.frictionalgames.com/forum/thread-12023.html]] | + | |