Raised This Month: $32 Target: $400
 8% 

[EXTENSION ALL] CTX editor (For anything/everything)


Post New Thread Reply   
 
Thread Tools Display Modes
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 07-14-2011 , 06:26   Re: [EXTENSION ALL] CTX editor (For anything/everything)
Reply With Quote #11

The MarkNativeAsOptional stuff needs to be updated...
PHP Code:
    MarkNativeAsOptional("CTX_Reset");
    
MarkNativeAsOptional("CTX_ResetAll");
    
MarkNativeAsOptional("CTX_GetBool");
    
MarkNativeAsOptional("CTX_SetBool");
    
MarkNativeAsOptional("CTX_GetFloat");
    
MarkNativeAsOptional("CTX_SetFloat");
    
MarkNativeAsOptional("CTX_GetInt");
    
MarkNativeAsOptional("CTX_SetInt");
    
MarkNativeAsOptional("CTX_GetString");
    
MarkNativeAsOptional("CTX_SetString");
    
MarkNativeAsOptional("CTX_GetStringPtr");
    
MarkNativeAsOptional("CTX_SetStringPtr"); 
__________________
Bread EOTL GunMettle Invasion Jungle Inferno will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.
FlaminSarge is offline
Swixel
Senior Member
Join Date: Jul 2010
Location: Sydney, Australia
Old 07-14-2011 , 06:51   Re: [EXTENSION ALL] CTX editor (For anything/everything)
Reply With Quote #12

Yeah, already done in the repository:

https://bitbucket.org/aws/ctx/src/15...nclude/ctx.inc

If anyone's worried, the repository is kept up to date for things like that.
__________________
Quote:
Originally Posted by asherkin View Post
Configure your servers properly and stop blaming random things.
Swixel is offline
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 07-28-2011 , 14:22   Re: [EXTENSION ALL] CTX editor (For anything/everything)
Reply With Quote #13

I'm confused. So.. is it possible to set per-player clip sizes? How do you specify the player? What if I set clip size on m4 with CTX_PLAYER? Can any type be used with any variable?

P.S. Thanks for working on this a bit more <3
__________________
Greyscale is offline
Swixel
Senior Member
Join Date: Jul 2010
Location: Sydney, Australia
Old 07-28-2011 , 17:44   Re: [EXTENSION ALL] CTX editor (For anything/everything)
Reply With Quote #14

It's possible to set the clip size on a per-player basis, but not with this; every per-player modification I've ever made has been done manually (i.e. hooking the weapon or weapons required). So no, you can't use this to do any per-player work.

The new version requires you use the right variable on the right thing, which is why I added readmes. The 'dev' folder (in the bitbucket folder) shows off where I got that information (okay, I got it from the binaries, but the headers show you how it works).
__________________
Quote:
Originally Posted by asherkin View Post
Configure your servers properly and stop blaming random things.
Swixel is offline
Paparazziv2
Senior Member
Join Date: Feb 2011
Location: Chile, La Serena
Old 01-13-2012 , 21:27   Re: [EXTENSION ALL] CTX editor (For anything/everything)
Reply With Quote #15

not work anymore?
__________________
Sorry for the bad english please.

Paparazziv2 is offline
Send a message via MSN to Paparazziv2
Swixel
Senior Member
Join Date: Jul 2010
Location: Sydney, Australia
Old 01-14-2012 , 01:19   Re: [EXTENSION ALL] CTX editor (For anything/everything)
Reply With Quote #16

For which game is it broken?

It probably needs new offsets if something big changed.
__________________
Quote:
Originally Posted by asherkin View Post
Configure your servers properly and stop blaming random things.
Swixel is offline
Marcos
Junior Member
Join Date: Jun 2008
Old 02-01-2012 , 08:37   Re: [EXTENSION ALL] CTX editor (For anything/everything)
Reply With Quote #17

@Swixel
You do great job on this Extension.
Could you kindly release the per-player CTX editor verision?
Its very useful for RPG plugin modifier.

Last edited by Marcos; 02-01-2012 at 08:39.
Marcos is offline
Swixel
Senior Member
Join Date: Jul 2010
Location: Sydney, Australia
Old 02-01-2012 , 14:27   Re: [EXTENSION ALL] CTX editor (For anything/everything)
Reply With Quote #18

I made a choice a while ago not to follow the per-player path. It's possible, but the code is ugly, and there's a lot of room for error (though since it's sequentially processed it shouldn't be a problem I guess).

Not only that, when I ran small tests it tended to be abused by admins.

As I can't find any code from it, if you wanted to do it yourself you'd take this code and add a per-player-class switch on into the main detour (i.e. where it detours the values). This would require a configuration file divided into "detour_key" (what's in the config/data/offset files) and your "RPGClass". If it's what you want, the code is AGPLv3 so people can modify it as they wish (while keeping it open), so feel free to extend it.

However, as I don't like per-player modification in games where people are meant to distinguish themselves through skill (though I won't argue this here, particularly given recent advances in certain games), I won't be releasing it myself, sorry.
__________________
Quote:
Originally Posted by asherkin View Post
Configure your servers properly and stop blaming random things.
Swixel is offline
Marcos
Junior Member
Join Date: Jun 2008
Old 05-22-2012 , 22:35   Re: [EXTENSION ALL] CTX editor (For anything/everything)
Reply With Quote #19

Omg ,Its broken since update.

L 05/23/2012 - 101:40: [CTX] WeaponData is not supported for this mod.
Marcos is offline
Swixel
Senior Member
Join Date: Jul 2010
Location: Sydney, Australia
Old 05-22-2012 , 22:44   Re: [EXTENSION ALL] CTX editor (For anything/everything)
Reply With Quote #20

It still works if you update the data file(s) for the mod in question.
__________________
Quote:
Originally Posted by asherkin View Post
Configure your servers properly and stop blaming random things.
Swixel 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 02:34.


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