Official GHost++ Home - Codelain.com
May 21, 2013, 03:29:16 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1] 2 3 ... 5
  Print  
Author Topic: GenPatch: FakePlayers in lobby  (Read 3552 times)
0 Members and 1 Guest are viewing this topic.
Gen
Distinct Contributor
***
Offline Offline

Posts: 749


View Profile
« on: July 24, 2012, 12:36:50 AM »

FakePlayers 1.1, working revision
fakeplayer1.1_fix4version1.0.patch & fkplayers1.1 Released.

If you have never installed any fakeplayer patch, give fkplayers1.1.patch a shot.
If you have installed the old version, please use the fix to update.


Features:
- setting ## bot fakes players in lobby, 0 = disable, 1 = enable
bot_fakeplayersinlobby = 1 in your ghost.cfg to enable/disable the effect of the patch
- rcfg : working with reload ghost.cfg as you wish to disable/enable it.
- FakePlayers' names are changeable with the list.
- Auto create a few delicate fakeplayers every time Ghost creates game.
- The patch is well calculated to prevent a trash lobby.
When a player joined the lobby:
- Auto delete a fakeplayer once numbers of open slots < 2
When a player left the lobby:
- Auto insert a few of fakeplayers while numbers of open slots > 2 and numbers of human players < 4.
- if numbers of human players > = 4, auto insert A fakeplayer if numbers of open slots > 3 in replace for the left player.

Code:
Patching files: .patch file & fpnames.txt
-fpnames.txt must be placed in GhostOne root directory
The Patch WON*T WORK if fpnames.txt is MISSING

Not sure about patching? Give http://ghost-one.googlecode.com/svn/trunk/ a reference

Quote
Patching difficulty level: intermediate Ghost users with the possibility to build a solution(in Visual C++2008) for recompiling Ghost
Manual Patching is recommended. Use your copy & pasting skills,

- row : means to delete row in your current cpp or h file
+ row: insert it to your file


More infos & patches at http://thegenmaps.tk
Credits to Gen for creating this patch.
Comments & advices are welcome.
but go making the patch yourself before criticizing.

It's optional to add this to the patch but maybe better to include this in ghost.cpp as for some reasons it's missing when I created the patch file.

OUTCOME: A GAMEFUL of PLAYERS:



PLS get back to this thread and give some feedbacks after your patching, testing, hosting & playing.

ARE YOU Having some problems hosting warcraft games?
OR having some problems applying the patches for new ghost.exe?
Check out & Download the modded version of GhostOne by Gen, all useful things featured for your use.

Code:
//auto delete fake player(s)
if (m_FPEnable){
if ( ( GetSlotsOpen( ) < 2 || GetNumHumanPlayers( ) > 3 ) && !m_FakePlayers.empty() )
DeleteAFakePlayer( ); // we delete a fp when the lobby has < 2 open slots or > 3 human players
else if ( GetSlotsOpen( ) > 3 && GetNumHumanPlayers( ) < 4 && m_FakePlayers.size() < 3 )
CreateFakePlayer( ); // we only allow a maximum of 3 fps to be created, no fp added once there're >=4 human ppls in lobby, the number of them then declines gradually
}
« Last Edit: August 20, 2012, 08:57:48 AM by Gen » Logged

Review Gen modded GhostOne version info by
1- ghost.cfg
2- details with changelog
Official GHost++ Home - Codelain.com
« on: July 24, 2012, 12:36:50 AM »

 Logged
MastaKilla
Distinct Contributor
***
Offline Offline

Posts: 444


View Profile
« Reply #1 on: July 24, 2012, 12:53:16 AM »

This might not be the best place to ask, but since you started this topic... Smiley I never got what FakePlayers are good for and I never used/needed them so far...?! Please enlighten me (:
Logged
Metal_Koola
Chief Technical Officer
Distinct Contributor
*
Offline Offline

Posts: 1779


I've seen things with my eyes...


View Profile
« Reply #2 on: July 24, 2012, 01:24:04 AM »

Originally fakeplayers could be used to test out commands and packets. Any ingame chat packet would have to be sent as long as there is a target to send to, meaning, there has to be another player, but constant testing is quite hard to do because the people who are interested might not be working at the same time, so you could use a "Fakeplayer" to create a target for the chat commands to be sent to, and any other commands in that regard.
Logged

I've seen things
I've seen them with my eyes
I've seen things, they're often in disguise!


Even though I am a moderator, I do not want PM's of your problems.
Post topics, they are usually answered more oft.


Metal.Koola@gmail.com
MastaKilla
Distinct Contributor
***
Offline Offline

Posts: 444


View Profile
« Reply #3 on: July 24, 2012, 01:29:59 AM »

Oh, great to know, thx. I always abused my clan members to do the testing, getting banned.. over and over again Wink Or getting rude replys when abusing bot commands or just to test new commands and chat commands Cheesy
Logged
uakf.b
Chief Technical Officer
Distinct Contributor
*
Offline Offline

Posts: 5139



View Profile
« Reply #4 on: July 24, 2012, 01:35:49 AM »

On the other hand, this patch seems to be meant to abuse fake players to trick actual players into thinking that there's more people than there really are in the lobby. I'm not sure though.
Logged
Kapanol
Initiate

Offline Offline

Posts: 45


View Profile
« Reply #5 on: July 24, 2012, 05:18:59 AM »

ok so i placed the .txt in the root directory but im not sure about .patch
Logged
Gen
Distinct Contributor
***
Offline Offline

Posts: 749


View Profile
« Reply #6 on: July 24, 2012, 06:01:53 AM »

apply the patch correctly as instructed (see quote part), the patch tells you where to insert/delete the codes/values/variables,...

Use the SVN trunk as a reference if you get stuck somewhere. I didn't luckily have the trunk like you now to compare things & consider if I'd have made things wrongly and had to figure out things myself. Yet thanks to that, I learned to make few systems & am able to cr8 few patches. The patch is fully working and the Gen host is a proof.
« Last Edit: July 24, 2012, 06:04:24 AM by Gen » Logged

Review Gen modded GhostOne version info by
1- ghost.cfg
2- details with changelog
uakf.b
Chief Technical Officer
Distinct Contributor
*
Offline Offline

Posts: 5139



View Profile
« Reply #7 on: July 24, 2012, 06:16:01 AM »

But what does the patch do?
Logged
Gen
Distinct Contributor
***
Offline Offline

Posts: 749


View Profile
« Reply #8 on: July 24, 2012, 06:42:34 AM »

Re-read the features.
Logged

Review Gen modded GhostOne version info by
1- ghost.cfg
2- details with changelog
MastaKilla
Distinct Contributor
***
Offline Offline

Posts: 444


View Profile
« Reply #9 on: July 24, 2012, 07:15:59 AM »

Well, I'd like to know the same. GHostOne already has !FAKEPLAYER etc. commands, to actually fake players I guess (never tested it though).

But wouldn't it be nice to have real players in the end?  Huh

In all your listed features this is the only thing actually saying what it's doing.
Quote
- Auto create a few of fakeplayers every time Ghost creates game.

But why do I want 3-4 fakeplayers in all my games?
« Last Edit: July 24, 2012, 07:18:32 AM by MastaKilla » Logged
Gen
Distinct Contributor
***
Offline Offline

Posts: 749


View Profile
« Reply #10 on: July 24, 2012, 07:25:33 AM »

Code:
GHostOne already has !FAKEPLAYER etc.
that allows you to cr8 only 1 FP.
Imagine why some pyramid escape games in my host get even 9, 10 or full (12) players when the games started.

Many people just download & quit right away or just come to a strange map but never wanna try/discover new game/new map & never has any curiousity + patience enough for a while for other players to join them. 1 join 1 quit, or 2 join 1 quit, all the time no game.

Quote from: GenPatch Working Ban for LAN
It'd be a time value (30s-1 min, depending how tough you are) set by the owner allowing the system to ban early leavers/quitters who can't afford a little time to wait few ppls to join for a game. When a lobby full of leavers no game will be fired on the host.

 By tricking them, the fakeplayers help here to hold some ppls for a little while WHILE others are coming or just about to come to join them. The lobby will get filled up quickier or get more than 4 ppls, meaning quite enough for a game.
Logged

Review Gen modded GhostOne version info by
1- ghost.cfg
2- details with changelog
MastaKilla
Distinct Contributor
***
Offline Offline

Posts: 444


View Profile
« Reply #11 on: July 24, 2012, 07:42:39 AM »

On the other hand, this patch seems to be meant to abuse fake players to trick actual players into thinking that there's more people than there really are in the lobby. I'm not sure though.

Ah, I see. So you could have just said "Yes, thats the point Smiley" ?!

Cheesy
Logged
Gen
Distinct Contributor
***
Offline Offline

Posts: 749


View Profile
« Reply #12 on: July 24, 2012, 11:00:38 AM »

Quote from: MastaKilla
But why do I want 3-4 fakeplayers in all my games?
Tho the statement should be why do I want 3-4 fakeplayers in my lobby ?

Players aren't that smart to recognize this. The announcement message told them every 313 second, but they just keep writing go, start, .f, .start:

Type !owner to gain control of lobby: !a, !as, !fp, !dfs, !close, !closeall, !swap, !open, !openall, !holds, !hold, !unhold, !startn

I observed the lobby and copied this announcement for many times. A player, he said whatever .. he doesn't care, and he just kept writing craps to make people get bored & impatient.
Logged

Review Gen modded GhostOne version info by
1- ghost.cfg
2- details with changelog
styler_ro
Distinct Contributor
***
Offline Offline

Posts: 595



View Profile
« Reply #13 on: July 24, 2012, 02:46:32 PM »

MastaKilla is a fakeplayer? Smiley)

In my ghostonebot I have 1 FP perma observer(slot 12) to print messages(bans/ping etc..) in game. Now, can you add 1 FP to be perma observer in your patch?
« Last Edit: July 24, 2012, 03:03:31 PM by styler_ro » Logged
0x6D48
Distinct Contributor
***
Offline Offline

Posts: 956


Google is your friend.


View Profile WWW
« Reply #14 on: July 24, 2012, 03:28:50 PM »

Quote from: MastaKilla
But why do I want 3-4 fakeplayers in all my games?
Tho the statement should be why do I want 3-4 fakeplayers in my lobby ?

Players aren't that smart to recognize this. The announcement message told them every 313 second, but they just keep writing go, start, .f, .start:
As far as operator tasks go GHost++ is pretty much as idiot proof as it gets respecting the point that it is a (relatively) high performance server application.

Either you write software that is high-performance (medium to large scale server programs necessarily need to be high-performance) or you write software that every preschool kid can use. GHost++ is a high-performance server application and as such can never provide the simplicity of a desktop application without sacrificing too much performance.
Either tell those people to go to school and learn how to use their brain or just ignore them. The only mean to cure stupidity is education. Fighting symptoms will necessarily lead to other issues.

What will you do about the people who can't read English? Will you replace localization in GHost++ for internationalization and let the user choose a locale just for him?
Then what about those people able to read it but too stupid to understand? Will you implement ASCII art pictures to illustrate how things work?
This issue is a circle. There will never be an end in sight.
Logged

Fork GHost++ on GitHub and contribute.

There are no stupid questions. But there are a LOT of inquisitive idiots.
FREE 24/7 SUPPORT!
Pages: [1] 2 3 ... 5
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!