AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Code Snippets/Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=83)
-   -   AMXx 1.50 Scripting Changes (https://forums.alliedmods.net/showthread.php?t=15325)

BAILOPAN 07-15-2005 15:39

AMXx 1.50 Scripting Changes
 
A few quick updates for what to expect from 1.1-RC1:

Mysql module has been rewritten. It is now DBI only, and AMX Mod backward compatibility has been removed. It was a clutch preventing some better design ideas.

The following functions have been deprecated:
  • plugin_modules/require_module - These have been replaced with an automatic module detection system. They no longer do anything. When you #include a module's include file, it will now automatically be added to a list of required modules.
  • read_dir - This has been deprecated in favor of open_dir, next_dir, and close_dir. They are much faster.
  • mysql_* - These natives have been removed entirely. Use DBI.
  • Array Module - Deprecated, no longer available with the base install.

Check back here for updates, or post questions.

v3x 07-16-2005 03:10

Nice, no more require_module(). :D

vittu 07-16-2005 04:03

Re: AMXx 1.1-RC1 Scripting Changes
 
Quote:

Originally Posted by BAILOPAN
Mysql module has been rewritten. It is now DBI only, and AMX Mod backward compatibility has been removed. It was a clutch preventing some better design ideas.

I'm a little confused by this line do you mean AMX Mod backward compatibility will be removed from all modules or only the Mysql module?

BAILOPAN 07-16-2005 04:12

Only MySQL backward compatibility. Sorry if this wasn't clear.

Johnny got his gun 07-16-2005 07:05

Sounds good, overall. However I think I've got a few read_dir's about :-\

PM 07-16-2005 08:47

Quote:

Originally Posted by Johnny got his gun
Sounds good, overall. However I think I've got a few read_dir's about :-\

As far as I understand read_dir is only deprectated now - it will still work but you should update to the new natives as soon as possible.

Johnny got his gun 07-16-2005 15:08

Well.. er.. I mean... I knew that! :roll:

twistedeuphoria 07-16-2005 15:18

The new one seems about twice as fast :)

LynX 07-22-2005 05:55

:\

I dunno. But I don't care for MySQL since I have only 1-2 mine plugins written in it.

BAILOPAN 07-25-2005 02:58

A few more hints!

The name of "Small" has been changed to "Pawn" by ITB CompuPhase. AMX Mod X's next release will be using Pawn (Small 3.0). As of this release it will be "Pawn scripting," not "Small scripting". The file extension will not change.

The AMX Mod X compiler is now "amxxpc" instead of "amxxsc". The Pawn compiler allows a few new tricks, such as struct simulation, returning fixed arrays, and compiling multiple source files together.

The fget* and similar natives have been deprecated and removed because they were implemented improperly.

The pause()/unpause() natives have been deprecated for their "b" functionality, which was not implemented properly and is not worth fixing.

The debugger has changed, and you may find scripts behaving slightly differently. The old debugger allowed scripts to continue after erroring, this is no longer the case.

There is now a new system for building, displaying, and hooking multi-page menus. This deprecates show_menu, although it was left in for backward compatibility. It still works, and is still useful for non-multi-page or customized menus.

AMX Mod module support has been fully deprecated as Pawn 3.0 changed API calls that were part of the AMX Mod module structures. I don't think anyone used this feature, so it was not worth writing hacks for backward compatibility. (Note to AMX Mod devs: to upgrade you will need to write wrappers or change the module API version!).

If you would like to beta test your scripts with the latest CVS binaries, hang out in #amxmodx on irc.gamesurge.net!


All times are GMT -4. The time now is 12:29.

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