HOWTO: exec'ing files from within a script pack
A few more questions about Script Packs:
If I type "eventscripts_register" in the console, I recieve "unknown command" as response, even if I type rcon first. Anybody an ideas? About writing a script pack... I have had great trouble with this and I think I have missed someting really obvious so I woudl like to give you a small example: Let us say I have a script pack called "pull_the _babes" the script contains three files: player_say.cfg and pull_the_babes.cfg hump_on_3.cfg now I'm pretty sure I have to put all 3 files in a folder called "pull_the_babes" which goes into the "events" folder? I then have to register the script by putting: eventscripts_register pull_the_babes in my autoexec or server.cfg? The BIG trouble is when writing the actual code: If player_say has a command that says - "es if server_var(babe = "wants_a_shag") then exec hump_on_3.cfg" how will I write this line to reference the hump_on_3.cfg file? (obviously this is not real code). I did try this with my acematch script but it woudln't work at all so I had to resort to making the install a copy and paste job. Can you explain please how to refernce config files within a script? Thanks and best regards. |
Quote:
That being said, I use "ma_rcon eventscripts_register firebug" all the time. (Be careful when using "rcon" because rcon likes to put quotes around everything and that will confuse eventscripts_register.) Quote:
Quote:
Here's how my FireBug example does it: Quote:
-Mattie |
Thanks Mattie. You'll have to trust me that I had read as much as I could of all the documentation. I must have missed the paragraph you directed me to. That has given me something to try now, thanks...
btw I don't have command line acees to my server it is rented so I have rcon only. So again, your explanation makes sense there too. Thanks again. :D :D :D |
Nope I still don't get it, sorry.
Please can you just show me the script: my scriptpack is called "acematch" I have all the config files in folder events/acematch/ what do i need to change in order to exec acematchgo.cfg for example? instead of "exec acematchgo.cfg" I would put "es exec server_var(acematch_dir) acematchgo.cfg" Is that correct? Sorry to be a pain on this, it is beating me... |
Quote:
Code:
es_setinfo acematchgoCFG 0 |
Mattie, perhaps we could break this into a thread of its own so that people trying to INSTALL a script pack don't get confused by these questions about how to CREATE a script pack.
Quote:
Code:
// acematch\server.cfg Code:
es exec server_var(acematchgo.cfg) maybe this would be a little less confusing... Code:
// acematch\server.cfg Code:
es exec server_var(acematchgo_path_and_file) |
Thanks guys, I may well have to ask some moe embarrassing questions once i have had chance to try this. :)
|
Mattie? Is it worth editing some of the crap out of here and making this sticky, before it gets knocked off the front page?
|
Quote:
I might need to finalize my own phpbb so I can have multiple sections/forums. Before long the whole front is going to be covered in stickies. Hmmmmmm.... |
Quote:
|
All times are GMT -4. The time now is 14:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.