Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Realm Conquest System Details »»
Realm Conquest System
Version: 1.3.0, by Jaxel Jaxel is offline
Developer Last Online: Sep 2013 Show Printable Version Email this Page

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.

Product Demo:
http://www.8wayrun.com/conquest.php
Installation Procedure:
  1. Upload all files in the "upload" directory to your forum root.
  2. CHMOD /conquest/nations to 777.
  3. Import the product "product-conquest.xml" in your Product Manager.
Upgrade Procedure:
  1. Upload all files in the "upload" directory to your forum root.
  2. Import the product "product-conquest.xml" in your Product Manager.

Don't forget to click INSTALL!

If you want to donate, I'm all for it... as I'm an unemployed computer programmer...

Download Now

File Type: zip Conquest-1.3.0.zip (208.2 KB, 1187 views)

Screenshots

File Type: jpg conquest-index.jpg (259.9 KB, 0 views)
File Type: jpg conquest-home.jpg (222.8 KB, 0 views)
File Type: jpg conquest-armory.jpg (212.6 KB, 0 views)
File Type: jpg conquest-barracks.jpg (258.6 KB, 0 views)
File Type: jpg conquest-scout.jpg (218.4 KB, 0 views)
File Type: jpg conquest-admin-settings.jpg (238.0 KB, 0 views)
File Type: jpg conquest-admin-nations.jpg (217.8 KB, 0 views)
File Type: jpg conquest-admin-armor.jpg (190.7 KB, 0 views)
File Type: jpg conquest-admin-reset.jpg (217.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
Developerz, kevin.kool

Comments
  #402  
Old 07-03-2009, 06:07 PM
Sayid Sayid is offline
 
Join Date: Jan 2009
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Health first, money second and other mods third.
I like this post :d
Reply With Quote
  #403  
Old 07-05-2009, 08:13 AM
Dutch_Boy Dutch_Boy is offline
 
Join Date: Dec 2007
Location: The Netherlands
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #404  
Old 07-06-2009, 01:32 AM
moat moat is offline
 
Join Date: Dec 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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");

$time time();
// $next = $settings[gLastCycle] + (60 * $settings[gCycleMinutes]);
$loopz = (time()-$settings[gLastCycle]) / 1800;
$roundednext time() - (time() % 1800);

// 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
    "
);

    while (
$player $vbulletin->db->fetch_array($players))
    {
        
$spyCost $player[pSpies] * $settings[gSpyUpkeep];
        
$goldGain ceil($settings[gCycleGold] * ($player[nIncome]/100)) - $spyCost;

        
$newTurns $player[pTurns] + $settings[gCycleTurns];
        
$newGold $player[pGold] + $goldGain;
        
$newTroops $player[pTroops] + $settings[gCycleTroops];

        if (
$newTroops $settings[gMinTroops]) { $newTroops $settings[gMinTroops]; }
        if (
$newTurns $settings[gMaxTurns]) { $newTurns $settings[gMaxTurns]; }

        
$vbulletin->db->query_write("
            UPDATE IGNORE "
.TABLE_PREFIX."conquest_players
            SET    pTurns = "
.$newTurns.",
                pGold = "
.$newGold.",
                pTroops = "
.$newTroops."
            WHERE playerID = "
.$player[playerID]."
        "
);
    }
}

?>
Reply With Quote
  #405  
Old 07-06-2009, 12:30 PM
Xencored Xencored is offline
 
Join Date: Sep 2008
Location: UK, Scuny
Posts: 1,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #406  
Old 07-06-2009, 07:47 PM
Dutch_Boy Dutch_Boy is offline
 
Join Date: Dec 2007
Location: The Netherlands
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by moat View Post
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");

$time time();
// $next = $settings[gLastCycle] + (60 * $settings[gCycleMinutes]);
$loopz = (time()-$settings[gLastCycle]) / 1800;
$roundednext time() - (time() % 1800);

// 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
    "
);

    while (
$player $vbulletin->db->fetch_array($players))
    {
        
$spyCost $player[pSpies] * $settings[gSpyUpkeep];
        
$goldGain ceil($settings[gCycleGold] * ($player[nIncome]/100)) - $spyCost;

        
$newTurns $player[pTurns] + $settings[gCycleTurns];
        
$newGold $player[pGold] + $goldGain;
        
$newTroops $player[pTroops] + $settings[gCycleTroops];

        if (
$newTroops $settings[gMinTroops]) { $newTroops $settings[gMinTroops]; }
        if (
$newTurns $settings[gMaxTurns]) { $newTurns $settings[gMaxTurns]; }

        
$vbulletin->db->query_write("
            UPDATE IGNORE "
.TABLE_PREFIX."conquest_players
            SET    pTurns = "
.$newTurns.",
                pGold = "
.$newGold.",
                pTroops = "
.$newTroops."
            WHERE playerID = "
.$player[playerID]."
        "
);
    }
}

?>
Where do i need to put this code?
Reply With Quote
  #407  
Old 07-07-2009, 04:05 AM
ged's Avatar
ged ged is offline
 
Join Date: Feb 2005
Location: Istanbul, Turkey
Posts: 207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dutch_Boy View Post
Where do i need to put this code?
Quote:
Originally Posted by moat View Post
My conquestCycle.php
There it is.
Reply With Quote
  #408  
Old 07-07-2009, 04:07 AM
moat moat is offline
 
Join Date: Dec 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

conquestCycle.php is in {forum}/includes/cron
Reply With Quote
  #409  
Old 07-07-2009, 11:19 AM
therogueforums's Avatar
therogueforums therogueforums is offline
 
Join Date: Mar 2007
Location: Louisville, KY
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #410  
Old 07-08-2009, 11:01 AM
Tagert Tagert is offline
 
Join Date: Sep 2008
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like this mod! I look forward to the updates !
Keep it up !
Reply With Quote
  #411  
Old 07-13-2009, 12:06 AM
amish_irish amish_irish is offline
 
Join Date: Aug 2008
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:13 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07273 seconds
  • Memory Usage 2,400KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete