Page 6 of 7 FirstFirst ... 4567 LastLast
Results 51 to 60 of 65

Thread: Changing map on MeatBot (CoD 2)

  1. #51
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by guiismiti View Post
    Meatbot sets the .isbot attribute when a bot is added, so, you can just use
    Code:
    if(player.isbot)
    I have found that method not 100% reliable. But my method works infallibly.

  2. #52
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts
    Quote Originally Posted by Tally View Post
    I have found that method not 100% reliable.
    How so?

    10char
    set logfile 2

  3. #53
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    Well I personally used a combination of:
    - checking the connecting players name
    - get the GUID
    - set a variable on connect (since bots do not change anything)

    so to say:

    Code:
    bot = addTestClient();
    
    if( !isDefined( bot ) )
        continue; // try again..
    
    assert( isSubStr( bot.name , "bot" ) );
    assert( bot getGuid() == "0" ) );
    
    bot.isBot = true;
    bot.pers["bot"] = true;

  4. #54
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts
    just can't forget there is no guid on cracked servers
    set logfile 2

  5. #55
    Private First Class G-Stuff002's Avatar
    Join Date
    Jan 2018
    Posts
    212
    Thanks
    42
    Thanked 109 Times in 107 Posts
    Hi, this issue is resolved ? Can anyone explain step by step what i can do for map-rotation with MeatBot 0.9.3 ? It's many info on this topic but i can't understand. Or you have MeatBot+maprotation mod allready complete rar archive with all files ?

    Please Help

    With these bots noticed errors: 1. Bots look at the hands sometimes and dont move. Especially often this happens when they run over the choice of weapons on the 'FY' maps and when choosing a grenade to throw on map

    2. In order to join a new map the server must completely exit from the game (not on main menu) And creat the new server again manually with new map etc. Because after endround not work maprotation and change the map need manually and if recreat the new server from main menu after last map appear the lag's (disconnecting, movement slowed down, bots dont move, and have a message: bots not support this map but i have wp)

    3. After endround i cant not quit in main menu, scores table is frozen, it possible only use console command: /killserver
    Last edited by G-Stuff002; 8th January 2018 at 09:43.

  6. #56
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by G-Stuff002 View Post
    2. In order to join a new map the server must completely exit from the game (not on main menu) And creat the new server again manually with new map etc. Because after endround not work maprotation and change the map need manually and if recreat the new server from main menu after last map appear the lag's (disconnecting, movement slowed down, bots dont move, and have a message: bots not support this map but i have wp)
    See kicking bots thread with libcod: https://killtube.org/showthread.php?...ht=libcod+bots

    voron's libcod has a custom function for detecting bots:

    PHP Code:
    self isBot() 
    Since https://github.com/voron00/libcod/co...08e06e63625645 (Dec 6, 2017)

  7. The Following User Says Thank You to Mitch For This Useful Post:

    kung foo man (11th January 2018)

  8. #57
    Private First Class G-Stuff002's Avatar
    Join Date
    Jan 2018
    Posts
    212
    Thanks
    42
    Thanked 109 Times in 107 Posts
    It's too hard for me, I do not understand (( can you edit and upload the finished files complete MeatBot rar archive ? Please

    I do not understand programming

  9. #58
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Back then programming was hard, nowadays every 10 year old can learn it. Just stop being lazy.

    Click image for larger version. 

Name:	programming.jpeg 
Views:	29 
Size:	558.1 KB 
ID:	1392
    timescale 0.01

  10. The Following 2 Users Say Thank You to kung foo man For This Useful Post:

    kubislav23 (12th January 2018),Lonsofore (12th January 2018)

  11. #59
    Private First Class G-Stuff002's Avatar
    Join Date
    Jan 2018
    Posts
    212
    Thanks
    42
    Thanked 109 Times in 107 Posts
    If English was my native language i would at least understand what you are saying and tried to understand how do it this. Let's take it and help me instead of laughing. Ok,
    i will wait for the 10 year old person who will help me. Thank you....

  12. The Following User Says Thank You to G-Stuff002 For This Useful Post:

    kung foo man (12th January 2018)

  13. #60
    Private First Class YuriJurek's Avatar
    Join Date
    Jun 2013
    Posts
    219
    Thanks
    152
    Thanked 88 Times in 47 Posts
    Nobody here will dedicate their time to do everything for you, put some minimal work into showing how badly you need help and maybe somebody will pat an aye on your problem, otherwise you are in a wrong place to ask for help, this is a developers forum, well you can always make a mod request but I doubt that anybody will be interested when the OP is not himself.

    For your own benefit you should either try to dedicate some time into learning both English and basic ideas about how mods work, not even real programming at this point so it should only lead you into better understanding where we are coming from.

    http://wiki.modsrepository.com/index...itle=Main_Page is a great place to start, lots of the concepts from other CoDs, especially CoD4 are also true for CoD2.

  14. The Following User Says Thank You to YuriJurek For This Useful Post:

    kung foo man (12th January 2018)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •