SMF Arcade

Started by niko, October 01, 2004, 02:45:55 PM

Previous topic - Next topic

nokonium

I'm getting the following

On running arcade_sql.php -
ALTER TABLE sidigames CHANGE `desc` `dsc` text NOT NULL
Failed Duplicate column name 'dsc'

On trying to allocate a category to an installed game -
2: mysql_free_result(): supplied argument is not a valid MySQL result resource
File: /[games directory path]/Sources/ArcadeAdmin.php
Line: 338



Kindred

#641
QuoteOk guys...   I am completely boggled with this one:

I have installed the Arcade mod (and it would appear successful)

I then added some categories.
I am now trying to add some games.

I choose the game (say, MahJong for example), enter data and click submit.

I then get a whole screen full of ASCII characters, ending with the message
Fatal error: Cannot instantiate non-existent class: mahjong in /XXX/Sources/ArcadeAdmin.php on line 277

line 277 is:

$gam = new $class($scripturl);


so... for some reason, it's not letting me install games.


Anyone have a clue as to what is going on here???

Ok...   I reinstalled v.1.1.1 and the problem seems to have gone away

strange.   (just note: I did look through the thread here and didn't see any reports similar... )
Yes, I downloaded the 1.1 version from the smf package server, originally...

thanks Niko.

Oh.. and BTW: Although I am registered now on your board, I can't get to the downloads section....  it tells me I need to be registered.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

niko

its alerdy fixed, read from earlier this page for link to latest since mods site doesnt work
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

Kindred

Now, however, if I try to change the category of the game, I get:

An Error Has Occurred!
2: mysql_free_result(): supplied argument is not a valid MySQL result resource
File: /XXX/Sources/ArcadeAdmin.php
Line: 338 
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

niko

Quote from: kindred on March 17, 2005, 03:24:37 PM
Now, however, if I try to change the category of the game, I get:

An Error Has Occurred!
2: mysql_free_result(): supplied argument is not a valid MySQL result resource
File: /XXX/Sources/ArcadeAdmin.php
Line: 338 


1.1.2 is now avaible here... this bug is fixed in it
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

Kindred

quick question...  does 1.1.2 require me to uninstall 1.1.1 or can I just install as an upgrade?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Aravot

Uninstalled previous version 1.1.1, installed 1.1.2, now when I click on Games button get the following error message.

Quote2: call_user_func(ArcadeAdmin): First argument is expected to be a valid callback

Aravot

After installing SMF Arcade 1.1.2 I noticed I have a Sources folder with the following files

QuoteArcade.php
Arcade2.php
arcade_custom.php
arcade_custom.zip
ArcadeAdmin.php

in my SMF/Sources folder, full path

/SMF
      /Sources
                   /Sources
                           Arcade.php
                           Arcade2.php
                           arcade_custom.php
                           arcade_custom.zip
                           ArcadeAdmin.php

niko

Quote from: Aravot on March 17, 2005, 04:08:14 PM
After installing SMF Arcade 1.1.2 I noticed I have a Sources folder with the following files

QuoteArcade.php
Arcade2.php
arcade_custom.php
arcade_custom.zip
ArcadeAdmin.php

in my SMF/Sources folder, full path

/SMF
      /Sources
                   /Sources
                           Arcade.php
                           Arcade2.php
                           arcade_custom.php
                           arcade_custom.zip
                           ArcadeAdmin.php

Fixed, replaced old with new...
i think it was becuase extract tree Souirces to $sourcesdir changed it  to Boarddir
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

Aravot

Quote from: Niko on March 17, 2005, 04:23:30 PM
Quote from: Aravot on March 17, 2005, 04:08:14 PM
After installing SMF Arcade 1.1.2 I noticed I have a Sources folder with the following files

QuoteArcade.php
Arcade2.php
arcade_custom.php
arcade_custom.zip
ArcadeAdmin.php

in my SMF/Sources folder, full path

/SMF
      /Sources
                   /Sources
                           Arcade.php
                           Arcade2.php
                           arcade_custom.php
                           arcade_custom.zip
                           ArcadeAdmin.php

Fixed, replaced old with new...
i think it was becuase extract tree Souirces to $sourcesdir changed it  to Boarddir

Now the files are in correct location but still get the following error.

Quote2: call_user_func(ArcadeAdmin): First argument is expected to be a valid callback

Champi

i have uploaded everything manually on my testboard... it seems to work... but when i want to run arcade_sql.php it says Error: Make sure you have uploaded all files correctly!


how can this be possible... i unzipped only the package without using the package manager...

but the arcade module is functioning..it works...

???

is t really nescessary to run arcade_sql... did make? there werent new tables isnt?

greetz

Aravot

Me too, same error as above post

Champi

QuoteNow, however, if I try to change the category of the game, I get:

An Error Has Occurred!
2: mysql_free_result(): supplied argument is not a valid MySQL result resource
File: /XXX/Sources/ArcadeAdmin.php
Line: 338 



1.1.2 is now avaible here... this bug is fixed in it

this problem now apearrs when you try to get to the admin area..

i ve replaced it with the old file... around 338 those few linbes you added

greetz

nokonium

I tried it on my backup and all was OK, so I went and tried on the main forum. It would not install and run, ended up uninstalling it and reinstalling 1.0.3 it is working again but we have two Games buttons in default and all the champions have double sets of awards. :-X



Aravot

Quote from: nokonium on March 17, 2005, 05:50:24 PM
I tried it on my backup and all was OK, so I went and tried on the main forum. It would not install and run, ended up uninstalling it and reinstalling 1.0.3 it is working again but we have two Games buttons in default and all the champions have double sets of awards. :-X

You can remove the extra button by deleting a duplicate code from index.template.php

search for this code and remove one.

echo '
     <a href="', $scripturl, '?action=arcade"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/games.gif" alt="' . "Arcade" . '" style="margin: 2px 0;" border="0" /></a>', $context['menu_separator'];

SeaOfSin

Quote from: champi.nl on March 17, 2005, 04:51:53 PM
i have uploaded everything manually on my testboard... it seems to work... but when i want to run arcade_sql.php it says Error: Make sure you have uploaded all files correctly!


how can this be possible... i unzipped only the package without using the package manager...

but the arcade module is functioning..it works...

???

is t really nescessary to run arcade_sql... did make? there werent new tables isnt?

greetz

I have this error but every time I try and go to arcade it takes me to arcade admin.

any ideas?


Sea Of Sin

nokonium

Quote from: Aravot on March 17, 2005, 06:57:45 PM
You can remove the extra button by deleting a duplicate code from index.template.php


Thanks Aravot, that is one problem solved.



Champi

QuoteI have this error but every time I try and go to arcade it takes me to arcade admin.

try to enable arcade in adminpanel... anyone resolved other problems..

???

Chris de Boden

Here is the Dutch translation :)

nokonium

Quote from: nokonium on March 17, 2005, 05:50:24 PM
all the champions have double sets of awards. :-X

We have found that one as well now in Display.template.php

if(@is_array($context['arcade']['champions'][ $message['member']['id'] ])){
foreach($context['arcade']['champions'][ $message['member']['id'] ] as $tmp){
//print_r($tmp);
if($tmp['thumbnail'] != ''){
echo '
<img src="', $tmp['thumbnail'], '" alt="" width="20">',$tmp['name'],' ', $txt['arcade_136'],'<br />';
}
else
echo '
', $tmp['name'], ' ', $txt['arcade_136'],'<br />';
}
}



Advertisement: