Raised This Month: $ Target: $400
 0% 

Polymorph: Mod Manager


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
rtxa
Senior Member
Join Date: Mar 2018
Location: Argentina
Old 11-13-2019 , 10:13   Re: Polymorph: Mod Manager
Reply With Quote #10

Quote:
Originally Posted by fysiks View Post
So, I set up something like this once before here.


P.S. If anyone cares, I've created a GitHub repo for this project where I've got branches for various branches for custom versions that I've created in this thread. Currently, the master branch includes some of the requested features and is actually newer than the one in the OP (even if it does have the same version number).
Hi fysiks, I suggest you to add in the preconfig branch, after executing the preconfig, add the function server_exec(), so the .cfg is executed immediatly. I been experiencing some side-effects on my Zombie Mod X plugin because of that (I getting an old value of the cvar mp_teamlist in plugin_precache()).

It would be better to keep everything in the polymorph folder, so please change the location of poly_preconfig.cfg. Also, do not plus one to g_iNextMod to follow the same index of .cfg mods (e.g. 0_deathrun.ini, 1_zombie)

With all these modifications, the code will look like this.
PHP Code:
// Execute pre-config
get_configsdir(szMainFilePathcharsmax(szMainFilePath))
server_cmd("exec %s/polymorph/poly_preconfig%d.cfg"szMainFilePathg_iNextMod)
server_exec(); 
rtxa is offline
 



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 18:20.


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