[SCRIPT] Advanced Mineral Scanner v1.31 09/12/06
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
-
- Posts: 47
- Joined: Wed, 30. Nov 05, 05:16
Here's some tips. For performance, use either of these 2 commands found in universe section:
Either of those will probably be faster. One is sector based and one is universe based so you'll have to decide which you want. Also, you have the wait in the innermost loop. This is a bad spot for several reasons. First, during the scanning the current ship could be destroyed. This is best solved by checking if the ship exists once, then scanning all asteroids with no wait. Second, you wait whether or not an asteroid has been scanned or not. And a few minor reasons.
Also, you should check whether or not the sector exists before trying to scan there.
There's a lot of other stuff that could be improved, but I'll let you figure it out on your own.
Code: Select all
$= get ship array of race Player clsas/type Ship
Code: Select all
$= $sector-> get player owned ship array from sector
Also, you should check whether or not the sector exists before trying to scan there.
There's a lot of other stuff that could be improved, but I'll let you figure it out on your own.
Thanks for browsing through my code AalaarDB, really appreciated.
The wait stays where it is though. I put it there intentionally (unless it can be done differently) (Yea I've read Burianek's post too) Also you should not assume I'll figure things out on my own, I'm still an amateur scripter.
Anyway before I update, I'd like to fix/improve as much as possible. So any or all issues should be posted ASAP. This I do to not annoy anyone with frequent updates.
The wait stays where it is though. I put it there intentionally (unless it can be done differently) (Yea I've read Burianek's post too) Also you should not assume I'll figure things out on my own, I'm still an amateur scripter.
Anyway before I update, I'd like to fix/improve as much as possible. So any or all issues should be posted ASAP. This I do to not annoy anyone with frequent updates.
-
- Posts: 16
- Joined: Sat, 22. May 04, 18:39
-
- Posts: 16
- Joined: Sat, 22. May 04, 18:39
What's up with this?
"This package file was created by a newer version. You need version 2.00 to install it."
I assume this means version 2.00 of Cycrow's installer, but there is no such thing. Not released anyway.
"This package file was created by a newer version. You need version 2.00 to install it."
I assume this means version 2.00 of Cycrow's installer, but there is no such thing. Not released anyway.
Last edited by klaatu on Wed, 25. Jan 06, 23:50, edited 1 time in total.
"It's so simple. No, wait--it's needlessly complex!"
- Homer Simpson
You need this!: Cargo Delivery Service
- Homer Simpson
You need this!: Cargo Delivery Service
No thanks. Betas are supposed to be used only by testers, and it doesn't seem right to me that a released package should require use of a beta installer. I'll wait until it's out of beta.A dJ wrote:Sorry should have mentioned, grab v1.23 Beta.
"It's so simple. No, wait--it's needlessly complex!"
- Homer Simpson
You need this!: Cargo Delivery Service
- Homer Simpson
You need this!: Cargo Delivery Service
OK, something strange. Using new Script Installer 1.30, and if I try to install this script when the .spk file has the name 'X3-AMS-122.spk' I get an error message from the Script Installer that says 'unable to open script package'. If I rename it to 'AMS-122.spk' it installs fine. I tried it several times, deleting the file and redownloading it even, all with the same results. Even renaming the file back to the default name and the error comes back. Very strange. Only thing I can think of is some sort of weird bug in the Script Installer program. Oh well...
"It's so simple. No, wait--it's needlessly complex!"
- Homer Simpson
You need this!: Cargo Delivery Service
- Homer Simpson
You need this!: Cargo Delivery Service