Author Topic: Game help text dosent show up  (Read 2033 times)

0 Members and 1 Guest are viewing this topic.

Offline akulion

  • Mr. Squirrel
  • Jr. Member
  • **
  • Posts: 63
  • Karma: 4
  • Gender: Male
  • Ahoy me maties!
    • Path To Peace
Game help text dosent show up
« on: January 05, 2007, 01:48:13 AM »
Hi,

I just wanted to report, when you edit a game and specify a game description and help text.
The description shows finn, but the game help text is no where to be found.

Can you guys please look into this? Since many games require instructions since they dont have in-game help or intros.

I am talking about the area shown below:


aku
« Last Edit January 05, 2007, 01:50:52 AM »




Offline Skhilled

  • Administrator
  • *
  • Posts: 4467
  • Karma: 55
  • Gender: Male
  • Retro Gamer
Re: Game help text dosent show up
« Reply #1 on: January 05, 2007, 12:45:59 PM »
Some games have instructions built into them while others don't. That section is for you to add instructions if the game doesn't have any or if they are unclear. There is no way for us to get that info from the game without modifying the game.



Offline akulion

  • Mr. Squirrel
  • Jr. Member
  • **
  • Posts: 63
  • Karma: 4
  • Gender: Male
  • Ahoy me maties!
    • Path To Peace
Re: Game help text dosent show up
« Reply #2 on: January 05, 2007, 02:57:47 PM »
lol no u got me all wrong.

What i mean is even after I put something in that box and press the submit button, it doent show anywhere.

Its like a box with no purpose, since it dosent display on the template itself.

So I think it could be an oversight, or maybe i missed something

Test it out on the arcade here, put some help text (anything for examples sake) and then submit.

Then go view the game, the info is no where to be seen !!




Offline Skhilled

  • Administrator
  • *
  • Posts: 4467
  • Karma: 55
  • Gender: Male
  • Retro Gamer
Re: Game help text dosent show up
« Reply #3 on: January 05, 2007, 08:08:26 PM »
Oh, the disappearing text trick? LOL



Offline fwitt

  • Net Addict
  • Administrator
  • *
  • Posts: 539
  • Karma: 22
  • Gender: Male
Re: Game help text dosent show up
« Reply #4 on: January 05, 2007, 08:46:36 PM »
there is a fix for it available on here somewhere there is a variable that is wrong in the template

something like $context['arcade']['help'] instead of $context['arcade']['game']['help']

* fwitt heads off to see if he can find it...

-edit- yep i got the variable right, its written wrongly in Arcade.template.php

the error was found and the fix was posted, not sure if it got fixed in any of the install packages.
« Last Edit January 05, 2007, 08:50:54 PM »
If all those sane people are starting to get you down: http://BlueBuzzards.com/

Offline akulion

  • Mr. Squirrel
  • Jr. Member
  • **
  • Posts: 63
  • Karma: 4
  • Gender: Male
  • Ahoy me maties!
    • Path To Peace
Re: Game help text dosent show up
« Reply #5 on: January 06, 2007, 03:39:52 AM »
oki doki ill try and search around to see if i can find a thread and post it here if i do

Edit....just searched arcade.template.php and didnt find ',$context['arcade']['game']['help'],'

So I added it manually to the arcade menu instead

here is how in case someone wants to do it manually:

In ArcadeMenu.template.php Search for:
Code: [Select]
<tr class="windowbg">
<td align="center">
', $context['arcade']['game']['thumbnail'] != '' ? '<div><img src="' . $context['arcade']['game']['thumbnail'] . '" alt="" /></div>' : '', '
<div>', $context['arcade']['game']['name'], '</div>
</td>
</tr>

add below it:
Code: [Select]
<tr class="windowbg"><td align="center"><b>Instructions</b><br>',$context['arcade']['game']['help'],'</td></tr>


Results (look near mouse cursor in SS):

« Last Edit January 06, 2007, 04:31:16 AM »




Offline fwitt

  • Net Addict
  • Administrator
  • *
  • Posts: 539
  • Karma: 22
  • Gender: Male
Re: Game help text dosent show up
« Reply #6 on: January 06, 2007, 05:40:36 PM »
akulion you using arcade 2?
If all those sane people are starting to get you down: http://BlueBuzzards.com/

Offline Skhilled

  • Administrator
  • *
  • Posts: 4467
  • Karma: 55
  • Gender: Male
  • Retro Gamer
Re: Game help text dosent show up
« Reply #7 on: January 06, 2007, 06:21:59 PM »
That does look like a screen shot from it. LOL



Offline fwitt

  • Net Addict
  • Administrator
  • *
  • Posts: 539
  • Karma: 22
  • Gender: Male
Re: Game help text dosent show up
« Reply #8 on: January 06, 2007, 06:35:13 PM »
just cos the error is in arcade 1, not sure if arcade 2 handles the help differently
If all those sane people are starting to get you down: http://BlueBuzzards.com/

Offline akulion

  • Mr. Squirrel
  • Jr. Member
  • **
  • Posts: 63
  • Karma: 4
  • Gender: Male
  • Ahoy me maties!
    • Path To Peace
Re: Game help text dosent show up
« Reply #9 on: January 07, 2007, 12:57:12 AM »
seems to be working A-ok for me :D thanks for the help guys




Offline fwitt

  • Net Addict
  • Administrator
  • *
  • Posts: 539
  • Karma: 22
  • Gender: Male
Re: Game help text dosent show up
« Reply #10 on: January 07, 2007, 03:49:05 PM »
right think i've got it sussed

$context['arcade']['game']['help'] is for Arcade 1
$context['arcade']['games']['help'] is for Arcade 2

so in your case akulion you should really use the second one as it is currently querying the tables from arcade 1 and you are using arcade 2
If all those sane people are starting to get you down: http://BlueBuzzards.com/

Offline akulion

  • Mr. Squirrel
  • Jr. Member
  • **
  • Posts: 63
  • Karma: 4
  • Gender: Male
  • Ahoy me maties!
    • Path To Peace
Re: Game help text dosent show up
« Reply #11 on: January 08, 2007, 03:36:38 AM »
but thats the weird part!!
I already dropped the tables from Arcade 1
But it still works!  :o

ill try changing and post the results up
aku




Offline xufang

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: Game help text dosent show up
« Reply #12 on: February 02, 2010, 02:11:49 PM »
i   use   SMF Arcade  2.5 Beta 7

in  ArcadeList.php    find :
Code: [Select]
'description' => parse_bbc($row['description']),add below it:
Code: [Select]
'help' => parse_bbc($row['help']),
in   ArcadeList.template.php   find:
Code: [Select]
// Is there description?
if (!empty($game['description']))
echo '
', $game['description'], '<br />';
add  below it:
Code: [Select]
if (!empty($game['help']))
echo '方法:          ', $game['help'],'<br />'; 
:)

Offline Skhilled

  • Administrator
  • *
  • Posts: 4467
  • Karma: 55
  • Gender: Male
  • Retro Gamer
Re: Game help text dosent show up
« Reply #13 on: February 02, 2010, 03:06:11 PM »
xufang, we appreciate you helping but this is a very old post and has been solved long ago. Also, the version you are using has different code that is not in the version mentioned in this topic.