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
Thống Kê/Statistic
New project needs coder & testers
5 posters
ProGamingEXP - PROFESSIONAL GAMING EXPERIENCE :: Modding, Programming & Hosting :: Project & Development in Programming
Page 2 of 2
Page 2 of 2 • 1, 2
Re: New project needs coder & testers
bot crashed after us !ff command in game
lieon- Member
- Posts : 18
Join date : 2012-10-04
Re: New project needs coder & testers
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:
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
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
Last edited by russoka on Sun Nov 04, 2012 3:50 am; edited 1 time in total
russoka- Active Member
- Posts : 53
Join date : 2012-10-25
Age : 34
Location : Russia / Far East
Testing
Your Garena ID:
Re: New project needs coder & testers
mySQL database is the best choice for a ban system to fully work.
You need to add a table:
Code:
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.
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;
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.
Re: New project needs coder & testers
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
- Posts : 18
Join date : 2012-10-04
Re: New project needs coder & testers
1.50 svn? I not see archive.
russoka- Active Member
- Posts : 53
Join date : 2012-10-25
Age : 34
Location : Russia / Far East
Testing
Your Garena ID:
Re: New project needs coder & testers
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
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).
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- Active Member
- Posts : 53
Join date : 2012-10-25
Age : 34
Location : Russia / Far East
Testing
Your Garena ID:
Re: New project needs coder & testers
offc post
how can config autohosting to prv i want just safelist can join the bot
how can config autohosting to prv i want just safelist can join the bot
lieon- Member
- Posts : 18
Join date : 2012-10-04
Re: New project needs coder & testers
still crashed after use !ff command
lieon- Member
- Posts : 18
Join date : 2012-10-04
Re: New project needs coder & testers
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.]
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();
}
}
Re: New project needs coder & testers
check that replay, i've no clue about what happened in your bot, maybe ghostlog & replays will make me see?
Re: New project needs coder & testers
set maptype to dota and go a game then type !ff you can see this bug
lieon- Member
- Posts : 18
Join date : 2012-10-04
Re: New project needs coder & testers
!open !close not work for owners or admins
lieon- Member
- Posts : 18
Join date : 2012-10-04
Re: New project needs coder & testers
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.
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.
Re: New project needs coder & testers
can you share 1.51 source ?
lieon- Member
- Posts : 18
Join date : 2012-10-04
Re: New project needs coder & testers
The source is no longer updated. The SVN is quite pretty dated. See my post in another thread. Don't waste your time needlessly.
Re: New project needs coder & testers
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
( ! ) 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
- Posts : 18
Join date : 2012-10-04
Page 2 of 2 • 1, 2
ProGamingEXP - PROFESSIONAL GAMING EXPERIENCE :: Modding, Programming & Hosting :: Project & Development in Programming
Page 2 of 2
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Tue Nov 24, 2015 6:08 am by kingsamurie
» Strange Invalid version error after changing to bnet version 26
Wed Oct 07, 2015 9:26 am by Gen
» Perfect-G 412KANAKO Gallery
Wed Sep 23, 2015 11:32 pm by Guest
» Fully Naked Pics Of Jessica Gomes
Tue Jul 07, 2015 5:57 pm by Guest
» The One Tree Hill Season 3
Sun Jun 07, 2015 11:27 am by Guest
» The One Tree Hill Season 3
Sun Jun 07, 2015 11:20 am by Guest
» When i host i get this error using Gen MOdded Ghostone(Latest ver)
Mon Apr 21, 2014 12:00 am by kingsamurie
» When i type !map on any kind of map i get this error
Sun Apr 20, 2014 11:59 pm by kingsamurie
» Players get kicked
Thu Oct 17, 2013 1:51 am by keisersoze
» Where to find Games!
Tue Oct 15, 2013 11:22 am by kokkis