Raised This Month: $ Target: $400
 0% 

override native message assets path


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Watermelonnable
Member
Join Date: Feb 2017
Old 12-02-2019 , 11:18   override native message assets path
Reply With Quote #1

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

Last edited by Watermelonnable; 12-02-2019 at 11:23. Reason: typo
Watermelonnable is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 12-02-2019 , 11:22   Re: override native message assets path
Reply With Quote #2

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
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 12-02-2019 at 11:23.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Watermelonnable
Member
Join Date: Feb 2017
Old 12-02-2019 , 11:36   Re: override native message assets path
Reply With Quote #3

Quote:
Originally Posted by ^SmileY View Post
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?
Watermelonnable is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 12-02-2019 , 12:31   Re: override native message assets path
Reply With Quote #4

EDIT:
Forgot, is not possible edit in resource files.

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

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 12-02-2019 at 12:36.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Watermelonnable
Member
Join Date: Feb 2017
Old 12-02-2019 , 12:37   Re: override native message assets path
Reply With Quote #5

Quote:
Originally Posted by ^SmileY View Post
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?
Watermelonnable is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 12-02-2019 , 12:45   Re: override native message assets path
Reply With Quote #6

No i guess. Did you using rehlds?
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Watermelonnable
Member
Join Date: Feb 2017
Old 12-02-2019 , 14:37   Re: override native message assets path
Reply With Quote #7

Quote:
Originally Posted by ^SmileY View Post
No i guess. Did you using rehlds?
No. I'm using a fresh installation of steamcmd
Watermelonnable is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 12-02-2019 , 14:44   Re: override native message assets path
Reply With Quote #8

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
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Watermelonnable
Member
Join Date: Feb 2017
Old 12-03-2019 , 05:31   Re: override native message assets path
Reply With Quote #9

Quote:
Originally Posted by ^SmileY View Post
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
Watermelonnable is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 12-03-2019 , 18:55   Re: override native message assets path
Reply With Quote #10

If I'm not mistaking, tutor messages' resources are defined client-side, so I don't think you can use different resources.
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Reply



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:41.


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