ProGamingEXP - PROFESSIONAL GAMING EXPERIENCE
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Hiện bộ gõ=phím F8
PRESS F9 to turn on/off the unicode typing method. Bộ gõ Tiếng Việt kiểu VNI đã mặc định bật, bấm F8 để hiện trạng thái bộ gõ và hiệu chỉnh khi cần.
Latest topics
» Specified Game requires a saved game file problem
New project needs coder & testers - Page 2 Icon_minitimeTue Nov 24, 2015 6:08 am by kingsamurie

» Strange Invalid version error after changing to bnet version 26
New project needs coder & testers - Page 2 Icon_minitimeWed Oct 07, 2015 9:26 am by Gen

» Perfect-G 412KANAKO Gallery
New project needs coder & testers - Page 2 Icon_minitimeWed Sep 23, 2015 11:32 pm by Guest

» Fully Naked Pics Of Jessica Gomes
New project needs coder & testers - Page 2 Icon_minitimeTue Jul 07, 2015 5:57 pm by Guest

» The One Tree Hill Season 3
New project needs coder & testers - Page 2 Icon_minitimeSun Jun 07, 2015 11:27 am by Guest

» The One Tree Hill Season 3
New project needs coder & testers - Page 2 Icon_minitimeSun Jun 07, 2015 11:20 am by Guest

» When i host i get this error using Gen MOdded Ghostone(Latest ver)
New project needs coder & testers - Page 2 Icon_minitimeMon Apr 21, 2014 12:00 am by kingsamurie

» When i type !map on any kind of map i get this error
New project needs coder & testers - Page 2 Icon_minitimeSun Apr 20, 2014 11:59 pm by kingsamurie

» Players get kicked
New project needs coder & testers - Page 2 Icon_minitimeThu Oct 17, 2013 1:51 am by keisersoze

» Where to find Games!
New project needs coder & testers - Page 2 Icon_minitimeTue Oct 15, 2013 11:22 am by kokkis

Thống Kê/Statistic
Free counters!

New project needs coder & testers

5 posters

Page 2 of 2 Previous  1, 2

Go down

New project needs coder & testers - Page 2 Empty Re: New project needs coder & testers

Post by lieon Sat Nov 03, 2012 9:13 am

bot crashed after us !ff command in game

lieon
Member
Member

Posts : 18
Join date : 2012-10-04

Back to top Go down

New project needs coder & testers - Page 2 Empty Re: New project needs coder & testers

Post by russoka Sat Nov 03, 2012 10:55 am

1.49 bans not working for garena users.

p.s.

Solved. I'm use MySQL database from now and banned player can not join.

now i have next problem:

Code:
[                            MYSQL] error --- Table 'db_ttw.gamelist' doesn't exist

db_ttw is name MySQL database. Gamelist, I think, is table. How to create? Please give me sql script.

p.s. sorry, for flood, but question has already been raised to the table, and I didn't read those post Buồn


Last edited by russoka on Sun Nov 04, 2012 3:50 am; edited 1 time in total
russoka
russoka
Active Member
Active Member

Posts : 53
Join date : 2012-10-25
Age : 34
Location : Russia / Far East

Testing
Your Garena ID:

Back to top Go down

New project needs coder & testers - Page 2 Empty Re: New project needs coder & testers

Post by Gen Sat Nov 03, 2012 7:39 pm

mySQL database is the best choice for a ban system to fully work.
You need to add a table:
Code:
CREATE TABLE gamelist (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, botid INT, gamename VARCHAR(128), ownername VARCHAR(32), creatorname VARCHAR(32), map VARCHAR(100), slotstaken INT, slotstotal INT, usernames VARCHAR(512), totalgames INT, totalplayers INT) ENGINE = MEMORY;
Then, you need to create entry with botid for each bot. If your bot's id is 1:
Code:
Code:
INSERT INTO gamelist (botid) VALUES ('1');

v1.50 is now released with a sophisticated ban system which I promise to fully work on garena.

!ff was fixed a long time ago, so v1.50 inherited.

Gen
Admin
Admin

Posts : 148
Join date : 2012-02-26

http://GarenaID G.M.Bot

Back to top Go down

New project needs coder & testers - Page 2 Empty Re: New project needs coder & testers

Post by lieon Sat Nov 03, 2012 10:24 pm

yea it's fix in old version of your bot but new version have problem with this command i hope dont see this bug in 1.50v

lieon
Member
Member

Posts : 18
Join date : 2012-10-04

Back to top Go down

New project needs coder & testers - Page 2 Empty Re: New project needs coder & testers

Post by russoka Sun Nov 04, 2012 3:24 am

1.50 svn? I not see archive.
russoka
russoka
Active Member
Active Member

Posts : 53
Join date : 2012-10-25
Age : 34
Location : Russia / Far East

Testing
Your Garena ID:

Back to top Go down

New project needs coder & testers - Page 2 Empty Re: New project needs coder & testers

Post by Gen Sun Nov 04, 2012 3:49 am

You meant changelog? read changelog.txt

Gen
Admin
Admin

Posts : 148
Join date : 2012-02-26

http://GarenaID G.M.Bot

Back to top Go down

New project needs coder & testers - Page 2 Empty Re: New project needs coder & testers

Post by russoka Sun Nov 04, 2012 3:52 am

No! I don't where I can download 1.50. From SVN?
Usually I download archive from main page of this site. Make diff cfg and read changelog.

I found 7z archive.

Russian.cfg
Code:
lang_1043 = Только Администраторы и Владельцы игры могут использовать команду start. Попробуйте ввести $TRIGGER$owner|$TRIGGER$admin, тогда $TRIGGER$startn будет работать если включена опция. Не покидайте игру, дождитесь автозапуска.

This is correct translate. I think if you added new strings, better to use english versions of string in configs of forein languages like russian, etc. (google translate have 50% errors).


Last edited by russoka on Sun Nov 04, 2012 5:32 am; edited 1 time in total
russoka
russoka
Active Member
Active Member

Posts : 53
Join date : 2012-10-25
Age : 34
Location : Russia / Far East

Testing
Your Garena ID:

Back to top Go down

New project needs coder & testers - Page 2 Empty Re: New project needs coder & testers

Post by lieon Sun Nov 04, 2012 4:01 am

offc post

how can config autohosting to prv i want just safelist can join the bot

lieon
Member
Member

Posts : 18
Join date : 2012-10-04

Back to top Go down

New project needs coder & testers - Page 2 Empty Re: New project needs coder & testers

Post by lieon Sun Nov 04, 2012 5:15 am

still crashed after use !ff command

lieon
Member
Member

Posts : 18
Join date : 2012-10-04

Back to top Go down

New project needs coder & testers - Page 2 Empty Re: New project needs coder & testers

Post by Gen Sun Nov 04, 2012 7:28 am

I tested half a month ago, no crash with !ff, are you sure you overwrite with new ghost.exe(v1.50) ?

I've just re-read the code, the crash can't be happening. clue: [You must be registered and logged in to see this link.]

Code:
//
   // !FF
   //

    if( Command == "ffcounter" && m_Stats && m_GameLoaded && m_Map->GetMapType( ).find("dota") != string::npos )
   {
      //count ff's
      uint32_t VotesSentinel1 = 0;
      uint32_t VotesScourge1 = 0;
      uint32_t CountSentinel1 = 0;
      uint32_t CountScourge1 = 0;

      int k=0;
      for( vector<CGameSlot> :: iterator i = m_Slots.begin( ); i != m_Slots.end( ); i++ )
      {
         if( i->GetSlotStatus( ) == SLOTSTATUS_OCCUPIED && i->GetComputer( ) == 0 )
         {
            CGamePlayer *Player = GetPlayerFromPID( i->GetPID( ) );
            if(Player)
            {
               if(k>=0 && k<5)
               {
                  CountSentinel1++;
                  if(Player->GetHasFFed())
                  {
                     VotesSentinel1++;                     
                  }
               }
               else if(k>=5 && k<10)
               {
                  CountScourge1++;
                  if(Player->GetHasFFed())
                  {
                     VotesScourge1++;
                  }
               }
            }
         }
         k++;
      }

        SendChat(player,"Counter for scores of "+string( 1, m_GHost->m_CommandTrigger )+"FF Sentinel: " + UTIL_ToString( VotesSentinel1 ) + "/" + UTIL_ToString( CountSentinel1) + ", Counter for scores of "+string( 1, m_GHost->m_CommandTrigger )+"FF Scourge: " + UTIL_ToString( VotesScourge1 ) + "/" + UTIL_ToString( CountScourge1 ));
   
   };

   if( (Command == "ff" || Command == "forfeit") && m_Stats && m_GameLoaded && player->CanFF() && m_Map->GetMapType( ).find("dota") != string::npos)
   {
      if(player->GetHasFFed()) 
      {
         player->SetHadFFed( false );
         player->SetCanFF(false);      // w8 1 min
      }
      else
      {
         player->SetHadFFed( true );
         player->SetTimeFFed(GetTime());  //set time         
      }
      
      uint32_t VotesSentinel = 0;
      uint32_t VotesScourge = 0;
      uint32_t CountSentinel = 0;
      uint32_t CountScourge = 0;
      bool team_p=false;
       // sentinel 1
       // scourge 1

      int k=0;
      for( vector<CGameSlot> :: iterator i = m_Slots.begin( ); i != m_Slots.end( ); i++ )
      {
         if( i->GetSlotStatus( ) == SLOTSTATUS_OCCUPIED && i->GetComputer( ) == 0 )
         {
            CGamePlayer *Player = GetPlayerFromPID( i->GetPID( ) );
            if(Player)
            {
               if(k>=0 && k<5)
               {
                  CountSentinel++;
                  if(Player->GetHasFFed())
                  {
                     VotesSentinel++;                     
                  }
                  if (Player->GetName()==player->GetName()) team_p=false; //sentinel
               }
               else if(k>=5 && k<10)
               {
                  CountScourge++;
                  if(Player->GetHasFFed())
                  {
                     VotesScourge++;
                  }
               if (Player->GetName()==player->GetName()) team_p=true; //scourge
               }
            }
         }
         k++;
      }

      if(player->GetHasFFed())
      {
         if (!team_p) {
         //sentinel
            SendAllChat( "Player [" + User + "] gave FF command. Counter for scores of Sentinel: " + UTIL_ToString( VotesSentinel ) + "/" + UTIL_ToString( CountSentinel));
         } else {
         //scourge
            SendAllChat( "Player [" + User + "] gave FF command. Counter for scores of Scourge: " + UTIL_ToString( VotesScourge ) + "/" + UTIL_ToString( CountScourge ));
         }         
      } else
      {
            if (!team_p) {
            SendAllChat( "Player [" + User + "] took his/her oath of FF. Counter for scores of Sentinel: " + UTIL_ToString( VotesSentinel ) + "/" + UTIL_ToString( CountSentinel ));
         } else {
            SendAllChat( "Player [" + User + "] took his/her oath of FF. Counter for scores of Scourge: " + UTIL_ToString( VotesScourge ) + "/" + UTIL_ToString( CountScourge ));
         };
      }

      if((VotesSentinel == CountSentinel) && (CountSentinel!=0) ) // has at least a player
      {
         if (m_Stats != NULL)
            m_Stats->SetWinner(2);     
        //game_ff=true;  //disable autoban //autosave
         SendAllChat("The team FF Sentinel resigned. The Scourge wins this game.");
         if (!m_GameEndCountDownStarted)
                  {
                     CONSOLE_Print( "[GAME: " + m_GameName + "] ending (admin can end the game now with !endn)" );
                     SendAllChat("Game over in 10 secs automatically. YOU CAN LEAVE NOW!");
                     m_GameEndCountDownStarted = true;
                     m_GameEndCountDownCounter = 10;
                     m_GameEndLastCountDownTicks = GetTicks();
                  }
      }
      else if((VotesScourge == CountScourge) && (CountScourge!=0)) // has at least a player
      {
         if (m_Stats != NULL)
            m_Stats->SetWinner(1);   
         //game_ff=true;    //disable autoban  //autosave
         SendAllChat("The team FF Scourge resigned. The Sentinel wins this game.");
         if (!m_GameEndCountDownStarted)
                  {
                     CONSOLE_Print( "[GAME: " + m_GameName + "] ending (admin can end the game now with !endn)" );
                     SendAllChat("Game over in 10 secs automatically. YOU CAN LEAVE NOW!");
                     m_GameEndCountDownStarted = true;
                     m_GameEndCountDownCounter = 10;
                     m_GameEndLastCountDownTicks = GetTicks();
                  }
      }

Gen
Admin
Admin

Posts : 148
Join date : 2012-02-26

http://GarenaID G.M.Bot

Back to top Go down

New project needs coder & testers - Page 2 Empty Re: New project needs coder & testers

Post by lieon Sun Nov 04, 2012 8:15 am

yea i'm sure

lieon
Member
Member

Posts : 18
Join date : 2012-10-04

Back to top Go down

New project needs coder & testers - Page 2 Empty Re: New project needs coder & testers

Post by Gen Sun Nov 04, 2012 8:19 am

check that replay, i've no clue about what happened in your bot, maybe ghostlog & replays will make me see?

Gen
Admin
Admin

Posts : 148
Join date : 2012-02-26

http://GarenaID G.M.Bot

Back to top Go down

New project needs coder & testers - Page 2 Empty Re: New project needs coder & testers

Post by lieon Thu Nov 08, 2012 12:31 am

set maptype to dota and go a game then type !ff you can see this bug

lieon
Member
Member

Posts : 18
Join date : 2012-10-04

Back to top Go down

New project needs coder & testers - Page 2 Empty Re: New project needs coder & testers

Post by Admin Thu Nov 08, 2012 4:35 pm

OK. FIXED & TESTED, take v1.51 for NIL problem with !ff.

Admin
Admin
Admin

Posts : 131
Join date : 2009-08-03

https://thegenmaps.forumotion.net

Back to top Go down

New project needs coder & testers - Page 2 Empty Re: New project needs coder & testers

Post by lieon Mon Nov 19, 2012 11:19 pm

!open !close not work for owners or admins

lieon
Member
Member

Posts : 18
Join date : 2012-10-04

Back to top Go down

New project needs coder & testers - Page 2 Empty Re: New project needs coder & testers

Post by Admin Tue Nov 20, 2012 3:39 am

type !version and say what version you are using?
if the bot says v1.51 then congratz!
If not, download the latest (again).

It should work for admins & owners. Temporary owners have limited rights on closing & opening slots as we don't want them to abuse the commands, resulted that a lot of players can be kicked.

If it doesn't work on LAN, you must have enabled spoofcheck on admins, so look for it in ghostcfg and disable that.

Admin
Admin
Admin

Posts : 131
Join date : 2009-08-03

https://thegenmaps.forumotion.net

Back to top Go down

New project needs coder & testers - Page 2 Empty Re: New project needs coder & testers

Post by lieon Sun Nov 25, 2012 5:38 am

can you share 1.51 source ?

lieon
Member
Member

Posts : 18
Join date : 2012-10-04

Back to top Go down

New project needs coder & testers - Page 2 Empty Re: New project needs coder & testers

Post by Gen Sun Nov 25, 2012 11:34 pm

The source is no longer updated. The SVN is quite pretty dated. See my post in another thread. Don't waste your time needlessly.

Gen
Admin
Admin

Posts : 148
Join date : 2012-02-26

http://GarenaID G.M.Bot

Back to top Go down

New project needs coder & testers - Page 2 Empty Re: New project needs coder & testers

Post by lieon Wed Nov 28, 2012 5:30 am

bad lucky ,

lieon
Member
Member

Posts : 18
Join date : 2012-10-04

Back to top Go down

New project needs coder & testers - Page 2 Empty Re: New project needs coder & testers

Post by lieon Fri Nov 30, 2012 6:46 am

gamelist.php

( ! ) Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\gamelist.php on line 11
Call Stack
# Time Memory Function Location
1 0.0005 140408 {main}( ) ..\gamelist.php:0
2 0.0126 146952 mysql_fetch_array ( ) ..\gamelist.php:11

lieon
Member
Member

Posts : 18
Join date : 2012-10-04

Back to top Go down

New project needs coder & testers - Page 2 Empty Re: New project needs coder & testers

Post by Sponsored content


Sponsored content


Back to top Go down

Page 2 of 2 Previous  1, 2

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum