sign up bug

As bugs and suggestions are fixed/implemented/rejected, they will be moved in here.
generalbg
Member
Posts: 12
Joined: Fri Aug 05, 2005 6:23 pm

Post by generalbg »

So i found that very bad bug.I have installed FAF but when i try to create new account it types:
Fatal error: Cannot redeclare replace() in D:\apachefriends\xampp\htdocs\empires\funcs.php on line 15
And all files in which is included funcs.php (the most of the files) there is the same error help pls!!!!! :unsure:
Veranor
FAF Co-Programmer
Posts: 310
Joined: Mon Mar 08, 2004 8:12 pm

Post by Veranor »

Have you made any modifications to the source?

Perhaps there is trouble with Win version of require_once... which would result in some troubles. html.php is required by and requires funcs.php, perhaps removing 'require_once("funcs.php");' from html.php will resolve this issue for most pages. However, there might be some trouble with pages where news is included.

Other devs: is there any page which includes or requires html.php which does not also include funcs.php? If so that require in html.php is probably unnecessary and while it shouldn't cause errors, it appears to here.

Edit: Wait for some more responses before editing it out though.
"The truth is a trap: you can not get it without it getting you; you cannot get the truth by capturing it, only by its capturing you." - Søren Kierkegaard
User avatar
Ruddertail
Promi Diplomacy ate my homework...
Posts: 4510
Joined: Wed May 12, 2004 11:39 pm
Location: Chances are, playing FAF.
Contact:

Post by Ruddertail »

Before we go any further, are you trying to set up your own FAF-like game, or simply trying to play FAF? If you just want to play, you don't need to download anything. Just go to the main page, click on "Creat Account" under the server(s) you want to play on, fill out the form, and there you are. Your pass will be sent to you in the mail. If you want to set up your own game, then, yeah, wait around to see what Beatles and Devari say on this. I don't know much about the technical aspects of the game.
Empires:
WOA: Attila the Hun(#13)
BFR: ?
Founder and Leader of Hungry Huns (HH)
User avatar
Kyrodo
Rabbit
Posts: 723
Joined: Wed Jul 13, 2005 2:30 am
Contact:

Post by Kyrodo »

if you already regestered, and having trouble logging in (aka put in user name and password on FAF)

then put in your password and username, but this time, before you press log in, UNCHECK the box that says "Use Cookies", then log in
Image
Image
User avatar
purekilla2k
Crazy Killa Arms Dealer
Posts: 318
Joined: Thu Jul 14, 2005 11:27 pm

Post by purekilla2k »

http://frostnflame.org/forum/index.php?showtopic=1735
this happens alot *laughs* i knew this thread looked famialr so i reread back posts :*laughs*:
www.exius-ent.com/forums
Gaming Elder www.mapleglobal.com
Eternal Protector Of Redwall
generalbg
Member
Posts: 12
Joined: Fri Aug 05, 2005 6:23 pm

Post by generalbg »

Veranor wrote: Have you made any modifications to the source?

Perhaps there is trouble with Win version of require_once... which would result in some troubles. html.php is required by and requires funcs.php, perhaps removing 'require_once("funcs.php");' from html.php will resolve this issue for most pages. However, there might be some trouble with pages where news is included.

Other devs: is there any page which includes or requires html.php which does not also include funcs.php? If so that require in html.php is probably unnecessary and while it shouldn't cause errors, it appears to here.

Edit: Wait for some more responses before editing it out though.
ok vernaror you are right it all goes to plan you are genius but one more question can i ask you when i open the page HALL OF FAME it opens but on top there is an error message :
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\apachefriends\xampp\htdocs\empires\hfame.php on line 45
CAn you help to me again?Now i am making a bulgarian version of the game.And it will cost me much so from time to time i will ask you some qeustions ok? :rolleyes:
User avatar
Kyrodo
Rabbit
Posts: 723
Joined: Wed Jul 13, 2005 2:30 am
Contact:

Post by Kyrodo »

creating a game eh? well that answers that question...
Image
Image
generalbg
Member
Posts: 12
Joined: Fri Aug 05, 2005 6:23 pm

Post by generalbg »

and one more question there is no table FAF_NOLIMIT where the data for hfame.php must be. HOw can i create this table
Veranor
FAF Co-Programmer
Posts: 310
Joined: Mon Mar 08, 2004 8:12 pm

Post by Veranor »

The Hall of Fame page uses data from the "The Challenge" game (notice the login for that on our main page). It is essentially the "top 10" page for that game. However, in the DB that game is sometimes referred to as "no limit".

If you want to have a hall of fame similar to ours, you should copy the table structure of the other game tables (FAF_cog, FAF_bfr) to make a new table called FAF_nolimit. However in the most recent source this db is referred to as FAF_hfame. You can edit the name in "config.php" if you wish.
(See " $config['nolimit_table'] = 'faf_hfame' " in config.php) Again, this is all assuming you want a "The Challenge" mode. If you don't, you can simply remove the Hall of Fame link.

Good luck on setting up your own version of the game! It's great to see people using to source code in new ways.
"The truth is a trap: you can not get it without it getting you; you cannot get the truth by capturing it, only by its capturing you." - Søren Kierkegaard
generalbg
Member
Posts: 12
Joined: Fri Aug 05, 2005 6:23 pm

Post by generalbg »

And again one question i fixed the hall of fame but now i cant get turns.When i use all my turns and there is a time "next turn in .... minutes" but when the time runs out i dont get any turns and the time runs again and again but i havent got turns any suggestions about this please
Veranor
FAF Co-Programmer
Posts: 310
Joined: Mon Mar 08, 2004 8:12 pm

Post by Veranor »

generalbg wrote: And again one question i fixed the hall of fame but now i cant get turns.When i use all my turns and there is a time "next turn in .... minutes"  but when the time runs out i dont get any turns and the time runs again and again but i  havent got turns any suggestions about this please
You need to set up a cron job. But you're running Windows right? You can use the "Task Scheduler". Go to the control panel. Double-Click Scheduled Tasks. Double click "Add Scheduled Tasks". Click next and then hit browse and select the turns file (these should be configured to be auto run by the php engine, if not write a batch script that simply calls "php -f C:/whatever/file/here/"). Choose "one time only". Choose a start time. You don't have to input a password if you only want it to run when you're logged in (otherwise put in the password). Now hit the little check box that says "Open advanced properties..." then hit Finish. A new window should come up. Click the "Schedule" tab and hit the "Advanced" button. If you click repeat task, you can have the task repeat every X minutes.

^^^ I would not do this, it's a pain.

Personally, I would wait for the new Cronless mode to move to stable and download that. Which should happen soon... Promisance games have been run on windows (Devari (right?), Ragefur) but it's a really big pain. There are ways to work around it.

EDIT:

I've been googling around and there are some "windows" versions of Cron, but I have no idea if they're any good or even work. If you're interested: http://www.kalab.com/freeware/cron/cron.htm (Again I can not verify the quality of this program and IMO you should wait)

EDIT2: Any other Devs got ideas?
"The truth is a trap: you can not get it without it getting you; you cannot get the truth by capturing it, only by its capturing you." - Søren Kierkegaard
generalbg
Member
Posts: 12
Joined: Fri Aug 05, 2005 6:23 pm

Post by generalbg »

So i must wait for the new cronless version or create a shcedule.But explain me one more time.What are the minuses of the shedule.What is this painful i cant understand why its so complex.And when will go the new cronless version.
generalbg
Member
Posts: 12
Joined: Fri Aug 05, 2005 6:23 pm

Post by generalbg »

something more which is the file that i must target by cron or scheduler run_turns.php or turns.php ?
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

turns.php

run-turns.php does the work for each server, so you can use one cron for all servers.
The new cronless should be out September 1. (You can also get its development version from the Download link on the main page. Not recommended though.)
:wq
User avatar
Slasher
The FAF Forums SMEGHEAD!!! lol
Posts: 2635
Joined: Mon May 03, 2004 5:08 pm
Location: http://florida4us.com/
Contact:

Post by Slasher »

Here is the hall of fame dump... just run it in phpmyadmin or something.

<!--sql--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>SQL </td></tr><tr><td id='CODE'><!--sql1-->CREATE TABLE `faf_hfame` (
`num` bigint(20) NOT NULL default <span style='color:red'>'0'</span>,
`name` varchar(100) NOT NULL default '',
`empire` varchar(100) NOT NULL default '',
`land` bigint(20) NOT NULL default <span style='color:red'>'0'</span>,
`networth` bigint(20) NOT NULL default <span style='color:red'>'0'</span>,
`race` smallint(6) NOT NULL default <span style='color:red'>'0'</span>,
`location` smallint(6) NOT NULL default <span style='color:red'>'0'</span>,
`off` bigint(20) NOT NULL default <span style='color:red'>'0'</span>,
`offsucc` bigint(20) NOT NULL default <span style='color:red'>'0'</span>,
`def` bigint(20) NOT NULL default <span style='color:red'>'0'</span>,
`defsucc` bigint(20) NOT NULL default <span style='color:red'>'0'</span>,
`kills` bigint(20) NOT NULL default <span style='color:red'>'0'</span>,
PRIMARY KEY (`num`)
) TYPE<span style='color:orange'>=</span>MyISAM; <!--sql2--></td></tr></table><div class='postcolor'><!--sql3-->
I do not have a signature, you must be imagining

http://florida4us.com/

Image
Post Reply
  • Members connected in real time

    🔒 Close the panel of connected members