Welcome to RaGEZONE - MMORPG Development Forums (sponsored by tfn.gr) Mark forums read | View Forum Leaders
RaGEZONE - MMORPG Development Forums (sponsored by tfn.gr)

OGame Discuss, Some Doubts about openogame at Server Developments forum; ok, so im new, i have a working Version, and it is very good. Where can i add the Dark ...




Reply
Thread Tools
Help Some Doubts about openogame
 
 
Newbie

Rank: Omicron


Reply With Quote
 
Join Date: Oct 2008
Posts: 13
10-31-2008, 11:08 AM
 
ok, so im new,


i have a working Version, and it is very good.


Where can i add the Dark MAtter thing?
Is there a script for that?, or i have to put it in the DB, by hand? what is the field in the DB?

How do i get the statistics, to update automatic? how do i program the cron for this?

Thanks
 
 
permalink
 

RaGEZONE is proudly sponsored by
 
Member

Rank: Omicron


Reply With Quote
 
Join Date: Jan 2007
Location: Latvia
Posts: 31
10-31-2008, 03:48 PM
 
Quote: Originally Posted by chicosoft View Post
the DB, by hand? what is the field in the DB?

How do i get the statistics, to update automatic? how do i program the cron for this?

Thanks
1) Go to; %dir%/templates/OpenGame/ and open left_menu.tpl with notepad++ (i strongly dont recommend notepad (1), cus i edited with it and then page was white, then i tried notepad++ and all works) and search for "Ranking" link. After a href=" modify adress to "admin/statbuilder.php"
Exemple:
Code:
  <th><a href="admin/statbuilder.php" accesskey="k" target="{mf}">Ranking</a></th>
2) go to %dir%/admin/ and open statbuilder.php
at start of file (before <?php) add this:
Code:
<html>
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://LINK_TO_WEB/stat.php?range={user_rank}">
</html>
Exemple:
[code]
Code:
<html>
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://vgame.oo.lv/server1/stat.php?range={user_rank}">
</html>

3) In statbuilder.php search for authlevel (after 2. step - 24line for me) and change 1/2/3 to 0 (maybe 0 is default...)

I dont know another way, but this is one and only idea what i got
Of couse you can copy all what is in statbuilder.php, but its really hard...
ps. Sry for my bad english
 
 
permalink
 

 
Newbie

Rank: Omicron


Reply With Quote
 
Join Date: Oct 2008
Posts: 13
11-01-2008, 12:52 AM
 
I manage to put automatic statistics in Open Ogame :D


What did i do...


I use linux, for hosting my ogame site so i used the cron for schedule the statistics...

What did i do?
1 - i installed the links(text based Internet browser)

2 - i modify the statbuilder.php file, so anyone can update the statistics.

3 - I created a script called statistics.sh with this code:

Code:
#/bin/bash
echo -----------------------------------------------------
links2 -dump http://mysite/openogame/admin/statbuilder.php
date
echo -----------------------------------------------------
4 - i added this line to crontab(here it updates statistics every 5 minutes) :
Code:
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/chico/statistics.sh >> /var/log/ogame.log
What does the statistics script do?
It updates the statistics, and prints the date. so when the cron runs, it sends the output with a date to the log file.

It is pretty stupid i know, but it is a simple way to do the job and log it, and it can do ever 12 Hours or anytime i schedule it to run...
 
 
permalink
 


 
Newbie

Rank: Omicron


Reply With Quote
 
Join Date: Oct 2008
Posts: 13
11-01-2008, 01:29 AM
 
another thing, who do i know what version do i use?

how can i upgrade that? i think it has the SQL injection problem in the options tpl...

but i do not know what version do i use...
 
 
permalink
 

 
* ~ Jangan ~ *

Rank: Member


Reply With Quote
 
Join Date: Nov 2006
Location: Canada
Posts: 811
11-01-2008, 06:00 AM
 
woah, that seemed very interesting, a linus auto updater... care to release the code here?

:P lol and about your files, just download rov11 and rip everything you want, nothing is locked or encrypted, open, modify and take anything you want :D thats the nice thing about my files.
 
 
permalink
 

 
Newbie

Rank: Omicron


Reply With Quote
 
Join Date: Oct 2008
Posts: 13
11-01-2008, 04:39 PM
 
but i like the version i have, it says Xnova, 0.8...

is it bad?? lol

The code, for autoupdade the statistics, is here... i posted above...
 
 
permalink
 

Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT +1. The time now is 11:22 PM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RaGEZONE © 2001 - 2008





 
Evade Blackbelt School