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

Reply
 
Thread Tools
-:[GAME]:- London Chase Details »»
-:[GAME]:- London Chase
Version: 1.0, by Coroner Coroner is offline
Developer Last Online: Dec 2011 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.8.x Rating:
Released: 05-31-2009 Last Update: 06-01-2009 Installs: 32
DB Changes Uses Plugins
Additional Files  
No support by the author.

What is this ?
Don't ask ... you know it. This game is similar the same as "Scotland Yard". There were a sequel in USA called: NewYork Chase.
This game is 3 year old and written in 2006.

Rules:
See in game.

Goal:
Try to catch Mister Y (not Mister X). Mister Y is the computer player and before you ask: no, there is no chance to play him.

Requirements:
This game needs a minimum of 3 human players, but ... you can play it with 2 and a maxmimum of 5 players.

Support:
Yes of course, but click installed

[edit: 06.01.2009] forget the userrights

Download Now

File Type: zip london_chase.zip (1.47 MB, 154 views)

Screenshots

File Type: jpg Bild 1.jpg (30.9 KB, 0 views)
File Type: jpg Bild 2.jpg (25.7 KB, 0 views)
File Type: jpg Bild 3.jpg (26.7 KB, 0 views)
File Type: png Bild 4.png (146.3 KB, 0 views)
File Type: jpg Bild 5.jpg (61.1 KB, 0 views)
File Type: jpg Bild 7.jpg (53.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 06-01-2009, 02:30 PM
Coroner Coroner is offline
 
Join Date: Feb 2008
Location: Germany
Posts: 797
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, your last userid in the computers range.

If your userid is higher than 50.000 do the following things:
open lc_global.php and search for:
Code:
$minkiid =  500000;
$maxkiid = 1000000;
and in londonchase_admin.php for:
Code:
$maxkiid =  500000;
Mister Y lies in the range of 50.000 - 99.999
over 100.000 are the userids for all players they play a double game (2 player game).

so, you can change minkiid into 100000 and maxkiid into 120000.

I think that will help
Reply With Quote
  #13  
Old 06-01-2009, 02:32 PM
Coroner Coroner is offline
 
Join Date: Feb 2008
Location: Germany
Posts: 797
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you have also "4 Pins" installed, better change
into this values:

$minkiid = 150000;
$maxkiid = 170000;

The range for the computers userid is at 120000 in "4 Pins"
Reply With Quote
  #14  
Old 06-03-2009, 05:48 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Gah! You got me again!

This should be interesting. Let's see if the minimum two players will get some of members to spend a little more time interacting. They have a tendency to visit the forum at off time.
Reply With Quote
  #15  
Old 06-03-2009, 05:53 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, I forgot to mention. In the rules window, the text doesn't wrap, so you can't read the end of some sentences: http://www.cogonline.net/forums/lc.p...ow_modulerules

Also, that button should read: Main Menu.
Reply With Quote
  #16  
Old 06-05-2009, 04:16 PM
Calystos's Avatar
Calystos Calystos is offline
 
Join Date: Apr 2009
Location: Terra
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

K, not sure whats up here but I can't get it to work at all. It installs fine, just like every other addon I've installed. But when I went to try it out I get a wall of code and at the bottom a sql error. :-(

Code:
GPC['preview'] == 'show') { $mc = count ($module_menue['menueoption']); for ($x = 0; $x < $mc; $x++) { $preview = 'preview' . $x; if ($module_menue['menuejavascript'][$x]) { if ($_GET[$preview]) { $sc = count ($module_menue['menueoptiontext'][$x][6]); $key = $_GET[$preview] - 1; for ($y = 0; $y < $sc; $y++) { $module_menue['menueoptiontext'][$x][6][$y] = 0; if ($y == $key) { $module_menue['menueoptiontext'][$x][6][$y] = 1; $theselectedpreviewkey = $key; } } } } } } /* start to init the module */ /* getting the max gameid */ $result = $db->query_first ("SELECT max(" . $module_menue['gameidentry'] . ") AS maxid FROM `" . TABLE_PREFIX . $gamedb . "`"); $lastgameid = $result['maxid']; /* check, if the user is in a game */ $menue_showmain = 0; $result = $db->query_first ("SELECT * FROM " . TABLE_PREFIX . $userdb . " WHERE `userid`='" . $$playersid . "'"); if (!$result[$module_menue['gameidentry']]) { $menue_showmain = 1; $check = running_game (); $showthismenue = 1; if (count ($check) > 0) { if ($module_menue['maxgames'] > 1) { $gogameselect = create_gogames ($check, $module_menue['maxgames'], 1); } else { $showthismenue = 0; $gogameselect = create_gogames ($check, $module_menue['maxgames'], 0); $mytestmoduletemplate = template_menue_gogame (); } } if ($vbulletin->GPC['menueaction'] == 'gogame') { /* check if the game is avaible and if it's not complete */ $gameid = intval ($vbulletin->GPC['goingame']); $ingame = $db->query_first ("SELECT * FROM `" . TABLE_PREFIX . $module_menue['gamedb'] . "` WHERE `" . $module_menue['gameidentry'] . "`='" . $gameid . "'"); if (!$ingame['gameid']) { header ("location: " . $modulemain . $session['sessionhash'], TRUE); exit (); } else { $compl = 1; $maxpla = $ingame['maxplayer']; for ($x = 1; $x < $maxpla + 1; $x++) { $mplayer = $module_menue['playerenty'] . $x; if (!$ingame[$mplayer]) { $insplayer = $mplayer; $compl = 0; break; } } if ($compl) { header ("location: " . $modulemain . $session['sessionhash'], TRUE); exit (); } $db->query("UPDATE `" . TABLE_PREFIX . $module_menue['gamedb'] . "` SET `" . $insplayer . "`='" . $$module_menue['playersid'] . "' WHERE `gameid`='" . $gameid . "'"); $db->query("UPDATE `" . TABLE_PREFIX . $module_menue['userdb'] . "` SET `" . $module_menue['gameidentry'] . "`='" . $lastgameid . "', `username`='" . addslashes ($$playersname) . "' WHERE `userid`='" . $$module_menue['playersid'] . "'"); header ("location: " . $modulemain . $session['sessionhash'], TRUE); exit (); } } if ($showthismenue) { $selm = 1; if ($vbulletin->GPC['menueaction'] == 'startgame') { if (!$lastgameid) { $lastgameid = 1; } else { $lastgameid++; } $check = running_game (); if (count ($check) >= $module_menue['maxgames']) { header ("location: " . $modulemain . $session['sessionhash'], TRUE); exit (); } if ($vbulletin->GPC['goingame']) { $ggameid = intval ($vbulletin->GPC['goingame']); $ingame = $db->query_first("SELECT * FROM `" . TABLE_PREFIX . $module_menue['gamedb'] . "` WHERE `" . $module_menue['gameidentry'] . "`='" . $ggameid . "'"); if (!$ingame['gameid']) { header ("location: " . $modulemain . $session['sessionhash'], TRUE); exit (); } else { $compl = 1; $maxpla = $ingame['maxplayer']; for ($x = 1; $x < $maxpla + 1; $x++) { $mplayer = $module_menue['playerenty'] . $x; if (!$ingame[$mplayer]) { $insplayer = $mplayer; $compl = 0; break; } } if ($compl) { header ("location: " . $modulemain . $session['sessionhash'], TRUE); exit (); } $db->query("UPDATE `" . TABLE_PREFIX . $module_menue['gamedb'] . "` SET `" . $insplayer . "`='" . $$module_menue['playersid'] . "' WHERE `gameid`='" . $ggameid . "'"); $db->query("UPDATE `" . TABLE_PREFIX . $module_menue['userdb'] . "` SET `" . $module_menue['gameidentry'] . "`='" . $lastgameid . "', `username`='" . addslashes ($$playersname) . "' WHERE `userid`='" . $$module_menue['playersid'] . "'"); // $showthismenue = $selm = $menue_showmain = 0; header ("location: " . $modulemain . $session['sessionhash'], TRUE); exit (); } } if ($selm) { foreach ($module_menue['menueoption'] AS $key => $val) { if ($vbulletin->GPC[$val]) { $$val = $vbulletin->GPC[$val]; if ($module_menue['menueiski'][$key]) { $query = ''; insert_menueki ($$module_menue['menueoption'][$key], $$module_menue['maxplayerentry'], $lastgameid, $module_menue['kirandon']); } else { $query = "INSERT INTO `" . TABLE_PREFIX . $module_menue['gamedb'] . "` ("; $entries = $module_menue['menueentries'][$key]; foreach ($entries AS $x => $y) { $query .= "`" . $y . "`, "; } $query = substr ($query, 0, strlen ($query) - 2); $query .= ") VALUES ("; $entryvals = $module_menue['menueentryvals'][$key]; foreach ($entryvals AS $key => $val) { $query .= "'" . $$val . "', "; } $query = substr ($query, 0, strlen ($query) - 2) . ")"; $db->query ($query); $db->query ("UPDATE `" . TABLE_PREFIX . $module_menue['userdb'] . "` SET `" . $module_menue['gameidentry'] . "`='" . $lastgameid . "', `username`='" . addslashes ($$playersname) . "' WHERE `userid`='" . $$module_menue['playersid'] . "'"); $menue_showmain = 0; } } } } } if ($selm) { $selectmenue = generate_select (); // generate the selectmenue $mytestmoduletemplate = template_menue (); } } } if (!$menue_showmain) { /* if we're in a game - so check out if the game is complete */ $gameid = $result[$module_menue['gameidentry']]; $mygame = $db->query_first("SELECT * FROM `" . TABLE_PREFIX . $module_menue['gamedb'] . "` WHERE `" . $module_menue['gameidentry'] . "`='" . $gameid . "'"); $ingameplayer = 0; $menue_gamecomplete = 1; $maxplayer = $mygame['maxplayer']; for ($x = 1; $x < $maxplayer + 1;$x++) { $mplayer = $module_menue['playerenty'] . $x; if (!$mygame[$mplayer]) { $menue_gamecomplete = 0; } else { $ingameplayer++; } } $menue_showmain = 0; if ($vbulletin->GPC['menueaction'] == 'breakgame') { if (!$menue_gamecomplete) { /* game is incomplete, so we have to search if there is any human player */ $humans = 0; for ($x = 1; $x < $maxplayer + 1;$x++) { $mplayer = $module_menue['playerenty'] . $x; if ($mygame[$mplayer] AND $mygame[$mplayer] < $minkiid AND $mygame[$mplayer] != $$module_menue['playersid']) $humans++; if ($mygame[$mplayer] AND $mygame[$mplayer] == $$module_menue['playersid']) $mypos = $mplayer; } if ($humans) { // there are other humans in that game $db->query("UPDATE `" . TABLE_PREFIX . $module_menue['userdb'] . "` SET `" . $module_menue['gameidentry'] . "`='0' WHERE `userid`='" . $mygame[$mypos] . "'"); $db->query("UPDATE `" . TABLE_PREFIX . $module_menue['gamedb'] . "` SET `" . $mypos . "`='0' WHERE `gameid`='" . $gameid . "'"); } else { for ($x = 1; $x < $maxplayer + 1;$x++) { $mplayer = $module_menue['playerenty'] . $x; if ($mygame[$mplayer] >= $minkiid) { $db->query("DELETE FROM `" . TABLE_PREFIX . $module_menue['userdb'] . "` WHERE `userid`='" . $mygame[$mplayer] . "'"); } else { $db->query("UPDATE `" . TABLE_PREFIX . $module_menue['userdb'] . "` SET `" . $module_menue['gameidentry'] . "`='0' WHERE `userid`='" . $mygame[$mplayer] . "'"); } } $db->query("DELETE FROM `" . TABLE_PREFIX . $module_menue['gamedb'] . "` WHERE `" . $module_menue['gameidentry'] . "`='" . $gameid . "'"); } $db->query("OPTIMIZE TABLE `" . TABLE_PREFIX . $module_menue['gamedb'] . "`"); $db->query("OPTIMIZE TABLE `" . TABLE_PREFIX . $module_menue['userdb'] . "`"); header ("location: " . $modulemain . $session['sessionhash'], TRUE); exit (); } } if (!$menue_gamecomplete) { // $iswaiting = 1; $menue_showmain = 1; $missing = $maxplayer - $ingameplayer; $mytestmoduletemplate = template_menuewait ($missing); } } function generate_buttons () { global $module_menue, $vbphrase, $session; $menuebuttons = ''; foreach ($module_menue['menuebuttons'] AS $key => $val) { $buttonname = $val['button']; if ($val['islang']) { $buttonname = $vbphrase[$val['button']]; } if (!$val['islink']) { $menuebuttons .= "" . $buttonname . "   "; } else { $menuebuttons .= "   "; } } $menuebuttons = substr ($menuebuttons, 0, strlen ($menuebuttons) - 18); return $menuebuttons; } function create_gogames ($check, $maxgames, $startempty) { global $vbphrase, $db, $module_menue, $module_version, $mod_tableb; $si = 0; $selectoption = ''; if ($startempty) $selectoption .= "----------\r\n"; foreach ($check AS $key => $val) { if ($si < $maxgames) { $result = $db->query_first ("SELECT * FROM " . TABLE_PREFIX . $module_menue['gamedb'] . " WHERE " . $module_menue['gameidentry'] . "='" . $val . "'"); $text = $module_menue['menuetitles']['gogametext'][0]; if ($module_menue['menuetitles']['gogametext'][1]) { $text = $vbphrase[$module_menue['menuetitles']['gogametext'][0]]; } $gamers = 0; $mplayer = $module_menue['playerenty']; for ($x = 1; $x < $result['maxplayer'] + 1; $x++) { $aplayer = $mplayer . $x; if ($result[$aplayer]) $gamers++; } $missing = $result['maxplayer'] - $gamers; $creator = $val; $text = str_replace ("%1", $creator, $text); $text = str_replace ("%2", $missing, $text); $selectoption .= "" . $text . "\r\n"; } $si++; } $gogameselect = "\r\n"; $gogameselect .= "\r\n"; $gogameselect .= "\r\n"; $gogameselect .= $selectoption . "\r\n"; $gogameselect .= "\r\n"; $gogameselect .= "\r\n"; $gogameselect .= "\r\n"; return $gogameselect; } function running_game () { global $db, $module_menue; $check = array (); $result = $db->query ("SELECT * FROM `" . TABLE_PREFIX . $module_menue['gamedb'] . "` ORDER BY `" . $module_menue['gameidentry'] . "` ASC"); while ($row = $db->fetch_array ($result)) { $end = 0; $maxplayer = $row['maxplayer']; for ($x = 1; $x < $maxplayer + 1; $x++) { $mplayer = $module_menue['playerenty'] . $x; if (!$row[$mplayer]) $end = 1; } if ($end) $check[] = $row[$module_menue['gameidentry']]; } return $check; } function insert_menueki ($kiplay, $maxpla, $gameid, $random) { global $db, $module_menue, $minkiid; $mkiplayer = $module_menue['playerenty']; $result = $db->query ("SELECT * FROM " . TABLE_PREFIX . $module_menue['gamedb']); while($row = $db->fetch_array ($result)) { for ($x = 1; $x < $maxpla + 1; $x++) { $player = $mkiplayer . $x; if ($row[$player] >= $minkiid) { if ($row[$player] >= $minkiid) $maxki = $row[$player] + 10; } } } $result = $db->query_first ("SELECT * FROM `" . TABLE_PREFIX . $module_menue['gamedb'] . "` WHERE `" . $module_menue['gameidentry'] . "`='" . $gameid . "'"); for ($x = 1; $x < $maxpla + 1; $x++) { $player = $mkiplayer; $player .= $x; if ($result[$player] != 0) break; } $start = $x + 1; // which player is an AI if ($kiplay >= $maxpla) { $end = $maxpla - $start + 1; } else { $end = $kiplay; } include_once (DIR . '/lc_modules/lc_module_ainames.php'); $ai_names = array (); $ki = 1; $kip = $start; $mk = $kiplay; if ($mk == 0) $mk = 1; srand ((double) microtime() * 10000000); $names = array_rand ($ainames, $mk); for ($i = 0; $i < $end; $i++) { $player = $mkiplayer . $kip; if ($random == 0) { $kiname = $module_menue['kinames'][$i]; } else { if ($mk == 1) { $kiname = $ainames[$names]; } else { $kiname = $ainames[$names[$i]]; } } $db->query ("UPDATE `" . TABLE_PREFIX . $module_menue['gamedb'] . "` SET " . $player . "='" . $maxki . "' WHERE `" . $module_menue['gameidentry'] . "`='" . $gameid . "'"); $db->query ("INSERT INTO `" . TABLE_PREFIX . $module_menue['userdb'] . "` (`gameid`, `userid`, `username`) VALUES ('" . $gameid . "', '" . $maxki . "', '" . addslashes ($kiname) . "')"); $kip++; $maxki++; } } function generate_select () { global $module_menue, $vbphrase, $previewselected; $selectmenue = ''; foreach ($module_menue['menueoption'] AS $key => $val) { $optionvals = $module_menue['menueoptiontext'][$key]; if ($optionvals[0]) { $javascript = ''; $formname = $val; if ($module_menue['menuejavascript'][$key]) $javascript = $module_menue['menuejavascript'][$key]; $selecttext = $optionvals[1]; if ($optionvals[2]) { $selecttext = $vbphrase[$optionvals[1]]; } $selectoption = ''; $seltext = $optionvals[4]; if ($optionvals[5]) { $seltext = $vbphrase[$optionvals[4]]; } $minmax = explode ('-', $optionvals[3]); $min = $minmax[0]; $max = $minmax[1]; for ($x = $min; $x < $max + 1; $x++) { $select = ''; $d = $x; foreach ($optionvals[6] AS $e => $f) { if ($e == $d AND $f == 1) $select = " selected=\"selected\""; } $selectoption .= "
And the sql error:
Code:
Database error in vBulletin 3.8.2:

Invalid SQL:

			UPDATE londonchase_games SET 
			startdate=1244221892,
			initok=1,
			steps=1,
			whoplay= 
			WHERE gameid=0;

MySQL Error   : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE gameid=0' at line 6
Error Number  : 1064
Request Date  : Friday, June 5th 2009 @ 06:11:32 PM
Error Date    : Friday, June 5th 2009 @ 06:11:32 PM
Script        : lc.php
Referrer      : 
IP Address    : 
Username      : Calystos
Classname     : vB_Database
MySQL Version : 5.0.67
Any ideas?
Reply With Quote
  #17  
Old 08-04-2009, 06:41 PM
xyzmary2001 xyzmary2001 is offline
 
Join Date: May 2008
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In my case there are no errors, thanks.
Reply With Quote
  #18  
Old 11-20-2009, 03:31 AM
blake247 blake247 is offline
 
Join Date: Sep 2008
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks! Installed.
Reply With Quote
  #19  
Old 11-22-2009, 07:56 AM
tsengvn08 tsengvn08 is offline
 
Join Date: Jun 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can this mod interact with other point system like vbplaza/vbbux ?
Reply With Quote
  #20  
Old 11-26-2009, 12:27 PM
segwayon segwayon is offline
 
Join Date: Mar 2008
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any chance of making a one-player game?
Reply With Quote
  #21  
Old 09-29-2010, 01:11 PM
ObiLAN ObiLAN is offline
 
Join Date: May 2007
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update for vB 4.x plz.

Thx
Reply With Quote
Reply


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

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

Forum Jump


All times are GMT. The time now is 07:58 AM.


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

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

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