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.
I got a problem with Conquest System. Normaly you get after 1 hour 1 turn etc, but after 8 hours i only got 4 turns Does someone know about this problem and how to fix it?
Had that same issue. Our forum is mostly local so its doesn't get any hits overnight. The way VB's scheduling works if noone's hit the site for a few hours the next person only triggers one update and doesn't catchup on the missed ones. I made a few changes to the update script to calculate the number of missed updates and perform a catchup of the missed ones (just wrapped the existing code in a loop)
My conquestCycle.php below. I've changed the update time to 30 mins (the figure of 1800 in 2 lines below) and changed the VB scheduler to 15 minutes. A bit rough but it worked.
PHP Code:
<?php
// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
if (!is_object($vbulletin->db))
{
exit;
}
// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################
$settings = $vbulletin->db->query_first("SELECT * FROM ".TABLE_PREFIX."conquest_gameset");
// if ($time >= $next)
for($i=1;$i<=$loopz;$i++)
{
$vbulletin->db->query_write("UPDATE IGNORE ".TABLE_PREFIX."conquest_gameset SET gLastCycle = '".$roundednext."'");
$players = $vbulletin->db->query_read("SELECT * FROM ".TABLE_PREFIX."conquest_players AS conquest_players
LEFT JOIN ".TABLE_PREFIX."conquest_nations AS conquest_nations ON conquest_players.nationID = conquest_nations.nationID
");
Jaxel is there any way i can add the (Turns and gold) to just "Private Messages: Unread 0, Total 55" in the navbar bit so people can see when they get turns etc..
this gets used so much on my forum lol
Thanks for this great mod
Had that same issue. Our forum is mostly local so its doesn't get any hits overnight. The way VB's scheduling works if noone's hit the site for a few hours the next person only triggers one update and doesn't catchup on the missed ones. I made a few changes to the update script to calculate the number of missed updates and perform a catchup of the missed ones (just wrapped the existing code in a loop)
My conquestCycle.php below. I've changed the update time to 30 mins (the figure of 1800 in 2 lines below) and changed the VB scheduler to 15 minutes. A bit rough but it worked.
PHP Code:
<?php
// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
if (!is_object($vbulletin->db))
{
exit;
}
// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################
$settings = $vbulletin->db->query_first("SELECT * FROM ".TABLE_PREFIX."conquest_gameset");
// if ($time >= $next)
for($i=1;$i<=$loopz;$i++)
{
$vbulletin->db->query_write("UPDATE IGNORE ".TABLE_PREFIX."conquest_gameset SET gLastCycle = '".$roundednext."'");
$players = $vbulletin->db->query_read("SELECT * FROM ".TABLE_PREFIX."conquest_players AS conquest_players
LEFT JOIN ".TABLE_PREFIX."conquest_nations AS conquest_nations ON conquest_players.nationID = conquest_nations.nationID
");
Can anyone please tell me how to change a player's nation? One nation has grown extremely powerful, as everyone is joining that one, and I'd like to even the odds, and switch teams.
EDIT: Nevermind. I found the SQL is pretty easily to manipulate.
I am thinking about bringing this into my site but my users will not be excited about the ..um.... fantasy aspect of it, it is a sports forum. So I was thinking about changing some of the terms and changing the three nation graphics. The latter is easy enough to do. What I am worried about is that I will be screwed when I go to update the product. Do you think this will be an issue? Is there a safe way for me to change it?