Raised This Month: $7 Target: $400
 1% 

Module: Cvar Utilities (v1.6)


Post New Thread Reply   
 
Thread Tools Display Modes
bibu
Veteran Member
Join Date: Sep 2010
Old 04-11-2011 , 17:29   Re: Cvar Utilities
Reply With Quote #11

I don't think that I placed it wrong, but there we go:

Quote:
Orpheu configuration ended.
L 04/11/2011 - 23:26:54: [GEOIP] Database info: GEO-106FREE 20080801 Build 1 Copyright (c) 2007 MaxMind LLC All Rights Reserved

Cvar Utilities v1.0.0 - by Arkshine.
Memory initialization started.
Memory patch failed in "Cvar_Set" at : 0x00000001
Memory initialization ended.

L 04/11/2011 - 23:26:54: [CVAR_UTIL] Module failed to load. Contact author...
bibu is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-11-2011 , 17:31   Re: Cvar Utilities
Reply With Quote #12

Just thought, you have tried on a listenserver ?
__________________
Arkshine is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 04-11-2011 , 17:35   Re: Cvar Utilities
Reply With Quote #13

Via "New Game" in CS.
bibu is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-11-2011 , 17:45   Re: Cvar Utilities
Reply With Quote #14

I have not tested through a listenserver because a game server is generally a dedicated server. Though I understand it may useful for testing purpose. Will try to see why it doesn't work. But you can be sure it works fine on dedicated server.

[EDIT] Ok, I understand now why it doesn't work. I thought listenserver was using sw.dll for engine, but it seems it's more hw.dll and also new different signatures are needed. Give me some time.
__________________

Last edited by Arkshine; 04-12-2011 at 08:45.
Arkshine is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 04-12-2011 , 00:52   Re: Cvar Utilities
Reply With Quote #15

Ah ok. I just wanted to test if my code works at all.
bibu is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-12-2011 , 13:57   Re: Cvar Utilities
Reply With Quote #16

Can you confirm it works now ? (v1.0.1). I've tested myself on a listenserver and it works for me.
__________________

Last edited by Arkshine; 04-29-2011 at 16:02. Reason: Attachment deleted. See first post.
Arkshine is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 04-12-2011 , 14:09   Re: Cvar Utilities
Reply With Quote #17

that's something amazing and interesting for sure i will use that
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
bibu
Veteran Member
Join Date: Sep 2010
Old 04-12-2011 , 17:08   Re: Cvar Utilities
Reply With Quote #18

Should work I think, then my code doesn't work, but I've got this in the console:

Quote:
Cvar Utilities v1.0.1 - by Arkshine.
Memory initialization started.
Memory patch succeed in "Cvar_Set" at : 0x03F6B799
Memory patch succeed in "Cvar_DirectSet" at : 0x03FB527B
Memory initialization ended.
bibu is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-12-2011 , 17:24   Re: Cvar Utilities
Reply With Quote #19

What is your code so ?
__________________

Last edited by Arkshine; 04-13-2011 at 08:24.
Arkshine is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-29-2011 , 15:32   Re: Cvar Utilities
Reply With Quote #20

New release - v1.1.0
Bug
  • Typo in CvarRegister, the max bound value was retrieved from the min value.
  • Bound status in CVarRegister was not set.
New Feature
  • New natives to help to have a code more cleaner and efficient.

    • CvarHookChangeAll : hook all the registered cvars of the current plugin.
    • CvarEnableHookAll : enable all the hooks of the registered cvars of the current plugin.
    • CvarDisableHookAll : disable all the hooks of the registered cvars of the current plugin.

  • A command cvarutil to show immediate informations.

    • version : to get the current version and when module has been compiled.
    • status : show the module status.
    • list [plugin] : show a list of registered cvar which have a status. Can be filtered by plugin.
    • info <cvar> : show the full details of a cvar.]

  • Added a new param forceInterval for CvarRegister and CvarSetBounds to allow for a defined bound
    to choose if the value has to be inside the interval between the min and max values (min <= value <= max)
    or if the value has to be equal to min or max value. (value == min or value == max).
Improvement
  • Module now works under a listen server.
  • Added a check if the engine function Cvar_DirectSet is well found before patching memory.
  • Module will not load natives and forwards if a signature was not found.
  • Float value change are no more compared as string. I.e: 1.5 -> 1.50 is no more counted as a change.
Developper
  • Code a bit cleaned up with a better files organizing.



More informations about the new natives and command on the first post.
Don't forget to update cvar_util.inc.
__________________
Arkshine 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 06:03.


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