AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   override native message assets path (https://forums.alliedmods.net/showthread.php?t=320055)

Watermelonnable 12-02-2019 11:18

override native message assets path
 
Is there a way to overwrite some gfx used by amx natively?

I'm trying to use g_MsgTutor = get_user_msgid("TutorText"); that precaches the followings:

PHP Code:

public plugin_precache()
{
    
precache_generic("gfx/career/icon_!.tga");
    
precache_generic("gfx/career/icon_!-bigger.tga");
    
precache_generic("gfx/career/icon_i.tga");
    
precache_generic("gfx/career/icon_i-bigger.tga");
    
precache_generic("gfx/career/icon_skulls.tga");
    
precache_generic("gfx/career/round_corner_ne.tga");
    
precache_generic("gfx/career/round_corner_nw.tga");
    
precache_generic("gfx/career/round_corner_se.tga");
    
precache_generic("gfx/career/round_corner_sw.tga");
    
precache_generic("resource/TutorScheme.res");
    
precache_generic("resource/TutorScheme.res");
    
precache_generic("resource/UI/TutorTextWindow.res");


I had a problem testing this since nobody except me could see the message, until I asked some of the testers to delete the folder and download those again through the server (they had those already downloaded) and it worked.

Is there a way to overwrite those file paths? like gfx/myservername/round_corner_sw.tga

^SmileY 12-02-2019 11:22

Re: override native message assets path
 
You need to rename in your server (folders or files), and path's in plugin.
This will should work. If not, try to edit .res files to put correct path

But: Using tutor is illegal in CS 1.6

Watermelonnable 12-02-2019 11:36

Re: override native message assets path
 
Quote:

Originally Posted by ^SmileY (Post 2675383)
You need to rename in your server (folders or files), and path's in plugin.
This will should work. If not, try to edit .res files to put correct path

But: Using tutor is illegal in CS 1.6

Yeah but the tutor automatically looks into those paths and I can't see something to overwrite it. Is it possible?

^SmileY 12-02-2019 12:31

Re: override native message assets path
 
EDIT:
Forgot, is not possible edit in resource files.

This seems to be a problem with precache_generic, not tutor message itself.

Watermelonnable 12-02-2019 12:37

Re: override native message assets path
 
Quote:

Originally Posted by ^SmileY (Post 2675392)
EDIT:
Forgot, is not possible edit in resource files.

This seems to be a problem with precache_generic, not tutor message itself.

Oh, ok. Any alternatives to precache_generic?

^SmileY 12-02-2019 12:45

Re: override native message assets path
 
No i guess. Did you using rehlds?

Watermelonnable 12-02-2019 14:37

Re: override native message assets path
 
Quote:

Originally Posted by ^SmileY (Post 2675395)
No i guess. Did you using rehlds?

No. I'm using a fresh installation of steamcmd

^SmileY 12-02-2019 14:44

Re: override native message assets path
 
Probably that is a "bug" in engine, i mean "bug" because tutor message are not supported in cs 1.6 officially.
I also faced this issue when i enter in a server a time ago.

Maybe wait for some skilled user reply to this

Watermelonnable 12-03-2019 05:31

Re: override native message assets path
 
Quote:

Originally Posted by ^SmileY (Post 2675418)
Probably that is a "bug" in engine, i mean "bug" because tutor message are not supported in cs 1.6 officially.
I also faced this issue when i enter in a server a time ago.

Maybe wait for some skilled user reply to this

Thank you! Let's see if somebody else replies

georgik57 12-03-2019 18:55

Re: override native message assets path
 
If I'm not mistaking, tutor messages' resources are defined client-side, so I don't think you can use different resources.


All times are GMT -4. The time now is 02:41.

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