OGame Automizer Development Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome on the OGame Automizer Development/Support Forum

If this is your first visit, be sure to check out the
Detailed Guide : A guide which we are still writing (En)
Guide : For OA Beginners (En)
Guide : For OA Beginners (Fr)

Author Topic: OA web access  (Read 2511 times)

0 Members and 1 Guest are viewing this topic.

Devil's Hand

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1,244
    • View Profile
OA web access
« on: January 14, 2010, 01:00:58 PM »

For me OA web access would be very useful.

But now i use "Logmein".

I think OA web access is not priority if it's time consuming for DH. He has a important todo list...  ;D

Maybe in version 2.0  ;)

+1, agree ;)

Quote from: drisate
I offered my help in the developper board but he never replyed.
I've mailed you (your forum email). But I prefer that people propose something concrete and realistic on what kind of staff they want to work than just a proposition 'I can help, but I don't know how'.

Quote
I think you know app like Utorrent / Bitcomment / Emule etc ... all thouse sharing programs ..
In thous App you got a very good Feature .. named : WebUI  or Web access ...
By typing IP (Local in home / external when outside ) and accessing to the OA wiith IE

If you think about web gui like for torrent soft (Vuze, transmission etc.) no question for me to implement this, because this feature will be used only by server owner, 3-5 % of OA users.

Anyway, a web interface for OA from ogameautomizer.com , it's too big for me, currently we have :
1. hesi have proposed to make a web interface : http://forum.ogameautomizer.com/index.php/topic,143.0.html
a. HTML/PHP ?
b. or Adobe Flex ? Integration Flex/Java is very easy : http://www.oainterface.ulmb.com/main.html , but don't know if on mobiles it would work well.

2. Need to think about which technology I can use as NAT/Firewall traversal, could be CORBA or permanent TCP connection to the server, anything else ?

3. Need to define a scope of features available in web interface.

4. To form a "team" who want to participate.

5. etc.

This discussion is open, but as it was said I'll not work on this until something concrete is done by the community and task attribution. From me you can have only API definition in order to use some OA features.
« Last Edit: April 08, 2010, 01:19:09 AM by Devil's Hand »
Logged

Memnoch

  • Full Member
  • ***
  • Offline Offline
  • Posts: 228
    • View Profile
Re: OA web access
« Reply #1 on: January 15, 2010, 12:05:29 AM »

If somebody gets a webGUI rolling, i'll donate to the cause.

It would be great not to have to rely on remote desktop apps, and just be able to SSH into my network and pull up a local webpage with the GUI :)
Logged

^^^^

  • Guest
Re: OA web access
« Reply #2 on: January 15, 2010, 09:28:38 AM »

ill also... ;D
Logged

kamtec11

  • Guest
Re: OA web access
« Reply #3 on: January 16, 2010, 02:10:20 PM »

Yes.
But the web Gui ... or web access is very nice and i think more than 80% of users that use OA will be agreed to this,
By the way , You need to develop OA to a Pre final state , i mean stable one :) ., and then to develop some Gui .
Take the Torrent Gui ... or develop a new one .. its hard ...
Security is the top level to develop ... some passwords that only the real OA user (i mean the person ) use it :)
Or .. develop a new password : universal for OA Web access and in the second window we use our pass .. and it will be more secure ..
----
Yes its hard i know it ... but it will be great :) .
Logged

Scarya

  • Guest
Re: OA web access
« Reply #4 on: January 30, 2010, 01:04:10 PM »

Hi Devil's Hand,

I'd like to participate ;-)
I'm doing php for about 8 years and java for about 3 years.

What I would/could do:
- building webUI
- serverside backend
- client-server communication (maybe xml-rpc?)
- anything else ;-P

If you're interested we could have a talk? (Board PM, irc, icq)

Greetings,

Scarya
Logged

merrit

  • Guest
Re: OA web access
« Reply #5 on: March 13, 2010, 10:42:09 AM »

I work with http://www.teamviewer.com/de/index.aspx. It works realy good.
Logged

kamtec11

  • Guest
Re: OA web access
« Reply #6 on: April 08, 2010, 12:56:42 AM »

Hi to all .
OK .. my answers .
1) team viewer= not good .
I mean ... in iphone ...
in that phone you got other apps that do there job more good and not wasting RAM/CPU by running that progr. in process list .
But 1 problem ... if i got only max connection in phone 1Mb ... its not good ... by the mean time i have in PC 5Mb down / 512kb up  .
The apps not so good because you need to connect PC ... and this is not heandly ..
2) Devil , yes ... but you can take this tech. from utorrent and many more "free" based programs ... and do some testing with OA by add some things for the first time .... i mean logs / massages ... and etc etc .. by the time you will see and create the perfect program .
Yes . you need to find some port that can allow us to connect to OA web access , by ip and port :
http://xxx.xxx.xxx.xxx:xxxx
and do it like an OA ... unblock in firewall etc.
P.S. OA web access is to phones especially i think .. and by this the tech. need to be that the phones can support and i mean universal ...
web interface take from other programs ... not so bad :)
I can help you ... but i am not a programmer or that writes php .. ...  i am just sysadmin ... or just network engineer .. i will help in that way that i know it :) i mean that i know .
3) Log me in ... CRAZY ... :)
P.s. CRAZY !!
I will eat my phone and not to use that program .
4) Yes .... this will use not all OA users .. but i think you need to do voiting in OA soft ... i mean voiting in program itself .
Its not a problem for you . but it will change a lot ... and you see that ...
5) Like said couple of users ... i can donate too ...
and it WILL HELP to user comfort to do OA web access ,
6)  team .. not problem ... i can get you a team .. but they are sysadmins like me ..

 You can send me PM or mail ... its not problem to you ... or better to post down her :)
thx.
Logged

KEnny212

  • Guest
Re: OA web access
« Reply #7 on: June 12, 2010, 03:44:47 PM »

Its an Old thread but i thought about this problem for a long time. I have 2 solutions so listen.

1. You can make a webpage with xampp on your pc , its very simple and with a guide everybody can do it. I´m not sure but you can open the account window with the "standart Browser"(german i think the english translation is "default Browser"). So the idea is. You load this page with xampp on your webpage on the PC and than you can open this page from everywere in the world  IF you have your ip.(If you have a Static ip its always the same)
Problem with this solution is that you can´t change options you just see the results.

2. Is a Programm working like a RAT(remote admin tool) wich make a request on the host pc. I think this is easier to programm ,because you can take a rate source code wich connect to the host. ( I can make this in c# and .net) And for everbody who have no static ip you can make a dyn ip on no-ip.com.

So pls write a answer and no flame!!!
Logged

Devil's Hand

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1,244
    • View Profile
Re: OA web access
« Reply #8 on: June 12, 2010, 04:07:36 PM »

Sorry, but since the original post there was an implementation : http://forum.ogameautomizer.com/index.php/topic,405.0.html
The main problem currently is : http://forum.ogameautomizer.com/index.php/topic,496.0.html
Currently testing solutions to get it full stable, and when done, feature implementation would really be a piece of cake.
Logged

Memnoch

  • Full Member
  • ***
  • Offline Offline
  • Posts: 228
    • View Profile
Re: OA web access
« Reply #9 on: February 10, 2011, 03:11:50 AM »

Any progress on this?

I'd really like to see the bots java GUI go byebye, and be replaced with a web GUI. This way I could run it off my dual core atom CPU'd NAS. It would be one less computer I need to keep on all the time. I'll donate $30 euro's if this gets done. I just donate 10 Euro's a few minutes ago for adding combat sims to incoming attacks, like I said I would months back :)
Logged

Devil's Hand

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1,244
    • View Profile
Re: OA web access
« Reply #10 on: March 08, 2011, 08:18:22 PM »

Currently, all proposition of help has been deadends, so no progress on web interface, communication interfaces are there and working well, the gui can be implemented by PHP or with java web kits using web services. Both can be provided for the developement, but I think that no much peaple are interested in it, without saying that it's a big amount of work to redo a gui. So I work on it time to time myself, but it's not a priority as feature, also there is some work on a headless(no gui) mode it have to be finished first with all feature tested before starting inmplementing web gui...

Message sent to kohones no answer received :

There is a topic about:
http://forum.ogameautomizer.com/index.php/topic,263.0.html
since than I've implemented an initial part, currently we are at the point
3. Need to define a scope of features available in web interface.
You can share are ideas on the forum with other users to get the most needed feature that have to be available in webGUI,
when it would be defined enough I will setup a (isolated/protected) environment for you that way you will be able to implement and test it.
For me the webGui have to be quite minimalistic (screen resolution) to get ran in web browsers on smart-phones, mainly using ajax dynamics, if you have already an activated account you can see the current draft version in OA account manager : OA Web Manager (Draft), here how it works technically:
http://forum.ogameautomizer.com/index.php/topic,405.0.html

Here the code source of what you see on OA Web Manager (Draft) : Tabs.
Code: [Select]
<!-- Tabs -->
<div id="tabs">
<ul>
<li><a href="#tabs-1">Fleet Monitor</a></li>
<li><a href="#tabs-2">Planets</a></li>
<li><a href="#tabs-3">Log</a></li>
</ul>

<div id="tabs-1">
<?php
foreach ($fleets as $key => $value){
echo 
"<div class=\"".$value->type."\">";
echo 
"[<span id=\"countdown".$value->time."\"></span>] ";
echo 
$value->fromPlanet." -> ";
echo 
$value->toPlanet." ";
echo 
$value->mission;
echo 
" : ".$value->fleet."<br>";
echo 
" (".$value->resources.")<br>";
//echo $value->eventId."<br>";
echo "</div>\n";
}
//echo "<br>";
?>

</div>

<div id="tabs-2">
<?php
$i 
0;
foreach (
$planets as $key => $value){
echo 
$value->name;
echo 
" [".$value->coord->galaxy.":".$value->coord->system.":".$value->coord->planet."]".(java_values($value->coord->planetType) === " Moon" "");
echo (
java_values($value->technologyTime) > " (R<span id=\"countdown".$value->technologyTime.$i."\"></span>)" "");
echo (
java_values($value->buildingTime) > " (B<span id=\"countdown".$value->buildingTime."\"></span>)" "");
echo (
java_values($value->shipTime) > " (S<span id=\"countdown".$value->shipTime."\"></span>)" "");
echo 
"<span id=\"resources_metal".$i."\" style=\"margin-left:30px;\">".$value->metal."</span>";
echo 
"<span id=\"resources_crystal".$i."\" style=\"margin-left:30px;\">".$value->crystal."</span>";
echo 
"<span id=\"resources_deuterium".$i."\" style=\"margin-left:30px;\">".$value->deuterium."</span>";
echo 
"<span style=\"margin-left:30px;\">".str_replace("\n"", "$value->shipsString)." ".str_replace("\n"", "$value->desensesString)."</span>";
echo 
"<br>\n";
$i++;
}
//echo "<br>";
?>

</div>

<div id="tabs-3">
<?php
echo str_replace("document.location.href"""str_replace("\n""<br>"$client->getLogsString()));
?>

</div>
</div>

Here the source code of what you see on OGame Web access (redirection page):
Code: [Select]
<?php
if($_GET['q'] == true){
//echo "Q=".base64_decode(rawurldecode($_GET['q']));
//echo "<br>";

$post "";
foreach ( 
$_POST as $key => $value ) {
//$post = $post.$key."=".$value."&";
if(strlen($post) == 0$post $key."=".$value;
else 
$post $post."&".$key."=".$value;
}

set_time_limit(20);
if((
strlen(strstr(base64_decode(rawurldecode($_GET['q'])), "page=overview")) > 0) ||
(
strlen(strstr(base64_decode(rawurldecode($_GET['q'])), "page=resources")) > 0) ||
(
strlen(strstr(base64_decode(rawurldecode($_GET['q'])), "page=station")) > 0) ||
(
strlen(strstr(base64_decode(rawurldecode($_GET['q'])), "page=research")) > 0) ||
(
strlen(strstr(base64_decode(rawurldecode($_GET['q'])), "page=shipyard")) > 0) ||
(
strlen(strstr(base64_decode(rawurldecode($_GET['q'])), "page=defense")) > 0) ||
(
strlen(strstr(base64_decode(rawurldecode($_GET['q'])), "page=fleet1")) > 0) ||
(
strlen(strstr(base64_decode(rawurldecode($_GET['q'])), "page=galaxy&")) > 0) ||
(
strlen(strstr(base64_decode(rawurldecode($_GET['q'])), "page=alliance")) > 0) ||
(
strlen(strstr(base64_decode(rawurldecode($_GET['q'])), "page=messages&")) > 0)) {
echo 
str_replace("</head>""</head><iframe width=\"80%\" height=\"45\" src=\"controls.php\"></iframe>"$client->getPage(new java("java.lang.String""/game/".base64_decode(rawurldecode($_GET['q']))), $post));
} else {
echo 
$client->getPage(new java("java.lang.String""/game/".base64_decode(rawurldecode($_GET['q']))), $post);
}
//echo $client->getPage(new java("java.lang.String", "/game/".base64_decode(rawurldecode($_GET['q']))), $post);
set_time_limit(10);
} else {
$post "";
set_time_limit(20);
echo 
$client->getPage(new java("java.lang.String""/game/index.php?page=overview&session=".$session), $post);
set_time_limit(10);
}
?>


If you are interested you are welcome to continue that by email : ogameautomizer {at} gmail.com

Best regards,
Andrew K.
Logged

kohones

  • Newbie
  • *
  • Offline Offline
  • Posts: 2
    • View Profile
Re: OA web access
« Reply #11 on: March 11, 2011, 11:11:38 AM »

hey devils hand,

your message was somehow encrypted... at least i was not able to read your code tags. well i'm willing to help coding the web GUI.
i don't have to much time to work on it as i'm having a daughter but i can spend at least one hour a day... i think this is enough to keep it running in near future.
Logged
 

Page created in 0.114 seconds with 19 queries.