Raised This Month: $48 Target: $400
 12% 

AMXx 1.50 Scripting Changes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BAILOPAN
Join Date: Jan 2004
Old 07-15-2005 , 15:39   AMXx 1.50 Scripting Changes
Reply With Quote #1

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.
__________________
egg
BAILOPAN is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 07-16-2005 , 03:10  
Reply With Quote #2

Nice, no more require_module().
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 07-16-2005 , 04:03   Re: AMXx 1.1-RC1 Scripting Changes
Reply With Quote #3

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?
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
BAILOPAN
Join Date: Jan 2004
Old 07-16-2005 , 04:12  
Reply With Quote #4

Only MySQL backward compatibility. Sorry if this wasn't clear.
__________________
egg
BAILOPAN is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 07-16-2005 , 07:05  
Reply With Quote #5

Sounds good, overall. However I think I've got a few read_dir's about :-\
Johnny got his gun is offline
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 07-16-2005 , 08:47  
Reply With Quote #6

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.
__________________
hello, i am pm
PM is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 07-16-2005 , 15:08  
Reply With Quote #7

Well.. er.. I mean... I knew that!
Johnny got his gun is offline
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 07-16-2005 , 15:18  
Reply With Quote #8

The new one seems about twice as fast
__________________
twistedeuphoria is offline
LynX
Veteran Member
Join Date: Oct 2004
Old 07-22-2005 , 05:55  
Reply With Quote #9

:\

I dunno. But I don't care for MySQL since I have only 1-2 mine plugins written in it.
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
BAILOPAN
Join Date: Jan 2004
Old 07-25-2005 , 02:58  
Reply With Quote #10

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!
__________________
egg
BAILOPAN is offline
Reply


Thread Tools
Display Modes

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 08:56.


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