IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> GenProfile, Generates Profile .ini's
Darkimmortal
post Feb 13 2009, 04:18 AM
Post #1


Member
**

Group: Members
Posts: 10
Joined: 10-February 09
Member No.: 1,474



I put together this PHP console script [in about 2 minutes] to make it easier for me to edit profile settings across many profiles for my TF2 Co-Op plugin (which I might release at some point).

Hopefully someone will find a use for it tongue.gif


(Note that the default settings are slightly higher than RCbot2's defaults.)

CODE
<?php
    set_time_limit (0);
    chdir(dirname(__FILE__));

    define("TOTAL_PROFILES", 32);
    define("NAME_PREFIX", "Co-Op#");
    define("SKILL", "70");
    define("AIM_SKILL", "0.10");
    define("AIM_SPEED", "0.5");
    define("MAX_UPDATE_VISION_REVS", "200");
    define("MAX_PATH_REVS", "150");
    define("VISIONTICKS", "15");
    define("PATHTICKS", "250");
    
    for($i=1; $i<=TOTAL_PROFILES; $i++){
        file_put_contents("$i.ini", "name = ".NAME_PREFIX."$i\nteam = -1\nweapon = default\nmodel = models/humans/Group03/Male_02.mdl\nvisionticks = ".VISIONTICKS."\npathticks = ".PATHTICKS."\nskill = ".SKILL."\naim_skill = ".AIM_SKILL."\naim_speed = ".AIM_SPEED."\nmax_update_vision_revs = ".MAX_UPDATE_VISION_REVS."\nmax_path_revs = ".MAX_PATH_REVS."\n\n# Generated by Darkimmortal's genprofile.");
    }
    
    echo "\n > Darkimmortal's genprofile\n   Generated ".TOTAL_PROFILES." profiles.\n";
    exit;
?>
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 08:31 PM