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
  #432  
Old 07-26-2009, 06:41 PM
therogueforums's Avatar
therogueforums therogueforums is offline
 
Join Date: Mar 2007
Location: Louisville, KY
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dutch_Boy View Post
Read his post before you ask stupid questions :P

Give him the time to bring out a kick ass update
Excuse me? Read his post, before you make stupid remarks.

He was asking on a possible time frame on when we could expect the updates. We all know Jaxel is mega busy with other projects, but it doesn't mean he can't give us a ballpark figure of when he might be able to update this mod.
Reply With Quote
  #433  
Old 07-27-2009, 07:05 AM
yotsume's Avatar
yotsume yotsume is offline
 
Join Date: Dec 2006
Posts: 844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The fact that the demo site shows a database error message is not good for me so Ill just tag this as a maybe for the future...
Reply With Quote
  #434  
Old 08-01-2009, 01:35 AM
Thesdale Thesdale is offline
 
Join Date: Apr 2009
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome mod! We use it at http://www.weplayciv.com and it's very popular with our players.

However there is a SEVERE error in how the AR and DR are calculated. Using the supplied formulas the effect of a promotion affects every unit in the army, not a single unit. Also to note in the original formula, natural attack/defense bonus of the Civ is not calculated unless the player has a promotion (multiply by zero issue). Thus the most efficient use of converting gold to AR/DR is to purchase level 1 or 2 promotions. Forget upgrades as the bonus is massively less than spending the equivalent on promotions. Like I'm talking many thousands of AR/DR points.

So with that in mind I've created new formulas to calculate both ratings correctly, where a promotion is only applied to a single unit and upgrades affect the entire army. This has fixed all the inbalance for us.

The below code replaces the same functions in functions_conquest.php in your Conquest folder in the forums.

Code:
function fetch_offense($player)
{
	global $vbulletin;

	$weapons = $vbulletin->db->query_read("SELECT * FROM ".TABLE_PREFIX."conquest_stock AS conquest_stock
		LEFT JOIN ".TABLE_PREFIX."conquest_weapons AS conquest_weapons ON conquest_stock.stockID = conquest_weapons.weaponID
		WHERE conquest_stock.playerID = ".$player[playerID]." AND conquest_stock.stockType = 'weapon'
		ORDER BY conquest_weapons.wPower DESC
	");
	$count = array();

	while ($weapon = $vbulletin->db->fetch_array($weapons))
	{
		for ($i = 0; $i < $weapon[stockCount]; $i++)
		{
			array_push($count, ($player[oPower] * ($weapon[wPower] / 100)));
		}
	}

	$power = 1 + ((array_sum(array_slice($count, 0, $player[pTroops])) + ($player[pTroops] * $player[oPower])) * ((100 + $player[nOffense]) / 100));

	return $power;
}

function fetch_defense($player)
{
	global $vbulletin;

	$armours = $vbulletin->db->query_read("SELECT * FROM ".TABLE_PREFIX."conquest_stock AS conquest_stock
		LEFT JOIN ".TABLE_PREFIX."conquest_armours AS conquest_armours ON conquest_stock.stockID = conquest_armours.armourID
		WHERE conquest_stock.playerID = ".$player[playerID]." AND conquest_stock.stockType = 'armour'
		ORDER BY conquest_armours.aPower DESC
	");
	$count = array();

	while ($armour = $vbulletin->db->fetch_array($armours))
	{
		for ($i = 0; $i < $armour[stockCount]; $i++)
		{
			array_push($count, ($player[dPower] * ($armour[aPower] / 100)));
		}
	}

	$power = 1 + ((array_sum(array_slice($count, 0, $player[pTroops])) + ($player[pTroops] * $player[dPower])) * ((100 + $player[nDefense]) / 100));

	return $power;
}
Reply With Quote
  #435  
Old 08-01-2009, 11:24 PM
Thesdale Thesdale is offline
 
Join Date: Apr 2009
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Another thing we found in our previous game is that 90% of players gravitated to 3 out of 10 nations. This caused a huge inbalance in player numbers leaving most nations with a couple of players and prime targets against the bigger nations.

So I implemented the following if .... else .... then statement around the join nation button to help spread players across all nations. Basically, if the player percentage of that nation is lower than a set threshold then the join button is active, otherwise you get a message saying recruitment disabled for that nation. For us I used 20% of all players in the game as the threshold, but you can change it to whatever works for the number of nations you have. For example, with 3 nations you would probably want to set this threshold to 50%, so no nation has more than half the total players.

In style manager open conquest_enlist_bit and find the form submission for joining a nation. Replace it with this:

Code:
			<if condition="$nation[AVGplayerID] < 20">
				<form action="$filename?do=homebase" method="post">
				<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
				<input type="hidden" name="joinrequest" value="$nation[nationID]" />
				<input type="submit" value="<phrase 1="$nation[nName]">$vbphrase[conquest_enlist_join]</phrase>" />
				</form>
			<else />
				Recruitment disabled. Join other Civ.
			</if>
Reply With Quote
  #436  
Old 08-02-2009, 04:10 AM
xoclanes xoclanes is offline
 
Join Date: Feb 2007
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

usergroup permissions dont work to me, when I setup it always its resets to "no" again :S and creates another admintrator usergroup in each try... :S:S
Reply With Quote
  #437  
Old 08-02-2009, 06:30 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@ Thesdale, thanks for your code. I would love to see some of those implemented in the next update as I think they are great. Thanks.
Reply With Quote
  #438  
Old 08-02-2009, 07:09 AM
PAKIDIL PAKIDIL is offline
 
Join Date: Jan 2007
Posts: 264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

allowing chmd 777 to the directory dont you think its risky in term of hacking the forum ?
Reply With Quote
  #439  
Old 08-02-2009, 05:57 PM
blogthea blogthea is offline
 
Join Date: Dec 2007
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can't wait for the new version! Keep up the good work
Reply With Quote
  #440  
Old 08-02-2009, 09:53 PM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Search did not come up with anything, but has anyone had any issues with users having 4 billion gold after about 10 minutes of them using this?
Reply With Quote
  #441  
Old 08-02-2009, 09:56 PM
xoclanes xoclanes is offline
 
Join Date: Feb 2007
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by xoclanes View Post
usergroup permissions dont work to me, when I setup it always its resets to "no" again :S and creates another admintrator usergroup in each try... :S:S
any clue about this issue?
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:24 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.05051 seconds
  • Memory Usage 2,359KB
  • 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_code
  • (2)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