Code Monkey home page Code Monkey logo

xg-project's Introduction

XG Project

XG Project es un clon del juego OGame, creado por Gameforge. XG Project es la continuación del proyecto XG Proyect, creado por lucky (@XGProyect). La intención de este proyecto es la de crear un clon de código libre, gratuito y fácil de usar. XG Project está licenciado bajo la licencia GPL v3, que puedes encontrar en el archivo LICENSE.txt que deberá estar adjunto a este pack.

Requisitos mínimos

  • PHP 5.4.0 o superior
  • MySQL 5.0.19 o superior.

Instalación

Si esta es la primera vez que instalas XG Project, pero tienes conocimientos de PHP y MySQL, decide si lo deseas hacer en tu pc o en un proveedor de hosting.

Sólo es necesario copiar todo el contenido de esta carpeta en la ubicación que desees de tu hosting. El sistema te guiará en el proceso de instalación.

Actualizar a XG Project v3.0.x

Si tienes alguna versión anterior a la 2.0:

  1. Actualiza a la 2.3
  2. Actualiza a la 2.9.8

Si tienes entre la versión 2.0 y 2.9:

  1. Actualiza a la 2.9.8
  2. Actualiza a la 3.0.0

Si tienes la versión 2.9.0 o superior puedes actualizar directamente a la 3.0.x

Para actualizar, solo debes borrar todos los ficheros excepto el config.xml y reemplazarlos por los contenidos en este pack. Luego, accede al sistema de instalación y elije la opción "Actualizar", y sigue los pasos.

xg-project's People

Contributors

iansus avatar lucaskovacs avatar razican avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xg-project's Issues

Crash when there is a fleet in flight

A SQL query is incorrect in the librairies/missions/transport.php file.

I think that

WHERE pc1.planet_ = '" . $fleet_row['fleet_start_galaxy'] . "' AND

should be

WHERE pc1.planet_galaxy = '" . $fleet_row['fleet_start_galaxy'] . "' AND

I've made the correction and it seems to work.

Error for player receiving a buddy request

I found a error in "buddy.php" line 234-336, where the SQL request is :

$buddy_sender   = parent::$db->query_fetch ( "SELECT `user_id`, `user_name`, `user_galaxy`, `user_system`, `user_planet`,`user_ally_id`, `alliance_name`
                                                FROM " . USERS . "
                                                WHERE `user_id`='" . intval ( $buddy['buddy_sender'] ) . "'" );

but alliance_name is not a column of the users table.

I thinks that something is missing.

thanks for your support

Error installation sql error

I have a Database query failed. This is creating Admin User.
Debug Log:
Where called: line 321 of Database
(in installation.php)

Errors when installing

It seems that on installation, even if the connection is well set, it fails the first time to update the database. Still needs further testing.

Attacks not working

Lots of issues with attacks and generating battle reports.
Which file is the good one ?

  • attack.php
  • attack - copia.php ?

Use MySQLi driver

Currently XG Project uses MySQL driver, that has been deprecated. It should use MySQLi or PDO.

XG Project logo missing

The XG Project logo is missing since the XG Proyect website closed. It should be changed for a local logo.

backup error

When hit button 'Perform a backup now' after reload page is error:

Notice: Undefined property: mysqli_result::$num_fields in xxx/application/core/Database.php on line 210

CHMOD warning not visible

The CHMOD warning in the installation page is not visible if the screen is too short. It should be in the top, or at least in the top of the submit button.

Lots of errors on installation if database not correctly set

If the database is not correctly set, the user will receive a lot of errors:

Notice: Use of undefined constant DB_HOST - assumed 'DB_HOST' in /var/www/html/xgp/application/core/Database.php on line 76
Notice: Use of undefined constant DB_USER - assumed 'DB_USER' in /var/www/html/xgp/application/core/Database.php on line 76
Notice: Use of undefined constant DB_PASS - assumed 'DB_PASS' in /var/www/html/xgp/application/core/Database.php on line 76
Warning: mysqli::mysqli(): php_network_getaddresses: getaddrinfo failed: No address associated with hostname in /var/www/html/xgp/application/core/Database.php on line 76
Warning: mysqli::mysqli(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: No address associated with hostname in /var/www/html/xgp/application/core/Database.php on line 76
Notice: Use of undefined constant DB_NAME - assumed 'DB_NAME' in /var/www/html/xgp/application/core/Database.php on line 86
Warning: mysqli::select_db(): Couldn't fetch mysqli in /var/www/html/xgp/application/core/Database.php on line 86

Can´t install "Fatal error"

When go to install, i only can se a php error
Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in C:\xampp\htdocs\xgproject\application\core\Database.php:32 Stack trace: #0 C:\xampp\htdocs\xgproject\application\core\common.php(56): Database->__construct() #1 C:\xampp\htdocs\xgproject\index.php(16): include('C:\\xampp\\htdocs...') #2 {main} thrown in C:\xampp\htdocs\xgproject\application\core\Database.php on line 32

I have xamp 8.0.6 on windows 10 21H1

Many active links in installation

In the installation page, if overview/license or installation are selected, the three of them appear as active, while only one of them should.

Login fails silently

The login process fails silently if the username or password entered is not OK.

Add moon in adm page

When i want add moon this error is:

Notice: Undefined index: id in xxx/application/controllers/adm/maker.php on line 533

SQL error on registration

It seems that the registration is broken. When a user tries to register, it receives a SQL error in this query:

INSERT INTO xgp_planets SET Planeta Principal
    `planet_user_id` = '2',
    `planet_galaxy` = '1',
    `planet_system` = '6',
    `planet_planet` = '10',
    `planet_last_update` = '1430044771',
    `planet_type` = '1',
    `planet_image` = 'wasserplanet08',
    `planet_diameter` = '12750',
    `planet_field_max` = '163',
    `planet_temp_min` = '-5',
    `planet_temp_max` = '35',
    `planet_metal` = '500',
    `planet_metal_perhour` = '30',
    `planet_crystal` = '500',
    `planet_crystal_perhour` = '15',
    `planet_deuterium` = '0',
    `planet_deuterium_perhour` = '0';

It does not give more information, apart from a stack trace of the last queries and the file from which it was called:

Where called: line 165 of Database
(in Creator_Lib.php)

It seems that the SQL query is not well formatted.

Installing 3.0.3

Database query failed: Field 'planet_b_building_id' doesn't have a default value Last SQL Query: INSERT INTO xgp_planets SET planet_name = 'Admin', planet_user_id = '1', planet_galaxy = '1', planet_system = '1', planet_planet = '1', planet_last_update = '1480962549', planet_type = '1', planet_image = 'trockenplanet06', planet_diameter = '10158', planet_field_max = '103', planet_temp_min = '191', planet_temp_max = '231', planet_metal = '500', planet_metal_perhour = '90', planet_crystal = '500', planet_crystal_perhour = '45', planet_deuterium = '0', planet_deuterium_perhour = '0';

Reset password link does not work

The reset password link sends the user to a dead link. It should link to the reset password page. In fact, the reset password page does not exist.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.