Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Install of stfc2 #9

Open
Caberhagen opened this issue Nov 18, 2014 · 73 comments
Open

Question: Install of stfc2 #9

Caberhagen opened this issue Nov 18, 2014 · 73 comments
Labels

Comments

@Caberhagen
Copy link
Contributor

Hi

i tried to install your branch.
I have setup the ui in webfolder and databes in mysql.
Now i can't find the config.inc.php. So it shows me no connection to databes.
Ande a can not see, waht for crons are needet.
Du you have a setup how to?
Or you can help me?

And thx for you work. was a long time ago i have played this game :)

@kirirur
Copy link
Contributor

kirirur commented Nov 18, 2014

Hello, I'll try to help.

First of all I've added to the repository a sample of config.inc.php (it was missing since a lot). You'll need to fill it with your configuration.

Please take note that present version of the repository still assume the game running with two galaxies and a IPB forum, so if it's not your case you have to modify at least login.php, register.php, stats.php in pages folder and portal.php in modules folder.

I don't understand your trouble with the crons. If you mean the scheduler, they are all stored in a separate repository here on GitHub. There are mainly the following running tasks:

  • daily once a day usually at midnight
  • main once a tick, usually each 3 minutes
  • moves_main once a minute, it also need the Combat module to handle fleets fight
  • fix_all, usually each hour
  • six_hours, usually well, each six hours

Depending on your configuration of the Galaxy (especially if you want NPC or not), it's possible to disable or customize the last two and main one.

Let me know if everything is clear now.

I hope you had and maybe you'll have great time on stfc! :)

@Caberhagen
Copy link
Contributor Author

Thx this helps a lot.

$config=array();
$config['server']="localhost";
$config['port']="3306";
$config['user']="***";
$config['password']="**
";
$config['game_database']="**
********";
$config['game_url']="http://game.sbhost.ch/game/";
$config['site_url']="http://game.sbhost.ch";
$config['game_path']="/var/www/virtual/game.sbhost.ch/htdocs/game/";
$config['scheduler_path']="/var/www/virtual/game.sbhost.ch/htdocs/scheduler/";
$config['galaxy']=0;
$config['uploaddir'] = '/var/www/virtual/game.sbhost.ch/htdocs/gallery/';

define ('ERROR_LOG_FILE', '/var/www/virtual/game.sbhost.ch/htdocs/error_log.htm');
define ('ADMIN_LOG_FILE', '/var/www/virtual/game.sbhost.ch/htdocs/admin_log.htm');
define('DEFAULT_GFX_PATH', '/var/www/virtual/game.sbhost.ch/htdocs/gfx/');
define('PROXY_GFX_PATH', '/var/www/virtual/game.sbhost.ch/htdocs/gfx/');
define('JSCRIPT_PATH', '/var/www/virtual/game.sbhost.ch/htdocs/game/stgc2.js');

this is my setting on the dev box now.
I am not sure about the js path.? is it the right?

Now the Start page open. but i have problems with queries from db.
output from error_log

18.11.14 20:13:15 User: external user Database Error:
Could not select database

No error occured (0)

But the values are rigth in config.inc.

i use mysql 5.5.40-0+wheezy1
PHP extension: mysqli

can mysqli be the problem?

and really thx for your help. :)

@kirirur
Copy link
Contributor

kirirur commented Nov 18, 2014

It's seems quite good to me, only the define JSCRIPT_PATH needs to point to the folder containing the js and not directly the file. On mine config it's configured as '' and it works.

Current version of the game code is still using the old mysql php extension so yes, mysqli could be a problem if you have only this extension enabled. Luckly I've pull a request #6 in order to provide support to that extension,

Before applying the patch to your code, however, which page of the game show that error? I mean, you're able to log in?

@Caberhagen
Copy link
Contributor Author

Error shows at login, register and statistics.

@kirirur
Copy link
Contributor

kirirur commented Nov 19, 2014

Hmm, did you correctly modify UI/game/include/global.php in order to point correctly to your config.inc.php file?

@Caberhagen
Copy link
Contributor Author

i think so:
/var/www/virtual/game.sbhost.ch/htdocs/config.inc.php

so i try now your new merged version to see is mysqli the problem.

but anyway really thx for your help.

@kirirur
Copy link
Contributor

kirirur commented Nov 19, 2014

Ok, it's seems a valid path indeed. Check the new mySQLi support, however I'm almost sure that the game can run on mySQL 5.5 without it with some failing queries, the problem you're facing seem something more serious. It seems the game cannot access to the whole database.

Just to be clear I'll repeat myself: are you sure you removed all references to secondary galaxy from the pages you mentioned? As I wrote in the first post?

@Caberhagen
Copy link
Contributor Author

Ok startet now a new devbox. install all like you write here.

Now it look so as it connect to database.
on login register and stats all fine.

crons not startet now. have tried to register first user. but on click the register button only refreshing page. and no new user in db.

if you want see the code on server, i can give you access by teamviewer. but i search to find the problem.

every day it looks a little bit better :)

@Caberhagen
Copy link
Contributor Author

it seems like i have to start the galaxy first. but dont find where.

@kirirur
Copy link
Contributor

kirirur commented Nov 19, 2014

Hello,

are you saying that after you've filled all required fields in registration form, when you it Register button nothing happened? This sound really strange to me. No errors came out?

It could be some skin related problem. After Register button is pressed the game performs some checks before creating the user (it should inform the user if something went wrong however), and if everything is fine it create the new user in the DB, the required instructions are just two:

  • create a new row in user table
  • creare a new row in user_templates table but if the skins table is empty it will fail

if you downloaded the empty database from the repository you need to create at least one row in the skin table and add you own skin.

@kirirur
Copy link
Contributor

kirirur commented Nov 19, 2014

It's difficult to have the game up and running, I know. That's why I'm trying to rationalize its code, restructure it in order to have a base in the future for a setup script. At the moment lot of the operations needed must be performed manually.

I think your problem at the moment is the empty DB, take a look to game/modules/tools/world/reset.php (unfortunately it can be called only logged to the game), you should find the needed mySQL query to create admin user.

I had forgotten that the default skin can be found here: https://github.com/stfc2/UI/blob/master/game/modules/tools/world/default_template.html

@Caberhagen
Copy link
Contributor Author

Yes its the empty db.
So it need in the sql data not only the structure also the values from
reset.
But with standard values like user:admin pw:admin email:muster@somthing.com
So an intial setup will have the bas asmin account to start.
Can you add the vaules to the database branch?
Am 19.11.2014 20:34 schrieb "Andrea Carolfi" notifications@github.com:

It's difficult to have the game up and running, I know. That's why I'm
trying to rationalize its code, restructure it in order to have a base in
the future for a setup script. At the moment lot of the operations needed
must be performed manually.

I think your problem at the moment is the empty DB, take a look to
game/modules/tools/world/reset.php (unfortunately it can be called only
logged to the game), you should find the needed mySQL query to create admin
user.

I haven't yet loaded the skins in the repository, I'll do asap but I think
you'll have one haven't it?


Reply to this email directly or view it on GitHub
#9 (comment).

@kirirur
Copy link
Contributor

kirirur commented Nov 20, 2014

Well, I'm really sorry but my intention is to store on the repository only the structure of the DB, while the install script will do all the needed task and insert all the needed data. There are several steps to perform in order to start the galaxy, almost of them are already automated even if sparse in several scripts, my intention is to create a sort of "caller" of those scrips including a new one asking the installer for admin user authentication.

For your purpose you just have to take the data from the script reset.php and alter the password with phpMyAdmin to set your taste.

UI repository is not complete, when the work will be finished you'll have to download the latest release and launch the web installer.

@Caberhagen
Copy link
Contributor Author

Ok i try it after work to add the values from reset.php.
I added yesterday the first values to admin account. An can login to it.
But have to add the rest to build the gakaxy.
Am 20.11.2014 06:31 schrieb "Andrea Carolfi" notifications@github.com:

Well, I'm really sorry but my intention is to store on the repository only
the structure of the DB, while the install script will do all the needed
task and insert all the needed data. There are several steps to perform in
order to start the galaxy, almost of them are already automated even if
sparse in several scripts, my intention is to create a sort of "caller" of
those scrips including a new one asking the installer for admin user
authentication.

For your purpose you just have to take the data from the script reset.php
and alter the password with phpMyAdmin to set your taste.

UI repository is not complete, when the work will be finished you'll have
to download the latest release and launch the web installer.


Reply to this email directly or view it on GitHub
#9 (comment).

@kirirur
Copy link
Contributor

kirirur commented Nov 20, 2014

That's good, you were able to login at last!.

You're near the end to the job, setup the skin, use the admin tools inside the game to create the star systems slots, install the BOT if you wish and create some planets. Here you have several choices:

  • you can add a cronjob to scheduler/populate_world.php in order to spawn 25 planets per quadrant each X amount of time
  • you can manually run several time that script from the command line, if you want to have a tiny galaxy or
  • you can add a cronjob to scheduler_popolulate_world_1600.php in order to spawn 125 (I don't know why the script is called 1600, probably in the past it spawn 1600 planets per quadrant) planets
  • you can manually run several time that script from the command line,
  • you can vary $PLANETS_PER_QUADRANT on each script according to your taste and decide to create planets manually or automatically

@Caberhagen
Copy link
Contributor Author

Oh god...

can you make me a dump from your db?
so i can load it to my db and then make a galaxy reset.
because i have added the stuff to db and it seems i have a fault everywere.
Now on login i have a blank white page.

@kirirur
Copy link
Contributor

kirirur commented Nov 20, 2014

Yes, it's normal. I'll explain why: the version of the code stored on the repository until yesterday, assumed the game is running side by side with a IPB forum. In the portal, as I wrote in the first post, the last five topic on the forum are displayed. With that version, when you try to open the portal (the first page of the game), if the forum isn't detected a blank page is displayed (that's an error of course, a message should be more appropriate). This afternoon I've fixed this. I've changed config.inc.php and portal.php in order to display forum info only if available. To turn off this feature you have to set $config['forum_show'] variable to 0.

I've made myself on my computer a test and it worked: you need this SQL queries (if you haven't already performed on your DB) in order to login to the game:

  • Create the admin user (you need then to change the password with phpmyadmin, I don't know if there's a mySQL statement to MD5 the password):

    INSERT INTO user (user_id, user_active, user_loginname, user_auth_level, user_skin, user_gfxpath, user_skinpath, user_capital, user_notepad, user_signature, user_message_sig, user_options, message_basement) VALUES (10,1,'admin',3,1,'stfc_gfx/','skin1/',1,'','','','','')

  • Create the starsystem:
    INSERT INTO starsystems (
    system_id, system_name, sector_id,
    system_x, system_y,
    system_map_x, system_map_y,
    system_global_x, system_global_y,
    system_starcolor_red, system_starcolor_green, system_starcolor_blue,
    system_starsize,
    system_n_planets,
    system_max_planets,
    system_closed)
    VALUES (
    1, "System E14:F2", 122,
    2, 6,
    52, 229,
    119, 42,
    18, 21, 165,
    12,
    1,
    6,
    1)

  • Create the planet:
    INSERT INTO planets (
    planet_id, planet_name, system_id, sector_id,
    planet_owner, planet_owned_date, planet_distance_id,
    planet_distance_px, planet_covered_distance, planet_tick_cdistance,
    planet_max_cdistance, planet_current_x, planet_current_y,
    planet_points, planet_available_points,planet_thumb,
    resource_1, resource_2, resource_3, resource_4,
    rateo_1, rateo_2, rateo_3, rateo_4, recompute_static,
    max_resources, max_worker, max_units,
    workermine_1, workermine_2, workermine_3,
    planet_altname)
    VALUES (
    1, "Admin Home", 1, 122,
    10, 0, 4,
    146, 0, 19,
    917, 0, 0,
    10, 1173, "",
    200, 200, 100, 100,
    1, 1, 1, 1, 1,
    38000, 65000, 65000,
    100, 100, 100,
    "")

  • Create the template:
    INSERT INTO user_templates (user_id, user_template) VALUES
    (10, " < the template skin here > '")

@kirirur
Copy link
Contributor

kirirur commented Nov 20, 2014

I know it can seems quite boring but once you get used to it, you'll find yourself seting up the game in a matter of snap. :)

And in the future there will be the installer.

PS: Remeber to update your source code, I've made some fixes just today.

@Caberhagen
Copy link
Contributor Author

yeah i can now log in.
but the skin not showing.
in db, user_templates/user_templates what is needet? the path to skin or?

have a wihte page with based on stgc.de and query time. also a mistery code:
Bilder-Upload.eu - share DEINE Bilder

@kirirur
Copy link
Contributor

kirirur commented Nov 20, 2014

Create the template:
INSERT INTO user_templates (user_id, user_template) VALUES
(10, " < the template skin here > '")

Replace < the template skin here > with the whole content of this file:

https://github.com/stfc2/UI/blob/master/game/modules/tools/world/default_template.html

@Caberhagen
Copy link
Contributor Author

Now it looking good. Can now login.
Fixet some false pathe with gfx and all shows.
But the tick wil not run. Makes refresh on every click on the page.
I have set the pathfs in config script from sheduler.
But where is the daemon folder to found?

@kirirur
Copy link
Contributor

kirirur commented Nov 21, 2014

Hello,

have you downloaded the source code from Scheduler repository? Once done, suite a proper place on your server and configure config.script.php according to your data.

After everything is setup properly you need to add a cronjob for each deamon you want to run. The minimum to see the tick is a */3 minutes job running main.php daemon.

Then you can add the other tasks.

Rememeber that ships fights need the combat daemon available from Combat repository.

@Caberhagen
Copy link
Contributor Author

Hi

yes i loadet it. placed it to my root home folder.
config like:

and cons:

  • * 1-31/1 * * php /root/scheduler/daily.php 2>&1 > /dev/null
    0-59/3 * * * * php /root/scheduler/main.php 2>&1 > /dev/null
    0-59/1 * * * * php /root/scheduler/moves_main.php 2>&1 > /dev/null
  • 0-23/1 * * * php /root/scheduler/fix_all.php 2>&1 > /dev/null
  • 0-23/6 * * * php /root/scheduler/six_hours.php 2>&1 > /dev/null

so i think it have to run.?

@kirirur
Copy link
Contributor

kirirur commented Nov 21, 2014

Yes, it should, maybe before piping to /dev/null, pipe to a log file to see if everything went fine.

Mine crons are:

  • @daily /home/stfc/daemons/daily > /home/stfc/logs/daily.log #STFC Daily
  • */3 * * * * /home/stfc/daemons/scheduler > /home/stfc/logs/scheduler.log #STFC Scheduler
  • */1 * * * * /home/stfc/daemons/moves > /home/stfc/logs/moves.log #STFC Moves-
  • 5 * * * * /home/stfc/daemons/fixall > /home/stfc/logs/fixall.log #STFC FixAll
  • 0 */6 * * * /home/stfc/daemons/sixhours > /home/stfc/logs/sixhours.log
  • 35 * * * * /home/stfc/daemons/signatures > /home/stfc/logs/signatures.log

I've made some little sh scripts to call php scripts.

@Caberhagen
Copy link
Contributor Author

Hi

good day, the finish i can see :)

tick and crons running now.
the most looks good. only one thing i see:

generetade pics from galaxy and quadrant not showing.

a hint for me?

@kirirur
Copy link
Contributor

kirirur commented Nov 21, 2014

Al the galaxy images must ne created. Log in the game as admin and go to admin panel - world - recreate static maps. Remember that the folder shall be writeable by Apache as several others folder too.

I'm glad you're almost done, setting up stfc is a tough task. :)

@Caberhagen
Copy link
Contributor Author

yeah all pics now show.

so now i can't see problems in admin account.
registered first user account:

user on login becomes the wihte page. because the default template not set in user_templates on user creation. how i can make dem to set as default on user creation?

the user can not start build houses. they are red, but i don't see why?

@kirirur
Copy link
Contributor

kirirur commented Nov 22, 2014

Hello,

did you insert a new line in skins table containing the default template?

When a new user is created, it copies from the default template (stored in skins) to user_template table, letting the user alter their skins without compromising other users.

If a newly created user cannot build anything, it's normal because there are no resources available on the newborn planet. Let some ticks to run, the first raw materials should start to be collected in the silos.

@Caberhagen
Copy link
Contributor Author

Yes this was the problem. abter set the skin in skins table it works on new user creation.

but the problem with no buildin is still there.

It have resources and all to build. look pic:

Bilder-Upload.eu - share DEINE Bilder

@Caberhagen
Copy link
Contributor Author

Soory just a nother fault by me.

script-path is set in config.script.php
and moves_common have config includet. but i have the paht in common now set same as in config.script.

Thx anyway

@kirirur
Copy link
Contributor

kirirur commented Nov 27, 2014

Don't worry isn't you, it's the game structure that's quite complex and twisted. There are more or less two configuration files:

  • config.inc.php for the UI
  • config.script.php for the scheduler

Those are the main two handling installation issues,

There are then other two files (one I think it's mistake):

  • global.php to configure some game aspects
  • moves_common.php to configure other aspects such as path of the C++ combat daemon

@Caberhagen
Copy link
Contributor Author

Hi

i found a problem with notepad.
the inserted text are not saved.

i found an output:

PHP Warning: mysql_real_escape_string(): Access denied for user 'www-data'@'localhost' (using password: NO) in /var/www/game/submit_notepad.php

so the game try to use not the game db from config inc.
and with apache user without password.

how to chang it to game db?

@Caberhagen
Copy link
Contributor Author

Hi
I dont find the solution for notepad. But searching...
Found a problem on shoutbox and messages.
If the text have ä, ö and ü inside. The text are not showing.

@kirirur
Copy link
Contributor

kirirur commented Dec 2, 2014

Hi,

could you please open different issues for the problem found in order to have more clarity?

Thank you!

We should stay with installation issues in this thread.

@Caberhagen
Copy link
Contributor Author

After a lot of things are working, i started to test HZ.
All pics and all links are working. but can take any action.
In DB at config the bot have som money. but if i want make a soldier sell.
It say me the bot have not enugh money or i have no soldiers.
But all is here.
In NPC tick log i can't see a problem.

@kirirur
Copy link
Contributor

kirirur commented Dec 12, 2014

Yes,

current version of the Trade Center doesn't have its own resources. If you want to enable that feature you have to modify line 42 in the file: https://github.com/stfc2/Scheduler/blob/master/NPC_BOT_defines.php

and maybe also line 39, but at the moment I don't remember very well the mechanism.

That's because resources are deposited after settlers auctions are performed but we should ask to Kail72.

@Caberhagen
Copy link
Contributor Author

Hi

after i have changed line 42 to 1 i have a new part in npc log:

Starting Update Ramona resources svailability...

Available resources: -- --

Available units: -- -- -- -- --

Add units: 0 -- 0 -- 0 -- 0 -- 0 -- 0

Add resources: 0 -- 0 -- 0

Error: Cannot read from Ramona's planet!

i tried at line 32 0 and 1 same result.
Ok i wait for Kail72 input

@kirirur
Copy link
Contributor

kirirur commented Dec 12, 2014

Hello,

Could you please check installation log of the NPC and see if the Ramona BOT had a planet? It seems that the problem.

@Caberhagen
Copy link
Contributor Author


-------------------------------------------------------------
Starting Install BOTs at 12.12.14 11:46:38

Starting Ramona basic system...

Executed Ramona basic system (queries: 2) in 0.0002 secs


Starting PW change...

Now there are only One-Night-Stands, no longer relations

Executed PW change (queries: 1) in 0.0002 secs


Starting SevenOfNine basic system...

Executed SevenOfNine basic system (queries: 2) in 0.0002 secs


Starting PW change...

Now there are only One-Night-Stands, no longer relations

Executed PW change (queries: 1) in 0.0002 secs


Starting Future Humans Setup&Maintenance...

Executed Future Humans Setup&Maintenance (queries: 0) in 0 secs


Starting Mayflower basic system...

Writing Settler Cruiser Ship!

Writing Settler Battleship!

Writing Settler Orbital!

Executed Mayflower basic system (queries: 11) in 0.0017 secs


Finished Install BOTs in 0.0059 secs
Executed Queries: 19

@Caberhagen
Copy link
Contributor Author

Hi
i removed the bot's and installed them new. Now ramona have a planet. but the same answer on sell soldiers.

Install log:


-------------------------------------------------------------
Starting Install BOTs at 12.12.14 23:43:56

Starting Ramona basic system...

Ramona is created

Ramona needs a new body

New planet

Better values for the Planet

Update BOT ship templates

Executed Ramona basic system (queries: 15) in 0.0099 secs


Starting PW change...

Now there are only One-Night-Stands, no longer relations

Executed PW change (queries: 1) in 0.0002 secs


Starting SevenOfNine basic system...

We need to create SevenOfNine

SevenOfNine needs new body

Create new planet

Give best values to the planet

Ship templates built

Executed SevenOfNine basic system (queries: 18) in 0.0096 secs


Starting PW change...

Now there are only One-Night-Stands, no longer relations

Executed PW change (queries: 1) in 0.0001 secs


Starting Future Humans Setup&Maintenance...

Executed Future Humans Setup&Maintenance (queries: 0) in 0 secs


Starting Mayflower basic system...

We need to create TheSettlers!

Writing Settler Cruiser Ship!

Writing Settler Battleship!

Writing Settler Orbital!

Executed Mayflower basic system (queries: 12) in 0.0016 secs


Finished Install BOTs in 0.0247 secs
Executed Queries: 49

Full NPC log:


-------------------------------------------------------------
Starting Bot Scheduler at 13.12.14 08:48:01

The conversation with Ramona begins, oh, it is not beautiful, and then, it has such a great personality

Starting Messages answer...

Number of messages:0

Executed Messages answer (queries: 2) in 0.0002 secs


Starting Shiptrade Scheduler...

Executed Shiptrade Scheduler (queries: 2) in 0.0003 secs


Starting Trust accounts monitor...

Examining debts....

Queued ships : 0

Paid debts : 0

Debtors : 0

Deleted accounts: 0

Fun bidders : 0

Warnings sent : 0

Executed Trust accounts monitor (queries: 2) in 0.0002 secs


Starting Stock trading ship...

Actual Tick: 10340 -- true -- Period of: 9860

New graph is made.....

Starting Purchase - Unit...

Executed Purchase - Unit (queries: 6) in 0.023 secs


Executed Stock trading ship (queries: 6) in 0.0254 secs


Starting Users release...

There were 0 users released

Executed Users release (queries: 1) in 0.0003 secs


Starting Users lock...

Users have their penalties now let me turn to my problems in women clarify matters.

There were 0 users locked

Executed Users lock (queries: 1) in 0.0002 secs


Starting Update Ramona resources svailability...

Available resources: 30246 -- 30246 -- 25440

Available units: 2000 -- 2000 -- 2000 -- 1500 -- 1500 -- 1500

Add units: 4.4444444444444 -- 4.4444444444444 -- 4.4444444444444 -- 7.5 -- 7.5 -- 7.5

Picking resources from CC: 0 -- 0 -- 0

Executed Update Ramona resources svailability (queries: 5) in 0.001 secs


Starting Blacklist cleanup...

Executed Blacklist cleanup (queries: 1) in 0.0001 secs


Starting Soldiers Transactions...

Transactions: 0

Executed Soldiers Transactions (queries: 1) in 0.0001 secs


Starting Sensors monitor...

Number of messages:0

Executed Sensors monitor (queries: 1) in 0.0002 secs


Starting Creating ships...

Check fleet "Alpha-Fleet IVX" composition

Check fleet "Interception Omega" composition

Executed Creating ships (queries: 4) in 0.0003 secs


Finished Scheduler in 0.0291 secs
Executed Queries: 43



-------------------------------------------------------------
Starting Borg Bot Scheduler at 13.12.14 08:48:01

The conversation with SevenOfNine begins, oh, but I think that there is no possibility to talk with her

Starting SevenOfNine integrity check...

Executed SevenOfNine integrity check (queries: 1) in 0.0001 secs


Starting Messages answer...

Number of messages:0

Executed Messages answer (queries: 2) in 0.0002 secs


Starting Sensors monitor...

Number of "messages" sent:0

Executed Sensors monitor (queries: 1) in 0.0002 secs


Starting Creating Unimatrix Zero Fleet...

Executed Creating Unimatrix Zero Fleet (queries: 1) in 0.0001 secs


Starting Create Borg defences on assimilated planets...

Executed Create Borg defences on assimilated planets (queries: 1) in 0.0003 secs


Starting Settlers Assimilation Program - BETA -...

Executed Settlers Assimilation Program - BETA - (queries: 2) in 0.0004 secs


Starting PLAYERS Assimilation Program - BETA -...

Executed PLAYERS Assimilation Program - BETA - (queries: 1) in 0.0001 secs


Finished Scheduler in 0.002 secs
Executed Queries: 54



-------------------------------------------------------------
Starting Settlers Bot Scheduler at 13.12.14 08:48:01

Starting Messages answer...

Number of messages:0

Executed Messages answer (queries: 2) in 0.0002 secs


Starting Read Logbook...

Executed Read Logbook (queries: 1) in 0.0001 secs


Starting Mayflower Planets Building Control...

Executed Mayflower Planets Building Control (queries: 1) in 0.0002 secs


Starting Mayflower auctions clean-up...

Executed Mayflower auctions clean-up (queries: 1) in 0.0001 secs


Finished Scheduler in 0.0008 secs
Executed Queries: 59

@kirirur
Copy link
Contributor

kirirur commented Dec 14, 2014

Hi,

from the log it seems that you switched PICK_RESOURCES_FROM_PLANET to 0, so the BOT tries to pick resource from the Trade Center that it's empty.

Now that the BOT has its planet, you should set PICK_RESOURCES_FROM_PLANET to 1 and check in the log if after few ticks the BOT start to fill the resources available taking them from its planets. Of course if the planet doesn't have any, the TD will stay empty.

It's not a bug, it's a wanted feature that the TD will grow after some time but of course you can change its behavior in your fork. :)

@Caberhagen
Copy link
Contributor Author

Hi

thanks a lot. now the TD are working.
So we test now all functions.

@kirirur
Copy link
Contributor

kirirur commented Dec 18, 2014

Hello,

nice to hear that.

Let me know how it works.

@Saboti
Copy link
Contributor

Saboti commented Mar 12, 2015

Hi,
thank you for this messages, there helped me a lot to set up stfc2.

I found a few other todos:

  • game/maps/images has to be created
  • game/maps/images/cache has to be created
  • game/tmpsec has to be created
  • Galaxy Map small is not created on the Portal Page?

If i find more or have some more questions i will message here again.

Regards Saboti

@kirirur
Copy link
Contributor

kirirur commented Mar 12, 2015

Hi Saboti,

thank you for your report.

Yes, there are some folders that are needed by the game but they are not stored in the repository. I think I can add them.

About the tiny galaxy image, it's created with the admin tool create static maps that can be found in world menu. Yes, install script should call it autonomously. :)

@Saboti
Copy link
Contributor

Saboti commented Mar 17, 2015

Thank you for your replay @kirirur.
I only have one Problem so far I can't get fixed:

  • If i want to add new Ship templates with a new registered Player, there won't be added?

The new Player is boosted so much after registration that it should be possible to create a new Ship template. Any ideas?

@kirirur
Copy link
Contributor

kirirur commented Mar 17, 2015

Hi Saboti, glad to help, you have boosted the player and you're seeing player points updated? In order to create a template you need local points (planet) and global points (player) matching the required by the template.

@Saboti
Copy link
Contributor

Saboti commented Mar 17, 2015

I have changed noting, if i register a new player its automatically boosted to 650 Points local & global.
I can select the Template and it says that it's added to my list, but there is nothing :-(
If you like you can test my Installation: http://saboti.tk/stfc2/

@kirirur
Copy link
Contributor

kirirur commented Mar 18, 2015

Hi @Saboti, I don't know if you have noticed but I came to your setup and verified the issue you're talking about. It's really strange, this bug is new to me. It could be some mySQL related issue, on my test machine, running mySQL 5.6.23 and PHP 5.5.22 everything works as expected and the template is added to the list.

@Kail72
Copy link
Contributor

Kail72 commented Mar 18, 2015

@Saboti

The ship_template.php version you are trying to use is a work in progress; it needs a new version of ship_componentsX.php modules wich are still under development.

@Saboti
Copy link
Contributor

Saboti commented Mar 18, 2015

@Kail72 thank you for the replay.
OK than I think have to wait till you release the new Version.
Good to know there is no failure with the installation itself.

@kirirur
Copy link
Contributor

kirirur commented Mar 18, 2015

@Saboti you could have a look at ship_template.php file older then commit 00250cb when newer fields where added.

@Saboti
Copy link
Contributor

Saboti commented Mar 18, 2015

@kirirur great thank you for this hint, with the old Version the Templates are added.

@kirirur
Copy link
Contributor

kirirur commented Mar 18, 2015

@Saboti nice to hear that! :-)

@Saboti
Copy link
Contributor

Saboti commented Apr 16, 2015

One Question regarding the Build Times, how can i lower they? In include\global.php?

@kirirur
Copy link
Contributor

kirirur commented Apr 16, 2015

Hi @Saboti yes alla the structures costs and building times are stored in the file you mentioned. Ships components instead are in include/static/ship_components_x.php (where x stands for a number identify a race).

@Saboti
Copy link
Contributor

Saboti commented Apr 17, 2015

I need some help with the config for the 2nd galaxy. How do i set it up? Another config.inc.php?
or do i have to extend the existing config.inc.php?

@kirirur
Copy link
Contributor

kirirur commented Apr 17, 2015

Hello Saboti, do you want to setup a second galaxy? Do I understand correctly? If so, there are of course several ways you can do that, the easiest I think, it's to duplicate the game folder and adapt the "external" php files to handle two items. Perhaps it isn't the most efficient way but it works, we did that in the past to handle two independent galaxies with different setup in the past. Probably you can make some optimisations if you just need to share the same code for all the galaxies and implement just few modifications between them.

Caberhagen added a commit that referenced this issue Sep 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants