Version: 1.3.0, by Jaxel
Developer Last Online: Sep 2013
Category: Major Additions -
Version: 3.8.x
Rating:
Released: 04-21-2009
Last Update: 04-28-2009
Installs: 211
DB Changes Uses Plugins
Additional Files
No support by the author.
This Conquest System is very similar to the vBarmy system, except it has a few specific fundamental changes. Instead of every player working alone to fight other players, players work together as a single nation to fight other players who are members of different nations. Everything else in the system is pretty much self-explanitory.
Just installed the mod on my forum and the people love it
I love it too!
Not sure if this has been mentioned before, but are there any plans on adding like a bribe feature.
Like player xx bribes player yy with xx amount of gold in order for him to join his nation or something like that :P
I am sorry but that would be a terrible addition as #1 people will nation hope just for cash & #2 1 person in a nation doesn't make much of a difference so it would be a waste to "bribe" them to join.
Darkfire122333, know how to resolve this issue? Get a Fatal error and too much memory was being used.
Best advice I can offer is reset the game. Reduce all the values of everything so that it will not add up to a million defense rating...
maybe add a reset feature to the game, that the game resets say.. once per month... giving people a chance to have a fun time playing and not have to battle all the high players all the time. This is just my optinion, it is not a fix, but a work-around.
Quote:
Originally Posted by tipoboy
i had over a million defense rating on village overview and had no problem.
Jaxel is there a way to use different image extensions, i'd like to use animated gif's or transparent png's as images, instead of jpegs
thanks mate
I would say open Conquest.php and look for "jpg". I did that, came up with about 7 options, change them all to bmp, or gif or whatever, and should work
DO NOT QUOTE ME ON THAT! I do not have a personal board to do this on, only my public one, and I am personally not going to try this on a running board. Sorry.
Major error.... I went to attack a user who joined in and got a huge error
Quote:
Fatal error:
* The following users were not found:
1. "
2. THE"
3. TRICKY
Unable to proceed with save while $errors array is not empty in class vB_DataManager_PM in [path]/includes/class_dm.php on line 810
#0 vb_error_handler(256,
* The following users were not found:
1. "
2. THE"
3. TRICKY
That was followed by a huge block of code/arrays that I can't screen shot or copy and paste due to it's length.
I'm assuming it's due to the user having " in his name since I removed " from his username and it works again.
Also, Suggestion: a clock in the conquest system that tells the users how long until the next cycle hits.
I decided to uninstall the game on my site untill the errors are all fixed. I'll keep an eye on the thread and play on jaxals site. Once its all good I'll reinstall.
Re-Quoting how to edit so that teams have to be balanced... since people cannot read back few pages ^.^
Quote:
Originally Posted by Collussus
I fixed it up the ugly way. No plugins since there's no hooks in his add-on whatsoever, so i'm afraid you're gonna have to dig up the php files....
open up conquest.php
replace the whole
PHP Code:
if ($_REQUEST['do'] == 'enlist') { $totals = $vbulletin->db->query_first("SELECT COUNT(playerID) AS playerID, SUM(pGold) AS pGold, SUM(pTroops) AS pTroops FROM ".TABLE_PREFIX."conquest_players AS conquest_players ");
if (!$totals['playerID']) { $totals['playerID'] = 1; } if (!$totals['pGold']) { $totals['pGold'] = 1; } if (!$totals['pTroops']) { $totals['pTroops'] = 1; }
$nations = $vbulletin->db->query_read("SELECT conquest_nations.*, COUNT(playerID) AS playerID, SUM(pGold) AS pGold, SUM(pTroops) AS pTroops FROM ".TABLE_PREFIX."conquest_nations AS conquest_nations LEFT JOIN ".TABLE_PREFIX."conquest_players AS conquest_players ON conquest_nations.nationID = conquest_players.nationID GROUP BY conquest_nations.nationID ");
if ($_REQUEST['do'] == 'enlist') { $totals = $vbulletin->db->query_first("SELECT COUNT(playerID) AS playerID, SUM(pGold) AS pGold, SUM(pTroops) AS pTroops FROM ".TABLE_PREFIX."conquest_players AS conquest_players "); if (!$totals['playerID']) { $totals['playerID'] = 1; } if (!$totals['pGold']) { $totals['pGold'] = 1; } if (!$totals['pTroops']) { $totals['pTroops'] = 1; }
$nations = $vbulletin->db->query_read("SELECT conquest_nations.*, COUNT(playerID) AS playerID, SUM(pGold) AS pGold, SUM(pTroops) AS pTroops FROM ".TABLE_PREFIX."conquest_nations AS conquest_nations LEFT JOIN ".TABLE_PREFIX."conquest_players AS conquest_players ON conquest_nations.nationID = conquest_players.nationID GROUP BY conquest_nations.nationID "); $nationsagain = $vbulletin->db->query_read("SELECT conquest_nations.*, COUNT(playerID) AS playerID, SUM(pGold) AS pGold, SUM(pTroops) AS pTroops FROM ".TABLE_PREFIX."conquest_nations AS conquest_nations LEFT JOIN ".TABLE_PREFIX."conquest_players AS conquest_players ON conquest_nations.nationID = conquest_players.nationID GROUP BY conquest_nations.nationID "); $totaleverything = array(); while($nation2 = $vbulletin->db->fetch_array($nationsagain)) { $totaleverything[] = number_format((($nation2['playerID']) + ($nation2['pTroops'])) / ($totals['playerID'] + $totals['pTroops']) * 100, 2);