Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Short Tutorials-Edit MaxGalaxy-New Members E-mail- Building,Ships ..

Status
Not open for further replies.
Joined
Jan 1, 2009
Messages
384
Reaction score
20
Short Tutorials-Edit MaxGalaxy..-New Members E-mail- Building,Ships ..
In reg.php – Edit What You Need
Search for something like this:
SendSimpleMessage
Above it you will see something like this:
$Message = "And A Message Here";
This is what you need to edit.For Example:
$Message = "Hi, Welcome to XXXX Ogame Server. We hope you have fun playing with us .If you have problems then contact us. Start with metal mines and Crystal mines as well as a Solar Plant. Good Luck! You will need it.";

In const.php / constants.php – Edit what you need
define('MAX_GALAXY_IN_WORLD' , 9);
How many galaxyes you want on your univers
define('MAX_SYSTEM_IN_GALAXY' , 499);
How many systems every galaxy should have
define('MAX_PLANET_IN_SYSTEM' , 15);
How many planets should every system have
define('SPY_REPORT_ROW' , 2);
Number of columns for spying report
define('FIELDS_BY_MOONBASIS_LEVEL', 4);
Number of fields for every Lunar Base level
define('MAX_PLAYER_PLANETS' , 21);
How many colonyes should every player have
define('MAX_BUILDING_QUEUE_SIZE' , 5);
How many elements should the quque(waiting for construction list) have
define('MAX_FLEET_OR_DEFS_PER_ROW', 1000);
Maximum number of constructions on the fleet and defenses construction list
define('MAX_OVERFLOW' , 1.1);
Exceeding rate of the space available in storage...
1.0 for 100% - 1.1 for 110% …
define('BASE_STORAGE_SIZE' , 1000000); - Base storage for new planets and colonyes
define('BUILD_METAL' , 500); - Metal Base storage for new planets and colonyes
define('BUILD_CRISTAL' , 500); - Cristal Base storage for new planets and colonyes
define('BUILD_DEUTERIUM' , 500); - Deuterium Base storage for new planets and colonyes
You want to edit buildings,ship,… ?
Go to vars.php and start editing from name , requeriments to prices($pricelist),production and consumption.

For example:

Name:

1 => "metal_mine",
Price list:
1 => array ( 'metal' => 60, 'crystal' => 15, 'deuterium' => 0, 'energy' => 0, 'factor' => 3/2),

Production:

1 => array( 'metal' => 40, 'crystal' => 10, 'deuterium' => 0, 'energy' => 0, 'factor' => 3/2,
'formule' => array(
'metal' => 'return (30 * $BuildLevel * pow((1.1), $BuildLevel)) * (0.1 * $BuildLevelFactor);',
'crystal' => 'return "0";',
'deuterium' => 'return "0";',
'energy' => 'return - (10 * $BuildLevel * pow((1.1), $BuildLevel)) * (0.1 * $BuildLevelFactor);')
),

If you want to edit Metal Mine then you edit those values

I think you already know how to edit templates ( you go to templates folder).
If you want to edit language then search for the language folder, open it , select the language you want to edit and you should have some .mo extension files:
admin.mo
buddy.mo
……
Open the one you want, search the phrase you want to modify , edit and save.

Maybe you already know all of this , maybe you don’t , I wrote it for people who don’t know.
 
Last edited:
Initiate Mage
Joined
Jul 17, 2009
Messages
3
Reaction score
0
That wit planets and solar systems doesn't work :(

Here are my file (i have two of them)


constans.php
<?php // constants.php

if ( !defined('INSIDE') )
{
die("Hacking attempt");
}

// Debug Level
//define('DEBUG', 1); // Debugging on
define('DEBUG', 1); // Debugging off


// User Levels <- Do not change the values of USER or ADMIN
define('DELETED', -1);
define('ANONYMOUS', -1);

define('USER', 0);
define('ADMIN', 1);
define('MOD', 2);


// User related
define('USER_ACTIVATION_NONE', 0);
define('USER_ACTIVATION_SELF', 1);
define('USER_ACTIVATION_ADMIN', 2);

define('USER_AVATAR_NONE', 0);
define('USER_AVATAR_UPLOAD', 1);
define('USER_AVATAR_REMOTE', 2);
define('USER_AVATAR_GALLERY', 3);


// Group settings
define('GROUP_OPEN', 0);
define('GROUP_CLOSED', 1);
define('GROUP_HIDDEN', 2);


// Forum state
define('FORUM_UNLOCKED', 0);
define('FORUM_LOCKED', 1);


// Topic status
define('TOPIC_UNLOCKED', 0);
define('TOPIC_LOCKED', 1);
define('TOPIC_MOVED', 2);
define('TOPIC_WATCH_NOTIFIED', 1);
define('TOPIC_WATCH_UN_NOTIFIED', 0);


// Topic types
define('POST_NORMAL', 0);
define('POST_STICKY', 1);
define('POST_ANNOUNCE', 2);
define('POST_GLOBAL_ANNOUNCE', 3);


// SQL codes
define('BEGIN_TRANSACTION', 1);
define('END_TRANSACTION', 2);


// Error codes
define('GENERAL_MESSAGE', 200);
define('GENERAL_ERROR', 202);
define('CRITICAL_MESSAGE', 203);
define('CRITICAL_ERROR', 204);


// Private messaging
define('PRIVMSGS_READ_MAIL', 0);
define('PRIVMSGS_NEW_MAIL', 1);
define('PRIVMSGS_SENT_MAIL', 2);
define('PRIVMSGS_SAVED_IN_MAIL', 3);
define('PRIVMSGS_SAVED_OUT_MAIL', 4);
define('PRIVMSGS_UNREAD_MAIL', 5);


// URL PARAMETERS
define('POST_TOPIC_URL', 't');
define('POST_CAT_URL', 'c');
define('POST_FORUM_URL', 'f');
define('POST_USERS_URL', 'u');
define('POST_POST_URL', 'p');
define('POST_GROUPS_URL', 'g');

// Session parameters
define('SESSION_METHOD_COOKIE', 100);
define('SESSION_METHOD_GET', 101);


// Page numbers for session handling
define('PAGE_INDEX', 0);
define('PAGE_LOGIN', -1);
define('PAGE_SEARCH', -2);
define('PAGE_REGISTER', -3);
define('PAGE_PROFILE', -4);
define('PAGE_VIEWONLINE', -6);
define('PAGE_VIEWMEMBERS', -7);
define('PAGE_FAQ', -8);
define('PAGE_POSTING', -9);
define('PAGE_PRIVMSGS', -10);
define('PAGE_GROUPCP', -11);
define('PAGE_TOPIC_OFFSET', 5000);


// Auth settings
define('AUTH_LIST_ALL', 0);
define('AUTH_ALL', 0);

define('AUTH_REG', 1);
define('AUTH_ACL', 2);
define('AUTH_MOD', 3);
define('AUTH_ADMIN', 5);

define('AUTH_VIEW', 1);
define('AUTH_READ', 2);
define('AUTH_POST', 3);
define('AUTH_REPLY', 4);
define('AUTH_EDIT', 5);
define('AUTH_DELETE', 6);
define('AUTH_ANNOUNCE', 7);
define('AUTH_STICKY', 8);
define('AUTH_POLLCREATE', 9);
define('AUTH_VOTE', 10);
define('AUTH_ATTACH', 11);


// Table names
define('AUTH_ACCESS_TABLE', $table_prefix.'auth_access');
define('BANLIST_TABLE', $table_prefix.'banlist');
define('CONFIG_TABLE', $table_prefix.'config');
define('ALLIANCES_TABLE', $table_prefix.'alliance');
define('BUDDY_TABLE', $table_prefix.'buddy');
define('FLEETS_TABLE', $table_prefix.'fleets');
define('FORUM_CAT_TABLE', $table_prefix.'forum_cat');
define('FORUM_CATEGORIES_TABLE', $table_prefix.'forum_categories');
define('FORUM_POSTS_TABLE', $table_prefix.'forum_posts');
define('FORUM_POSTS_TEXT_TABLE', $table_prefix.'forum_posts_text');
define('FORUM_TOPICS_TEXT_TABLE', $table_prefix.'forum_topics');
define('GALAXY_TABLE', $table_prefix.'galaxy');
define('MESSAGES_TABLE', $table_prefix.'messages');
define('NOTES_TABLE', $table_prefix.'notes');
define('PLANETS_TABLE', $table_prefix.'planets');
define('USERS_TABLE', $table_prefix.'users');


//
define('MAX_PLAYER_PLANETS' , 14);
define('MAX_PLANET_IN_SYSTEM' , 20);


?>
 
Last edited:
Skilled Illusionist
Joined
Oct 28, 2008
Messages
379
Reaction score
47
Nice guide, but don't you think it is supposed in the tutorial section?
 
Newbie Spellweaver
Joined
Dec 23, 2008
Messages
85
Reaction score
6
That wit planets and solar systems doesn't work :(

Here are my file (i have two of them)


constans.php

Some x-nova based releases have the max galaxy/system/planet default values coded directly into the galaxy related files rather than referencing the defined constant in constants.php. If you are using OasisRage, the max values should be working, but if you are using a different release you may need to change the code manually.
I don't remember which files have references to the max values, but there are 5 or 6 files that may need changed. Look in files related to galaxy or fleet functions and find lines that include something like 'If (galaxy < 9) {' and similar lines for system and planet values. There are about 20 or so references in a few different files that need changed to make the constants fully functional.

If I can find my list of files that were changed I will post it....:blushing:
 
Skilled Illusionist
Joined
Oct 28, 2008
Messages
379
Reaction score
47
Oh sry, thought we were in another section, my bad!
 
Joined
Jan 1, 2009
Messages
384
Reaction score
20
Next time try not to acuse me for nothing as I don't give infractions for nothing. Silod: what thing with adding planets? You mean more colonies?
 
Newbie Spellweaver
Joined
Dec 28, 2006
Messages
6
Reaction score
0
How can i change a default Language ?!
Thank you...
 
Status
Not open for further replies.
Back
Top