Raised This Month: $ Target: $400
 0% 

In-game script compilation


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
imported_malex
Senior Member
Join Date: Sep 2004
Old 11-23-2004 , 16:25   In-game script compilation
Reply With Quote #1

Often with AMX Mod X, when debugging or developing scripts, I need to test one or two lines of code. Currently, I have to write a new script with those lines, adding all the normal cruft to it, compile it, edit plugins.ini, and restart the map. For SourceMod, I'd like the ability to enter a line of script code into the console and have it execute for me, returning the results. This would be a command provided by the scripting interface, so, for example
Code:
sm_js  p = get_player("malex"); return p.health();
would run the Javascript code, while
Code:
sm_perl return $q =~ s/\w\W3(\d)/$1/;
would run the Perl code.

\malex\
imported_malex is offline
BAILOPAN
Join Date: Jan 2004
Old 11-23-2004 , 16:30  
Reply With Quote #2

This would be easily accomplishable through a module connected to the metaeng_<scripting> layer.

I plan for each scripting layer to export its own API back into SourceMod - this is called the "Connector" API.

So you could use the connector API in conjunction with the module API to use the full scripting language features in your own context.
BAILOPAN 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:33.


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