Alien Assault Traders Game Forum
http://forums.aatraders.com/

New created game settings problem
http://forums.aatraders.com/viewtopic.php?f=38&t=3164
Page 2 of 2

Author:  Panama Jack [ Wed Feb 20, 2008 9:45 pm ]
Post subject:  Re: New created game settings problem

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.

Author:  Tarnus [ Wed Feb 20, 2008 10:43 pm ]
Post subject:  Re: New created game settings problem

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.

Author:  sofa [ Thu Feb 21, 2008 2:13 pm ]
Post subject:  Re: New created game settings problem

I tried htaccess, php.ini and the script from my last posting. I will just PM my provider

Author:  sofa [ Sat Feb 23, 2008 6:39 am ]
Post subject:  Re: New created game settings problem

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!

Author:  sofa [ Sat Feb 23, 2008 7:32 am ]
Post subject:  Re: New created game settings problem

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.

Author:  sofa [ Sat Feb 23, 2008 7:39 am ]
Post subject:  Re: New created game settings problem

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.

Author:  sofa [ Sat Feb 23, 2008 8:02 am ]
Post subject:  Re: New created game settings problem

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...

Author:  Tarnus [ Sat Feb 23, 2008 4:24 pm ]
Post subject:  Re: New created game settings problem

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.

Author:  Panama Jack [ Sat Feb 23, 2008 5:17 pm ]
Post subject:  Re: New created game settings problem

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.

Page 2 of 2 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/