Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

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
  #282  
Old 05-11-2009, 08:49 PM
Sugoi na Sugoi na is offline
 
Join Date: Feb 2009
Location: Tokyo
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tagert View Post
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.
Reply With Quote
  #283  
Old 05-11-2009, 09:10 PM
BlueNinjaGo's Avatar
BlueNinjaGo BlueNinjaGo is offline
 
Join Date: Mar 2009
Posts: 668
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How about the ability to bribe a larger nation not to attack for x amount of turns/hours/days....?
Reply With Quote
  #284  
Old 05-11-2009, 09:12 PM
Megatr0n Megatr0n is offline
 
Join Date: Jul 2007
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sugoi na,

You said to "Set your items much lower lol.." in a post earlier to avoid that error that Flowsion mentioned. How would we do this?
Reply With Quote
  #285  
Old 05-11-2009, 09:12 PM
Megatr0n Megatr0n is offline
 
Join Date: Jul 2007
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Flowsion View Post
Also, if you have over a million defence 'Village Overview' doesnt work.
Darkfire122333, know how to resolve this issue? Get a Fatal error and too much memory was being used.
Reply With Quote
  #286  
Old 05-11-2009, 09:25 PM
tipoboy's Avatar
tipoboy tipoboy is offline
 
Join Date: Dec 2005
Location: scotland
Posts: 693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Flowsion View Post
Also, if you have over a million defence 'Village Overview' doesnt work.
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
Reply With Quote
  #287  
Old 05-12-2009, 12:06 AM
Darkfire122333 Darkfire122333 is offline
 
Join Date: Mar 2005
Location: Canada
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Megatr0n View Post
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 View Post
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.
Reply With Quote
  #288  
Old 05-12-2009, 06:02 PM
Tagert Tagert is offline
 
Join Date: Sep 2008
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

got a few suggestion/additions:

team balance, so people can't just join a team because everyone is joing just that one :P

random team join function

ability to delete/destroy your village and start all over. If you made an error in planning or something
Reply With Quote
  #289  
Old 05-12-2009, 08:29 PM
BlueNinjaGo's Avatar
BlueNinjaGo BlueNinjaGo is offline
 
Join Date: Mar 2009
Posts: 668
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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. &quot
2. THE&quot
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. &quot
2. THE&quot
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.
Reply With Quote
  #290  
Old 05-12-2009, 09:50 PM
rknight111 rknight111 is offline
 
Join Date: Oct 2006
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #291  
Old 05-12-2009, 09:52 PM
Darkfire122333 Darkfire122333 is offline
 
Join Date: Mar 2005
Location: Canada
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Re-Quoting how to edit so that teams have to be balanced... since people cannot read back few pages ^.^

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

    while (
$nation $vbulletin->db->fetch_array($nations))
    {
        if (
file_exists($thumbdir.'/nations/'.$nation['nationID'].'.jpg')) { $imageE true; } else { $imageE false; }
        
$nation['AVGplayerID'] = number_format($nation['playerID'] / $totals['playerID'] * 1002);
        
$nation['AVGpGold'] = number_format($nation['pGold'] / $totals['pGold'] * 1002);
        
$nation['AVGpTroops'] = number_format($nation['pTroops'] / $totals['pTroops'] * 1002);
        eval(
'$nationsHTML .= "' fetch_template('conquest_enlist_bit') . '";');
    }

    
$pageNAME $vbphrase['conquest_enlist'];
    eval(
'$conquestHTML .= "' fetch_template('conquest_enlist') . '";'); 

    
$navbits[] = $pageNAME
    
$navbits construct_navbits($navbits); 

    eval(
'$navbar = "' fetch_template('navbar') . '";'); 
    eval(
'print_output("' fetch_template('conquest_SHELL') . '");');

with

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
    "
);
    
$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']) * 1002);
        
    }
    
$id 0;
    while (
$nation $vbulletin->db->fetch_array($nations))
    {    
        if(!(
$totaleverything[$id] >= 33))
        {
            if (
file_exists($thumbdir.'/nations/'.$nation['nationID'].'.jpg')) { $imageE true; } else { $imageE false; }
                
$nation['AVGplayerID'] = number_format($nation['playerID'] / $totals['playerID'] * 1002);
                
$nation['AVGpGold'] = number_format($nation['pGold'] / $totals['pGold'] * 1002);
                
$nation['AVGpTroops'] = number_format($nation['pTroops'] / $totals['pTroops'] * 1002);
                eval(
'$nationsHTML .= "' fetch_template('conquest_enlist_bit') . '";');
        }
        
$id ++;
    }
    
    
$pageNAME $vbphrase['conquest_enlist'];
    eval(
'$conquestHTML .= "' fetch_template('conquest_enlist') . '";'); 
    
    
$navbits[] = $pageNAME
    
$navbits construct_navbits($navbits); 

    eval(
'$navbar = "' fetch_template('navbar') . '";'); 
    eval(
'print_output("' fetch_template('conquest_SHELL') . '");');

In this whole code i set it for 3 nations. Which means that if a nation is bigger than 33.33 percent it will not show on the enlist screen anymore.

You can change this setting here:

PHP Code:
if(!($totaleverything[$id] >= 33)) 
I know i fixed this up the ugly way, i'm sure the original maker will know a way to do this the good way. This was just my fast fix.
Reply With Quote
Reply

Thread Tools

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:02 AM.


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.05705 seconds
  • Memory Usage 2,440KB
  • 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
  • (3)bbcode_php
  • (7)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