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

Showing results 1 to 25 of 118
Search took 0.01 seconds.
Search: Posts Made By: maitredede
Forum: Coding MM:S Plugins & SM Extensions 04-14-2015, 13:24
Replies: 3
Views: 1,711
Posted By maitredede
Re: Game events not raised

On commandline, I set :
+sv_hibernate_when_empty 0
so bots "play" the game. But they don't play seriously... I have events like "player_spawn", "weapon_fire", "player_hurt", "player_footstep"......
Forum: Coding MM:S Plugins & SM Extensions 04-14-2015, 09:45
Replies: 3
Views: 1,711
Posted By maitredede
Re: Game events not raised

Tested : with only bots, there is no "gameplay" events (round_*, bomb_*...) just like if the bots were playing a simple deathmatch without rules.

Since I connected to the server and joined a team,...
Forum: Coding MM:S Plugins & SM Extensions 04-13-2015, 09:11
Replies: 3
Views: 1,711
Posted By maitredede
Game events not raised

Hi,

Coding a MMS CSGO plugin.

I have built a char* of all game events (from wiki CSGO (https://wiki.alliedmods.net/Counter-Strike:_Global_Offensive_Events), Server...
Forum: Coding MM:S Plugins & SM Extensions 04-01-2015, 10:05
Replies: 4
Views: 2,118
Posted By maitredede
Re: Call ServerCommand and get the result

Hi again,

The IConsoleDisplayFunc way does nothing : is seams that it is not called during command execution so :
engine->ServerExecute();
icvar->InstallConsoleDisplayFunc(conDispFunc);...
Forum: Coding MM:S Plugins & SM Extensions 03-27-2015, 03:41
Replies: 1
Views: 5,931
Posted By maitredede
Re: [Solved] Load error: Undefined symbol: _ZdlPv

Adding compiler flag -lstdc++ didn't resolved issue for me

Edit : modified wrong line in makefile
Forum: Coding MM:S Plugins & SM Extensions 03-26-2015, 14:16
Replies: 4
Views: 2,599
Posted By maitredede
Re: Error compiling stub_mm

No more error compiling.
Thanks
Forum: Coding MM:S Plugins & SM Extensions 03-26-2015, 12:35
Replies: 4
Views: 2,599
Posted By maitredede
Re: Error compiling stub_mm

Hi,

Same probleme here.

In my case, mmsource and hl2sdk are cloned from github (hl2sdk branch csgo, mmsource tag mmsource-1.9.2).
if [ "true" = "false" ]; then \
echo "You...
Forum: Coding MM:S Plugins & SM Extensions 03-26-2015, 12:32
Replies: 4
Views: 2,118
Posted By maitredede
Re: Call ServerCommand and get the result

Hi,
Thanks for replying.

By reading your answers, "there is no easy way"... I will try to make something and post it if it worth it, when I need it.
Forum: Coding MM:S Plugins & SM Extensions 03-25-2015, 19:23
Replies: 4
Views: 2,118
Posted By maitredede
Call ServerCommand and get the result

Hi,

I would like to execute a command using engine->ServerCommand(), but how can I get the result ?

For example, execute "status" and store result inside a char*...
(status or any other...
Forum: Coding MM:S Plugins & SM Extensions 01-29-2010, 04:43
Replies: 0
Views: 1,017
Posted By maitredede
Console printer

Hi,

I'm trying to install a Console Printer using ICvar::InstallConsoleDisplayFunc

Does "console printer" means functions that are called when something is printed in server console ?

I'm...
Forum: Coding MM:S Plugins & SM Extensions 01-29-2010, 04:20
Replies: 8
Views: 2,451
Posted By maitredede
Re: Two Questions

Hi,

I think there is a way to push the command in the server command stack, so you won't have to create your own queue...

Maybe it is IVEngineServer::InsertServerCommand ?
Forum: Coding MM:S Plugins & SM Extensions 01-27-2010, 02:52
Replies: 8
Views: 3,256
Posted By maitredede
Re: MMS 1.8 : Dynamic ConVar access violation after change callback

Thanks Bailopan :)

Maybe I need to stop working on C++ code, but in both posts, nobody has posted an easy answer... Let me explain...

Yes, I know that dynamic ConVar and ConCommand creation at...
Forum: Coding MM:S Plugins & SM Extensions 01-26-2010, 16:29
Replies: 8
Views: 3,256
Posted By maitredede
Re: MMS 1.8 : Dynamic ConVar access violation after change callback

After some tests, I really think that this bad behavior is because the ConVar creation is not the same between static definition and dynamic creation.

Well, Bailopan, do you think it would be...
Forum: Coding MM:S Plugins & SM Extensions 01-26-2010, 08:56
Replies: 8
Views: 3,256
Posted By maitredede
Re: MMS 1.8 : Dynamic ConVar access violation after change callback

The "GetICvar()" function does not exists in MMS.

So I have taken the one from BAT :
ICvar* GetICVar()
{
#if SOURCE_ENGINE >= SE_ORANGEBOX
return (ICvar...
Forum: Coding MM:S Plugins & SM Extensions 01-26-2010, 06:53
Replies: 8
Views: 3,256
Posted By maitredede
Re: MMS 1.8 : Dynamic ConVar access violation after change callback

Here is my "Load" code :

bool MonoPlugin::CMonoPlugin::Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen, bool late)
{
PLUGIN_SAVEVARS();

//Get engine interfaces...
Forum: Coding MM:S Plugins & SM Extensions 01-25-2010, 05:37
Replies: 8
Views: 3,256
Posted By maitredede
MMS 1.8 : Dynamic ConVar access violation after change callback

Hi,

I am coding a MMS 1.8 plugin (HL2, and it dynamically creates ConVars with a ChangeCallback.

But I have an Acccess Violation when trying to access memory 0x00000000, a null pointer :oops:
...
Forum: Coding MM:S Plugins & SM Extensions 12-29-2009, 17:41
Replies: 10
Views: 3,817
Posted By maitredede
Re: Engine thread safety

Well, for now, I have made a test with a simple timer (that raises its event in another thread)...

Later, I may have almost every complex or long command that can be threaded... I don't have an...
Forum: Coding MM:S Plugins & SM Extensions 12-29-2009, 12:33
Replies: 10
Views: 3,817
Posted By maitredede
Re: Engine thread safety

Yeah ! 8)

I have managed to handle the threading behavior from a multi-thread part to access a monothread part...

To check this, I have written a small timer that write current time to the...
Forum: Coding MM:S Plugins & SM Extensions 12-29-2009, 05:11
Replies: 9
Views: 6,575
Posted By maitredede
Re: MMS 1.8 Dynamic Convar, hook memory violation when changing value from game conso

Ok, I think I have it :

Dynamic creation of a var/cmd : after plugin is loaded, I only have to instanciate the var/cmd, it is already registred

Dynamic removing : I have to call the...
Forum: Coding MM:S Plugins & SM Extensions 12-28-2009, 19:53
Replies: 10
Views: 3,817
Posted By maitredede
Re: Engine thread safety

I will...

Thanks for your help :D
Forum: Coding MM:S Plugins & SM Extensions 12-28-2009, 19:23
Replies: 9
Views: 6,575
Posted By maitredede
Re: MMS 1.8 Dynamic Convar, hook memory violation when changing value from game conso

The META_REGCVAR macro is intended to be used with statically declared ConVars and ConCommands...

In my case, I need dynamic creation/registration... So I have replaced the macro with the related...
Forum: Coding MM:S Plugins & SM Extensions 12-28-2009, 19:13
Replies: 10
Views: 3,817
Posted By maitredede
Re: Engine thread safety

Bailopan,
By better, I mean a less critical function. If there are a lot of callbacks at the same time, I will have a HUGE lag... Or maybe I should restrict to a small amount of callbacks I handle...
Forum: Coding MM:S Plugins & SM Extensions 12-28-2009, 18:12
Replies: 9
Views: 6,575
Posted By maitredede
Re: MMS 1.8 Dynamic Convar, hook memory violation when changing value from game conso

Waw... I have rewritten my code by using the sample_mm and adding my code...

I have used the same code : if I try to create my own convar or concommand using my same code, I loose all convar and...
Forum: Coding MM:S Plugins & SM Extensions 12-28-2009, 15:15
Replies: 9
Views: 6,575
Posted By maitredede
Re: MMS 1.8 Dynamic Convar, hook memory violation when changing value from game conso

The stacktrace is :
> metamod.2.ep2v.dll!SourceHook::Impl::CSourceHookImpl::RemoveHookByID(int hookid=7) Ligne 557 + 0x1b octets C++
...
Forum: Coding MM:S Plugins & SM Extensions 12-28-2009, 14:19
Replies: 10
Views: 3,817
Posted By maitredede
Re: Engine thread safety

Ok, so to avoid random engine call, do you know which functions I may hook to let the functions run ?

I will code a waiting queue for async operations, and let them make engine calls one at a...
Showing results 1 to 25 of 118

 
Forum Jump

All times are GMT -4. The time now is 01:46.


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