simple multiplayer games mod

Started by SA™, June 16, 2008, 02:47:14 PM

Previous topic - Next topic

SA™

link to mod


very simple multiplayer games mod
By wdm2005

Support Topic | Demo

this is a very simple multiplayer games mod

Fix for sp 2.1.1 users
fixed in latest version so only applys to older versions

multiplayer.template.php

find

function template_block()

replace with

function template_blocks()


multiplayer.php

find

$context['sub_template'] = 'block';

replaece with

$context['sub_template'] = 'blocks';


current game list

Conquer Antarctica Multiplayer
Texas Hold em Poker Multiplayer
Multiplayer Bunny Wars
Multiplayer Chess
Checkers Multiplayer
Match-4 Multiplayer
Trouble Multiplayer
Zodiac War Multiplayer
Trivia Multiplayer
Draw my Thing Multiplayer
Asteroids Multiplayer
Nonoba Racing Multiplayer
Platform Racing 2 Multiplayer
Blockles Multiplayer
DinglePop Multiplayer
Fridge Magnets Multiplayer
Snake Multiplayer
Castle Wars Multiplayer
Pawn Game Multiplayer
Territory Wars Multiplayer
Dino Run Multiplayer


Useful Links
SMF Package Parser
Manual Installation Of Mods
How Do I Modify Files?

Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)

Changelog

Version 1.1
1st Release

Version 1.2
2nd Release
few bug fixes
added some permisions wich can be set in admin/manage permisions

Version 1.3
3rd Release
bug fixes 
converted the game urls to sub actions look better
typo fixed

Version 1.4
4th Release
2 new games added

Version 1.5
5th Release
2 new games added
undefined sa bug fixed

Version 1.6
6th Release
3 new games added
new layout
language strings change cos they where conflicting with the mp3 bbc code mod

Version 1.7
7th Release
5 new games added
defined the actions in who's online

Version 1.8
8th Release
bug fixes
now valid xhtml
typo fixes

Version 1.9
9th Release
bug fixes funtion unlink error fixed

Version 2.0
10th Release
bug fixes
five new games added

Version 2.1
11th Release
installer bug fixed thanks goes to jeza


Version 2.2
12th Release
bug fixes
recoded the whole lot
now if you dont have the permission to play or veiw it will tell you instead of just an error ocured
please uninstall previous version befor installing this

Version 3.0
13th Release
bug fixes
added admin panel
added enable disable multiplayer
added enable disable games

Version 3.1
14th Release
changed the way the games are disabled
cleaned the code up

Turkish translated  thanks to дTдKдИ

Version 3.2
15th Release
fixed conflict with simple portal 2.1.1

multiplayer 3.1 for 1.1.5 with whos online support.zip shows in whos online


http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Noanme

The mod can't find a lot of files in both version.

Chopper

Doesn't install for me? I get the following errors when attempting instal:

Install Actions
Installations actions for "simplemp":
Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./index.php Test failed
2. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
3. Execute Modification ./Themes/default/languages/who.english.php File not found
4. Execute Modification ./Themes/default/index.template.php Test successful
5. Execute Modification ./Sources/ManagePermissions.php Test successful
6. Extract File ./Sources/multiplayer.php 
7. Extract File ./Themes/default/multiplayer.template.php 


SA™

works fine for me on a fres install

whats it not finding
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Noanme

Quote from: wdm2005 on June 16, 2008, 04:52:35 PM
try it now ive updated the packege
Oh, it works, almost

but,  :'( :'(

1.     Execute Modification     ./index.php     Test failed

:(

SA™

hmm wierd cos itt works for me on a fresh install but anyway its one edit

in index.php

find

'xml' => array('News.php', 'ShowXmlFeed'),

then add

'multiplayer' => array('multiplayer.php', 'multiplayer'),

and your done
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Noanme


Chopper

Hi, the new update installed fine, however i have a long batch of text at the top of my forum and the package doesnt appear to be anywhere?

SA™

in Modifications.english.php

?>

and make sure there is only one right at the end
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Chopper

Quote from: wdm2005 on June 16, 2008, 05:47:08 PM
in Modifications.english.php

?>

and make sure there is only one right at the end

Hi, i checked the mod.english.php and there isnt "?>" at the end. Will adding this make a difference to the jargin featured at the top of my page?

SA™

yes add

?>

to the end of youyr file but make surte there is only one right at the end otherwise you will get errors
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Ricky.

Do this mod requires EArcade or it is standalone ?

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

BogeyOne

I have attempted to install this mod on smf 1.1.5 with the package manager.  All files showed as testing successful so I proceeded with the installation.  What I have now is an entry for the mod to enable permissions for it on my permissions page and I have the MULTIPLAYER link at the top of my forum on the index bar.  When that link is clicked, all it does is return me to the forum.  So I uninstalled the mod, loaded it once more and when I applied it, a second "MULTIPLAYER" link appears right next to the original "MULTIPLAYER" link on the index bar which will not uninstall.  .  .that is to say that after the mod is uninstalled, a MULTIPLAYER link remains.  The url to my forum is www.moderatedsciastroamateur.org [nofollow]

Any ideas?

SA™

if it going to the forum the edits didnt make it

its missing a peice of code

in index.php

find '.xml' => array('News.php', 'ShowXmlFeed'),

then add this after

'multiplayer' => array('multiplayer.php', 'multiplayer'),

as for the extra button

in themes/default/index.template.php

find

// Show the [multiplayer] button.
echo ($current_action=='multiplayer' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action=='multiplayer' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=multiplayer">' , $txt['mp13'] , '</a>
</td>' , $current_action=='multiplayer' ? '<td class="maintab_active_last"> </td>' : '';


and delete it
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

BogeyOne

I am not really super or even almost super literate when it comes to editing, but I do have daily backups and can recover things from php admin within control panel so I suppose I can't make unreversable errors, correct?

Now for my genuine question.  Do I make the deletion and removal which you have put forth using the "edit code' function of cPanel within the file manager or do I use the one that simply says, "edit" or does it make any difference. 

Thanks for staying with this for me.

Chopper

Still not working for me? I still get all this at the top of my forum:

$txt['mp1']='Welcome to Bunny Wars Multiplayer! You can play this game with your forum. username! No need to register in the game! Type in your username and press the Guest Login button!You can also choose to do a very quick register in the game so your scores will be saved in this game! Remember this login to play also in the future without needing to register again! Enjoy the game!'; $txt['mp2']='Welcome to Chess Multiplayer!You can play this game with your forum. username! No need to register in the game! Type in your username and press the Guest Login button!You can also choose to do a very quick register in the game so your scores will be saved in this game! Remember this login to play also in the future without needing to register again! Enjoy the game!'; $txt['mp333']='Welcome to Texas Hold em Poker Multiplayer! A very quick register in the game is needed to play this game! Remember this login to play also in the future without needing to register again! Enjoy the game!'; $txt['mp4']='Welcome to Conquer Antarctica Multiplayer!You can play this game with your forum. username! No need to register in the game! Type in your username and press the Guest Login button!You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!Enjoy the game!'; $txt['checkers']='Welcome to Checkers Multiplayer!You can play this game with your forum. username! No need to register in the game! Type in your username and press the Guest Login button!You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again! Enjoy the game!'; $txt['m4']='Welcome to Match-4 Multiplayer!You can play this game with your forum. username! No need to register in the game! Type in your username and press the Guest Login button!You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again! Enjoy the game!'; $txt['mp5']='Conquer Antarctica Multiplayer'; $txt['mp6']='The multiplayer version of this Antarctic domination game.. Shoot your evil rival penguins to oblivion!...'; $txt['mp7']='Texas Hold em Poker Multiplayer'; $txt['mp8']=' Bet, bluff and win the jackpot!...'; $txt['mp9']=' Multiplayer Bunny Wars'; $txt['mp10']='Time for some bunny whacking puzzle game action! Dominate the playing field with your bunnies!...'; $txt['mp11']='Multiplayer Chess'; $txt['mp12']='Practice your logic skills on this online game of chess! Revisit the best classic game of all time!...'; $txt['mp13']='Multiplayer'; $txt['mp14']='play'; $txt['mp15']='Simple Multiplayer 2.0 © 2008 wdm2005 '; $txt['permissiongroup_multiplayer'] = 'Multiplayer'; $txt['permissionname_multiplayer_view'] = 'View Multiplayer'; $txt['permissionname_multiplayer_play'] = 'Play Multiplayer'; $txt['mp116']='Try this classic game with players from around the world!'; $txt['mp54']='Checkers Multiplayer'; $txt['mp544']='Up for a game of match 4? Test your logic skills by playing against other people in this fun multiplayer game....'; $txt['mp56']='Match-4 Multiplayer'; $txt['permissionname_multiplayer_view'] = 'View multiplayer'; $txt['Trouble'] = 'Trouble Multiplayer'; $txt['T1'] = 'Play Multiplayer Trouble against other players in real time. Join a room of 2, 3 or 4 players and roll the dice. You need to roll a 6 to leave the castle. Bring all your pwans inside the center places to win the game. Good Luck.'; $txt['T2'] = 'Zodiac War Multiplayer'; $txt['T3'] = 'The point of the game is to shoot the other players' tanks. Every sign has its own unique weapon.'; $txt['mM4']='Welcome to Trouble Multiplayer!You can play this game with your forum. username! No need to register in the game! Type in your username and press the Guest Login button!You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!'; $txt['mM5']='Welcome to Zodiac War Multiplayer You can play this game with your forum. username! No need to register in the game! Type in your username and press the Guest Login button! You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!'; $txt['Description:']='Description:'; $txt['Title:']='Title:'; $txt['PLYD']='Plays:'; $txt['des']='Have you got what it take to win'; $txt['triv']='Trivia Multiplayer'; $txt['bship']='Draw my Thing Multiplayer'; $txt['bship1']='How good are you at guessing'; $txt['pg1']='Page 1'; $txt['pg2']='Page 2'; $txt['pg3']='Page 3'; $txt['ast']='Asteroids Multiplayer'; $txt['ast1']='Multiplayer asteroids is a small space shooter where you are able to show your friends whos the boss! '; $txt['mmm']='Welcome to Trivia Multiplayer!You can play this game with your forum. username! No need to register in the game! Type in your username and press the Guest Login button! You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!'; $txt['astt']='Welcome to Asteroids Multiplayer!You can play this game with your forum. username! No need to register in the game! Type in your username and press the Guest Login button! You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!'; $txt['dmthh']='Welcome to Draw my Thing Multiplayer! You can play this game with your forum. username! No need to register in the game! Type in your username and press the Guest Login button! You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!'; $txt['race']='Nonoba Racing'; $txt['race1']='A multiplayer racing game with other people across the internet. Can you beat them on all 3 tracks?'; $txt['race2']='Welcome to Nonoba Racing Multiplayer!You can play this game with your forum. username! No need to register in the game! Type in your username and press the Guest Login button!You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!'; $txt['prace']='Welcome to PRacing Multiplayer!You can play this game with your forum. username! No need to register in the game! Type in your username and press the Guest Login button! You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!'; $txt['prace1']='Create your own levels, and race online with friends.'; $txt['prace2']='Platform Racing 2'; $txt['block1']='Blockles '; $txt['block2']='Play with up to 7 pals in this multiplayer Tetris game, or just play a pick up game with other loners. Fast-paced fun. '; $txt['block3']='Welcome to Blockles Multiplayer! You can play this game with your forum. username! No need to register in the game! Type in your username and press the Guest Login button! You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!'; $txt['dpop']='DinglePop '; $txt['dpop1']='Welcome to DinglePop Multiplayer! You can play this game with your forum. username! No need to register in the game! Type in your username and press the Guest Login button! You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!'; $txt['dpop2']='Play with up to 7 friends in this fast-paced multiplayer Snood-like game. '; $txt['fmag1']='Welcome to Fridge Magnets Multiplayer! You can play this game with your forum. username! No need to register in the game! Type in your username and press the Guest Login button! You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!'; $txt['fmag2']='Fridge Magnets'; $txt['fmag3']='Fun Game just play with the magnes Fridge Magnets'; $txt['cwars']='Castle wars'; $txt['cwars1']='Welcome to Castle wars Multiplayer! You can play this game with your forum. username! No need to register in the game! Type in your username and press the Guest Login button! You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!'; $txt['cwars2']='Show these goblins the hilt of your sword, pointy end first. Get the kills, grab the gold, and get yourself bigger and better weapons. Are you the top gladiator?'; $txt['pawngame1']='A massively multiplayer online 2D shooter game. Here at Pawn you can jump right into the action by creating an account and joining thousands of other players in a variety of different arenas'; $txt['pawngame2']='Pawn Game'; $txt['pawngame3']='Welcome to Pawn Game Multiplayer! You can play this game with your forum. username! No need to register in the game! Type in your username and press the Guest Login button! You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!'; $txt['snake']='Ever wondered what would happen if you took the traditional snake game and the made it massively multiplayer? Look no further! Play with hundreds of other people on the internet. '; $txt['snake1']='Multi Snake'; $txt['snake2']='Welcome to Multi Snake Multiplayer! You can play this game with your forum. username! No need to register in the game! Type in your username and press the Guest Login button! You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!'; $txt['tw1']='Eliminate every member of the opposing team.'; $txt['tw2']='Territory Wars '; $txt['tw3']='Welcome to Territory Wars Multiplayer! You can play this game with your forum. username! No need to register in the game! Type in your username and press the Guest Login button! You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!'; $txt['dino']='Escape the pyroclastic wall of doom and find your dino sanctuary.'; $txt['dino1']='Dino Run '; $txt['dino2']='Welcome to Dino Run Multiplayer! You can play this game with your forum. username! No need to register in the game! Type in your username and press the Guest Login button! You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!'; ?>

Chopper

#18
Got rid of the code at the top of my forum but still cannot get this to install >:(

SA™

Quote from: BogeyOne on June 17, 2008, 02:54:18 PM
I am not really super or even almost super literate when it comes to editing, but I do have daily backups and can recover things from php admin within control panel so I suppose I can't make unreversable errors, correct?

Now for my genuine question.  Do I make the deletion and removal which you have put forth using the "edit code' function of cPanel within the file manager or do I use the one that simply says, "edit" or does it make any difference. 

Thanks for staying with this for me.


Manual Installation Of Mods

How Do I Modify Files?

these link will help you
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Advertisement: