Difference between revisions of "SourceMod"

From AlliedModders Wiki
Jump to: navigation, search
m (Development Team)
m
Line 10: Line 10:
 
*A new virtual machine and JIT, both rewritten in C++
 
*A new virtual machine and JIT, both rewritten in C++
 
*A new file format
 
*A new file format
 
  
 
=History=
 
=History=
Line 39: Line 38:
  
 
SourceMod remains an ongoing development project which is still in its infancy.
 
SourceMod remains an ongoing development project which is still in its infancy.
 
  
 
=Development Team=
 
=Development Team=
Line 48: Line 46:
 
=Future Plans=
 
=Future Plans=
 
SourceMod will be expanded to have a comprehensive administration plugin set, SQL capatibility, more utility functions, and more Half-Life 2 engine functions.
 
SourceMod will be expanded to have a comprehensive administration plugin set, SQL capatibility, more utility functions, and more Half-Life 2 engine functions.
 
  
 
=License=
 
=License=
 
SourceMod is licensed under its own freeware license.  Derivative works, created using the SourceMod SDK, must be licensed under the [[GNU General Public License]].  There are plans to release most of the source code once SourceMod becomes popular, although this may exclude the JIT (just-in-time compiler).
 
SourceMod is licensed under its own freeware license.  Derivative works, created using the SourceMod SDK, must be licensed under the [[GNU General Public License]].  There are plans to release most of the source code once SourceMod becomes popular, although this may exclude the JIT (just-in-time compiler).
 
  
 
=External Links=
 
=External Links=

Revision as of 23:04, 17 March 2007

Comment
This project is owned by the Consortium that controls this wiki. Changes to this main page are allowed but patrolled.

Introduction

SourceMod is a Metamod:Source plugin for Half-Life 2. It provides comprehensive scripting for the Source engine and mods written using the Source SDK. It has features for administration systems, commands, console variables, events, network messages, timed actions, math and string routines, entity modification, and more. It also features a safely versioned, object oriented API usable from "extensions" written in C++. The extension API can be used to add scripting language callbacks and native features.

SourceMod scripts are written in the SourcePawn language, which is derived from Pawn. Some of the differences include:

  • Passing functions as "objects," instead of by name
  • Natively packed and tagged strings
  • Dynamic local variables
  • A 'decl' operator for creating uninitialized variables
  • A new virtual machine and JIT, both rewritten in C++
  • A new file format

History

Initial Project

SourceMod was officially announced on October 7th, 2004, as a successor to AMX Mod X for the Half-Life 1 engine. It was targetted as a complete rewrite of AMX Mod X, with a fundamental changes:

  • Use of multiple (pluggable) scripting languages
  • JavaScript support
  • Unloadability
  • An object-oriented module API

The Source SDK was released on December 1st, 2004. A few weeks later, SourceMod released its source code on December 25th. After this, development began to stagnate. The concept of multiple languages was over-ambitious and improper. The system was largely too complex and too unorganized for developers to understand. Most importantly, the integral calling abstraction layer, designed to let Core talk to plugins without knowing the target scripting layer, was never viable. Because of this and the inherent complexity of MetaEng, scripts were not testable.

By May of 2005, SourceMod had become completely abandoned. The codebase was scrapped for a rewrite, called "Core 2." This was also quickly abandoned. This timeline and the details therein are explained on the SourceMod Dev Log. The remaining members of the SourceMod team went back to AMX Mod X.

SourceHook

By January of 2005, it was apparent that Valve's API would not be sufficient for plugin development in C++. SourceMod and AMX Mod X Developer Pavol "PM OnoTo" Marko started working on an API for safely hooking virtual functions via vtables.

By March of 2005, it was apparent that this technology would be more useful as a separate project. Thus, SourceHook broke from SourceMod and the Metamod:Source project was started. Metamod:Source was first released on May 26, 2005.

Current Project

In March of 2006, a public survey was held to determine if the community still wanted SourceMod. Since the response was good, the project was restarted, but in secret, to avoid the same public relations mistakes. From March to September, SourcePawn was written, which included:

  • A new JIT, written completely in C++
  • A new virtual machine and API, written in C++ with object oriented API
  • A new file format
  • Various new language features

During November 2006 to January 2007, SourceMod evolved into a usable scripting platform based on SourcePawn. As of March 16, 2007, it contained enough scripting-level features to be usable, and builds were made available to the public.

SourceMod remains an ongoing development project which is still in its infancy.

Development Team

Future Plans

SourceMod will be expanded to have a comprehensive administration plugin set, SQL capatibility, more utility functions, and more Half-Life 2 engine functions.

License

SourceMod is licensed under its own freeware license. Derivative works, created using the SourceMod SDK, must be licensed under the GNU General Public License. There are plans to release most of the source code once SourceMod becomes popular, although this may exclude the JIT (just-in-time compiler).

External Links