View Full Version : Major Additions - Realm Conquest System
EidolonAH
05-08-2009, 08:50 AM
This will probably seem like a retarded question to those who want a battle system, but I'm going to throw the idea out there and see what responses I get.
I was wondering whether or not this type of game mod could be turned into a kind of virtual Realm, a place where members could 'live' a virtual life as a character. As I read through this thread I came to the conclusion that it is just for war games really, so I guess my idea wont be finding good reception.
Could this type of game mod be turned into something like that, I don't want our members fighting each other, I want to create a kind of virtual 'World'.
I am no coder so would have no idea how to start making it into that, but I put this question to those who would know, could my idea come into fruition with this mod?
Sugoi na
05-08-2009, 11:57 AM
Forum doesn't seem to be working, is this a known problem or my fault? Thanks.
What errors are you getting?
You are the first person out of the 90 or so installs to say their forum isn't working. I assume you have done something a bit screwy =P
This will probably seem like a retarded question to those who want a battle system, but I'm going to throw the idea out there and see what responses I get.
I was wondering whether or not this type of game mod could be turned into a kind of virtual Realm, a place where members could 'live' a virtual life as a character. As I read through this thread I came to the conclusion that it is just for war games really, so I guess my idea wont be finding good reception.
Could this type of game mod be turned into something like that, I don't want our members fighting each other, I want to create a kind of virtual 'World'.
I am no coder so would have no idea how to start making it into that, but I put this question to those who would know, could my idea come into fruition with this mod?
Personally I like this system because it's simple & doesn't consume to much resourced. Their was once a system called RPG Inferno that was basically what you are describing. It was a forum based RPG realm like system that users could "live" in. The issue for me was it required a private server to run with anything like 10-15 people =/
jimbo68
05-08-2009, 02:19 PM
(...snip...)
I was wondering whether or not this type of game mod could be turned into a kind of virtual Realm, a place where members could 'live' a virtual life as a character. (...snip...)
That's what I was initially looking for. I think you are looking for something like Legend of the Green Dragon (http://lotgd.net/home.php?) integration, but that hasn't been done (I've looked)
The Conquest system is extremely popular on my site though, and I'm rather fond of it in it's current incarnation - although I am having pagination issues with my Nation Forums (can't view pages 2,3,4 etc of nation forums, even though the link is there)
If no one else is having this problem, it could be my VBSEO barking at the forum pagination somehow I guess.
gorentals
05-08-2009, 02:25 PM
Is this compatible with Vbulletin 3.7, I can't seem to find it anywhere.?
Thanks
OcR Envy
05-08-2009, 03:53 PM
Yes works with 3.7.x
Thank you for the % link Sugoi.
Eruantien
05-08-2009, 05:49 PM
Anyone know why under 'Barrack's' I have receving a the message "Maximum Training Level Reached" for Offense?
Collussus
05-08-2009, 06:20 PM
Well, couldn't find the exploit as of yet. But i did add the error messages for selling to avoid confusion for members.
For the error messages go to conquest/functions_conquest_armory.php
on line 69 there's this sql:
$vbulletin->db->query_write("UPDATE IGNORE ".TABLE_PREFIX."conquest_players
SET pGold = '".$newGoldCount."' WHERE playerID = ".$player[playerID]."
");
Under it add:
if ($totalGain > 0)
{
return '<font color="'.$passcolor.'">You have sold some of your weapons and armor and made a return of '.$totalGain.' gold</font>';
}
else
{
return '<font color="'.$failcolor.'">You have not sold any weapons or armor</font>';
}
Basically copied the same thing as he did in the buying spot. Should work like this :p
Flowsion
05-08-2009, 08:26 PM
Oh, the forum doesn't work because I renamed conquest.php and when you click the button it goes to it. How ican i change this?
Flowsion
05-08-2009, 08:43 PM
Also, if you have over a million defence 'Village Overview' doesnt work.
Peterrad
05-08-2009, 09:26 PM
thank you , works great , marked as installed
therogueforums
05-08-2009, 10:38 PM
Looking forward to the updates :)
Sugoi na
05-08-2009, 11:09 PM
Also, if you have over a million defence 'Village Overview' doesnt work.
Set your items much lower lol...
EidolonAH
05-09-2009, 06:46 AM
Personally I like this system because it's simple & doesn't consume to much resourced. Their was once a system called RPG Inferno that was basically what you are describing. It was a forum based RPG realm like system that users could "live" in. The issue for me was it required a private server to run with anything like 10-15 people =/
Thanks for your reply, I have heard of the RPG Inferno, was that the game mod that was riddled with security problems leading to peoples site being hacked?
That's what I was initially looking for. I think you are looking for something like Legend of the Green Dragon (http://lotgd.net/home.php?) integration, but that hasn't been done (I've looked).
This really isn't what I am looking for then, that is a shame, thanks for your reply.
Sugoi na
05-09-2009, 09:22 PM
Thanks for your reply, I have heard of the RPG Inferno, was that the game mod that was riddled with security problems leading to peoples site being hacked?
The modification had no known security risks. The project has ended as the owner couldn't square away some of his issues. Sucks for me because I spent tons of money on all of their mods & now I can't use them anymore...
Megatr0n
05-09-2009, 11:51 PM
Also, if you have over a million defence 'Village Overview' doesnt work.
Yeah, either you get a PHP memory or timed out error, right?
Megatr0n
05-09-2009, 11:54 PM
Set your items much lower lol...
How do you do that?
lighthazard
05-10-2009, 01:38 PM
Not appearing in my navbar
Darkfire122333
05-11-2009, 05:21 AM
Lighthazard, if it's not appearing on your navbar, it's becuase you have gotten rid of the hooks that will automatically add it into navbar.
either to have it added to the right side of the navbar add
$template_hook[navbar_buttons_right]
after
<if condition="$show['member']">
<td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=250,height=300'); return false;">$vbphrase[open_contacts]</a></td>
</if>
</if>
that is if you had deleted it before, if this does not work, please follow the following step to add it.
to add it physically add:
<td class="vbmenu_control"><a href="conquest.php">Conquest</a></td>
name "Conquest" to whatever you want to name the system.
as for the placement, place it anywhere you want in the navbar between:
<!-- nav buttons bar -->
and
<!-- / nav buttons bar -->
people usually add it after
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
---------------------------------------------------------------------
But as for me.. I found a slight problem, everything works flawless for me, only thing I have a problem with is that when I get the PM that I just got attacked, the URL tries to tell me that http://conquest.php/?do=village&pid=2 is the link to go to.. it should be my forumname and stuff before that, but does not show up, if I add in the forum url into the Admin CP controls, the PM's work fine, but the rest of the system dont work... help please?
Megatr0n
05-11-2009, 10:50 AM
Darkfire122333, do you or anyone else knows how to exclude yourself from the game? So, you don't take part no more?
Darkfire122333
05-11-2009, 11:04 AM
Darkfire122333, do you or anyone else knows how to exclude yourself from the game? So, you don't take part no more?
Best and only way I think you can do that right now, is by removing yourself from in the MySQL tables.
Open MySQL and go to your vBulletin database, from there look for conquest_players when you find that, open it, look for your forum ID in the forumID column, and delete it. you will no longer be a part of the game.
- Sorry about the slow reply, was double and triple checking this :P
kyrenator
05-11-2009, 11:39 AM
can i replace the soul calibur characters with mine?
Darkfire122333
05-11-2009, 11:42 AM
can i replace the soul calibur characters with mine?
Yes, you can rename them, add a new image by uploading your own image VIA "Admin Nations"
where it says "Upload New Nation Standard" all that means in lamans terms, "Upload New Image", so just direct to the new image on your computer, upload and refresh the page. the image is yours!
kyrenator
05-11-2009, 12:21 PM
ok thanks
BlueNinjaGo
05-11-2009, 12:35 PM
Installed on my 3.7 test board... and LOVE IT so far. Got a handful of users testing it out to get some input on it.
One thing I did notice... you spelled "receive" wrong in the default faction descriptions. Not a big deal, but being a grammar policeman I felt I had to point that out. :)
Question: Is there a minimum amount of factions the system requires?
Suggestion: Make the "How to Play" mandatory to read before the rest of the system is active. That way they don't jump right in and become confused.
Another Suggestion: Add a "how to get started" section to the "how to play" page.
rknight111
05-11-2009, 04:05 PM
Im not sure what is going on, I was attacked several times last night, then waking up and I had 42949667295 Gold. So I had to go into SQL and fix this. Then 2 hrs later the second player had the exact same amount of gold. Any one else had these issues?
Also when 5 or 6 armys gang up on an army they can kill it completly, right to 0 and then that player cannot play anymore or has to wait for some cash so they can recruit. All they do is work there way down there members so they all go above the 25% that I allowd. That can suck for the odd guy.
Oh, on my board there are 60 users, We have 10000 + Troops with 600000 defence on average.
Darkfire122333
05-11-2009, 04:20 PM
Installed on my 3.7 test board... and LOVE IT so far. Got a handful of users testing it out to get some input on it.
One thing I did notice... you spelled "receive" wrong in the default faction descriptions. Not a big deal, but being a grammar policeman I felt I had to point that out. :)
Question: Is there a minimum amount of factions the system requires?
Suggestion: Make the "How to Play" mandatory to read before the rest of the system is active. That way they don't jump right in and become confused.
Another Suggestion: Add a "how to get started" section to the "how to play" page.
Minimum factions - 2
and as for a maximum, i have gotten up to 10 to work fine :)
I have to agree with you on the make the how to play mandatory... Also an admin control panel would be nice too :D
gorentals
05-11-2009, 06:38 PM
This is a cool mod.
1. Would like to see a way to limit how many people can join a nation.
2. Would like the ability to remove inactive players.
Flowsion
05-11-2009, 06:47 PM
Also the ability to remove nations.
Tagert
05-11-2009, 08:07 PM
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
BlueNinjaGo
05-11-2009, 08:31 PM
*possible bug?*
I just noticed when I view someone's village, it says their attacks and defends history... It says their name under enemy... shouldn't it be the person they attacked or defended against?
Sugoi na
05-11-2009, 08:49 PM
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.
BlueNinjaGo
05-11-2009, 09:10 PM
How about the ability to bribe a larger nation not to attack for x amount of turns/hours/days....?
Megatr0n
05-11-2009, 09:12 PM
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?
Megatr0n
05-11-2009, 09:12 PM
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.
tipoboy
05-11-2009, 09:25 PM
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
Darkfire122333
05-12-2009, 12:06 AM
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.
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.
Tagert
05-12-2009, 06:02 PM
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 :p
BlueNinjaGo
05-12-2009, 08:29 PM
Major error.... I went to attack a user who joined in and got a huge error 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.
rknight111
05-12-2009, 09:50 PM
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.
Darkfire122333
05-12-2009, 09:52 PM
Re-Quoting how to edit so that teams have to be balanced... since people cannot read back few pages ^.^
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
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'] * 100, 2);
$nation['AVGpGold'] = number_format($nation['pGold'] / $totals['pGold'] * 100, 2);
$nation['AVGpTroops'] = number_format($nation['pTroops'] / $totals['pTroops'] * 100, 2);
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
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);
}
$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'] * 100, 2);
$nation['AVGpGold'] = number_format($nation['pGold'] / $totals['pGold'] * 100, 2);
$nation['AVGpTroops'] = number_format($nation['pTroops'] / $totals['pTroops'] * 100, 2);
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:
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.
BlueNinjaGo
05-12-2009, 11:50 PM
In regards to faction's natural bonuses and garrison's bonus, when are they calculated in? They aren't shown in the "village overview"?
Jaxel
05-13-2009, 12:49 AM
My mind is a little strained on programming right now... so I'm taking a short break from programming for now. In the meantime, I'll be starting a Soulcalibur podcast on thursday.
Megatr0n
05-13-2009, 12:53 AM
Hi Jaxel,
No sweat. However, is it okay you can tell us when to expect the next maintenance release and will that bug I reported via PM be fixed in that next release?
Darkfire122333
05-13-2009, 01:00 AM
Hey Jaxel,
No worries, there is a few of us here helping other members as we can.
Take a break, you are doing amazing work, and we all appreciate it very much!
Hope to see you in working shape again soon, and look forward to seeing what you do to this mod!
valendono
05-14-2009, 05:50 AM
Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 72 bytes) in /var/www/html/forum/conquest/functions_conquest.php on line 60
Happen if that user have 2 turn every 15 minutes .. No limit soldiers sud be the problem. can u limit ?
BlueNinjaGo
05-14-2009, 12:29 PM
Ok, I have a bug...
I have it set to 30 minute cycles, 2 turns per cycle. I turned off the computer yesterday with 1 turn unused. I signed on 8-10 hours later and I only have 9. (The cap is at 50)
Something's not adding up here. I had another user report the same thing.
Collussus
05-14-2009, 03:10 PM
Ok, I have a bug...
I have it set to 30 minute cycles, 2 turns per cycle. I turned off the computer yesterday with 1 turn unused. I signed on 8-10 hours later and I only have 9. (The cap is at 50)
Something's not adding up here. I had another user report the same thing.
My guess is it's a database problem. Try going to the settings page and click save again. Otherwise reset the whole game, see if that fixes it.
BlueNinjaGo
05-14-2009, 03:33 PM
Well I started doing a little log this morning and the times aren't very consistent
But it's been over 3 hours and I only have 10 turns, when it's supposed to be 12. I'm getting 2 turns each time the cycle hits, so that's correct. It's obviously not the hour default, since I'm getting 10, not 3. Is there anyway to check when the cycles are supposed to hit?
Darkfire122333
05-15-2009, 09:44 AM
i am having the same problem... i am gaining 1 turn every hour or so, not consistant, and i am supposed to get 1 turn every 15 minutes...
using Apache Version 2.2.11
using PHP version: 5.2.9-2
using MySQL version: 5.1.33
Running off of: Windows 7 Ultimate Release Candidate (Build 7100)
no problems with anything else... works perfect except for the turns...
OcR Envy
05-15-2009, 10:00 AM
Well I started doing a little log this morning and the times aren't very consistent
But it's been over 3 hours and I only have 10 turns, when it's supposed to be 12. I'm getting 2 turns each time the cycle hits, so that's correct. It's obviously not the hour default, since I'm getting 10, not 3. Is there anyway to check when the cycles are supposed to hit?
It's based on a cron job. If your a user does not hit a page that includes the cron your cycle will not run at exactly top of the hour. You can resolve this if you have the ability to run server side crons.
lighthazard
05-15-2009, 01:23 PM
Why am I getting permission errors?
BlueNinjaGo
05-15-2009, 01:32 PM
Why am I getting permission errors?
A little more detail? Did you just install? Was it working before but now there's errors?
PGAmerica
05-15-2009, 04:47 PM
I just got this working in 3.8.2. Beautiful work. Thank you.
I made some changes so it fits within a Lord of Rings genre tho. Instead of "Nations" it is "Races". See for yourself at http://www.traprunner.com/forums/conquest.php
Question: How do you remove a nation? I do not see any options to do this.
DobieGillis?
05-15-2009, 05:31 PM
I just got this working in 3.8.2. Beautiful work. Thank you.
I made some changes so it fits within a Lord of Rings genre tho. Instead of "Nations" it is "Races". See for yourself at http://www.traprunner.com/forums/conquest.php
Question: How do you remove a nation? I do not see any options to do this.
I did mine in Star Trek
www.cooluniverse.net
will go Tolkien after
DobieGillis?
05-15-2009, 05:32 PM
I just got this working in 3.8.2. Beautiful work. Thank you.
I made some changes so it fits within a Lord of Rings genre tho. Instead of "Nations" it is "Races". See for yourself at http://www.traprunner.com/forums/conquest.php
Question: How do you remove a nation? I do not see any options to do this.
excellent work, man!!!!! Those pics are from LOTRO! Awesome!
PGAmerica
05-15-2009, 05:56 PM
I did mine in Star Trek
www.cooluniverse.net (http://www.cooluniverse.net)
will go Tolkien after
I would look at yours but you have registration disabled.
DobieGillis?
05-15-2009, 05:57 PM
I would look at yours but you have registration disabled.
had to today. Getting hit by something causing multiple guests to login, really sucks. I'll ope it for you. Give me a sec.
Collussus
05-15-2009, 06:41 PM
It's based on a cron job. If your a user does not hit a page that includes the cron your cycle will not run at exactly top of the hour. You can resolve this if you have the ability to run server side crons.
First lets reply to this one, You're wrong. The cron job runs a php file EVERY minute to check if there has to be new turns.
Well I started doing a little log this morning and the times aren't very consistent
But it's been over 3 hours and I only have 10 turns, when it's supposed to be 12. I'm getting 2 turns each time the cycle hits, so that's correct. It's obviously not the hour default, since I'm getting 10, not 3. Is there anyway to check when the cycles are supposed to hit?
I suggest doing it different. instead of doing 2 turns per so much time, do 1 turn per half of the time you wrote down. This way you're 100% sure it works. If it still doesn't then try reuploading the file inside the includes/cron folder of conquest
PGAmerica
05-15-2009, 07:13 PM
had to today. Getting hit by something causing multiple guests to login, really sucks. I'll ope it for you. Give me a sec.
Sweet! I am in. Your conquest looks cool, but you need more nations. There are so many to choose from in the Star Trek universe.
Collussus
05-15-2009, 07:21 PM
if anyone needs any more custom stuff in your conquest, ill be happy to make it if i see that it could be used for more than just your forum.
PGAmerica
05-15-2009, 07:34 PM
if anyone needs any more custom stuff in your conquest, ill be happy to make it if i see that it could be used for more than just your forum.
Such as what? It is pretty awesome as it is right now.
BlueNinjaGo
05-15-2009, 07:43 PM
if anyone needs any more custom stuff in your conquest, ill be happy to make it if i see that it could be used for more than just your forum.
Did you check out all the suggestions made so far? Perhaps a compiled list would be easier... But several of my users requested a countdown clock that shows the next cycle
PGAmerica
05-15-2009, 09:48 PM
I have a few questions:
1) How do you remove a nation? I do not see any options to do this.
2) I saw vbArmy (https://vborg.vbsupport.ru/showthread.php?t=181104&page=9). Is this basically the same thing only better?
3) How do I remove the link on the navbar (without removing or commenting $template_hook[navbar_buttons_left])? I have an additional navbar and want this there.
BlueNinjaGo
05-15-2009, 11:49 PM
There's an option in ACP to turn off the link in the navbar. If you want to add the link somewhere else, just add it manually.
lighthazard
05-16-2009, 10:27 AM
A little more detail? Did you just install? Was it working before but now there's errors?
When I try to attack it says I don't have permission to do that.
Collussus
05-16-2009, 08:12 PM
Did you check out all the suggestions made so far? Perhaps a compiled list would be easier... But several of my users requested a countdown clock that shows the next cycle
My solution for the countdown clock only works for if you're cycles are under an hour. It went wrong on my forum because for some reason it says you're getting it in an hour, and sometimes the whole clock isn't correct either.... Anyways, here's the simple solution:
add this somewhere in the conquest.php file. Search for :
if ($_REQUEST['do'] == 'homebase')
under the { add:
$time = $vbulletin->db->query_first("SELECT * FROM ".TABLE_PREFIX."conquest_gameset");
$next = ($time[gLastCycle] + (60 * $time[gCycleMinutes])) - time();
$player[nextTurn] = date('i:s', $next);
Then anywhere in your homebase template add something like "Next turn: $player[nextTurn]"
PGAmerica
05-16-2009, 08:28 PM
There's an option in ACP to turn off the link in the navbar. If you want to add the link somewhere else, just add it manually.
Thank you, I will check into that. What about my other 2 questions?
Collussus
05-16-2009, 09:09 PM
I have a few questions:
1) How do you remove a nation? I do not see any options to do this.
2) I saw vbArmy (https://vborg.vbsupport.ru/showthread.php?t=181104&page=9). Is this basically the same thing only better?
3) How do I remove the link on the navbar (without removing or commenting $template_hook[navbar_buttons_left])? I have an additional navbar and want this there.
1) I cant find the option either. I havent looked at the database but i guess the query for deleting a nation would be something like: DELETE FROM TABLE_PREFIXconquest_nations WHERE nID = <id> (not sure about this)
2) it's based on the idea, it's not the same.
3) Been answered already :p
EDIT:
If anyone is using kbank on their forum too, i made an item for the shop to give turns when you buy it ;)
legion!
05-17-2009, 05:04 AM
this hack is a beautiful thing i have it up and running on my forums...there shuld be a way to leave an alliance...
BlueNinjaGo
05-17-2009, 02:03 PM
Suggestions:
A way to delete factions from the frontend.
A way for users to leave the entire sytem all together. (Maybe with an option so admins can choose if users can rejoin again, and if so, after x days)
A way for users to opt out of PM's.(Some are getting annoyed by them)
Some sort of disadvantage for having an army too large... like an upkeep cost similar to the spy.
therogueforums
05-17-2009, 11:52 PM
I'd like to suggest additions as well, if you don't mind:
Random resources, each with definable bonuses, and the ability to trade them
Upkeep costs
Ability to leave alliances
Non-combative improvements - schools, treasuries, barracks, etc
Population, which increases with certain factors - time, resources, improvements, etc
Not sure what all would be needed to make this happen, but I would gladly donate what I can to help out, and show my appreciation.
Gamelobby
05-18-2009, 06:57 AM
•Ability to leave alliances - has to come with penalties, or waiting period.
Otherwise near the end, everyone will leave & join the winning one. lol
Collussus
05-18-2009, 08:49 AM
Enough suggestions ill look into doing in the form of plugins. Will keep you guys updated. (This is ofcourse if the creator doesn't beat me to it)
Jaxel
05-18-2009, 06:31 PM
I will do ALL of this... next month...
DobieGillis?
05-18-2009, 06:41 PM
I will do ALL of this... next month...
Hey Buddy! Hope all is well.
Adromir
05-18-2009, 06:46 PM
I am eager to see what will await us :)
BlueNinjaGo
05-18-2009, 06:56 PM
I will do ALL of this... next month...
Awesome... good luck to ya! I appreciate you supporting this add-on and listening to our suggestions.
One more suggestion, if you don't mind...
The ability for users to edit/delete their posts in the faction's board.
slyreptile
05-19-2009, 03:40 PM
I just had a situation occur where a smaller village (roughly 700 troops) attacked a village with 1500 troops. The smaller village won. The two villages are within the 60% threshold that allows attacks to occur. The larger village then sought revenge and was able to attack four times, completely decimating the other village to zero troops.
I'm assuming the Revenge function allowed this. But shouldn't the Attack Cap setting have stopped the attacking from continuing? In other words, the revenge setting seemed to have worked, but it ignored the attack cap setting. Is this normal? Can this be changed (or given an option) so it only allows the Revenge setting to work once or twice? Not unlimited?
Collussus
05-19-2009, 05:47 PM
I just had a situation occur where a smaller nation (roughly 700 troops) attacked a nation with 1500 troops. The smaller nation won. The two nations are within the 60% threshold that allows attacks to occur. The larger nation then sought revenge and was able to attack four times, completely decimating the other nation to zero troops.
I'm assuming the Revenge function allowed this. But shouldn't the Attack Cap setting have stopped the attacking from continuing? In other words, the revenge setting seemed to have worked, but it ignored the attack cap setting. Is this normal? Can this be changed (or given an option) so it only allows the Revenge setting to work once or twice? Not unlimited?
Look at this post: https://vborg.vbsupport.ru/showthread.php?p=1804652#post1804652
therogueforums
05-19-2009, 08:43 PM
I have two more requests, to help tweak stuff....
the ability to transfer gold to another player from your reserves
the admin ability to eject people from any nation, and move a player from one nation to another
Additionally, hope all is well for you- looking forward to the updates.
Yux1000
05-22-2009, 12:45 AM
is there an way to run this mod with VBcredits?`I'am very Interested!!!!!!!!!!
Eruantien
05-22-2009, 01:13 AM
I have two more requests, to help tweak stuff....
the ability to transfer gold to another player from your reserves
the admin ability to eject people from any nation, and move a player from one nation to another
Additionally, hope all is well for you- looking forward to the updates.
QFE
goranbaxy
05-23-2009, 04:44 PM
is there a way for user to unregister from game?
Digital Jedi
05-25-2009, 09:19 AM
So this is what you've been doing while I've been gone. All I can say is, Holy Crap! Looks like I'm going to be a very busy administrator.
waffuru
05-25-2009, 02:38 PM
The request from my forum users is the option (per user) to disable Conquest related private messages.
Some people are really popular. :)
ArchangelX
05-25-2009, 07:23 PM
Second that!
pooker
05-26-2009, 12:24 PM
It would be nice if it their was some system where others could not gang up on another person as well. It gives the new people a chance to establish the village.
BlueNinjaGo
05-26-2009, 07:59 PM
is there a way for user to unregister from game?
The request from my forum users is the option (per user) to disable Conquest related private messages.
Some people are really popular. :)
Both of these were requested on my site.
Jaxel
05-27-2009, 12:42 PM
It will all come in th next major update.
Megatr0n
05-27-2009, 12:51 PM
It will all come in th next major update.
Awesome!!
Do you have a date set in mind?
Elenna
05-27-2009, 06:34 PM
I just got this working in 3.8.2. Beautiful work. Thank you.
I made some changes so it fits within a Lord of Rings genre tho. Instead of "Nations" it is "Races". See for yourself at http://www.traprunner.com/forums/conquest.php
Question: How do you remove a nation? I do not see any options to do this.
That's amazing! I also run a LOTRO kinship site (with the same theme, but ported a little differently). Great job!!
Collussus
05-27-2009, 07:16 PM
2 of my members got extremely high defense and offense and lost their access to their village overview. I went and looked at the code and found very unnecessary code. To fix this i did the following:
open functions_conquest.php
Go to line 60, remove the whole for script and place down:
$weapontotal = $weapon[stockCount] * $weapon[wPower];
array_push($count, $weapontotal);
Then do the same at line 88 i think. remove the whole for there and place down:
$armourtotal = $armour[stockCount] * $armour[aPower];
array_push($count, $armourtotal);
That should fix the error of "too much memory allocated".
Megatr0n
05-30-2009, 09:19 PM
2 of my members got extremely high defense and offense and lost their access to their village overview. I went and looked at the code and found very unnecessary code. To fix this i did the following:
open functions_conquest.php
Go to line 60, remove the whole for script and place down:
$weapontotal = $weapon[stockCount] * $weapon[wPower];
array_push($count, $weapontotal);
Then do the same at line 88 i think. remove the whole for there and place down:
$armourtotal = $armour[stockCount] * $armour[aPower];
array_push($count, $armourtotal);
That should fix the error of "too much memory allocated".
That bit of code I can't find in that functions_conquest.php.
Collussus
05-31-2009, 02:49 AM
That bit of code I can't find in that functions_conquest.php.
I didn't post the codes you had to find, this are the ones you need:
while ($weapon = $vbulletin->db->fetch_array($weapons))
{
for ($i = 0; $i < $weapon[stockCount]; $i++)
{
array_push($count, $weapon[wPower]);
}
}
and
while ($armour = $vbulletin->db->fetch_array($armours))
{
for ($i = 0; $i < $armour[stockCount]; $i++)
{
array_push($count, $armour[aPower]);
}
}
gezgas
05-31-2009, 06:28 PM
could anyone show me how to edit to hide some items for certain nations to buy.
meaning i wish to give some nations unique items which only they are able to purchase.
manutdvn
06-01-2009, 05:21 AM
Click install. Thank you. It is very easy to install.
What should I do if my member doesn't want to play this game and get out of it?
Sugoi na
06-01-2009, 05:35 PM
Click install. Thank you. It is very easy to install.
What should I do if my member doesn't want to play this game and get out of it?
Just let them sit their. If they are too weak no one can attack them.
manutdvn
06-02-2009, 01:12 AM
Just let them sit their. If they are too weak no one can attack them.
Thank you. But we have to wait until they are weak. Is there another way?
Collussus
06-02-2009, 04:04 PM
Thank you. But we have to wait until they are weak. Is there another way?
use the sql tool in your admin cp.
depending on your table names:
DELETE FROM conquest_players WHERE forumID = <forumidhere>
Megatr0n
06-02-2009, 04:16 PM
How would we know what the user's ForumID is? I'm confused, wouldn't ut be UserID?
Jaxel, it's June now. Can we expect a next release soon? :)
Sugoi na
06-02-2009, 04:23 PM
How would we know what the user's ForumID is? I'm confused, wouldn't ut be UserID?
Jaxel, it's June now. Can we expect a next release soon? :)
When you create the forum in the admin panel it says "ID:#". The # represents the forum ID.
For example. If you only had 2 forums on your site,
News
Updates
Depending on which one you created first, the ID's would be
News - ID:1
Updates - ID:2
The ID's also display in the link for example:
http://360-tourney.com/forum/forumdisplay.php?f=2
F=2
That forum ID = 2
Megatr0n
06-02-2009, 04:55 PM
When you create the forum in the admin panel it says "ID:#". The # represents the forum ID.
For example. If you only had 2 forums on your site,
News
Updates
Depending on which one you created first, the ID's would be
News - ID:1
Updates - ID:2
The ID's also display in the link for example:
http://360-tourney.com/forum/forumdisplay.php?f=2
That forum ID = 2
Sugoi na, thanks for explaining that but I pretty much understand all that.
What's confusing me in this is how're we suppose to determine what the user's forumID if we're wanting to remove him from the game? It's confusing since you just said a forumID represents a particular forum and not a user.
Normally, I just compare the stats I see on the conquest page and in the db-table then work it out that way then remove him/her accordingly.
Collussus
06-02-2009, 08:20 PM
Sugoi na, thanks for explaining that but I pretty much understand all that.
What's confusing me in this is how're we suppose to determine what the user's forumID if we're wanting to remove him from the game? It's confusing since you just said a forumID represents a particular forum and not a user.
Normally, I just compare the stats I see on the conquest page and in the db-table then work it out that way then remove him/her accordingly.
What sugoi na said was entirely incorrect.
When you visit a users profile it shows the link as "member.php?u=6". In this bit, 6 is the forumID.
Sugoi na
06-02-2009, 09:14 PM
What sugoi na said was entirely incorrect.
When you visit a users profile it shows the link as "member.php?u=6". In this bit, 6 is the forumID.
U= User my friend.
Good try though!
UserID & ForumID are 2 different things.
manutdvn
06-03-2009, 02:09 AM
use the sql tool in your admin cp.
depending on your table names:
DELETE FROM conquest_players WHERE forumID = <forumidhere>
Thank you but sorry for stupid question, how do forumid and member in this game relate each other?
Gamelobby
06-04-2009, 07:39 PM
Thank you. But we have to wait until they are weak. Is there another way?
That doesn't work either, i haven't played or logged in in a month, but i stil get attacked & emailed to remind me every other day from 8way.com :)
It will get worked out in time im sure, but for now no you cant quit or stop getting attacked..
Gamelobby
06-04-2009, 07:45 PM
What sugoi na said was entirely incorrect.
When you visit a users profile it shows the link as "member.php?u=6". In this bit, 6 is the ForumID.
U= User my friend.
Good try though!
UserID & ForumID are 2 different things.
Yea, way off. lol
For example this section we are discussing in is Forum ID #235
vBulletin 3.8 Add-ons: vB3.8 Products, Plug-ins, and code modifications. - https://vborg.vbsupport.ru/forumdisplay.php?f=235
Digital Jedi
06-04-2009, 09:31 PM
Okay, I don't know where you folks are getting your info.
Yes, a Forum ID is indeed the number found after f=.
IN A FORUM.
And an ID number of a User is a User ID. The ID of a a thread is a Thread ID. The ID of a post is a Post ID. Threads? Thread ID. Groups?. Group ID. None of them have anything to do with the other, and you could very well have the same number across all of them.
The sixth post ever made on your forum will be p=6. The sixth forum you ever set up on your forums will be f=6. The sixth user to ever join your forums will be u=6. The sixth thread ever started will be t=6. None of them have anything to do with the other. Run a query to delete a Forum ID, and you delete a FORUM, not a user.
And since Forum IDs have nothing to do with the Conquest System, I'm hard pressed to understand how the query would even find anything, much less delete anything.
Sugoi na
06-04-2009, 10:43 PM
Okay, I don't know where you folks are getting your info.
Yes, a Forum ID is indeed the number found after f=.
IN A FORUM.
And an ID number of a User is a User ID. The ID of a a thread is a Thread ID. The ID of a post is a Post ID. Threads? Thread ID. Groups?. Group ID. None of them have anything to do with the other, and you could very well have the same number across all of them.
The sixth post ever made on your forum will be p=6. The sixth forum you ever set up on your forums will be f=6. The sixth user to ever join your forums will be u=6. The sixth thread ever started will be t=6. None of them have anything to do with the other. Run a query to delete a Forum ID, and you delete a FORUM, not a user.
And since Forum IDs have nothing to do with the Conquest System, I'm hard pressed to understand how the query would even find anything, much less delete anything.
/claps for the fourth person to say the same thing as the previous people including myself.
Good work!
zombietom
06-05-2009, 02:17 AM
We recently added support for vbarmy, we'll see what we can do about vbcredits support for this mod as well. No eta though,
I haven't had a chance to try it out yet. But looks great and fun system for users from what I can see. May try it on my personal site. Love the layout, very clean
Any word on vbcredits working with conquest?
thanks
Digital Jedi
06-05-2009, 05:37 AM
/claps for the fourth person to say the same thing as the previous people including myself.
Good work!
I was clarifying, because the way it was being explained wasn't sinking in.
Collussus
06-05-2009, 06:37 PM
U= User my friend.
Good try though!
UserID & ForumID are 2 different things.
even if that's true. You clearly haven't looked at the tables of conquest, which i have.
In the table conquest_players, you have "pID" which is the player ID inside conquest.
And you also have "forumID", which is linked to the USER ID of the forum.
Next time you try and correct me, do your research on how the game mechanics work.
Sugoi na
06-05-2009, 06:56 PM
even if that's true. You clearly haven't looked at the tables of conquest, which i have.
In the table conquest_players, you have "pID" which is the player ID inside conquest.
And you also have "forumID", which is linked to the USER ID of the forum.
Next time you try and correct me, do your research on how the game mechanics work.
Take a moment & read the posts on page 24. Please stop acting like some big shot because you clearly havn't done anything to impress. I was clarifying a point & you wanted to get wise.
Your wrong. Admit it & grow up.
You clearly haven't looked at the tables of conquest, which i have.
Hahaha. We said things like this back in first grade. You sure showed me Mr!
Digital Jedi
06-05-2009, 08:15 PM
even if that's true. You clearly haven't looked at the tables of conquest, which i have.
In the table conquest_players, you have "pID" which is the player ID inside conquest.
And you also have "forumID", which is linked to the USER ID of the forum.
Next time you try and correct me, do your research on how the game mechanics work.
Could you at least clarify what your trying to say, because I'm not following you.
Collussus
06-08-2009, 05:19 PM
Take a moment & read the posts on page 24. Please stop acting like some big shot because you clearly havn't done anything to impress. I was clarifying a point & you wanted to get wise.
Your wrong. Admit it & grow up.
Hahaha. We said things like this back in first grade. You sure showed me Mr!
.... How am i wrong if my sql code deletes a user from conquest? Try it, your userid is 1 i presume? Try this:
UPDATE conquest_players SET pTurns = 9999999 WHERE forumID = 1
Now tell me that im wrong when that works.
I use:
DELETE FROM conquest_players WHERE forumID = <userid on forums itsself>
Daily to delete users from conquest, so please don't tell me im wrong while im already using it <3
therogueforums
06-13-2009, 09:04 AM
Hey Jax. Just checking in with you- hope all is well, and I'm looking forward to the updates/additions. By chance, any ball park figure on when they might be out?
All the best,
~Ki
Jaxel
06-15-2009, 02:34 AM
Sorry for the lack of new version yet... swine flu sucks... so the next release wont come for a few more weeks.
therogueforums
06-15-2009, 06:00 AM
Oh, man. Sorry to hear it. Hope you get to feeling better!
jonlar
06-17-2009, 12:03 PM
Hi there. I installed the Conquest system. Works fine so far, but when i want to klick on
Village Overview
Village Armory
Village Barracks
Offense History
Defense History
......
i just get..... no access to this page....
DaddyCool8
06-17-2009, 04:13 PM
"The hours for revenge no matter the size of the enemy village"
What is this about?
BlueNinjaGo
06-17-2009, 04:40 PM
Hi there. I installed the Conquest system. Works fine so far, but when i want to klick on
Village Overview
Village Armory
Village Barracks
Offense History
Defense History
......
i just get..... no access to this page....
Go to ACP -> Usergroups -> Usergroup Manager -> Edit Administrator -> Find Conquest and enable it for you.
"The hours for revenge no matter the size of the enemy village"
What is this about?
There is a built in protection for smaller villages. I think the default is 60%. That means if Village A is 61% bigger than Village B, it cannot attack. BUT if Village B attacks Village A, then Village A has x amount of hours to attack back before the 60% comes into affect.
Collussus
06-18-2009, 09:23 PM
It's a shame to see there's barely any activity on this product. It could use alot of little updates.
Megatr0n
06-18-2009, 10:03 PM
Sorry for the lack of new version yet... swine flu sucks... so the next release wont come for a few more weeks.
We'll all have to wait.
Skyrider
06-20-2009, 04:38 PM
How do I remove existing nations? I seem to be only able to add nations, not to remove them.
GigaSb
06-22-2009, 11:48 AM
i need to change the lang to hebrew.. there is some sentences i cant find like:
pm's: You have been attacked by
"Your work force has finished and 1 troops have joined your military ranks"
all this kind..
gamerfu
06-24-2009, 11:05 AM
can players switch nations? how often?
kellyandmark04
06-24-2009, 11:10 PM
I keep getting this error and all my members are as well.
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 35 bytes) in /home/p2fgh778k/public_html/conquest/functions_conquest.php on line 92
therogueforums
06-25-2009, 07:32 AM
Not to be rude, but if you read the thread, you would've found this to be a common problem, usually stemming from large armies going at each other. Basically, they lag the system.
dodjer42
06-25-2009, 07:53 AM
I like the interface, though the space characters are a little conflicted to the unit types and the game gets tiring after about 36hours. Would be great to see a new game mod with similar tight vB integration but more depth to the game itself.
Collussus
06-25-2009, 12:00 PM
I keep getting this error and all my members are as well.
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 35 bytes) in /home/p2fgh778k/public_html/conquest/functions_conquest.php on line 92
Not to be rude, but if you read the thread, you would've found this to be a common problem, usually stemming from large armies going at each other. Basically, they lag the system.
Yeah, this is common. Hence why i posted a fix:
2 of my members got extremely high defense and offense and lost their access to their village overview. I went and looked at the code and found very unnecessary code. To fix this i did the following:
open functions_conquest.php
Go to line 60, remove the whole for script and place down:
$weapontotal = $weapon[stockCount] * $weapon[wPower];
array_push($count, $weapontotal);
Then do the same at line 88 i think. remove the whole for there and place down:
$armourtotal = $armour[stockCount] * $armour[aPower];
array_push($count, $armourtotal);
That should fix the error of "too much memory allocated".
Collussus
06-25-2009, 12:05 PM
Sorry for double post, For the lazy people i attached the fixed functions_conquest.php.
blissend
06-26-2009, 02:33 AM
Would you be so kind to add the time left till next cycle in the next release? 8)
I was able to by adding these lines (you'll have to excuse my crappy coding)...
conquest.php
// ### blissend's fugly modification
$countDownMin = $settings[gCycleMinutes]-(date(i,(time() - $settings[gLastCycle])));
$countDownSec = 60-(date(s,(time() - $settings[gLastCycle])));
if ($countDownSec == 60) $countDownSec--; // ugh
if ($countDownSec < 10) $countDownSec = '0'.$countDownSec;
// yes I know its really bad to mod the $vbphrase variable but I didn't fee like changing a template file to get this working
$vbphrase[conquest_navigation] = "Navigation (".$countDownMin.":".$countDownSec.")";
// ### end of blissend's fugly modification
Only works on page load but better than nothing. Would be great with live updating.
therogueforums
06-26-2009, 07:55 AM
That's actually an awesome idea.
Skyrider
06-26-2009, 08:16 AM
How do I remove nations? I still can't figure that out.
therogueforums
06-26-2009, 08:20 AM
If you do Sky, let me know.
Itchy Nips
06-26-2009, 01:42 PM
i've created a 2nd navbar under the default one, for just extra links. How do I get rid of the "conquest system" link that gets created when I installed this mod?
I've looked under the "navbar" template and I dont see a link in there.
BlueNinjaGo
06-26-2009, 01:50 PM
i've created a 2nd navbar under the default one, for just extra links. How do I get rid of the "conquest system" link that gets created when I installed this mod?
I've looked under the "navbar" template and I dont see a link in there.
I haven't looked at the code, but he probably used a template hook...
Go to ACP -> options -> Conquest -> The location on your navbar for the link to the conquest system -> Disable
Collussus
06-26-2009, 03:04 PM
I found a fix for the max troops bug. It seemed that the "int" for the pTroops column in conquest_players had to be bigint. Change it with this sql:
ALTER TABLE `conquest_players` CHANGE `pTroops` `pTroops` BIGINT UNSIGNED NOT NULL DEFAULT '0'
add a prefix before conquest_ if you have one.
i've created a 2nd navbar under the default one, for just extra links. How do I get rid of the "conquest system" link that gets created when I installed this mod?
I've looked under the "navbar" template and I dont see a link in there.
There's also a conquest settings in vbulletin options. Disable it there.
Skyrider
06-27-2009, 08:09 PM
Great, you can't even remove nations when you add some or wish to keep it at 2. What's the point in that? The owners of this plugin has been around in the last few days but doesn't seem to reply in this thread. Haven't received a private message from him either when I send him a message qute some time ago.
gezgas
06-28-2009, 07:27 PM
i went into myphpadmin and looked it up there, and was able to remove nations and change nations for players and so. so take a look there.
blissend
06-29-2009, 10:40 PM
For those interested in adding a trade system, here is my really sloppy attempt and how you can do it. Hopefully the author will consider adding it and that I'm not out of line for posting this 8)
Notes...
You can send troops or gold. Simply click the user as if you were to do a raid/spy run. You should see the trade area above the raid/spy run area. You can trade with anyone thus can have traitors :D
It will tax you depending on your size (smaller = no tax, bigger than 2x caps to 76% tax and will only let you send 2x their size in amount). You will see a notice like raid/spy runs show but it won't be seen in history (requires more than adding code to do that me thinks). I also made it cost 5 turns to send gold and 1 to send troops... to lazy to make that editable but its easy enough to change in the code.
I leave it to you to figure out how to add this to your code. Not sure if I'm allowed to post my version. Files to edit are function_conquest_village.php, conquest.php and a template modification.add these functions to function_conquest_village.php
function run_sendtroops($player, $village)
{
global $vbulletin, $settings, $passcolor, $failcolor;
if ($player[pTurns] < 1)
{
return '<font color="'.$failcolor.'">You can not trade as you do not have enough turns available.</font>';
}
$troops = $vbulletin->input->clean_gpc('p', "troopamount", TYPE_UINT);
if (!is_numeric($troops) && !is_int($troops))
{
return '<font color="'.$failcolor.'">Please enter an appropriate value.</font>';
}
elseif ($player[pTroops] == 0)
{
return '<font color="'.$failcolor.'">You can not send troops because you don\'t have any!</font>';
}
elseif ($troops >= $player[pTroops])
{
return '<font color="'.$failcolor.'">You can not send all of your troops or more than what you have!</font>';
}
if ($player[pTroops] >= ($village[pTroops]*2)) $sendtax = .77;
elseif ($player[pTroops] >= ($village[pTroops]+1)) $sendtax = 1 - pow(0.75, (($player[pTroops]/$village[pTroops])*2.5));
else $sendtax = 0;
if ($player[pTroops] > ($village[pTroops]*2) && ($troops > ($village[pTroops]*2)))
{
$troops = $village[pTroops]*2;
$transferTotal = $troops - ($troops * $sendtax);
}
else $transferTotal = $troops - ($troops * $sendtax);
$transferTotal = ceil($transferTotal);
$troopsLost = ceil($troops * $sendtax);
$playerNewTroops = $player[pTroops] - $troops;
$villageNewTroops = $village[pTroops] + $transferTotal;
// for debugging purposes
//return '<font color="'.$failcolor.'">FAIL FAIL FAIL ALERT! '
//.'<br />tax: '.$sendtax
//.'<br />troops to send: '.$troops
//.'<br />after tax: '.$transferTotal
//.'<br />troops lost: '.$troopsLost
//.'<br />playerNewTotal: '.$playerNewTroops
//.'<br />villageNewTotal: '.$villageNewTroops.'</font>';
$newTurnCount = $player[pTurns] - 1;
$vbulletin->db->query_write("UPDATE IGNORE ".TABLE_PREFIX."conquest_players SET pTurns = '".$newTurnCount."' WHERE playerID = ".$player[playerID]."");
$vbulletin->db->query_write("UPDATE IGNORE ".TABLE_PREFIX."conquest_players SET pTroops = '".$playerNewTroops."' WHERE playerID = ".$player[playerID]."");
$vbulletin->db->query_write("UPDATE IGNORE ".TABLE_PREFIX."conquest_players SET pTroops = '".$villageNewTroops."' WHERE playerID = ".$village[playerID]."");
//send_notice(1, $player, $village, $lootRatio);
if($troopLost != 0)
{
$randomMessageChoice = mt_rand(1,3);
switch ($randomMessageChoice)
{
case 1: return '<font color="'.$passcolor.'">You have sent '.$troops.' troops but '.$troopsLost.' ran away.</font>';
case 2: return '<font color="'.$passcolor.'">You have sent '.$troops.' troops but '.$troopsLost.' got lost along the way.</font>';
default: return '<font color="'.$passcolor.'">You have sent '.$troops.' troops but '.$troopsLost.' troops failed to make it there.</font>';
}
}
else return '<font color="'.$passcolor.'">You have sent '.$troops.' troops.</font>';
}
function run_sendgold($player, $village)
{
global $vbulletin, $settings, $passcolor, $failcolor;
if ($player[pTurns] < 5)
{
return '<font color="'.$failcolor.'">You can not trade as you do not have enough turns available.</font>';
}
$gold = $vbulletin->input->clean_gpc('p', "goldamount", TYPE_UINT);
if (!is_numeric($gold) && !is_int($troops))
{
return '<font color="'.$failcolor.'">Please enter an appropriate value.</font>';
}
elseif ($player[pGold] == 0)
{
return '<font color="'.$failcolor.'">You can not send gold because you don\'t have any!</font>';
}
elseif ($gold > $player[pGold])
{
return '<font color="'.$failcolor.'">You can not send more gold than what you have!</font>';
}
if ($player[pTroops] >= ($village[pTroops]*2)) $sendtax = .77;
elseif ($player[pTroops] >= ($village[pTroops]+1)) $sendtax = 1 - pow(0.75, (($player[pTroops]/$village[pTroops])*2.5));
else $sendtax = 0;
if ($player[pTroops] > ($village[pTroops]*2) && ($gold > ($village[pTroops]*2)))
{
$gold = $village[pTroops]*2;
$transferTotal = $gold - ($gold * $sendtax);
}
else $transferTotal = $gold - ($gold * $sendtax);
$transferTotal = ceil($transferTotal);
$goldLost = ceil($gold * $sendtax);
$playerNewGold = $player[pGold] - $gold;
$villageNewGold = $village[pGold] + $transferTotal;
// for debugging purposes
//return '<font color="'.$failcolor.'">FAIL FAIL FAIL ALERT! '
//.'<br />tax: '.$sendtax
//.'<br />gold to send: '.$gold
//.'<br />after tax: '.$transferTotal
//.'<br />gold lost: '.$goldLost
//.'<br />playerNewTotal: '.$playerNewGold
//.'<br />villageNewTotal: '.$villageNewGold.'</font>';
$newTurnCount = $player[pTurns] - 5;
$vbulletin->db->query_write("UPDATE IGNORE ".TABLE_PREFIX."conquest_players SET pTurns = '".$newTurnCount."' WHERE playerID = ".$player[playerID]."");
$vbulletin->db->query_write("UPDATE IGNORE ".TABLE_PREFIX."conquest_players SET pGold = '".$playerNewGold."' WHERE playerID = ".$player[playerID]."");
$vbulletin->db->query_write("UPDATE IGNORE ".TABLE_PREFIX."conquest_players SET pGold = '".$villageNewGold."' WHERE playerID = ".$village[playerID]."");
//send_notice(1, $player, $village, $lootRatio);
if ($goldLost != 0)
{
$randomMessageChoice = mt_rand(1,3);
switch ($randomMessageChoice)
{
case 1: return '<font color="'.$passcolor.'">You have sent '.$gold.' gold but '.$goldLost.' was taken as draconian tax.</font>';
case 2: return '<font color="'.$passcolor.'">You have sent '.$gold.' gold but '.$goldLost.' was stolen by steelzepplin.</font>';
default: return '<font color="'.$passcolor.'">You have sent '.$gold.' gold but '.$goldLost.' was taxed and lost during the transfer.</font>';
}
}
else return '<font color="'.$passcolor.'">You have sent '.$gold.' gold.</font>';
}
add this check to conquest.php
// ################################################## ######################
// IS USER SENDING TROOPS?
if ($village = fetch_village($vbulletin->input->clean_gpc('p', 'sendtroops', TYPE_UINT)))
{
$noticeTEXT = run_sendtroops($player, $village);
$player = fetch_player($vbulletin->userinfo[userid]);
}
// ################################################## ######################
// IS USER SENDING GOLD?
if ($village = fetch_village($vbulletin->input->clean_gpc('p', 'sendgold', TYPE_UINT)))
{
$noticeTEXT = run_sendgold($player, $village);
$player = fetch_player($vbulletin->userinfo[userid]);
}
modify the conquest_village template for each theme used to have this above the raid/spy run area
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr><td class="tcat" align="center">Trading</td></tr>
<tr><td class="alt1" align="center">
<table cellpadding="5" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td width="50%" valign="top">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" align="center">Send Troops</td>
</tr>
<tr>
<td class="alt1" align="center"><form action="$filename?do=village&pid=$village[playerID]" method="post">
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="sendtroops" value="$village[playerID]" />
<input name="troopamount" type="text" size="10" />
<input type="submit" value="Send">
</form></td>
</tr>
</table>
</td>
<td width="50%" valign="top">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" align="center">Send Gold</td>
</tr>
<tr>
<td class="alt1" align="center"><form action="$filename?do=village&pid=$village[playerID]" method="post">
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="sendgold" value="$village[playerID]" />
<input name="goldamount" type="text" size="10" />
<input type="submit" value="Send">
</form></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="50%" align="center"><strong>Performing a troop trade cost 1 turn</strong></strong></td>
<td width="50%" align="center"><strong>Performing a gold trade cost 5 turns</strong></strong></td>
</tr>
</table>
</td></tr>
</table>
It isn't pretty but it works which is all I cared about when doing this.
Just wanted to add thanks for the author for this mod! It is awesome and I have wasted too many hours on it :D
Hornstar
06-30-2009, 04:32 AM
its a shame this has not had any updates in a while. I was beta testing it with my staff but they don't really seem that interested in this because of its lack of features/updates.
Jaxel
06-30-2009, 11:33 PM
Sorry for the lack of updates... after a long wait I'm back to programming... working on a different mod right now (because that mod actually makes me money)... but this mod is up next.
blissend
07-01-2009, 12:01 AM
Sorry for the lack of updates... after a long wait I'm back to programming... working on a different mod right now (because that mod actually makes me money)... but this mod is up next.
Awesome! I can't wait 8)
therogueforums
07-01-2009, 07:40 AM
Sorry for the lack of updates... after a long wait I'm back to programming... working on a different mod right now (because that mod actually makes me money)... but this mod is up next.
Totally understandable :) looking forward to the updates!
Sorry for the lack of updates... after a long wait I'm back to programming... working on a different mod right now (because that mod actually makes me money)... but this mod is up next.Health first, money second and other mods third. :)
Good news! :)
therogueforums
07-02-2009, 08:43 PM
For those interested in adding a trade system, here is my really sloppy attempt and how you can do it. Hopefully the author will consider adding it and that I'm not out of line for posting this 8)
Just made the changes, and all seems to be working correctly. Thank you! Hopefully, there will be resources latter on (that provide certain benefits when you have/obtain them), and are trade-able.
therogueforums
07-03-2009, 08:09 AM
Is there any way to allow players to switch nations, WITHOUT going into the SQL?
I think Jaxel has noted these suggestions and fixes, am I right Jaxel? :rolleyes:
Dutch_Boy
07-03-2009, 05:51 PM
Sorry for the lack of updates... after a long wait I'm back to programming... working on a different mod right now (because that mod actually makes me money)... but this mod is up next.
Great still working on this mod.
Army is dead so i uninstalled it.
Ill give it a try :)
Sayid
07-03-2009, 06:07 PM
Health first, money second and other mods third.
I like this post :d
Dutch_Boy
07-05-2009, 08:13 AM
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
// ######################## 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] * (1 + $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]."
");
}
}
?>
Xencored
07-06-2009, 12:30 PM
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 ;)
Dutch_Boy
07-06-2009, 07:47 PM
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
// ######################## 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] * (1 + $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?
Where do i need to put this code?
My conquestCycle.phpThere it is.
conquestCycle.php is in {forum}/includes/cron
therogueforums
07-07-2009, 11:19 AM
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.
Tagert
07-08-2009, 11:01 AM
I like this mod! I look forward to the updates !
Keep it up !
amish_irish
07-13-2009, 12:06 AM
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?
Nobody knows about forward updates ATM.
therogueforums
07-13-2009, 09:47 AM
Anyone willing to take a stab at the whole resources, and being able to trade them? Or nation heroes?
BlueNinjaGo
07-13-2009, 03:23 PM
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?
It's not too hard to change... some of it is changed through the product... some of it can be changed in phrases and templates, and some of it can be changed in the code. I'm not sure if it's fully phased or not.
Tagert
07-13-2009, 04:39 PM
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?
well you could change the nation names to something sport'ish I guess, and the weapon names to different powerful tennis rackets to smash the other ones with haha :P
amish_irish
07-14-2009, 01:21 AM
Well it is a football board so it shouldn't be too tough of a stretch.
Hornstar
07-18-2009, 12:36 AM
I just got this error after it has been working fine too: Fatal error: Allowed memory size of 131072000 bytes exhausted (tried to allocate 35 bytes) in /home/***/public_html/forums/conquest/functions_conquest.php on line 62
I applied the fix in this thread and it fixed it.
would be nice to see some updates applied to this game tho.
Yes I hope there will be some updates before the end of the month. :)
Tagert
07-18-2009, 07:15 PM
Yes I hope there will be some updates before the end of the month. :)
I hope so too!
*keeps fingers crossed*
great mod indeed, a favorite on my community forum.
DevilzFan
07-22-2009, 01:43 AM
Howdy folks. This looks like an awesome mod.
I'm having an installation issue though. When I go to import the product XML in the admincp, I keep getting the following database error:
* ltering Table usergroup ...Done!
* Creating Table ciconquest_armours ... Done!
* Inserting Rows ciconquest_armours ...
Database Error Database error
Site database has encountered a problem.
Please try the following:
o Load the page again by clicking the Refresh button in your web browser.
o Open the home page, then try to open another page.
o Click the Back button to try another link.
The forum technical staff have been notified of the error, though you may contact them if the problem persists.
We apologise for any inconvenience.
Database error in vBulletin 3.8.2: Invalid SQL: INSERT INTO ciconquest_armours (aName, aPower, aCost) VALUES ('Fur Hide', 20, 25), ('Leather', 30, 50), ('Carapice', 50, 100), ('Laminate', 95, 200), ('Iron Plate', 135, 300), ('Bronzed', 170, 400), ('Rolled Steel', 200, 500); MySQL Error : Duplicate entry 'Fur Hide' for key 2 Error Number : 1062 Request Date : Tuesday, July 21st 2009 @ 10:35:34 PM Error Date : Tuesday, July 21st 2009 @ 10:35:34 PM Script : http://www.XXXXXXXXXXX.com/forums/admincp/plugin.php?do=productimport Referrer : http://www.XXXXXXXXXX.com/forums/admincp/plugin.php?do=productadd IP Address : 67.84.82.71 Username : J.D. Classname : vB_Database MySQL Version : 4.0.27-max-log
Database error in vBulletin 3.8.2:
Invalid SQL:
INSERT INTO ciconquest_armours (aName, aPower, aCost) VALUES
('Fur Hide', 20, 25),
('Leather', 30, 50),
('Carapice', 50, 100),
('Laminate', 95, 200),
('Iron Plate', 135, 300),
('Bronzed', 170, 400),
('Rolled Steel', 200, 500);
MySQL Error : Duplicate entry 'Fur Hide' for key 2
Error Number : 1062
Request Date : Tuesday, July 21st 2009 @ 10:35:34 PM
Error Date : Tuesday, July 21st 2009 @ 10:35:34 PM
Script : http://www.XXXXXXXXX.com/forums/admincp/plugin.php?do=productimport
Referrer : http://www.XXXXXXXXXXXX.com/forums/admincp/plugin.php?do=productadd
IP Address : XXXXXXXXXX
Username : J.D.
Classname : vB_Database
MySQL Version : 4.0.27-max-log
Any ideas?
ragtek
07-22-2009, 03:56 AM
1
If anyone is using kbank on their forum too, i made an item for the shop to give turns when you buy it ;)
would you share it with us?*g*
Dutch_Boy
07-22-2009, 11:28 AM
Fingers crossed. I hope jaxel bring out a new update as soon as possible.
Jaxel is it prossible to add something so you can turn the PM's off that you get if someone attacks you. My members complain about the PM's.
Jaxel
07-22-2009, 01:42 PM
Dutch... I dont have as much time to program as I used to... so things take a bit longer now...
But know that I DO read every comment people post and I will be taking people's suggestions for the next version.
ArchangelX
07-23-2009, 03:04 AM
Nice to hear Jaxel...our conquest system has pretty much gone off the deep end as noone plays it any longer because it's got so many needed functions. The balancing is difficult...thanks for the hard work.
Dutch_Boy
07-23-2009, 10:03 AM
Dutch... I dont have as much time to program as I used to... so things take a bit longer now...
But know that I DO read every comment people post and I will be taking people's suggestions for the next version.
Cant someone help you? Do some things that are really needed and the rest can you do later on.
So the great mod doesnt die.
New Joe
07-25-2009, 02:30 PM
I don't understand this part of the installation instructions; CHMOD /conquest/nations to 777.
Stifmeister2
07-25-2009, 05:43 PM
I don't understand this part of the installation instructions;
Use your ftp program (the one you use to upload files to your server) for this.
In most FTP programs all you need to do is to right click "nations" folder and give every group all the permissions.
Here's one example how it looks in some program:
http://www.ecardmax.com/templates/Main/chmod-777_cute.gif
Dribbles
07-25-2009, 09:58 PM
Any way to make the battles more exciting? Right now it's just a line of text that says whether u woin or not
Megatr0n
07-26-2009, 10:16 AM
Jaxel, any idea when we can expect the new version?
therogueforums
07-26-2009, 11:39 AM
I'd like to know, too.
Dutch_Boy
07-26-2009, 02:06 PM
Dutch... I dont have as much time to program as I used to... so things take a bit longer now...
But know that I DO read every comment people post and I will be taking people's suggestions for the next version.
Read his post before you ask stupid questions ;) :P
Give him the time to bring out a kick ass update :)
therogueforums
07-26-2009, 06:41 PM
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.
yotsume
07-27-2009, 07:05 AM
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...
Thesdale
08-01-2009, 01:35 AM
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.
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;
}
Thesdale
08-01-2009, 11:24 PM
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:
<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>
xoclanes
08-02-2009, 04:10 AM
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
Hornstar
08-02-2009, 06:30 AM
@ 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.
PAKIDIL
08-02-2009, 07:09 AM
allowing chmd 777 to the directory dont you think its risky in term of hacking the forum ?
blogthea
08-02-2009, 05:57 PM
can't wait for the new version! Keep up the good work
Hornstar
08-02-2009, 09:53 PM
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?
xoclanes
08-02-2009, 09:56 PM
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? :(
xoclanes
08-03-2009, 01:25 AM
any clue about this issue? :(
I fixed my problem, was with a OLD mod, if anyone have same problem I fix with this: http://www.jordandelozier.com/2009/03/vbulletin-duplicate-usergroup-problem-fix/
I still no sure if this mods works at 3.8.3
Nice mod, Jaxel. Just donated you a few ;) What are the plans for new features and future updates?
Damien1990
08-07-2009, 07:36 PM
I love it. Installed. In the future can there be an option to designate certain weapons to certain nations?
CheeSie
08-11-2009, 06:13 PM
Can you please integrate this with vbCredits?
Jaxel
08-11-2009, 09:02 PM
Can you please integrate this with vbCredits?
Not a chance in hell. I hate credit systems with a passion, and I try to take credit systems OUT of mods. Like when the new Triple Triad comes, I'm gonna do the best I can to rip vbCredits out of it.
Megatr0n
08-11-2009, 11:23 PM
Hi Jaxel,
Is an update on the horizon soon?
CheeSie
08-12-2009, 08:07 AM
Not a chance in hell. I hate credit systems with a passion, and I try to take credit systems OUT of mods. Like when the new Triple Triad comes, I'm gonna do the best I can to rip vbCredits out of it.
But whyyyy!! :(
.. Cant you see the positive sides of using vbCredits ? - You'd be able to make a buck or to by offering the possibility to sell credits for real cash and some members would most definitely buy some credits to get an advantage xD
Xencored
08-12-2009, 12:06 PM
But whyyyy!! :(
.. Cant you see the positive sides of using vbCredits ? - You'd be able to make a buck or to by offering the possibility to sell credits for real cash and some members would most definitely buy some credits to get an advantage xD
Everything is not allways about money ;)
CheeSie
08-12-2009, 01:44 PM
Everything is not allways about money ;)
For some it is.. Luckily I've made these changes myself and it's now fully working with vbCredits :)
Not a chance in hell. I hate credit systems with a passion, and I try to take credit systems OUT of mods. Like when the new Triple Triad comes, I'm gonna do the best I can to rip vbCredits out of it.This is a good decision, I don't like vbCredits too.
When will we expect new version of this modification? :rolleyes:
wpeloquin
08-15-2009, 03:45 PM
There needs to be a way, and a penalty, for players to switch nations. There is definitely a need to do so for some members, like those who join a nation, and then end up being alone in that nation and get attacked 15x a day.
Sayid
08-17-2009, 05:25 PM
If you don,t like credits then why not make it as an option ?
Anyway, I have installed this modification and nominated . The coder is free to add the credits option or not. And I think it is better to add it because most of credits lovers may install this mod .
Triple Triad comes
Wow another TT mod. Can,t wait :D
xyzmary2001
08-21-2009, 10:14 AM
Looks like we have no attention here.
Digital Jedi
08-23-2009, 03:16 PM
Not a chance in hell. I hate credit systems with a passion, and I try to take credit systems OUT of mods. Like when the new Triple Triad comes, I'm gonna do the best I can to rip vbCredits out of it.
Would be nice if you reconsidered at seem point. Not about liking point systems, but about making it, at least, compatible with some. It's a very common request.
xyzmary2001
08-26-2009, 06:05 AM
Thank you for your work. Maybe I'll try it later.
therogueforums
08-26-2009, 09:01 AM
Well... while this is an awesome start on a mod, and a hell of a better job than I can do... I am starting to fear this mod will never see the updates it needs.
Yes, I am aware the coder is busy with other projects- projects which pay his bills. As stated before, I would gladly donate for an update to this, as I'm sure others would, too. This mod would make enough money through donations to make it worth the while to update.
That said, thank you for the work you have put into it. I only hope someone can pick up where this mod leaves off.
forte
08-28-2009, 03:24 AM
Well, i just added some stuff to the game as it was requested by users on my site. I added sending troops or gold to your team mates and players being able to delete their own accounts. I thought of adding a way of users to switch nations but then that would just result in chaos.
Hell Bomb
08-29-2009, 12:17 AM
Well i will be writing the creator a letter asking for permission to to continue work on this. Ill be trying to working on this and hopefully ill be able to make this what everyone was hoping this could be.
therogueforums
08-29-2009, 09:46 AM
Best of luck! I really hope someone can take this mod from where it is now, to where it could be.
bob12
09-01-2009, 04:03 PM
How can i fix the number of turns on this hack from 70 to any number of turns i want it to be
princeedward
09-09-2009, 10:47 AM
thanks and will test this one...
dai-kun
09-10-2009, 12:21 AM
Hey.. how does the nation bonus work? I don't see it add the bonus to my troops offense/defense.
in functions.php
If you want the bonuses to add to the # of troops, you use this code:
line 68 should be $power = $power + $player[pTroops] * ((100 + $player[nOffense] + $player[oPower]) / 100);
and line 94 should be $power = $power + $player[pTroops] * ((100 + $player[nDefense] + $player[dPower]) / 100);
for proper addition of all bonuses and armors/weapons.
The problem with the original code:
$power = 1 + $player[pTroops] + $power * ((100 + $player[nOffense] + $player[oPower]) / 100);
is that the 2nd instance of $power (which is the item bonus from buying), if it is 0 meaning you have not bought an item yet, will null the entire equation after it because math rule is that multiplication goes first. Since 0 * ((100 + $player[nOffense] + $player[oPower]) / 100) = 0. Also the 1 in the equation is useless
If you want the bonuses to add to the item attk/defense power + # of troops, you use this code:
line 68 should be $power = ($power + $player[pTroops]) * ((100 + $player[nOffense] + $player[oPower]) / 100);
and line 94 should be $power = ($power + $player[pTroops]) * ((100 + $player[nDefense] + $player[dPower]) / 100);
Trip3151
09-10-2009, 06:09 PM
Could make 2 versions
1 Lite Version ( Free )
1 Pro Version ( Paid )
least then the creater will get some cash from this project :)
zombietom
09-12-2009, 07:06 PM
Really would like to see VBcredits added for this...yeah i know you hate it but it is a very good credits system and a lot of forums use it..so why not just add it in..it could lead to more installs.
I'm still unsure on installing this but will keep an eye on it and see where it goes.
thanks
DobieGillis?
09-12-2009, 10:43 PM
Could make 2 versions
1 Lite Version ( Free )
1 Pro Version ( Paid )
least then the creater will get some cash from this project :)
ain't gonna happen. I think this one is over. Nitey nite, good night nurse!
Sid_pachi
09-12-2009, 11:46 PM
Sadly....
Digital Jedi
09-13-2009, 01:32 AM
One month is not really an unusual amount of time to not hear back from a developer.
wobbly
09-13-2009, 01:11 PM
Just a quick one. I've done a quick search through the topic for avatars and can't find anything so i thought I would ask.
In the Nation specific forums the users avatars link is broken for everyone.
The link in the script looks at "http://mywebsite.co.uk/forums/customavatars/thumbs/avatar1_3.gif" for my avatar for example when the avatars are kept in "http://www.mywebsite.co.uk/forums/customavatars/avatar1_3.gif"
Any ideas on how I can change the script to change this.
Any help would be appreciated.
dai-kun
09-13-2009, 05:42 PM
yeah, you can change it in the conquest.php file
$comment['avatarurl'] = $vbulletin->options['avatarurl'] . ($thumb ? '/thumbs' : '') . "/avatar{$comment['userID']}_{$comment['avatarrevision']}.gif";
But you should have thumbnails created for your custom avatars instead. Go to maintenace -> update counters -> Rebuild Custom Avatar Thumbnails
and it should work without any code edits.
Also if you notice that you have over 30 posts or however much you set your settings to be before pagination, the 2nd, 3rd and so on pages will show the same post no matter what. I don't know how to fix that. :(
dai-kun
09-16-2009, 06:07 AM
I wish this mod was developed more. I have over 500 members playing in just a few days. I'm doing my own mod as fit but it's frustrating sometimes.
profanitytalker
09-21-2009, 09:49 AM
Hey jaxel thanks for this mod. Do you know how to delete nations?
therogueforums
09-21-2009, 07:48 PM
By chance, has anyone come up with a few functions, like the ability to switch nations, or trade-able resources that provide bonuses? What about the ability for players to name their cities?
Megatr0n
09-26-2009, 08:07 PM
Looks like this plugin will never be updated.
Uninstalled.
bigcurt
09-27-2009, 02:18 AM
What's wrong with the current plugin exactly?
slapjack2fast
09-27-2009, 03:50 AM
How can i delete Nations!?
Digital Jedi
09-27-2009, 05:58 AM
Looks like this plugin will never be updated.
Uninstalled.
Updated for what? It's already stable on the most current version of vB.
therogueforums
09-27-2009, 07:35 AM
I think he may be referring to the addition of the features we were all waiting on. After all, we were told there would be an update. Meh. It's probably never going to happen, but I won't lose any sleep over it.
ragtek
09-27-2009, 10:14 AM
I realy like the addon and as many wrote, it's working great but i can also understand the people who are "crying" for updates, because some posted realy great ideas!
Megatr0n
09-27-2009, 01:18 PM
I think he may be referring to the addition of the features we were all waiting on. After all, we were told there would be an update. Meh. It's probably never going to happen, but I won't lose any sleep over it.
You're right.
This hack has now also been marked as Not Supported.
Further signs it won't be updated anytime soon.
Ah well! :D
Digital Jedi
09-27-2009, 06:42 PM
One of Jaxel's last posts said that he didn't have as much time to code as he used to, so that's not really a surprise.
However, I don't get why one would feel no modification is better than a modification that's fully functional. Seems to me that if it's working and fun to play, what more could you ask for?
Xencored
09-27-2009, 07:22 PM
One of Jaxel's last posts said that he didn't have as much time to code as he used to, so that's not really a surprise.
However, I don't get why one would feel no modification is better than a modification that's fully functional. Seems to me that if it's working and fun to play, what more could you ask for?
Agreed
He also had swine-flu from what i read
Hope hes doing ok! ;)
BlackJacket
09-28-2009, 12:26 PM
Anyone figure out how to delete nations?
BlackJacket
09-28-2009, 01:18 PM
To delete a Nation:
You will need to go to your database, click on Conquest Nations table and delete the nation you wish to get rid of.
Sid_pachi
09-28-2009, 02:17 PM
i have edited the functions_conquest_village.php
to allow players of the same team to attack each other and spy on each other..
its more of a free for all now..
Jaxel
09-28-2009, 04:51 PM
Agreed
He also had swine-flu from what i read
Hope hes doing ok! ;)
Yeah, I'm fine...
But I dont think I'll be getting back to this mod any time soon. If people want to release their own updates, I'm okay with that.
Xencored
09-28-2009, 11:20 PM
Yeah, I'm fine...
But I dont think I'll be getting back to this mod any time soon. If people want to release their own updates, I'm okay with that.
It fine mate its all working for me :D
dai-kun
09-29-2009, 01:13 AM
Make sure you apply the fix to how weapons and bonuses are calculated.
Developerz
10-07-2009, 04:46 AM
Is there any way to cap the number of troops or put some type of restrictions on them once they reach a certain level? I have got a couple of members who do nothing but build up troops until it gets ridiculous.
WoodiE
10-07-2009, 11:08 AM
You kids are complaining about a developer that released a mod that is clearly marked as "Not Supported". What part of "Not Supported" do you not understand?
therogueforums
10-07-2009, 05:28 PM
http://memegenerator.net/Instances/650/Boxxy-YOURE-TROLLIN-.jpg
The "not supported" tag wasn't originally there ;)
gamerfu
10-15-2009, 11:12 PM
Yeah, I'm fine...
But I dont think I'll be getting back to this mod any time soon. If people want to release their own updates, I'm okay with that.You should make this open source/re-usable code Jaxel :cool:
BlackJacket
10-17-2009, 08:54 PM
I am getting this error -
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 35 bytes) in /home/content...(edited).../html/community/conquest/functions_conquest.php on line 62
Not everyone is getting it though and it does not involve army size. Anyone have any idea's on how to fix it?
dai-kun
10-18-2009, 08:17 PM
That line in that file is calculating the weapons power I believe. You can bypass the limit by editing your conquest.php script.
http://www.tech-recipes.com/rx/777/solve-php-fatal-error-allowed-memory-size-of-8388608-bytes-exhausted-tried/
persian.be
10-24-2009, 03:16 PM
i Can't See administrator tools in v1.3 why ?
RokuDaMerlin
11-12-2009, 03:23 AM
hey i have install your game i love it..
i have translate this in german ;) see: http://www.diespielhalle.de/conquest.php
can you add for later updates .. any ideas see the screenshots on this page:
http://spielwelt21.monstersgame.net/index.php?ac=anleitung#screenshots
greez from germany roku
(answer or questions send pls to info@mightycolors.com ) thx
Avarice
11-15-2009, 01:38 AM
Hmm, I have downloaded and installed the latest version orrectly. But I cannot do anything. The only page I can access is the index page, everything else gives me a "Account Warning" Page, and I see no Administration tools.
Can someone tell me how to fix this?
EDIT: After reading some posts I am aware that the creator has stopped the developement. If no one as the answer the previous question how about the answer to this question:
Does anyone have a slightly older vesion that works?
kellyandmark04
11-16-2009, 01:58 AM
Game works well for me for a few months then all of a sudden one team or two teams ends up with billions and billions in gold for no reason. Any info about this?
New Joe
11-16-2009, 04:26 AM
I am getting this error -
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 35 bytes) in /home/content...(edited).../html/community/conquest/functions_conquest.php on line 62
Not everyone is getting it though and it does not involve army size. Anyone have any idea's on how to fix it?
I am having the same problem.
New Joe
11-16-2009, 04:27 AM
That line in that file is calculating the weapons power I believe. You can bypass the limit by editing your conquest.php script.
http://www.tech-recipes.com/rx/777/solve-php-fatal-error-allowed-memory-size-of-8388608-bytes-exhausted-tried/
Where in the conquest.php script do you edit?
I followed the link but I am still not sure where to do the edit.
Thanks
RokuDaMerlin
11-18-2009, 04:01 AM
Hmm, I have downloaded and installed the latest version orrectly. But I cannot do anything. The only page I can access is the index page, everything else gives me a "Account Warning" Page, and I see no Administration tools.
Can someone tell me how to fix this?
EDIT: After reading some posts I am aware that the creator has stopped the developement. If no one as the answer the previous question how about the answer to this question:
Does anyone have a slightly older vesion that works?
my english is not the best sry .. the latest version run verry good .. download it ..
you can only see the index .. go to your admin cp / group preferences (admin) and look to the point "conquest system" and give you rights ..
now go to www.yoursite.de/conquest.php?do=homebase and join to a villages .. now you can see the admin preferences ;)
i hope this help you ;)
greez roku
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.