xoops forums

yyvonne

Just popping in
Posted on: 2009/1/13 6:22
yyvonne
yyvonne (Show more)
Just popping in
Posts: 38
Since: 2008/4/4 2
#11

Re: Milliseconds in flashgames

Doesn't work. Same error.

"Invalid default value for 'res_x'"

ghia

Community Support Member
Posted on: 2009/1/13 9:57
ghia
ghia (Show more)
Community Support Member
Posts: 4954
Since: 2008/7/3 1
#12

Re: res_x error at install flashgames

Try with:
res_x int(11NOT NULL default 0,
res_y int(11NOT NULL default 0,
or even no default clause at all:
res_x int(11NOT NULL,
res_y int(11NOT NULL,


For the milisecond issue, the point is: Is the flash game itself returning such division? So, what is in the score?

yyvonne

Just popping in
Posted on: 2009/1/13 10:32
yyvonne
yyvonne (Show more)
Just popping in
Posts: 38
Since: 2008/4/4 2
#13

Re: Milliseconds in flashgames

I don't think the problem is in the mysql.sql file. I tried to install again by removing the 2 lines:

res_x int(11) NOT NULL default 0,
res_y int(11) NOT NULL default 0,

Still prompt me with the same error.

"Invalid default value for 'res_x'"

ghia

Community Support Member
Posted on: 2009/1/13 10:38
ghia
ghia (Show more)
Community Support Member
Posts: 4954
Since: 2008/7/3 1
#14

Re: res_x error at install flashgames

You are sure to have modified the right file (the one on your server used for the install) and/or to have covered all occurences of res_x?

yyvonne

Just popping in
Posted on: 2009/1/13 10:47
yyvonne
yyvonne (Show more)
Just popping in
Posts: 38
Since: 2008/4/4 2
#15

Re: Milliseconds in flashgames

Yes, there's only one mysql.sql file, and it is at flashgames/sql/mysql.sql

Alex_Grey

Just popping in
Posted on: 2009/1/13 22:05
Alex_Grey
Alex_Grey (Show more)
Just popping in
Posts: 43
Since: 2007/6/16
#16

Re: Milliseconds in flashgames

i do not believe strtotime supports milliseconds.

Quote:

trabis wrote:
What is the value of $score in the beginning?

i would also like to know.
“There is nothing impossible to him who will try.” ~Alex The Great~
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

ghia

Community Support Member
Posted on: 2009/1/14 7:53
ghia
ghia (Show more)
Community Support Member
Posts: 4954
Since: 2008/7/3 1
#17

Re: res_x error at install flashgames

Quote:
Yes, there's only one mysql.sql file, and it is at flashgames/sql/mysql.sql
Shouldn't it be /modules/flashgames/sql/mysql.sql?

If you deleted the two definitions, how can it give an error during install on this non-existing field? My only conclusion is you are editing at the wrong place.

ghia

Community Support Member
Posted on: 2009/1/14 7:58
ghia
ghia (Show more)
Community Support Member
Posts: 4954
Since: 2008/7/3 1
#18

Re: Milliseconds in flashgames

Quote:
i do not believe strtotime supports milliseconds.
No, it doesn't.
Quote:
Quote:
trabis wrote:
What is the value of $score in the beginning?

i would also like to know.
If you have the module, try it out!
If you have the Flash source code of the game, you can see it.

yyvonne

Just popping in
Posted on: 2009/1/14 9:35
yyvonne
yyvonne (Show more)
Just popping in
Posts: 38
Since: 2008/4/4 2
#19

Re: Milliseconds in flashgames

I have successfully installed the module!

But are all the games need to pay? No free games?

ghia

Community Support Member
Posted on: 2009/1/14 10:07
ghia
ghia (Show more)
Community Support Member
Posts: 4954
Since: 2008/7/3 1
#20

Re: Milliseconds in flashgames

Maybe PacMan, or some of these?