It is currently Sun Apr 18, 2021 9:36 am


The forum is READ ONLY. Please direct any future discussions to our Facebook page


 Page 2 of 2 [ 24 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: New created game settings problem
PostPosted: Wed Feb 20, 2008 9:45 pm 
Developer
Developer
User avatar

Joined: Wed Feb 19, 2003 6:07 pm
Posts: 2930
We already do basically the same thing in the config.php.

We have found that on servers where this problem occures it is usually caused by magic quotes because when turned off the problem goes away.



_________________
PJ's Annoyingly Useless Blog
ADOdb Lite
Template Lite
Offline
 Profile  
 
 Post subject: Re: New created game settings problem
PostPosted: Wed Feb 20, 2008 10:43 pm 
Site Admin
Site Admin
User avatar

Joined: Wed Feb 19, 2003 12:17 pm
Posts: 2619
Did ya try this in a .htaccess file?

php_flag magic_quotes_gpc off

If not maybe you have to create a local php.ini file

magic_quotes_gpc = Off

Check with your hosting company to see how they allow php flag access.


Offline
 Profile  
 
 Post subject: Re: New created game settings problem
PostPosted: Thu Feb 21, 2008 2:13 pm 
Newbie
Newbie

Joined: Wed Feb 20, 2008 8:00 pm
Posts: 10
I tried htaccess, php.ini and the script from my last posting. I will just PM my provider


Offline
 Profile  
 
 Post subject: Re: New created game settings problem
PostPosted: Sat Feb 23, 2008 6:39 am 
Newbie
Newbie

Joined: Wed Feb 20, 2008 8:00 pm
Posts: 10
Well PANIC Time ! I got the admin to set Magic Quotes to off and was just setting up a new game. It shows me, Magic Quotes Off. Yehaa.

But still the same problem!


Offline
 Profile  
 
 Post subject: Re: New created game settings problem
PostPosted: Sat Feb 23, 2008 7:32 am 
Newbie
Newbie

Joined: Wed Feb 20, 2008 8:00 pm
Posts: 10
I am checking the issue, whithout any clue what i am doing, but well i can tell you the DB is well filled with all the RATE & Prate settings.


Offline
 Profile  
 
 Post subject: Re: New created game settings problem
PostPosted: Sat Feb 23, 2008 7:39 am 
Newbie
Newbie

Joined: Wed Feb 20, 2008 8:00 pm
Posts: 10
I was playing around the settings.php to see where the wrong values come from.

The Value "prate" of Colonists in class_modules_commodities is set to 0. As this value is needed by all the other Variables (Col's needed to produce 1 ore) this should not be 0 by default i guess.

Ok i found it. The Value is supposed to be 0.005. But the Database Field prate is set to double(32,2), which only holds values down to 0.01.


Offline
 Profile  
 
 Post subject: Re: New created game settings problem
PostPosted: Sat Feb 23, 2008 8:02 am 
Newbie
Newbie

Joined: Wed Feb 20, 2008 8:00 pm
Posts: 10
Obviously this is a MAJOR Bug that every new installation will encounter !!!!!!!

You must fix the line
`prate` double(32,2) NOT NULL default '0.00',
to (at least)
`prate` double(32,4) NOT NULL default '0.00',

in the file create_game/scheme/class_modules_commodities.inc !!

I guess you didn't notice because you kept updating your old game, without a real new installation...


Offline
 Profile  
 
 Post subject: Re: New created game settings problem
PostPosted: Sat Feb 23, 2008 4:24 pm 
Site Admin
Site Admin
User avatar

Joined: Wed Feb 19, 2003 12:17 pm
Posts: 2619
Actually knowing PJ, he installs on multiple servers before a release and runs the install. I am certain its probably a distro difference that caused the issues or there wouldn't be any .30 servers running reliably right now.

Thanks for the info on it... its hard to fix stuff when it doesn't break for us.


Offline
 Profile  
 
 Post subject: Re: New created game settings problem
PostPosted: Sat Feb 23, 2008 5:17 pm 
Developer
Developer
User avatar

Joined: Wed Feb 19, 2003 6:07 pm
Posts: 2930
Damn, he is right I downloaded the 0.30_3 and it had the wrong commodities database file. :p Wonder why no one mentioned this earlier.



_________________
PJ's Annoyingly Useless Blog
ADOdb Lite
Template Lite
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 2 of 2 [ 24 posts ]  Go to page Previous  1, 2


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

cron