 |
View previous topic :: View next topic |
 |
|
|
|
|
Author |
Message |
|
|
|
|
|
Logaan

Joined: 08 May 2004 Posts: 1322 on topic Location: UK, Wiltshire

 |
Posted: Sat, 13. Nov 04, 18:26 Post subject: X2 Stats [NEWS UPDATE - 04 MAR 2005] |
|
|
X2 Stats is here!
The new site now has facilities to handle tech support and has all the tutorials you need
Last edited by Logaan on Fri, 4. Mar 05, 20:48; edited 23 times in total |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
XU Vagabond

Joined: 06 Feb 2004 Posts: 547 on topic Location: scotland

|
Posted: Sat, 13. Nov 04, 18:33 Post subject: |
|
|
looks good logaan it will be alot easier used than update you're sig all the time.
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
bladeuk

Joined: 08 May 2004 Posts: 1488 on topic Location: UK

|
Posted: Sun, 14. Nov 04, 06:07 Post subject: |
|
|
Ive already said how good a job hes done, but id like everyone else to know what i think of this, its excellent, its worked out profits for all my stations, how much my companies worth ( 4,296,956,849 ) and everything i need to know about my company.
Brillaint job, keep it up!
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Logaan

Joined: 08 May 2004 Posts: 1322 on topic Location: UK, Wiltshire

|
Posted: Thu, 18. Nov 04, 23:54 Post subject: |
|
|
Some players found some issues which I hope the latest changes would sort out.
Im currently working on a Ranks Sig Image at the moment, using the real rank images from the game ( http://logaans-site.co.uk/x2/gamestats/ranks/ranks.html )
So keep those bug reports and suggestions coming 
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
XU Vagabond

Joined: 06 Feb 2004 Posts: 547 on topic Location: scotland

|
Posted: Fri, 19. Nov 04, 00:11 Post subject: |
|
|
logaan i have noticed that the script dose not see ships sitting in stations e.g. you buy a TS then leave it in the station. Then save you're stats that ship dose not show up in the log. untill it's out in space
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Logaan

Joined: 08 May 2004 Posts: 1322 on topic Location: UK, Wiltshire

|
Posted: Fri, 19. Nov 04, 02:38 Post subject: |
|
|
It should do,
| Code: |
079 * Get List of Ships From Station
080 $ShipList = $CurrentSt -> get ship array from sector/ship/station
|
That should get all the stations from that Object, which is Current Station.
I did have problems earlier where it would miss ships because they would be in the station when my script checked the sector, then go outside on a job, just as my script would check inside.
Which is why the first line sets the Priority high so it gets priority during its run and shouldnt be interupted. I know its not the most effcient method but its all i can do at the moment
Since this is my first script I dont know what else i can do
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
LV Moderator


Joined: 06 Nov 2002 Posts: 5581 on topic Location: The Dark Side

|
Posted: Fri, 19. Nov 04, 10:36 Post subject: |
|
|
| Code: |
| $landedcheck = $station -> find ship: class or type=Boron Dolphin race=Pirates flags=$anull refobj=$anull maxnum=$anull with homebase=$station |
use the bottom find ship command and choose the station it will search on instead of the one near the top of the general commands list
_________________ Simple and Free Script Hosting
LV's TC Scripts
You Post, Therefore I Am.... (in spain at the moment) |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Logaan

Joined: 08 May 2004 Posts: 1322 on topic Location: UK, Wiltshire

|
Posted: Fri, 19. Nov 04, 13:46 Post subject: |
|
|
But id have to do that for each dockable class, and then again when it comes to searching the ships docked in other ships
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Flector

 
Joined: 06 Dec 2003 Posts: 543 on topic

|
Posted: Tue, 23. Nov 04, 23:33 Post subject: |
|
|
Logaan, I have some good news and some bad news.
The bad news is that your script doesn't return all ships! I tested it and it returned 429 ships, though it should have returned 578 ships.
The good news is that I have been working on a statistics script myself , and I am willing to help you.
My script is by no means finished but it does correctly return all ships .
What I basically do is loop through all sectors. For every sector I will search for all flying player owned ships. For every sector I will also search for every station. Then I loop through all stations and find all player owned docked ships. For all the ships I have found at that point I will also check if they carry any ships themselves.
_________________ X2: Advanced Magnate, Ace of Aces 1st grade
X3R: Master Economist, Crusader
X3TC: Magnate, X-TREME
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Logaan

Joined: 08 May 2004 Posts: 1322 on topic Location: UK, Wiltshire

|
Posted: Wed, 24. Nov 04, 01:00 Post subject: |
|
|
Brilliant
That was the same logic to my script but it doesnt work properly, TBH I havnt had time to look at it and sort it out recently.
Would it be in a similar output format to the script I wrote?
EDIT: Just realised i didnt put an example of the script in:
The Script
The Text File
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Flector

 
Joined: 06 Dec 2003 Posts: 543 on topic

|
Posted: Wed, 24. Nov 04, 15:12 Post subject: |
|
|
At first glance both the source and outputs of our scripts appear to be quite different.
Here's what I propose: since I really like your idea of using a script to automatically generate signatures and generate all different kind of stats and rankings on your webpage, I will offer to take a look at the source of your script and try to correct it. Off course, only if you allow me to ....
_________________ X2: Advanced Magnate, Ace of Aces 1st grade
X3R: Master Economist, Crusader
X3TC: Magnate, X-TREME
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Logaan

Joined: 08 May 2004 Posts: 1322 on topic Location: UK, Wiltshire

|
Posted: Wed, 24. Nov 04, 15:17 Post subject: |
|
|
Sure, go ahead, anything that will improve the service, and you are welcome to an account on the stats site (if you dont already have one)
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
cynric
Joined: 15 Dec 2003 Posts: 353 on topic

|
Posted: Wed, 24. Nov 04, 15:42 Post subject: |
|
|
It looks like only khaak ships are missing, the script found only one khaak scout, but I have a few fighters + more than one scout at the moment.
Looks great otherwise 
_________________ [url=http://www.logaans-site.co.uk/x2/gamestats/stats.php?user=cynric]
[/url] |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
GaddyG
Joined: 19 Feb 2004 Posts: 500 on topic Location: Castle Donington UK. Home Of Dodgy Rock Concerts And Fast Cars... (and me, oddly enough)

|
Posted: Wed, 24. Nov 04, 17:25 Post subject: |
|
|
nice little script...
seems to be picking up everything i have except the ships in stations...
which has been mentioned...
_________________ It's The End Of The World As We Know It, And I Feel Fiiiiiiiine... |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Logaan

Joined: 08 May 2004 Posts: 1322 on topic Location: UK, Wiltshire

|
Posted: Wed, 24. Nov 04, 18:45 Post subject: |
|
|
There are odd bits and bobs that are still a bit buggy, but they can only be found through testing so thanks to all who are participating
| cynric wrote: |
It looks like only khaak ships are missing, the script found only one khaak scout, but I have a few fighters + more than one scout at the moment.
Looks great otherwise  |
Slight problem that i know about is that if you dont have a the Khaak Ship specs then they will show as Unknowns or Other
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
|
|