Raised This Month: $ Target: $400
 0% 

plugin_precache is executed BEFORE config file loaded...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Neo-Vortex
Senior Member
Join Date: Jun 2004
Location: Australia
Old 06-26-2004 , 05:17   plugin_precache is executed BEFORE config file loaded...
Reply With Quote #1

hey, plugin_precache() is being executed before the config file is run, even if i manually specify it to run at the top of the function, it dosent get executed untill after all the plugins have fully loaded and done plugin_precache()

i really need a way to store some varibles (4) that can be read by plugin_precache() easily and can easily be modified by hand

any ideas?
Neo-Vortex is offline
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 06-26-2004 , 05:26  
Reply With Quote #2

plugin_precache is executed before all other events are because it is part of the HL map loading process: the server needs to know what is precached before loading the map.
__________________
hello, i am pm
PM is offline
Neo-Vortex
Senior Member
Join Date: Jun 2004
Location: Australia
Old 06-26-2004 , 05:31  
Reply With Quote #3

yes, i worked that out, but i need a way to make it load the amxx config file (or any other config file for that matter) BEFORE plugin_precache() is called...
Neo-Vortex is offline
AssKicR
Veteran Member
Join Date: Mar 2004
Location: Norway-Europe(GTM+1)
Old 06-26-2004 , 05:40  
Reply With Quote #4

Quote:
Originally Posted by Neo-Vortex
yes, i worked that out, but i need a way to make it load the amxx config file (or any other config file for that matter) BEFORE plugin_precache() is called...
why that early?
__________________
My Plugins

Got ??
AssKicR is offline
Neo-Vortex
Senior Member
Join Date: Jun 2004
Location: Australia
Old 06-26-2004 , 05:40  
Reply With Quote #5

oh, and for the record, this is for when you first start up the server, it dosent matter between map changes as for the stuff in the config file isnt likely to change, so yeah...
Neo-Vortex is offline
Neo-Vortex
Senior Member
Join Date: Jun 2004
Location: Australia
Old 06-26-2004 , 05:42  
Reply With Quote #6

hmmm, didnt see your post asskicker when i posted the last one, anyway

Im connecting to a mysql server wich stores stuff in it relating to what model's, the 4 fields i need to store are user, pass, host, db

also, i dont wanna hard-code it in...
Neo-Vortex is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 06-26-2004 , 07:51  
Reply With Quote #7

why not just do it first thing in plugin_precache?
Johnny got his gun is offline
AssKicR
Veteran Member
Join Date: Mar 2004
Location: Norway-Europe(GTM+1)
Old 06-26-2004 , 07:55  
Reply With Quote #8

try plugin_cfg maybe
__________________
My Plugins

Got ??
AssKicR is offline
Neo-Vortex
Senior Member
Join Date: Jun 2004
Location: Australia
Old 06-26-2004 , 07:55  
Reply With Quote #9

do what? load the config file? how? using server_command or w/e it is to execute it DOSENT work because it just gets queued untill all the plugins finish loading... pretty much my question was HOW to load it without having to exec it because that will only load it after all the plugins finish loading
Neo-Vortex is offline
Neo-Vortex
Senior Member
Join Date: Jun 2004
Location: Australia
Old 06-26-2004 , 07:56  
Reply With Quote #10

plugin_cfg? native or something else?

Edit: found it was a function, i would use this, except i need it in plugin_precache... so yeah, wont work for that (atleast for when you first start the server, and im not gonna make a skrewy plugin...)
Neo-Vortex is offline
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 14:38.


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