X3RPM - Remote Property Management - v0.7 - New Download Link

The place to discuss scripting and game modifications for X³: Reunion.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

X3RPM...

Is hotter than the dark side of the Sun
62
67%
Just broke every thermometer in my house
12
13%
Could fry an egg on my monitor
7
8%
Keeps my drinks cold all day long
4
4%
Makes even the Eskimos shiver and get more clothes
7
8%
 
Total votes: 92

User avatar
nuclear_eclipse
Posts: 1129
Joined: Thu, 2. Sep 04, 01:54
x3tc

X3RPM - Remote Property Management - v0.7 - New Download Link

Post by nuclear_eclipse » Thu, 24. Nov 05, 04:33

I present to you the ultimate in remote management capabilities:

X3RPM now allows you to remotely monitor and manage your empire while you are away from your computer. Check your game's status from work, school, or anywhere with an Internet connection, and send commands, modify settings, or tweak your ships and stations without even being at home!

This latest version offers you the ability to view detailed statistics about your empire, see a propety listing with all of your stations and ships, view a version of the galaxy map and interactively select sectors and see what's in them, all from the comfort of your favorite web browser.

However, this is still a PRERELEASE version, and not all of the planned features are implemented yet. Read more about this in the readme file. Also of note is that with the current implementation, you MAY receive 'RPM Host Offline' results even though the RPM Host is indeed running. The cause of this can be ship moving out of sector without updates from the RPM Host, delays in script or code execution, log files not being cleaned up properly, etc. These will be top-priority fixes for the final release version, but for now, can simply be ignored by returning to the property or universe pages and continuing from there so that caches refresh and such.

*Version Note* - X3RPM is now released in three different flavors:

X3RPM Full Version (6.4 MB) - This release includes every file necessary to run X3RPM without any major tweaking or management from the user. Simply extract files to the proper directories and install the X3RPM service (See the Readme) and you should be ready to go.

X3RPM Update Version (83 kB) - This release only includes files updated since the previous version of X3RPM. If you have a working installation of the last version (currently v0.2), you can safely install this over top the old version, restart the X3RPM service, restart the X3RPM Host ingame, and you should be set to go.

X3RPM Admin Version (63 kB) - Designed for those who already have running webservers (Apache, IIS, etc). Extract the script and t files into X3 and the htdocs files into the appropriate directory of the webserver, and everything should work. *NOTE* - You MUST be using PHP version 5.0.5 or newer, or else X3RPM *WILL NOT* function properly.

Download (Full Version Only):
http://leetcode.net/files/x3rpm-0.7-full.rar

README:

Code: Select all

****** X3RPM - X3 Remote Property Management ******

Created by: John Reese (Nuclear_Eclipse)
Current Version: 0.7 - 2005-12-08

***************************************************

What It Is:

X3RPM is a remote management utility that allows a
user to view statistics, property lists, galaxy and
sector maps, and more from any web browser with 
access to the internet.  The ability to remotely 
command and manage ships and stations is also a 
major feature of the RPM suite.  All information is
updated live from the current X3 session, and is 
fed to the website for instant updates.

X3RPM utilizes two technologies to deliver content:
 - Apache 2.0.55
 - PHP 5.0.5

It creates a web server on the host machine, which
listens for connections on port 7800.  It then uses
php pages to communicate with special scripts in X3
to deliver live information.

It does require the user to run a script in X3 via
a command on either a ship or a station.  This 
allows the script to have two-way communication 
with the php pages via log files and text files.

NOTE:  The property, universe, and sector pages 
require a running copy of X3 with a station or ship
running the 'X3 RPM Host' command in order to 
function.  The Statistics page only requires the
'X3 RPM Host' command to have been run at some 
point in the past.

***************************************************

Features:

- View game statistics
- View a list of player-owned property
- View a map of the currently explored universe
- View sector's listing of ships and stations
- View detailed information for stations, including
    monetary data, products and resources, docked
    and owned ships, and more.
- View detailed information for ships, including
    pilot, sector, homebase, performance stats, 
    freight bay contents, current command status, 
    docked, and owned ships.
- Change station and ship names and settings
- Give commands to ships for just about anything

- View X3RPM from any internet capable PC
- No need to have X3 installed on remote systems
- Compatible with any X3 modification or galaxy

- Allows for changeable layouts and themes a la CSS

***************************************************

Limitations:

- Statistics are not 100% live, which allows stats
  to be accessed even when the game isn't running;
  Instead, stats are updated every few seconds.

- Universe map does not highlight sectors only
  containing player ships that are docked, mainly
  due to limitations of the X3 script editor.
  (Workaround planned for final release)

- Finding ships can be troublesome if the ship 
  changes sectors.  Limited  searching is in place,
  but if the ship has moved more than a couple
  sectors away since the last update, returning to
  the property screen will be necessary to locate
  the ship once more.

***************************************************

Planned Features:

- Online documentation

- Live statistics signature image (a la Logaan)

- Fix the Universe map highlight issue (workaround)

- Allow the player to trade with stations from RPM

- Figure out serialisation so that ship searching
  no longer is necessary

- Calculate proper interpretations for Rank stats
  so that the stats page wont have all those 
  blasted xxxx entries...

- Possibly a shoutbox of sorts to allow for users
  to leave comments or communicate with others

***************************************************

Installation:

- Extract the .rar contents into your X3 Reunion
  folder.  You may move the 'x3rpm' folder to 
  anywhere you prefer at this point ONLY.
- Modify the 'x3rpm/htdocs/inc/func.php' file in
  WordPad so that the file points to your X3 root
  directory (already correct for DeepSilver copies)
- Run the 'x3rpm/x3rpm-install.bat' file to create
  a service for the X3RPM program to start on its
  own when windows starts
- Run the 'x3rpm/x3rpm-start.bat' to start X3RPM
  (This is only required the first time, or if you
  specifically stop the X3RPM service later)
- Open up your router/firewall/NAT for port 7800
- browse to http://localhost:7800 (You're Done)

***************************************************

Using X3RPM:

- You must have the X3RPM service running to use
  X3RPM.
- Make sure you have properly set the 
  'x3rpm/htdocs/inc/func.php' file to point to your
  X3 directory
- Start X3
- Go to the command console for a ship or station
  (Recommend using a station as the script host)
- Choose a command slot that is empty, and select
  the 'X3 RPM Host' command
- You're done.  You can now view your X3RPM pages
  from a different computer.
- The default username/password combination is
  'x3rpm'/'password' - You can change the password
  via the 'x3rpm/x3rpm-change-password.bat' file,
  which will then require a restart of X3RPM.

NOTE:  Make sure you run the 'X3 RPM HOST' on only 
ONE ship or station in X3.  If you have multiple
instances of the host script running, you WILL 
have issues.

***************************************************

Uninstallation:

- Stop the 'X3 RPM Host' script in your X3 savegame
- Run the 'x3rpm/x3rpm-stop.bat' and 
  'x3rpm/x3rpm-uninstall.bat' programs
- remove the 'x3rpm' directory
- remove 't/447850.xml' and 't/447851.xml'
- remove all *.nuke.rpm.* scripts

***************************************************

Compatibility:

- Uses 447850.xml and 447851.xml text files
- Uses 7850 and 7851 text pages
- Uses command slot 1150 and 1250
  (COMMAND_STATION_50 and COMMAND_SHIP_50)
- Uses log07850.txt thru 07999.txt log files


***************************************************

History:
 
 - v0.7 - 2005-12-08 - Public Release
   - First release to offer three versions:
       Full - Includes everything
       Update - All files changed from 0.2
       Admin - For current website admins
   - Ship finding routines optimized and extended
     to allow RPM to find ships that have moved to
     adjacent sectors
   - New CSS stylesheet implementation used, allows
     for easily switching to a different stylesheet
   - Default stylesheet updated to utilize icons
     unique to every ship/station class

 - v0.6 - 2005-12-05 - Internal Release
   - Ship information and command system completed
   - More detailed information placed into the 
     propety menu, including station resources and 
     ship environments

 - v0.4 - 2005-11-30 - Internal Release
   - Station information and commands completed
   - Basic ship info in place
   - Fixed issues with deleting/detecting log files

 - v0.2 - 2005-11-23 - Initial Release
 

***************************************************
Last edited by nuclear_eclipse on Tue, 15. May 07, 17:40, edited 4 times in total.

Galaxy613
Posts: 3285
Joined: Tue, 28. Dec 04, 02:19
x4

Post by Galaxy613 » Thu, 24. Nov 05, 04:45

:o Can this be true? With this we might be able to make XMail! Which will basicly work like email... somehow... it'll just send a message to the person you type in... so crazy it might just work!

HOLY CRAP! Just checked out your site thing, this is damned sweet! :o :o Great work!!
Last edited by Galaxy613 on Thu, 24. Nov 05, 04:48, edited 1 time in total.
10,000 Lightyears of awesomeness

scoochy
Posts: 302
Joined: Fri, 28. Oct 05, 19:50
x4

Post by scoochy » Thu, 24. Nov 05, 04:46

Pretty sweet. And being able to command away from the computer is going to make work go buy MUCH quicker :twisted:
System Specs:
P4 3.00 ghz HT
256mb PCI-E 6800gt 78.01 drivers
2 gig ram/4 512 meg sticks
SB audigy gamer sound card
Albatron socket 478 MB w/ PCI-E slot

User avatar
Matt Armada
Posts: 205
Joined: Mon, 21. Mar 05, 13:46
x4

Post by Matt Armada » Thu, 24. Nov 05, 08:01

good, so during my lunch break at school, trudge thru class, go to livrary during break, tell my empire to blow up a sector, come home, VIOLA, sector cleared and ready for use :D..

Now sumtin like this..i duno..a like 1 sector online area totally empty you can meet with other people and like trade em stuff..might be a bit hard but simpleish....would be cool just to have that much interaction n no more.....

StarDragon99
Posts: 101
Joined: Mon, 5. Jul 04, 00:26
x3

Post by StarDragon99 » Thu, 24. Nov 05, 08:09

this is the best idea ever, If only i'd have had something like this for x2 it would have made it so much easier.
X2:
Pan-Galactic Tycoon
Supreme Veteran

X3R:
Warlord
Capitalist

doubleshadow
Posts: 671
Joined: Fri, 12. Mar 04, 08:14
x3

Post by doubleshadow » Thu, 24. Nov 05, 08:57

Now that's an example what can happen if you are crazy enough :D

Really cool 8)

bendyspex
Posts: 837
Joined: Tue, 13. Apr 04, 10:39
x3

Post by bendyspex » Thu, 24. Nov 05, 09:08

:o That is amazing. So now that we can incorporate web usage into the game, maybe we will be able to take it one step further and have all the people that are on linked into a chat server, or maybe have people send each other missions. That might just be impossible though.
Good work

RaGodofTehSun
Posts: 417
Joined: Thu, 23. Dec 04, 03:02
x3

Post by RaGodofTehSun » Thu, 24. Nov 05, 11:05

you sir are a GOD among men

Lofte
Posts: 45
Joined: Thu, 4. Dec 03, 12:17
x3

Post by Lofte » Thu, 24. Nov 05, 11:43

Great idea, but i have a few questions.

1) Is it possible to change the listening port?, if at work and behind a firewall are there any requirements for open ports at the control end or does it work on port 80.

2)Will the Connection still work when the machine running X3 is on a home network behind a router with it's own IP range?

ie: actual IP is 192.168.1.101, Broadband modem is 202.152.1.143?

Still a great idea, i know how hard it can be to get it working for every possible home/work setup.

Galaxy613
Posts: 3285
Joined: Tue, 28. Dec 04, 02:19
x4

Post by Galaxy613 » Thu, 24. Nov 05, 15:33

bendyspex wrote::o That is amazing. So now that we can incorporate web usage into the game, maybe we will be able to take it one step further and have all the people that are on linked into a chat server, or maybe have people send each other missions. That might just be impossible though.
Good work
This COULD also mean that, with more PHP scripts, we could make our own little 'X3: Online'! :twisted:
10,000 Lightyears of awesomeness

User avatar
nuclear_eclipse
Posts: 1129
Joined: Thu, 2. Sep 04, 01:54
x3tc

Post by nuclear_eclipse » Thu, 24. Nov 05, 16:07

@RaGodofTehSun - I know... ;)

@Lofte:
1) If you open the 'x3rpm/conf/httpd.conf' file, you will find a line that says 'Listen 7800' - If you change this line to read 'Listen 80' or 'Listen XXXX' you can make the server listen on any port you want it to.

2) All you need to do in a home network is set the router for NAT/Port Forwarding to have the specified Listen port forwarded to the machine running the host. Once you do that, outside computers should be able to access the host.

This is actually how my own home is set up - DSL modem links to Router, Router links to 5 computers, one PC is a webserver on port 80, my game tower is hosting X3RPM on port 7800, etc.

@Galaxy613 - It's 'possible' but the amount of imformation that would normally need to be flowing back and forth would be astronomical, and the overhead of attempting such a feat would absolutely kill any semblance of performance. What IS possible, however, would be something like an 'IRC channel' run via the message system in X3, although I don't know how easy it is to get text input from the user....
Wangkhar VIA PM wrote:looks great.

One suggestion though - make a 'business' skin so we can use it at work more... :wink:
If I get some time, I'll try to make a more unassuming theme to make it look a bit more 'non-gaming-like.' But in the meantime, anyone with a bit of CSS knowledge could easily create their own theme for X3RPM, as the entire layout is driven by CSS.

Galaxy613
Posts: 3285
Joined: Tue, 28. Dec 04, 02:19
x4

Post by Galaxy613 » Thu, 24. Nov 05, 16:13

nuclear_eclipse wrote: @Galaxy613 - It's 'possible' but the amount of imformation that would normally need to be flowing back and forth would be astronomical, and the overhead of attempting such a feat would absolutely kill any semblance of performance. What IS possible, however, would be something like an 'IRC channel' run via the message system in X3, although I don't know how easy it is to get text input from the user....
I was sort-of refering to making an X3 Browser game... but that'll be crazy to do. And me personnelly would like to see some type of chat, but I don't really know how/if you can get text from the user either, but I am pretty damn sure you can.
10,000 Lightyears of awesomeness

bendyspex
Posts: 837
Joined: Tue, 13. Apr 04, 10:39
x3

Post by bendyspex » Thu, 24. Nov 05, 17:19

Galaxy, if we ever made X3:online, I would assume egosoft would most likely want to make it official, and then we could have a proper server and support. That would make the game a million times better!

RaGodofTehSun
Posts: 417
Joined: Thu, 23. Dec 04, 03:02
x3

Post by RaGodofTehSun » Thu, 24. Nov 05, 21:52

could you imagine the complexs of an X3 online if a few players put their minds to it :|

unfunfofmpc
Posts: 300
Joined: Sat, 12. Nov 05, 19:37
x3

Post by unfunfofmpc » Thu, 24. Nov 05, 22:41

nice stuff :)

Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22201
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow » Thu, 24. Nov 05, 22:54

cant you bind a script to a command slot that accepts a string
so when u select it, it will as for a string input ?

User avatar
nuclear_eclipse
Posts: 1129
Joined: Thu, 2. Sep 04, 01:54
x3tc

Post by nuclear_eclipse » Fri, 25. Nov 05, 15:01

Cycrow wrote:cant you bind a script to a command slot that accepts a string
so when u select it, it will as for a string input ?
I just looked into this, and no. When you bind a script to a hotkey, all arguments are ignored and entered as NULL... Apparently, the only way to enter a string from the player is by manually initializing a script that asks for script input, which at the same time means they have have the SE up, which blocks all incoming transmissions and keeps them from playing X3...

I think a chat thing will have to be put on hold, as I doubt there is any decent way of implementing it.... :cry:

Galaxy613
Posts: 3285
Joined: Tue, 28. Dec 04, 02:19
x4

Post by Galaxy613 » Fri, 25. Nov 05, 15:30

nuclear_eclipse wrote:
Cycrow wrote:cant you bind a script to a command slot that accepts a string
so when u select it, it will as for a string input ?
I just looked into this, and no. When you bind a script to a hotkey, all arguments are ignored and entered as NULL... Apparently, the only way to enter a string from the player is by manually initializing a script that asks for script input, which at the same time means they have have the SE up, which blocks all incoming transmissions and keeps them from playing X3...

I think a chat thing will have to be put on hold, as I doubt there is any decent way of implementing it.... :cry:
Why couldn't it be a ship command? Surely you can pass agruments to them?
10,000 Lightyears of awesomeness

User avatar
nuclear_eclipse
Posts: 1129
Joined: Thu, 2. Sep 04, 01:54
x3tc

Post by nuclear_eclipse » Fri, 25. Nov 05, 15:56

Galaxy613 wrote:Why couldn't it be a ship command? Surely you can pass agruments to them?
It could be one, that's true, but the problem with that is that you either make it a extra command slot (only two allowed at one time per ship), kinda like the RPM host, or you have to make it a primary command, which then interrupts any autopilot the player is using, not to mention either way still blocks incoming chat messages as well...

It could most certainly be done, I'm not arguing that. What I'm pointing out is that with each possible way, there are tons of annoyances and limitations to the system.

What I'd like to see, would be to have all incoming messages pop up automatically (we can do that), and then to respond, you simply press a hotkey and have a window pop up to enter your string. That would be the nicest way, but is probably not doable.

By doing it through the command console, it would take tons of keystrokes just to get to the point of entering a message, not to mention that the game limits the user to two extra commands at any time, which would rule out the ability of users to run X3RPM, something like MH's AdvJumper's Auto-Jump script, and to chat all at the same time... It would also be even more of a hassle to players like me who fly around in capital ships all the time who have to scroll down even further for the extra command slots.... =\

Vedaran
Posts: 5
Joined: Sat, 3. Dec 05, 20:26
x3

Post by Vedaran » Sat, 3. Dec 05, 20:31

Hello,

This is a great idea, and can't wait to get it to work, but unfortunatly, I'm having a problem. When the property or universe buttons are clicked, sometimes they work, and sometimes they come up with this error message:

Warning: unlink(C:/X3REUNION/log07999.txt) [function.unlink]: Permission denied in C:\X3REUNION\x3rpm\htdocs\inc\func.php on line 86

The statistics page thought works just fine, and I haven't had any problems with it.

Thanks!

Post Reply

Return to “X³: Reunion - Scripts and Modding”