AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   The Windows Compile Batch File (https://forums.alliedmods.net/showthread.php?t=130)

cgountanis 03-08-2004 14:35

The Windows Compile Batch File
 
Should be this works great when debugging... try it once and you will see :)

@echo off
rem AMX Mod X
rem
rem by the AMX Mod X Development Team
rem originally developed by OLO
rem
rem This file is part of AMX Mod X.

if not exist compiled mkdir compiled
if exist temp.txt del temp.txt
for %%i in (*.sma) do sc %%i -ocompiled\%%i >> temp.txt
notepad temp.txt
del temp.txt

devicenull 03-08-2004 19:33

Maybe its me, but its saying X errors found.. but not showing me the errors :/

cgountanis 03-08-2004 19:39

remove cls

devicenull 03-08-2004 19:55

This is what I am using now - it copies compiled plugins directly to the plugins directory
Code:

@echo off
rem AMX Mod X
rem
rem by the AMX Mod X Development Team
rem  originally developed by OLO
rem
rem This file is part of AMX Mod X.


if not exist compiled mkdir compiled
for %%i in (*.sma) do sc %%i -ocompiled\%%i
copy compiled\*.amx ..\plugins\*.amx
del compiled\*.amx

pause

Theres no reason to change the file extension anymore - Its done already

cgountanis 03-08-2004 19:59

nice

MagicShot 03-08-2004 20:40

WOW
 
Quote:

Originally Posted by cgountanis
nice


Wow Its Looking nice!!!

Can't Wait to get home and Test!!!

xeroblood 03-08-2004 20:47

Well, just my 2 cents, but for an easier way to Code & Compile your plugins, try using Crimson Editor

You can link up to 9 (I think) different compilers (or the same compilers with diff options) into it, so compiling is as easy as a shotcut key.. Also, it conviently captures output and displays without ever seeing the DOS command prompt !! :D

I currently have linked 4 different methods of compiling AMX/AMXX plugins (extra 2 for optimized versions)..

(if you need help with adding SC compiler, PM me, if it is a reasonable question, I will reply!!)

MagicShot 03-08-2004 20:59

Hmm..
 
Quote:

Originally Posted by xeroblood
Well, just my 2 cents, but for an easier way to Code & Compile your plugins, try using Crimson Editor

You can link up to 9 (I think) different compilers (or the same compilers with diff options) into it, so compiling is as easy as a shotcut key.. Also, it conviently captures output and displays without ever seeing the DOS command prompt !! :D

I currently have linked 4 different methods of compiling AMX/AMXX plugins (extra 2 for optimized versions)..

(if you need help with adding SC compiler, PM me, if it is a reasonable question, I will reply!!)

Currently I Use SmallEd.. (New Version comming soon)
But i will give Crimson Editor a try and see if I like it...
I keep hearing about it all over.

Thanx...

devicenull 03-08-2004 21:00

4 Ways?
What are they?
I think I like this Crimson Editor

Should I use the C/C++ template or do you have one I could use?

_KaszpiR_ 03-09-2004 02:38

i edit in editplus - and wrote also a simple highlight extension to it
compiling manual but without deleting temp.txt - more secure for me, at least


All times are GMT -4. The time now is 13:43.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.