sublime text
#1
Pues, estaba intentado probar el sublime text para ver como era xD pero no tengo ni la menor idea de como configurarlo alguien me explica ya tengo el zip y esas cosas.

Whatever
Si no te gusta algo, cámbialo. Si no lo puedes cambiar, cambia la forma en que piensas sobre ello <3
Responder
#2
Instalar paquete:
Cita:- Ir al menu "Preferences" -> "Browse Packages".
- Retroceder un directorio y abrir la carpeta "Installed Packages".
- Cerrar el SublimeText.
- Descargar "amxx-editor.zip" (adjunto abajo).
- Extraer el contenido.
- Copiar el archivo "amxmodx.sublime-package" en la carpeta "Installed Packages".
- Abrir el SublimeText.
- Completar los datos y guardar:
Código:
{
    // Example:
    "include_directory":    "C:\\amxmodx\\scripting\\include\\",    // Path to includes folder
    "output_directory":     "C:\\amxmodx\\plugins\\",                // Path to save compiled plugin
    "amxxpc_directory":     "C:\\amxmodx\\scripting\\amxxpc.exe",    // Path to compiler program

    "amxxpc_debug":         2,            // ( 0 ~ 2 )            Compiler debug level ( AMXX-Studio use 2 )

    "enable_inteltip":         true,        // ( true / false )     Enable IntelTip PopUp
    "enable_buildversion":     true,        // ( true / false )     Enable Auto-Increment Build/Version
    "debug_level":             0,            // ( 0 ~ 3 )             Enable editor debug messages
    "color_scheme":         "dark",     // ( color name )        Set color scheme ( dark / twlight / atomic / white / npp )

    "live_refresh_delay":     1.0         // ( 0.5 ~ 5.0 )         Delay before regenerating auto-completion snippets
}
-Abrir algún .sma. Ir a "View" -> "Syntax" -> "Open all with current extension at as" -> "amxmodx" -> "AMXX-Pawn"
Trolleyes
Responder
#3
Eso hago, pero me tira error al compilar...

Hago todo como dice hay.

Al darle a compilar me tira estos errores

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2013 ITB CompuPhase, AMX Mod X Team

.p(0) : fatal error 100: cannot read from file: ".p"

Compilation aborted.
1 Error.
Could not locate output file C:\amxmodx\plugins/.amx (compile failed).
[Finished in 0.2s]
Si no te gusta algo, cámbialo. Si no lo puedes cambiar, cambia la forma en que piensas sobre ello <3
Responder
#4
(08/07/2018, 01:00 AM)Saber escribió: Eso hago, pero me tira error al compilar...

Hago todo como dice hay.

Al darle a compilar me tira estos errores

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2013 ITB CompuPhase, AMX Mod X Team

.p(0) : fatal error 100: cannot read from file: ".p"

Compilation aborted.
1 Error.
Could not locate output file C:\amxmodx\plugins/.amx (compile failed).
[Finished in 0.2s]

Guardaste el sma ? y colocaste la direccion de amxxpc.exe de tu servidor ejemplo la mia

Cita:{
// User Setting:
"include_directory": "C:\\Users\\Francisco Vidal\\Desktop\\Servidor\\cstrike\\addons\\amxmodx\\scripting\\include\\", // Pa que lea los include
"output_directory": "C:\\Users\\Francisco Vidal\\Desktop\\", // Cuando compilas la extencion .amxx ira a desktop o mas bien dicho escritorio
"amxxpc_directory": "C:\\Users\\Francisco Vidal\\Desktop\\Servidor\\cstrike\\addons\\amxmodx\\scripting\\amxxpc.exe", // Te lee el amxxpc.exe igual al AMX Studio

"amxxpc_debug": 2, // ( 0 ~ 2 ) Compiler debug level ( AMXX-Studio use 2 )

"enable_inteltip": true, // ( true / false ) Enable IntelTip PopUp
"enable_buildversion": true, // ( true / false ) Enable Auto-Increment Build/Version
"debug_level": 0, // ( 0 ~ 3 ) Enable editor debug messages
"color_scheme": "white", // ( color name ) Set color scheme ( dark / twlight / atomic / white / npp )
"live_refresh_delay": 1.0 // ( 0.5 ~ 5.0 ) Delay before regenerating auto-completion snippets
}
Trolleyes
Responder
#5
Antes de compilar dale a File / Save with Encoding / UTF-8 with BOM, busca donde guardar el .sma y ponele un nombre mas el .sma.

Ejemplo AMXX_Test.sma
Responder
#6
(08/07/2018, 01:00 AM)Saber escribió: Eso hago, pero me tira error al compilar...

Hago todo como dice hay.

Al darle a compilar me tira estos errores

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2013 ITB CompuPhase, AMX Mod X Team

.p(0) : fatal error 100: cannot read from file: ".p"

Compilation aborted.
1 Error.
Could not locate output file C:\amxmodx\plugins/.amx (compile failed).
[Finished in 0.2s]

Debiste verte equivocado en la la dirrecion o instalación de las rutas.

Ejemplo:

Cita:{
// User Setting:
"include_directory": "C:\\Intel\\Proyecto Nexo Zombie VHE\\addons\\amxmodx\\scripting\\include\\", // Path to includes folder
"output_directory": "C:\\Users\\JesusXP007\\Desktop\\", // Path to save compiled plugin
"amxxpc_directory": "C:\\Program Files\\Counter-Strike_1.6_RAJAGAME\\cstrike\\addons\\amxmodx\\scripting\\amxxpc.exe", // Path to compiler program

"amxxpc_debug": 2, // ( 0 ~ 2 ) Compiler debug level ( AMXX-Studio use 2 )

"enable_inteltip": true, // ( true / false ) Enable IntelTip PopUp
"enable_buildversion": true, // ( true / false ) Enable Auto-Increment Build/Version
"debug_level": 0, // ( 0 ~ 3 ) Enable editor debug messages
"color_scheme": "dark", // ( color name ) Set color scheme ( dark / twlight / atomic / white / npp )
"live_refresh_delay": 1.0 // ( 0.5 ~ 5.0 ) Delay before regenerating auto-completion snippets
}

Dale en "amxmod-x" y en "edit setting".
[Imagen: jrXxqRT.png]
*Maper Del Cstrike* - *Estudiante De Sistema*
(03/09/2018, 08:32 PM)Skylar escribió: Obviamente, no va a hablar con super pro para que le mueva el thread
(04/01/2019, 05:12 PM)Pan Bimbo (? escribió: QUE HICISTE QUE??????? YO QUERIA LA PLACA DE VIDEO PORQUE LA TIRASTE CTM
(15/01/2019, 04:08 AM)FreDDy escribió:
(15/01/2019, 03:45 AM)Hernandez escribió: Qué más dan las palabras si a donde vayas están en tetas protestando sin sentido

No todas salen en tetas y no todas protestan sin sentido. Estás generalizando algo que sólo unas pocas lo hacen a diferencia de las muchas que realmente tienen un motivo para protestar.
(17/01/2019, 12:34 PM)totopizza escribió: el orden de los factores no altera el producto xD
(23/01/2019, 01:10 AM)GoldenCosta escribió:
Cita:E visto que este ZP , ESTA AQUI EN EL FORO PERO NO ES EL ORIGINAL POR QUE? , LE FALTAN MILES DE COSAS ESTA BUGEADO , LE FALTAN CÓDIGOS NI SE IMAGINAN , BUENO EL MOD ESTE SE VENDE POR 70 DOLARES , ACEPTO PAYPAL Y EN PESOS CHILENOS $42.584
ya esta publicado.... y 70 us en arg son 2625,35 pesos... estas loco con esa guita neel mantiene el foro por 2 años
(23/01/2019, 01:17 AM)Skylar escribió:
(22/01/2019, 10:30 PM)el_juan_fail escribió:
(22/01/2019, 10:03 AM)Neeeeeeeeeel.- escribió: Por favor subir las cosas al foro y no links a blogs externos. Solamente en caso de que haya recursos que no se pudiesen subir por un tema de tamaño, poenr un link de descarga directo (tipo mega) de los recursos y subir los plugins y demás archivos livianos al foro.

deberia ponerle en un link mediante el mediafire o mega o link externo lo que sea pero no es bueno dejar cosa agregada sin descargar solo por el blog no se puede se puede bajar el recurso o que haya sido creado disculpa neeeeel. estaba leyendose las reglas u.uMario

Dijiste lo mismo que dijo Neeel!
(27/02/2019, 08:00 PM)Sugisaki escribió:
(27/02/2019, 05:37 PM)Pan Bimbo (? escribió:
(27/02/2019, 12:06 AM)luxor xD escribió: Hola, si precacheo algo en un plugin, no es necesario precachearlo en otro plugin?

Si yo cargo una caja en un camion, mi amigo puede cargar la MISMA caja en el camion?, y no porque ya esta cargada.
[R]ak escribió: Mis conocimientos aumentaron un 500% con este post
(14/03/2019, 10:26 PM)KrR10VnZl escribió: en Venezuela aprendes a ser desde bombas molotov hasta velas, es algo así como supervivencia al desnudo jaja
(18/04/2019, 11:04 PM)Jose88 escribió:
(18/04/2019, 09:55 PM)Hypnotize escribió: arriba marica

papa me va perdonar pero aquí no sale ningún download. solo sale esto

Código PHP:
PDNiños Ratas eviten sacar el autor jaja.
REMOVIDO POR TUTOR Y SLOWHACK
(21/04/2019, 09:38 AM)SHENK! =D escribió: ASDASD

Si nos organizamos cojemos todos.
(11/08/2019, 05:11 PM)Cr3470r escribió: Todo Software es crackeable ... No importa cuantas validaciones hagan, la ventaja siempre la tenemos nosotros ...
(28/07/2015, 09:34 PM)Nazi.- escribió: :ohgodwhy buen aporte

PD: situación sentimental: Sin internetOh god why

Sigue así Proud

(28/02/2020, 12:23 AM)Skylar escribió:
(27/02/2020, 11:28 PM)4evergaming escribió: Ya me puse como autor y lo subi a mi empresa


Abrazos

FIX
Responder
#7
{
// User Setting:
"include_directory": "C:\\Program Files\\AMX Mod X\\addons\\amxmodx\\scripting\\include", // Path to includes folder
"output_directory": "C:\\amxmodx\\plugins\\", // Path to save compiled plugin
"amxxpc_directory": "C:\\Program Files\\AMX Mod X\\addons\\amxmodx\\scripting\\amxxpc.exe", // Path to compiler program

"amxxpc_debug": 2, // ( 0 ~ 2 ) Compiler debug level ( AMXX-Studio use 2 )

"enable_inteltip": true, // ( true / false ) Enable IntelTip PopUp
"enable_buildversion": true, // ( true / false ) Enable Auto-Increment Build/Version
"debug_level": 0, // ( 0 ~ 3 ) Enable editor debug messages
"color_scheme": "dark", // ( color name ) Set color scheme ( dark / twlight / atomic / white / npp )
"live_refresh_delay": 1.0 // ( 0.5 ~ 5.0 ) Delay before regenerating auto-completion snippets
}

Asi la tengo
Si no te gusta algo, cámbialo. Si no lo puedes cambiar, cambia la forma en que piensas sobre ello <3
Responder
#8
Cita:"output_directory": "C:\\amxmodx\\plugins\\", // Path to save compiled plugin

Ese es problema, no pusiste una dirección, cambia la dirección.

Ejemplo:

Cita:"output_directory": "C:\\Users\\Saber\\Desktop\\", // Path to save compiled plugin
[Imagen: jrXxqRT.png]
*Maper Del Cstrike* - *Estudiante De Sistema*
(03/09/2018, 08:32 PM)Skylar escribió: Obviamente, no va a hablar con super pro para que le mueva el thread
(04/01/2019, 05:12 PM)Pan Bimbo (? escribió: QUE HICISTE QUE??????? YO QUERIA LA PLACA DE VIDEO PORQUE LA TIRASTE CTM
(15/01/2019, 04:08 AM)FreDDy escribió:
(15/01/2019, 03:45 AM)Hernandez escribió: Qué más dan las palabras si a donde vayas están en tetas protestando sin sentido

No todas salen en tetas y no todas protestan sin sentido. Estás generalizando algo que sólo unas pocas lo hacen a diferencia de las muchas que realmente tienen un motivo para protestar.
(17/01/2019, 12:34 PM)totopizza escribió: el orden de los factores no altera el producto xD
(23/01/2019, 01:10 AM)GoldenCosta escribió:
Cita:E visto que este ZP , ESTA AQUI EN EL FORO PERO NO ES EL ORIGINAL POR QUE? , LE FALTAN MILES DE COSAS ESTA BUGEADO , LE FALTAN CÓDIGOS NI SE IMAGINAN , BUENO EL MOD ESTE SE VENDE POR 70 DOLARES , ACEPTO PAYPAL Y EN PESOS CHILENOS $42.584
ya esta publicado.... y 70 us en arg son 2625,35 pesos... estas loco con esa guita neel mantiene el foro por 2 años
(23/01/2019, 01:17 AM)Skylar escribió:
(22/01/2019, 10:30 PM)el_juan_fail escribió:
(22/01/2019, 10:03 AM)Neeeeeeeeeel.- escribió: Por favor subir las cosas al foro y no links a blogs externos. Solamente en caso de que haya recursos que no se pudiesen subir por un tema de tamaño, poenr un link de descarga directo (tipo mega) de los recursos y subir los plugins y demás archivos livianos al foro.

deberia ponerle en un link mediante el mediafire o mega o link externo lo que sea pero no es bueno dejar cosa agregada sin descargar solo por el blog no se puede se puede bajar el recurso o que haya sido creado disculpa neeeeel. estaba leyendose las reglas u.uMario

Dijiste lo mismo que dijo Neeel!
(27/02/2019, 08:00 PM)Sugisaki escribió:
(27/02/2019, 05:37 PM)Pan Bimbo (? escribió:
(27/02/2019, 12:06 AM)luxor xD escribió: Hola, si precacheo algo en un plugin, no es necesario precachearlo en otro plugin?

Si yo cargo una caja en un camion, mi amigo puede cargar la MISMA caja en el camion?, y no porque ya esta cargada.
[R]ak escribió: Mis conocimientos aumentaron un 500% con este post
(14/03/2019, 10:26 PM)KrR10VnZl escribió: en Venezuela aprendes a ser desde bombas molotov hasta velas, es algo así como supervivencia al desnudo jaja
(18/04/2019, 11:04 PM)Jose88 escribió:
(18/04/2019, 09:55 PM)Hypnotize escribió: arriba marica

papa me va perdonar pero aquí no sale ningún download. solo sale esto

Código PHP:
PDNiños Ratas eviten sacar el autor jaja.
REMOVIDO POR TUTOR Y SLOWHACK
(21/04/2019, 09:38 AM)SHENK! =D escribió: ASDASD

Si nos organizamos cojemos todos.
(11/08/2019, 05:11 PM)Cr3470r escribió: Todo Software es crackeable ... No importa cuantas validaciones hagan, la ventaja siempre la tenemos nosotros ...
(28/07/2015, 09:34 PM)Nazi.- escribió: :ohgodwhy buen aporte

PD: situación sentimental: Sin internetOh god why

Sigue así Proud

(28/02/2020, 12:23 AM)Skylar escribió:
(27/02/2020, 11:28 PM)4evergaming escribió: Ya me puse como autor y lo subi a mi empresa


Abrazos

FIX
Responder
#9
me tira este error, sigue siendo el mismo

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2013 ITB CompuPhase, AMX Mod X Team

C:\Users\Usuario\Desktop\prueba.p(0) : fatal error 100: cannot read from file: "C:\Users\Usuario\Desktop\prueba.p"

Compilation aborted.
1 Error.
Could not locate output file C:\Users\Usuario\Desktop\plugins compilados con sublime//prueba.amx (compile failed).
[Finished in 0.1s]


Asi lo tengo configurado

// User Setting:
"include_directory": "C:\\Program Files\\AMX Mod X\\addons\\amxmodx\\scripting\\include", // Path to includes folder
"output_directory": "C:\\Users\\Usuario\\Desktop\\plugins compilados con sublime\\", // Path to save compiled plugin
"amxxpc_directory": "C:\\Program Files\\AMX Mod X\\addons\\amxmodx\\scripting\\amxxpc.exe", // Path to compiler program

"amxxpc_debug": 2, // ( 0 ~ 2 ) Compiler debug level ( AMXX-Studio use 2 )

"enable_inteltip": true, // ( true / false ) Enable IntelTip PopUp
"enable_buildversion": true, // ( true / false ) Enable Auto-Increment Build/Version
"debug_level": 0, // ( 0 ~ 3 ) Enable editor debug messages
"color_scheme": "dark", // ( color name ) Set color scheme ( dark / twlight / atomic / white / npp )
"live_refresh_delay": 1.0 // ( 0.5 ~ 5.0 ) Delay before regenerating auto-completion snippets
Si no te gusta algo, cámbialo. Si no lo puedes cambiar, cambia la forma en que piensas sobre ello <3
Responder
#10
Guardaste el sma como te dije ? Ragestart


pd : y trata de que la carpeta donde vayan compilado no tengan tan separas las letras ejemplo


"PluginCompilados"
Trolleyes
Responder
#11
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2013 ITB CompuPhase, AMX Mod X Team

C:\Users\Usuario\Desktop\plugins\prueba.p(0) : fatal error 100: cannot read from file: "C:\Users\Usuario\Desktop\plugins\prueba.p"

Compilation aborted.
1 Error.
Could not locate output file C:\Users\Usuario\Desktop\plugins//prueba.amx (compile failed).
[Finished in 0.1s]

Sigue tirando el error, si si lo guarde, si miras se llama prueba
Si no te gusta algo, cámbialo. Si no lo puedes cambiar, cambia la forma en que piensas sobre ello <3
Responder
#12
"output_directory": "C:\\Users\\Usuario\\Desktop\\plugins compilados con sublime\\",


"output_directory": "C:\\Program Files\\AMX Mod X\\addons\\amxmodx\\plugins",

te vas a la carpeta addons arrastras la carpeta amxmodx a sublime dentro de sublime abris un sma el que mas te guste y compila
Responder
#13
Si quiera intentaste lo qué yo te dije?. Whatever
Responder
#14
No, pues no te habia leido, pero igual tira el mismo error

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2013 ITB CompuPhase, AMX Mod X Team

C:\Users\Usuario\Desktop\PluginsSublimeText\prueba.sma(1) : error 010: invalid function or declaration

1 Error.
Could not locate output file C:\Users\Usuario\Desktop//prueba.amx (compile failed).
[Finished in 1.3s]

No se si sea que hago algo mal Whatdone

pero, yo descargo el sublime, y el amxx-editor.rar

luego intalo el sublime, voy a preference buscar paquetes (español)... Hago los pasos de destro

Luego despues de completar todo, hago un plugins simple Whatever para probar y tira el error Genius
Si no te gusta algo, cámbialo. Si no lo puedes cambiar, cambia la forma en que piensas sobre ello <3
Responder
#15
(08/07/2018, 09:53 PM)Saber escribió: No, pues no te habia leido, pero igual tira el mismo error

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2013 ITB CompuPhase, AMX Mod X Team

C:\Users\Usuario\Desktop\PluginsSublimeText\prueba.sma(1) : error 010: invalid function or declaration

1 Error.
Could not locate output file C:\Users\Usuario\Desktop//prueba.amx (compile failed).
[Finished in 1.3s]

No se si sea que hago algo mal Whatdone

pero, yo descargo el sublime, y el amxx-editor.rar

luego intalo el sublime, voy a preference buscar paquetes (español)... Hago los pasos de destro

Luego despues de completar todo, hago un plugins simple Whatever para probar y tira el error Genius

Ahora probando me tira el mismo error qué a vos. Whatever

Sí alguien tiene alguna solución, gracias.
Responder
#16
Segun lo que veo, es un error en la ruta output (No se escribirlo en ingles xD) Whatever

Pense que era ignorancia mia, pero ya chema confirmo que no.
Si no te gusta algo, cámbialo. Si no lo puedes cambiar, cambia la forma en que piensas sobre ello <3
Responder
#17
Abrís según corresponda tu sistema operativo
[Imagen: DULrul.jpg]

Yo utilizo Windows. Lo acomodé (no gran cambio) para que el output se parezca al mismo que en AMXx Studio.

En fin, sólo tienes que modificar dos rutas, están muy al principio previo al gran espacio en blanco.
La ruta de tu carpeta plugins (es donde se guardará el .amxx) y la ruta del compilador (amxxpc).

El siguiente código visto desde Sublime es así (sin los indicativos rojos):
[Imagen: Fk1P6T.jpg]

Es decir, notarás fácilmente lo que tienes que modificar.
Código:
@echo off

:: AMXX Plugin Compiler Script
::
::  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]=C:\folder to\addons\amxmodx\plugins"
::set "folders_list[0]=F:\SteamCMD\steamapps\common\Half-Life\cstrike\addons\amxmodx\plugins"
::set "folders_list[1]=F:\SteamCMD\steamapps\common\Half-Life\czero\addons\amxmodx\plugins"
::set "folders_list[2]=F:\SteamLibrary\steamapps\common\Sven Co-op Dedicated Server\svencoop\addons\amxmodx\plugins"

:: Where is your compiler?
::
:: Example:
:: F:\SteamCMD\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\amxxpc.exe
::
set "AMXX_COMPILER_PATH=C:\folder to\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=%%~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

edit: leyendo sus comentarios; tienes que remover las configuraciones de usuario que hiciste para que no haya conflicto, yo había modificado este archivo únicamente según recuerdo y veo.
Responder
#18
VisualStudio Code se ve mejor
Competitive/Face it Pick Up Game (PUG) servidor de prueba: 45.77.94.109:27016 Click para Entrar
[Imagen: b_350_20_5A6C3E_383F2D_D2E1B5_2E3226.png]

(14/08/2015, 10:15 PM)Sugisaki escribió: "El mundo es caotico, irracional e injusto. No tiene ningun significado"
Palabras que desde hace mucho tiempo he buscado para describir, ¿Que es el mundo?
Crab

Código PHP:
if(ayuda && free)
{
    exit();

Responder
#19
(27/08/2018, 10:29 AM)Sugisaki escribió: VisualStudio Code se ve mejor

Se puede utilizar para compilar plugins? Rainbow
Responder
#20
(08/07/2018, 09:53 PM)Saber escribió: No, pues no te habia leido, pero igual tira el mismo error

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2013 ITB CompuPhase, AMX Mod X Team

C:\Users\Usuario\Desktop\PluginsSublimeText\prueba.sma(1) : error 010: invalid function or declaration

1 Error.
Could not locate output file C:\Users\Usuario\Desktop//prueba.amx (compile failed).
[Finished in 1.3s]

No se si sea que hago algo mal Whatdone

pero, yo descargo el sublime, y el amxx-editor.rar

luego intalo el sublime, voy a preference buscar paquetes (español)... Hago los pasos de destro

Luego despues de completar todo, hago un plugins simple Whatever para probar y tira el error Genius

No sera esto ?)

Could not locate output file C:\Users\Usuario\Desktop//prueba.amx (compile failed).

Lo estas configurando mal, si quieres abrimos TeamViewer y te ayudo Mario
[Imagen: 76561198350936449.png]

Cita:Los precios en la moneda venezolana se fijarán a partir de la reconversión monetaria y valdrá mucho menos de lo que cuesta una Cachapa con queso.
Responder
#21
(27/08/2018, 10:43 AM)Chema escribió:
(27/08/2018, 10:29 AM)Sugisaki escribió: VisualStudio Code se ve mejor

Se puede utilizar para compilar plugins? Rainbow

yep

por defecto: ctlr+shift+p
Competitive/Face it Pick Up Game (PUG) servidor de prueba: 45.77.94.109:27016 Click para Entrar
[Imagen: b_350_20_5A6C3E_383F2D_D2E1B5_2E3226.png]

(14/08/2015, 10:15 PM)Sugisaki escribió: "El mundo es caotico, irracional e injusto. No tiene ningun significado"
Palabras que desde hace mucho tiempo he buscado para describir, ¿Que es el mundo?
Crab

Código PHP:
if(ayuda && free)
{
    exit();

Responder
#22
(27/08/2018, 07:47 PM)Sugisaki escribió:
(27/08/2018, 10:43 AM)Chema escribió:
(27/08/2018, 10:29 AM)Sugisaki escribió: VisualStudio Code se ve mejor

Se puede utilizar para compilar plugins? Rainbow

yep

por defecto: ctlr+shift+p

recien veo esto, como se puede configurar para amxmodx?
Responder
#23
Thinking para poder compilar F7 Victory
Responder
#24
(28/08/2018, 01:44 AM)Chori escribió: Thinking para poder compilar F7 Victory

Cerealspit .-. F7 esta nulo en el Sublime Tex 3, según yo, nose...
Responder
#25
(28/08/2018, 01:47 AM)El pirucho XP-007 escribió:
(28/08/2018, 01:44 AM)Chori escribió: Thinking para poder compilar F7 Victory

Cerealspit .-. F7 esta nulo en el Sublime Tex 3, según yo, nose...

GeniusGenius

para que comentas si no sabes y parece que no tenes sublime proba o que pruebe alguien que tenga sublime 3

te lo busque para que veas
Cita: { "keys": ["f7"], "command": "build" },
{ "keys": ["ctrl+b"], "command": "build" },
{ "keys": ["ctrl+shift+b"], "command": "build", "args": {"select": true} },
{ "keys": ["ctrl+break"], "command": "cancel_build" },

si no te anda esta nulo jaja

te vas a prederences / Key Bindings primero lo busca en Default
si no esta lo pegas en user
Responder


Salto de foro:


Usuarios navegando en este tema: 2 invitado(s)