Wow, You Don't Say!

You can talk about anything here, not necessarily game-related. You may also advertise here.
Turock
Forum Maniac
Posts: 289
Joined: Sat Jan 07, 2006 12:45 am
Contact:

Post by Turock »

Something that I just remembered also is that I had to change mySQL to not use persistent connections. Even though the server was set to allow persistent connections, using mysql_pconnect(); would cause the game to randomly display the error: database is not available, blah, blah...

An entry in the config.php could be used to choose between the connection types. Not really a big thing, but thought that I would mention it.
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

Thanks for the suggestion; I added that quickly before the release.
:wq
Turock
Forum Maniac
Posts: 289
Joined: Sat Jan 07, 2006 12:45 am
Contact:

Post by Turock »

You don't happen to remember what the fix was for the recruit/cashing bug was do you?
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

It was in spells.php if that's what you mean.

Are you doing a selective upgrade?
:wq
Turock
Forum Maniac
Posts: 289
Joined: Sat Jan 07, 2006 12:45 am
Contact:

Post by Turock »

Well, I had made a lot of changes in the version that I was running and the only real problem that we had was the recruit/cashing issue that I mentioned. Is there a changelog for the versions?
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

Not really; we're too busy to use a ChangeLog.

Here's an idea though. Why don't you set up the clean FAF version in one directory of your server, yours in the other, and then do a diff on them? I think the command is:

diff -Naur dir1 dir2

Then we could merge your patches into ours, maybe, so both our servers would benefit?
:wq
Turock
Forum Maniac
Posts: 289
Joined: Sat Jan 07, 2006 12:45 am
Contact:

Post by Turock »

Well, my coding would be a hack compaired to what you guys do. Smarty and I don't seem to get along very well, *laughs*!

A number of changes had to do with us making the game more of a generic medieval theme. It tooks a bit of time to go through all the templates and code in order to change say hawks to mages, etc.

I have a few questions though, in config.php what do these do?
$config['force_atktype'] = 2;
$config['force_atkland'] = 500;
$config['atkoffset'] = 6 ;# Offset of troop attacks

and if $config['warset'] = 0; does that mean that $config['max_attacks'] = 20; would limit all attacks on an empire to just 20 before getting the 'attacked to recently message'?
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

Hawks are actually set in config.php; just change 'Hawks' to 'Mages' in config.php and the change will automatically appear in the templates.

As for the other things -- force means that under 500 acres, players have to use attack type 2 (Standard Attack); in order to make kills harder.

atkoffset don't worry about.

'warset' means allowing war declarations (similar to clan war, but 36 hour expiration).

cheers
~B
:wq
Turock
Forum Maniac
Posts: 289
Joined: Sat Jan 07, 2006 12:45 am
Contact:

Post by Turock »

Hawks are actually set in config.php; just change 'Hawks' to 'Mages' in config.php and the change will automatically appear in the templates.
If only it was that easy :) There are lots of places in the script that just use the word hawks instead of using $config['er'][101]['wizards'];
'warset' means allowing war declarations (similar to clan war, but 36 hour expiration).
What I need is to not allow unlimited attacks on empires. Unless I'm mistaken, setting warset = 0 then max_attacks = 20 would do this?
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

Actually, it should be $uera['wizards'] but nvm.

And as to your second question, yes. That still leaves clan war though.
:wq
Post Reply
  • Members connected in real time

    🔒 Close the panel of connected members