Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
This is happening because the package Notepad++ Color Scheme has the wrong version installed.
May be you have and old version of Sublime Text installed. You should use the latest stable version right now, which is 3176.
Anyways, you can always fix this with the following steps:
To the the menu `Preferences -> Browse Packages...`
Close Sublime Text
If you find a directory called `Notepad++ Color Scheme`, delete the directory `Notepad++ Color Scheme`.
If you cannot find a directory called `Notepad++ Color Scheme`, it means the package installed on the directory `Installed Packages`.
To open the `Installed Packages` directory, just move one directory up: (you will be here)
Then, delete the file `Notepad++ Color Scheme.sublime-package` inside the directory `Installed Packages`
Open Sublime Text again, it should complain/show an error about a missing package
Just hit OK and Restart Sublime Text
Quote:
Originally Posted by iceeedr
After a few seconds the errors.
This is a bug which happens on Package Control and Sublime Text when it is upgrading/updating too much packages at the same time. See these links for more information:
I managed to fix it early this month, but just noticed I had forgot release a fix for it here.
My fix was to replace the Package Control you have installed right now, by my version of it called PackagesManager.
I just released a new version on the first post replacing Package Control by PackagesManager.
Quote:
Originally Posted by iceeedr
And after this question, where do I click? I already put no, I already put ... I could not install
If you select the second option, and press enter, will stop showing up.
As I already explained before for the other bug, as soon as the next Pull Request gets merged, I should release a new version improving this menu, making it more clear.
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
After I installed the package, I can no longer ctrl+click to put multiple cursors on the screen. I tried removing it and it fixed the problem. Any ideas?
Spoiler
Also, trying to run multiple compilers according to your tutorial a few pages back gives me this error:
PHP Code:
[WinError 2] The system cannot find the file specified [cmd: ['E:\\OciXCrom\\Programs\\Sublime Text 3\\Data\\Packages/User/Amxmodx/Dust2Respawn.bat', 'E:\\OciXCrom\\Servers\\iPlay.bg Dust2+Respawn\\cstrike\\addons\\amxmodx\\scripting\\test.sma', 'test', 'E:\\OciXCrom\\Programs\\Sublime Text 3\\Data\\Packages', 'E:\\OciXCrom\\Servers\\iPlay.bg Dust2+Respawn\\cstrike\\addons\\amxmodx\\scripting']] [dir: E:\OciXCrom\Servers\iPlay.bg Dust2+Respawn\cstrike\addons\amxmodx\scripting] [path: C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%SYSTEMROOT%\System32\OpenSSH\;C:\Users\OciXCrom\AppData\Local\Microsoft\WindowsApps;] [Finished]
:: AMXX Plugin Compiler Script :: Copyright (C) 2017-2018 Evandro Coan <https://github.com/evandrocoan> :: :: Redistributions of source code must retain the above :: copyright notice, this list of conditions and the :: following disclaimer. :: :: Redistributions in binary form must reproduce the above :: copyright notice, this list of conditions and the following :: disclaimer in the documentation and/or other materials :: provided with the distribution. :: :: Neither the name Evandro Coan nor the names of any :: contributors may be used to endorse or promote products :: derived from this software without specific prior written :: permission. :: :: This program is free software; you can redistribute it and/or modify it :: under the terms of the GNU General Public License as published by the :: Free Software Foundation; either version 2 of the License, or ( at :: your option ) any later version. :: :: This program is distributed in the hope that it will be useful, but :: WITHOUT ANY WARRANTY; without even the implied warranty of :: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. :: See the GNU General Public License for more details. :: :: You should have received a copy of the GNU General Public License :: along with this program. If not, see <http://www.gnu.org/licenses/>. ::
:: Get the current date to the variable CURRENT_DATE for /f %%i in ('date /T') do set CURRENT_DATE=%%i
:: The format of %TIME% is HH:MM:SS,CS for example 23:59:59,99 echo. echo Compiling %2... Current time is: %TIME% - %CURRENT_DATE% echo.
:: Put here the paths to the folders where do you want to install the plugin. :: You must to provide at least one folder. set "folders_list[0]=E:\OciXCrom\Servers\iPlay.bg Dust2+Respawn\cstrike\addons\amxmodx\plugins"
:: Where is your compiler? :: :: Example: :: F:\SteamCMD\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\amxxpc.exe :: set "AMXX_COMPILER_PATH=E:\OciXCrom\Servers\iPlay.bg Dust2+Respawn\cstrike\addons\amxmodx\scripting\amxxpc.exe"
:: :: Setup the time calculation script :: :: Time calculation downloaded from: :: http://stackoverflow.com/questions/9922498/calculate-time-difference-in-windows-batch-file :: :: AMX Mod X compiling batch downloaded from: :: https://github.com/alliedmodders/amxmodx/pull/212/commits
:: Here begins the command you want to measure for /F "tokens=1-4 delims=:.," %%a in ("%time%") do ( set /A "start=(((%%a*60)+1%%b %% 100)*60+1%%c %% 100)*100+1%%d %% 100" )
:: :: Setup the batch variables :: Example: $1=F:\SteamCMD\steamapps\common\Half-Life\czero\addons\my_plugin.sma :: :: $1 is the first shell argument and $2 is the second shell argument passed by AmxxEditor.sublime-build :: Usually they should be the plugin's file full path and the plugin's file name without extension. :: :: Removing double quotes from variables in batch file creates problems with CMD environment :: https://stackoverflow.com/questions/1964192/removing-double-quotes-from-variables-in-batch-file-creates-problems-with-cmd-en set "PLUGIN_SOURCE_CODE_FILE_PATH=%1" set "PLUGIN_SOURCE_CODE_FILE_PATH=%PLUGIN_SOURCE_CODE_FILE_PATH:"=%"
:: $4 is the path of the folder where the plugin source code is. :: Example F:\SteamCMD\steamapps\common\Half-Life\czero\addons\ set "SOURCE_CODE_FOLDER=%4" set "SOURCE_CODE_FOLDER=%SOURCE_CODE_FOLDER:"=%" set "SOURCE_CODE_INCLUDE_FOLDER=%SOURCE_CODE_FOLDER%\include"
:: Example: $2="my_plugin" set "PLUGIN_BASE_FILE_NAME=%2" set "PLUGIN_BASE_FILE_NAME=%PLUGIN_BASE_FILE_NAME:"=%" set "PLUGIN_BINARY_FILE_PATH=%folders_list[0]%\%PLUGIN_BASE_FILE_NAME%.amxx"
:: Set a path variable with spaces in the path in a Windows .cmd file or batch file :: https://stackoverflow.com/questions/1851012/set-a-path-variable-with-spaces-in-the-path-in-a-windows-cmd-file-or-batch-file IF "%PLUGIN_BASE_FILE_NAME%"=="" echo You must to save the plugin before to compile it. & goto end
:: :: Compile the AMXX plugin :compile_the_plugin
:: Build the compiler include folder path :: https://stackoverflow.com/questions/15567809/batch-extract-path-and-filename-from-a-variable :: set AMXX_COMPILER_PATH=C:\Somewhere\Somewhere\SomeFile.txt FOR /F "delims=" %%i IN ("%AMXX_COMPILER_PATH%") DO ( set "AMXX_COMPILER_FOLDER=%%~di%%~pi" )
:: Build the compiler include folder path set "COMPILER_INCLUDE_FOLDER_PATH=%AMXX_COMPILER_FOLDER%include"
:: Delete the old binary in case some crazy problem on the compiler, or in the system while copy it. :: So, this way there is not way you are going to use the wrong version of the plugin without knowing it. IF EXIST "%PLUGIN_BINARY_FILE_PATH%" del "%PLUGIN_BINARY_FILE_PATH%"
:: To call the compiler to compile the plugin to the output folder $PLUGIN_BINARY_FILE_PATH :: Comment the following line and uncomment the next line to it, if you not want to override your compiler files "%AMXX_COMPILER_PATH%" -i"%SOURCE_CODE_INCLUDE_FOLDER%" -o"%PLUGIN_BINARY_FILE_PATH%" "%PLUGIN_SOURCE_CODE_FILE_PATH%" :: "%AMXX_COMPILER_PATH%" -i"%COMPILER_INCLUDE_FOLDER_PATH%" -i"%SOURCE_CODE_INCLUDE_FOLDER%" -o"%PLUGIN_BINARY_FILE_PATH%" "%PLUGIN_SOURCE_CODE_FILE_PATH%"
:: If there was a compilation error, there is nothing more to be done. IF NOT EXIST "%PLUGIN_BINARY_FILE_PATH%" echo There was an compilation error. Exiting... & goto end
:: :: Copy the compiled plugin to the game folder(s) :: echo. echo 1 File(s) copied, to the folder %PLUGIN_BINARY_FILE_PATH%
:: Initial array index to loop into. set "currentIndex=0"
:: Loop throw all games to install the new files. :SymLoop
:: Update the next 'for/array' index to copy/install. set /a "currentIndex+=1"
if defined folders_list[%currentIndex%] (
:: Some how the AMXX compiler could not compiling/copied some times, so let us know when it does not. setlocal EnableDelayedExpansion
IF NOT EXIST "!folders_list[%currentIndex%]!" ( echo Error: The destine folder does not exists: !folders_list[%currentIndex%]! goto :SymLoop )
:: Try to delete the file only if it exists IF EXIST "!folders_list[%currentIndex%]!\%PLUGIN_BASE_FILE_NAME%.amxx" del "!folders_list[%currentIndex%]!\%PLUGIN_BASE_FILE_NAME%.amxx"
:: To do the actual copying/installing. for /f "delims=" %%a in ( 'xcopy /S /Y "%PLUGIN_BINARY_FILE_PATH%"^ "!folders_list[%currentIndex%]!"^|find /v "%PLUGIN_BASE_FILE_NAME%"' ) do echo %%a, to the folder !folders_list[%currentIndex%]!
goto :SymLoop )
:: :: The end of the compilation :: :end
:: Calculating the duration is easy for /F "tokens=1-4 delims=:.," %%a in ("%time%") do ( set /A "end=(((%%a*60)+1%%b %% 100)*60+1%%c %% 100)*100+1%%d %% 100" )
:: Get elapsed time set /A elapsed=end-start
:: Show elapsed time: set /A hh=elapsed/(60*60*100), rest=elapsed%%(60*60*100), mm=rest/(60*100), rest%%=60*100, ss=rest/100, cc=rest%%100 if %mm% lss 10 set mm=0%mm% if %ss% lss 10 set ss=0%ss% if %cc% lss 10 set cc=0%cc%
:: Outputting echo. echo Took %hh%:%mm%:%ss%,%cc% seconds to run this script.
:: Pause the script for result reading, when it is run without any command line parameters echo. if "%PLUGIN_SOURCE_CODE_FILE_PATH%"=="" pause
At the same time, the default Windows Compile option works with the same code as the .bat file.
Edit: I managed to fix the problem. It was that the Amxmodx name was changed to AmxxEditor in the new version.
Edit: I noticed another problem. When I open Sublime and I start scrolling a file, it scrolls it back to the beginning after 3 seconds and another time after another 3 seconds. Looks like it's loading something and it's reopening the file. It's annoying having to wait 6 seconds before you start scrolling.
File "C:\Users\Desktop\AppData\Roaming\Sublime Text 3\Packages\AmxxEditor\AmxxEditor.py", line 72, in <module>
from debug_tools import getLogger
ImportError: No module named 'debug_tools'
Can we get an updated tutorial on how to set up multiple compilers which can be ran individually?
Edit: I managed to do it.
At the end of the year I can write one. But reading old posts on this thread, you will find some steps/information.
Quote:
Originally Posted by iceeedr
How I change the button to compile plugins?
Change it how? From where to where?
Quote:
Originally Posted by OciXCrom
After I installed the package, I can no longer ctrl+click to put multiple cursors on the screen. I tried removing it and it fixed the problem. Any ideas?
It is because I changed the keybind to `Ctrl+Alt+Click`.
Quote:
Originally Posted by OciXCrom
I noticed another problem. When I open Sublime and I start scrolling a file, it scrolls it back to the beginning after 3 seconds and another time after another 3 seconds. Looks like it's loading something and it's reopening the file. It's annoying having to wait 6 seconds before you start scrolling.
To stop this, just disable the package `FixProjectSwitchRestartBug`. To disable it, you can go to the menu `Tools -> Command Palette` and type `Disable Package`, press enter, then type the name of the package.
Quote:
Originally Posted by CrazY.
There is a new error in the package
Code:
File "C:\Users\Desktop\AppData\Roaming\Sublime Text 3\Packages\AmxxEditor\AmxxEditor.py", line 72, in <module>
from debug_tools import getLogger
ImportError: No module named 'debug_tools'
There is 3 months renamed the external dependency of `debug_tools` from `DebugTools` to `debugtools`. This is pending to be renamed here:
1. https://github.com/wbond/package_con...nnel/pull/7389 Fixed my dependencies URLs names not on lowercase convention
But they did not accepted the change, for an unknown reason.
A quick fix should be manually installing the `debug_tools` dependency.
But you can also install it automatically by:
Go to the menu `Preferences -> Package Control`
Type `Add Channel` on the opened quick panel and press enter
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.