AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   let me get this str8 (https://forums.alliedmods.net/showthread.php?t=3304)

BigBaller 07-02-2004 22:01

let me get this str8
 
As I talked to SniperBeamer on IRC(i forgot what he told me soo I am asking again here), I noticed in the CVS that the stock get_customdir was changed.

Code:
stock get_customdir(name[],len)   return get_localinfo("amxx_customdir",name,len)

That is how it is defined in the amxmisc.inc on AMXX .16

Well with the up coming release of AMXX .2 ... Did the Dev Team decide to scrap the whole get_customdir stock and the amxx/custom directory?

Thats what it seems like in the new includes

Code:
/* Backwards Compatibility * don't use it! */ stock get_customdir(name[],len)   return get_localinfo("amxx_configsdir",name,len)

Now, I was thinking, if it was backwards compatiblity then why does it point to the amxx/configs directory and not the amxx/custom directory as the stock was orignally created for?

However I also noticed the addition of get_datadir ... which now seems to me what would be the "replacement" of get_customdir

I am going to assume that the get_datadir will point to amxx/data directory, as SniperBeamer said plugins such as the base stats and csstats logging will be placed.

This change will cause many plugins to have to be again changed for AMXX standards, many plugins such as the warcraft ones and deags map manager will either have to use thier configs in the amxx/config directory or change thier coding to the amxx/data directory

My final question is, why was this changed up after people were just finally getting used to using get_customdir ???
[/small]

kingpin 07-02-2004 22:03

well thats what Bailo's sig said the other day..

BigBaller 07-02-2004 22:06

Havnet noticed his sig.

But I wonder why it was removed, is thier something that makes get_customdir and get_configsdir that looked close to being the same stock they wanted a name change to make less confusing?

kingpin 07-02-2004 22:07

well i hope there is something cuz lol can u imagine having to rewite all the plugins that use it... so im betting on their being an equivilant of some sort and im sure someone more learned will post here soon.

BigBaller 07-02-2004 22:12

Well, its not hard to make the change and use get_datadir, that would just be replacing a few lines of coding instead of saying get_customdir ... it would be get_datadir

then having to move your config files to another folder :(

Even if no plugin does that many people will have problems because the get_customdir now points to the configs directory instead of the custom directory.

KiN | SuicideDog 07-03-2004 02:00

I hope they didn't change that .. it would suck.. quite a few plugins would instantly break and have to be modded. That would really suck for those servers that run a buttload of plugins.

BigBaller 07-03-2004 21:17

WEll from what it looks like they did change that and that means plugin coders will have to change many more plugins again :(

SniperBeamer 07-04-2004 06:47

There will be a "configs" and a "data" dir.

This will be the last directory change.

BigBaller 07-04-2004 07:02

Ok, well at least we know the deal now, I will be ready to update the plugins that I use for these directory changes, thanks for clearing that up :)


All times are GMT -4. The time now is 14:40.

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