Raised This Month: $32 Target: $400
 8% 

AMXX Keywords for Syntax Highlighting


Post New Thread Reply   
 
Thread Tools Display Modes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-10-2009 , 16:10   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #21

Quote:
Originally Posted by YamiKaitou View Post
You can always use it to test plugins as you are writing them. Surely all of your plugins don't compile 100% of the time when you put them on your server.
No, it rarely compiles on my first try, but with my compile script it's really easy. Especially since I just ssh in and hit <uparrow> <enter> then it shows the errors if it didn't compile. Oh, and did I mention that I don't need ftp, the server is on LAN and I have the it mapped as a network drive so I edit the sma directly on the linux box .

Also, when I have done it on my windows machine it was much harder to read the errors when they are output. I think it's because the filepath is shown (unlike in linux).

Yami, is there any real difference between the Notepad++ Portable and the actual program? I'm thinking of trying out this PortableApps thing so I can take Notepad++ with me .
__________________
fysiks is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-10-2009 , 18:15   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #22

Quote:
Originally Posted by fysiks View Post
Yami, is there any real difference between the Notepad++ Portable and the actual program? I'm thinking of trying out this PortableApps thing so I can take Notepad++ with me .
Not that I have seen yet. Though, it is about 9.4MB on my drive (Firefox is about 55MB)
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-13-2009 , 13:03   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #23

Ok, it's updated, again. I didn't realize xs.inc wasn't for a "mod".
__________________
fysiks is offline
biggzsizzle
Junior Member
Join Date: Jan 2009
Location: Mississippi
Old 04-17-2009 , 00:13   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #24

I'm sorry but where do I put the *.txt files found in the "Keywords_DOD" and "Keywords_AMX" folders?
biggzsizzle is offline
Send a message via ICQ to biggzsizzle Send a message via AIM to biggzsizzle Send a message via MSN to biggzsizzle Send a message via Yahoo to biggzsizzle
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-17-2009 , 07:10   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #25

Quote:
Originally Posted by biggzsizzle View Post
I'm sorry but where do I put the *.txt files found in the "Keywords_DOD" and "Keywords_AMX" folders?
You can do whatever you wish with the txt files (I used them to make my Notepad++ custom highlighting). They are just lists of words. If you are using Notepad++ you can use the xml file to add the syntax highlighting. There is no xml file for the AMX version because there is too many words to put into a custom syntax highlighting scheme afaik.
__________________
fysiks is offline
Gizmo
Senior Member
Join Date: May 2006
Location: Sweden
Old 06-25-2009 , 02:28   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #26

This sounds intresting, do you want to share that script?

Quote:
Originally Posted by fysiks View Post
Sweet! I've been hoping for a way to compile my plugins this way.

Although, now, I do all my compiling on my linux server with a script that will move the amxx to my plugins directory automatically if it compiles successfully.
__________________
Gizmo is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-25-2009 , 18:38   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #27

This script must be in the scripting folder. Also, you will likely have to use "./<filename>" (my file is called "mkplugin") to execute the script.

PHP Code:
#!/bin/bash

filename=$1
to_web
=$2
web_directory
="/var/www/html/dod/plugins/"

echo -"\E[35m*** BEGIN *** BEGIN *** BEGIN *** BEGIN *** BEGIN *** BEGIN ***\E[37m"

if [ -"$filename.sma" ]
then
    
./amxxpc "$filename.sma"
    
chmod 644 "$filename.sma"
else
    echo -
"\E[36mDOES NOT EXIST ----> \E[33m$filename.sma\E[36m <---- DOES NOT EXIST\E[37;40m"
fi

if [ -"$filename.amxx" ]
then
    chmod 755 
"$filename.amxx"
    
if [ "$to_web== "1" ]
    
then
        cp 
"$filename.amxx" "$web_directory"
        
cp "$filename.sma" "$web_directory"
        
echo -"\E[33mFiles copied to $web_directory\E[37;40m"
    
fi
    mv 
"$filename.amxx" ../plugins/
    echo -
"\E[34;42m*** SUCCESS *** SUCCESS *** SUCCESS *** SUCCESS *** SUCCESS ***\E[37;40m"
else
    echo -
"\E[30;41m*** FAILURE *** FAILURE *** FAILURE *** FAILURE *** FAILURE ***\E[37;40m"
fi 
__________________

Last edited by BAILOPAN; 10-12-2010 at 04:14. Reason: image link removed - causing accidental HTTP auth
fysiks is offline
Gizmo
Senior Member
Join Date: May 2006
Location: Sweden
Old 06-27-2009 , 08:09   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #28

Thank you.
Do you have the pluginsfolder for the server at the webserver folder?

EDIT: I just saw that you just copy it to a web folder also
__________________

Last edited by Gizmo; 06-27-2009 at 08:17.
Gizmo is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-27-2009 , 13:22   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #29

Quote:
Originally Posted by Gizmo View Post
Thank you.
Do you have the pluginsfolder for the server at the webserver folder?

EDIT: I just saw that you just copy it to a web folder also
I just copy it as you said. I added that when I wanted to share my plugins with a friend by him just browsing to my webserver. It was much easier than manually moving it, especially using only a command line to do it .
__________________
fysiks is offline
Gizmo
Senior Member
Join Date: May 2006
Location: Sweden
Old 06-27-2009 , 17:52   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #30

Ok, i like that function
I wounder how hard it would be to make a script that would upload the plugin to an other server at an other location also
I manage 4 game server on 2 diffrent servers, 1 at my home and 1 at a friend.
__________________
Gizmo is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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