The Castle Doctrine Forums

Discuss the massively-multiplayer home defense game.

You are not logged in.

#51 Re: Main Forum » Suicide Robbing » 2014-02-01 07:57:42

largestherb wrote:

what is this mentality of throwing away the family?! your partner holds HALF OF YOUR MONEY!

sure back last summer when they did nothing at all, you'd put them at the front door and not even start building until they were dead. but holding 50% of the cash is so amazingly awesome..

the only reason i would purposely have my family exterminated now would be if i were building the ultimate taber house (one step = death)

-Killing them early avoids the griefers.

-Killing them early makes you lose less money.

-Allows ultimate taber house.

#52 Re: Main Forum » Compiling the source » 2014-02-01 02:48:20

_mingw.h:268:2: error: #error Only Win32 target is supported!

The latest error after a fresh install of the sauce.

#53 Re: Main Forum » It's Impossible to make money when you hit the zero money... =/ » 2014-02-01 02:30:08

Vegeta9001 wrote:

Rish is also the best friend of Mr Death. big_smile

Of course when I'm in the *Robber* mode I don't care about the risk...


If you are defencing up, make sure your defences are effective.

If you have 10k $ money, you have to realize what kind of robbers are coming up you.

So, make defences and have some money to lure the robbers.

Put a limit like 5k maybe, and spend every piece of money 'til you hit it.

Get the limit up everytime, once you handle it.

#54 Re: Main Forum » Compiling the source » 2014-02-01 02:14:30

make: *** No rule to make target `../../minorGems/system/win32/windows.h', needed by `../../minorGems/system/win32/TimeWin32.o'.  Stop.


and this would be the new error we'd get. no solutions yet.

#55 Re: Main Forum » Compiling the source » 2014-02-01 02:10:02

the windows.h solution is not completely found atleast by my presence, but:

cp -a FOLDEROFMING /usr/include/

does get the headers I suppose.

#56 Re: Main Forum » Cheater? or Mormon? » 2014-02-01 00:43:28

sebastian wrote:

Antiblitz: Im not the admin :-)
Im just a programmer who understands technology and why some "strange" things happen.
Like why credits card somtimes gets double charged when attempting to pay at a webshop that is experiencing a overload.

I thought everybody would know that.

But, I like how you then link this CC double charge with the "2 robbers" thing. The game doesn't work like that.

Robber sends end map.
Server gets map.

So 2 robbers getting in the same time is NOT possible.

But, it wouldn't do anything as the last robber to finish up will just send the original map used.

The game is open-sourced. fear teh cheaterz.

#59 Re: Main Forum » Suicide Robbing » 2014-02-01 00:02:01

You are doing chain-robbing, but only the first.

Wife and kids are bad. Make sure to get them killed as they might allow your whole area to get griefed.

#60 Re: Main Forum » exploits » 2014-01-31 23:58:13

smilingrob wrote:

Ok here's some better code for unique names for each of the other player's names, that are still consistent.  So you can do revenge.

This makes it "impossible" for people to lan hack, or multi-account hack based on the character name, but it still lets them hack based on the money, so it just makes things more difficult.

in cd_listHouses around 4961 instead of

        $house_user_id = mysql_result( $result, $i, "user_id" );
        $character_name = mysql_result( $result, $i, "character_name" );

do something like

        $house_user_id = mysql_result( $result, $i, "user_id" );
        $character_name = mysql_result( $result, $i, "character_name" );
	$seedRand = crc32( $user_id . " ". $house_user_id . " " . $character_name);
	$character_name = cd_pickFullName( $seedRand );

and then bubble that $seedRand up into the actual random like this:

function cd_pickName( $inTableName, $seedRand = null ) {
    global $tableNamePrefix;
	
	$tableName = $tableNamePrefix . $inTableName;
	
	if ($seedRand === null) {
		// get a rand from MySQL

		$query = "SELECT FLOOR( RAND() * MAX( cumulative_count) ) FROM ".
			$tableName .";";

	} else {
		// rand seed passed in, potentially different for every player player combo.

		mt_srand($seedRand);

		$rand = floatval(mt_rand(1, 1000000)) / 1000000.0;
			
		$query = "SELECT FLOOR( $rand * MAX( cumulative_count) ) FROM ".
			$tableName .";";

	}
	$result = cd_queryDatabase( $query );
	
    $cumulativeTarget = mysql_result( $result, 0, 0 );
    ...

So a client can send a MySQL query?

What if they send a query to dump the whole DB?

What I said can make it hard enough: "Maybe get it with HWID, where server checks if the current HWID is used for another The Castle Doctrine existence, the other ones will be disconnected.
and make sure the program doesn't run at VMs."

But yeah, your game is open-source. You can't stop the cheating, they can overwrite it.

#61 Re: Main Forum » exploits » 2014-01-31 23:10:57

jasonrohrer wrote:

Well, the point is, there is literally nothing I can do about it!

I can't track IP addresses, because that would mean two people playing from behind the same NAT (one shared external address) would block each other.  And even if I did that, people could play the game through a proxy or TOR or other means to give their second account a second address.

All I can do is make it a pain to use a second account.  Chills help somewhat with this (can't keep using suicide to pass money between accounts more than once per hour).  The timeout before a new house shows up on the house list also helps.

And, with more players, figuring out the name on your second account will be much harder (and I'm fixing the protocol to hide the user ID form the house list---I just noticed this).

Maybe get it with HWID, where server checks if the current HWID is used for another The Castle Doctrine existence, the other ones will be disconnected.

and make sure the program doesn't run at VMs.

#62 Re: Main Forum » Compiling the source » 2014-01-31 23:08:04

blankettyblankblank wrote:

Hi,

I'm getting the same error as above post about windows.h. Fresh (virtual) install of Ubuntu, just installed g++, mingw, sdl, windows.h is in the mingw folder in /usr/. Any ideas?

Mate, I kinda got what is causing this.

mingW's "<>" includes can't find it although they exist at /usr/include/mingwfolder/.

I manually copy-pasted the windows.h and changed the <> into "" so it would get called from the same folder as the .cpp file.


But I'm sure a more clean way is possible, so I'm googling for it. When I find it, I'll post it.

#63 Re: Main Forum » Why Doesn't Reaching An Empty Vault End Your Robbery? » 2014-01-31 14:57:18

Lorak wrote:

I just died because after making my way through a house, the vault at the end was empty (What causes a vault to be empty, anyway?  This place supposedly had $1100 in it).  My path back was blocked by an electrified floor which I had no way to get past, and I had to kill myself, despite reaching the vault successfully.

I have to ask why is this the case?  If you reach a non-empty vault, you magically teleport out with all the goods, so why don't you magically teleport out when you reach an empty vault?

Wife possibly had the money you wanted.

I agree with the teleporting-out-when-reaching-the-empty-vault idea though,

OR an indicator that shows the vault is empty.

#64 Re: Main Forum » Compiling the source » 2014-01-31 14:48:58

bump.

the error I can't deal with is:


http://pastebin.com/yfCSh856


got OpenGL, got SDL, got minGW with gcc++

#65 Re: Main Forum » Compiling the source » 2014-01-31 13:32:02

--------------------------------------------------

Please write somewhere what is required to build the client for all the operating systems supported.

I seemed to get SDL,OpenGL and such but a list of them would help a lot of other people.

#66 Re: Main Forum » Compiling the source » 2014-01-31 12:49:26

jasonrohrer wrote:

You mean the DL for the g++ MinGW package?

Gosh, I haven't installed MinGW in an awfully long time, so I don't remember.  There are instructions here:

http://www.mingw.org/wiki/InstallationHOWTOforMinGW

I think there's an "automated package installer" thing for MinGW now that lets you check boxes for things like g++ (or maybe it's included with GCC).

Or maybe you mean linking to a DL of the client that you build?  :-)


I meant the downloading link for the minGW.

http://pastebin.com/hmRiwfDB

This is the new error now.

#67 Re: Main Forum » Compiling the source » 2014-01-31 12:27:08

jasonrohrer wrote:

Also... please behave with your custom-compiled Windows binary....

Shall I fear my tapes in-game all to be watched?

Still, thanks.

PS: I'd like it if you did link the DL.

#68 Main Forum » Compiling the source » 2014-01-31 12:15:15

DaVinci
Replies: 23

When I'm trying to compile the source, I do my ./configure , select windows.

next step, I go to gameSource and do a make.


http://pastebin.com/vVh2HsSb

^ posted the error.




Thanks in advance.

Board footer

Powered by FluxBB 1.5.8