View Single Post
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 07-18-2018 , 16:27   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #86

Quote:
Originally Posted by OciXCrom View Post
What do you mean by "restore the other include files from a backup"?
I though your other compiler include folder was overwrite by that line.

I figured out why this error. When the script is calling the other compiler, it is passing the current folder compiler include folder as parameter, then it is shadowing the other compiler's includes with the current one.
Code:
File: .bat
121: :: To call the compiler to compile the plugin to the output folder $PLUGIN_BINARY_FILE_PATH
122: "%AMXX_COMPILER_PATH%" -i"%SOURCE_CODE_INCLUDE_FOLDER%/" -o"%PLUGIN_BINARY_FILE_PATH%" "%PLUGIN_SOURCE_CODE_FILE_PATH%"
Then, try to replace these lines on the diff: https://github.com/evandrocoan/AmxxEditor/commit/cbede59bd9a45d1ffe90f87e6cef8d90c2952907
This is computing the other's compiler include folder and adding it before the current compiler's include, then this should fix it.

Quote:
Originally Posted by OciXCrom View Post
Also, .inc files don't use the AMXX syntax by default when opened.
I am not sure why this is happening, as by default that should be working.

Anyways, you can force all files with `.inc` extension to open with the correct syntax:
  1. Opening a `.inc` file
  2. And going on the menu `View -> Syntax -> Open all with current extension as... -> Amxmodx -> AmxmodxPawn`

__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective
addons_zz is offline