It sounds possible, Andy. I did not write the script, so your debugging effort could be as good as mine.

Mark your changes with comments and let me know the results. If you track it down, then I will add the fix to the next update.
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
Code: Select all
* BEGIN EDIT AndyR
* get ships maximum hull ammount
$maxhull = $ship->get max hull
* get ships current hull ammount
$curhull = $ship->get hull
* if our current hull is the same as max hull then we are undamaged and good to calculate the correct ammount of tunings
if $curhull == $maxhull
$free = $ship->get amount of ware {Engine Tuning} in cargo bay
$upgrade = $ship->get max upgrades for upgrade {Engine Tuning}
$math = $upgrade - $free
$cost = $math * $et.uc
* if our hull is less than the max hull value then our ship is damaged and wont give us the correct ammount of tunings installed
else if $curhull < $maxhull
* so lets set the ships hull to the max ammount in order to correctly calculate the number of tunings we can install
$ship->set hull to $maxhull
$free = $ship->get amount of ware {Engine Tuning} in cargo bay
$upgrade = $ship->get max upgrades for upgrade {Engine Tuning}
$math = $upgrade - $free
$cost = $math * $et.uc
* ammount of tunings have been set now so we can return the ships hull back to its origional value
$ship->set hull to $curhull
* END EDIT AndyR Below is origional block of code
* $free = $ship->get amount of ware {Engine Tuning} in cargo bay
* $upgrade = $ship->get max upgrades for upgrade {Engine Tuning}
* $math = $upgrade - $free
* $cost = $math * $et.uc
Code: Select all
* BW: ===================================
$jdk = get global variable: name='deliver.jd.jdk'
if not $jdk
write to player logbook 'plugin.deliver.jd.install: Please re-run setup.plugin.deliver.jd'
return null
end
* BW: ===============================
Code: Select all
$free =-1
$math = $upgrade - $free
Hence why I loaded up all the missing files it is referring to thinking it would then see them and save the file in question, but no such luck lolSaving file...
Save failed because of compilation errors - please compile again
Save failed due to compilation errors!
- Error during jump finalising - there are jumps remaining without destinations. Check that all if/whiles/gotos etc have corresponding ends/labels etc.
Warnings:
Script 'plugin.deliver.jd.lsm' does not seem to exist! (line 122)
Script 'plugin.deliver.jumpdrive.getware' does not seem to exist! (line 129)
Script 'plugin.deliver.jd.wings' does not seem to exist! (line 132)
Script 'plugin.deliver.jd.getlists' does not seem to exist! (line 148)
Variable free is being used on line 156 before being assigned to.
Script 'plugin.deliver.jd.fillup' does not seem to exist! (line 180)
Script 'plugin.deliver.jd.getlists' does not seem to exist! (line 184)
Script 'plugin.deliver.jd.fillup' does not seem to exist! (line 214)
Script 'plugin.deliver.jd.getlists' does not seem to exist! (line 218)
Script 'plugin.deliver.jd.fillup' does not seem to exist! (line 286)
Script 'plugin.deliver.jd.getlists' does not seem to exist! (line 301)
Script 'plugin.deliver.jd.fillup' does not seem to exist! (line 331)
Script 'plugin.deliver.jd.getlists' does not seem to exist! (line 335)
Script 'plugin.deliver.jd.fillup' does not seem to exist! (line 360)
Script 'plugin.deliver.jd.getlists' does not seem to exist! (line 375)
Script 'plugin.deliver.jd.fillup' does not seem to exist! (line 405)
Script 'plugin.deliver.jd.getlists' does not seem to exist! (line 412)
Comment on line 420 contains XML symbols such as &, < or >. X3 cannot handle these symbols properly so it is recommended that you avoid using them.
Comment on line 422 contains XML symbols such as &, < or >. X3 cannot handle these symbols properly so it is recommended that you avoid using them.
Script 'plugin.deliver.jd.fillup' does not seem to exist! (line 439)
Script 'plugin.deliver.jd.getlists' does not seem to exist! (line 444)
Script 'plugin.deliver.jd.getlists' does not seem to exist! (line 453)
Script 'plugin.deliver.jd.getlists' does not seem to exist! (line 459)
Script 'plugin.deliver.jd.getlists' does not seem to exist! (line 468)
Script 'plugin.deliver.jd.getlists' does not seem to exist! (line 474)
Script 'plugin.deliver.jd.malf' does not seem to exist! (line 487)
Could not check parameters for call to: lib.bw.breakpoint: file not found. (line 495)
Script 'lib.bw.breakpoint' does not seem to exist! (line 495)
Code: Select all
Error during jump finalising - there are jumps remaining without destinations. Check that all if/whiles/gotos etc have corresponding ends/labels etc.
Code: Select all
if <condition>
<do something>
end
Code: Select all
0023 * EDIT AndyR
0024 * $free = $upgrade - $chk
0025 $free = $upgrade - $chk - 1
0026 * ----------
I will do exactly that, Andy, thanks.Andyrids wrote:[you] can make note of that and stick it in the next update if you wish to do so.
*PUNCH* - OW! -DrBullwinkle wrote:I wouldn't know.
And please punch yourself for asking.
- (The script itself will work -- maybe. You may want to change the equipment packs by editing getlists. By default, I include a jump drive with any package -- I do not recall whether the script checks if a jump drive can be mounted. Try it and let the rest of us know your results.
)
Could this lead to the error?
I think I have the kitDrBullwinkle wrote:You want to buy upgrade kits. Several of them. Not a jump drive, right?
DrBullwinkle wrote: The AL Plugin just keeps the factory running.
I ment the missing command in the ship menu...DrBullwinkle wrote:Could this lead to the error?
What error? You didn't report an error.![]()
I did not get to Getsu Fune yet, will check when I get there.DrBullwinkle wrote: If there are no upgrade kits at the factory in Getsu Fune, then I would suspect a problem with installing the custom ware. The Plugin Manager should handle that. (If that turns out to be the problem, then I can tell you how to work around it.)
Well, that won't work (unless EMP is built into XRM).Nicoman35 wrote:Additional note:
I installed the kits as a fake patch, not with the Plugin Manager.