[SCRIPT] Trading Distribution Network V1.01 : Update 04/10/2006
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
Cycrow I have been trying to work out whats going on which isn't easy when you know nothing about scripting . Anyway I checked the debug screen in the script editor and the ship seems to be stuck here :-
Thats from plugin.tdn.returnhome. The code in !move.movetostation that the debug shows is:-
I'm sure you will have more luck.
Cheers
Line 034 - 036 in an endless Loop.026 [THIS] -> set local variable: name='plugin.tdn.status' value='dock'
027
028 $homebase = [THIS] -> get homebase
029 if [THIS] -> get amount of ware Jumpdrive in cargo bay
030 @ = [THIS] -> call script 'lib.cycrow.jumptomax' : Station or sector=$homebase
031 else
032 [THIS] -> set destination to $homebase
033 [THIS] -> set command: COMMAND_DOCKAT
034 while not [THIS] -> is docked
035 @ = [THIS] -> call script '!move.movetostation' : station=$homebase
036 @ = wait 100 ms
037 end
Thats from plugin.tdn.returnhome. The code in !move.movetostation that the debug shows is:-
I haven't worked out why yet but thats not suprising as I have only read a couple of newbie guides.001 skip if $targetstation -> exists
002 return null
I'm sure you will have more luck.
Cheers
well, a simple check to c if the homebase exists should work, althou it should exist anyways
but it might be worth a try
ill add it in the next version, but u can add it the to current version and c if it fixes it.
also, is the return home script actually running in the global scripts ?
but it might be worth a try
Code: Select all
while not [THIS] -> is docked
... (move to station
....(wait)
skip if [THIS] -> exists
break
ship if $homebase -> exists
break
end
also, is the return home script actually running in the global scripts ?
Right gave it a try returnhome now reads:
The return home script is running multiple times in global scripts, at least a few pages full, this may have something to do with it.
But still getting the same result034 while not [THIS] -> is docked
035 @ = [THIS] -> call script '!move.movetostation' : station=$homebase
036 @ = wait 100 ms
037 skip if [THIS] -> exists
038 break
039 skip if $homebase -> exists
040 break
041 end
The return home script is running multiple times in global scripts, at least a few pages full, this may have something to do with it.
New Update 1.01
Just a small update to change the return hom.
Diesel, i would suggest totally reseting the network and using the new version, kill all the global scripts to with plugin.tdn.*
then remove all ships and stations from the network.
then try it again and c if it works any better
Diesel, i would suggest totally reseting the network and using the new version, kill all the global scripts to with plugin.tdn.*
then remove all ships and stations from the network.
then try it again and c if it works any better
Done as you said and it has stopped the global script problem but the other problem
Could be another script interfering I guess.
is still there, I even added another station to see if it would make a difference but no luck.The Caimen sat around doing nothing .
So i stuck 1 unit of space fuel in the LoH station to see if that made a difference, nope Caimen stationary.
So I jumped him to AP Station to see if that would kick start him. Now he is sat in the AP station going between Idle and None and strangely his E-cells are increasing even though the Stations don't stock them.
Could be another script interfering I guess.
Code: Select all
037 skip if [THIS] -> exists
038 break
Run on object:
Code: Select all
034 while [ENVIRONMENT] != [HOMEBASE]
035 @ = [THIS] -> call script '!move.movetostation' : station=[HOMEBASE]
036 @ = wait 100 ms
037 skip if [HOMEBASE] -> exists
038 break
039 end
Code: Select all
while [THIS] -> is docked
[THIS] -> set command: COMMAND_MOVE_SECTOR target=null target2=null par1=null par2=null
@ = [THIS] -> fly to sector [SECTOR]
@ = wait randomly from 200 to 400 ms
end
$ShipTarget == [HOMEBASE] (or another Target)
if $ShipTarget -> is docking possible of [THIS]
if [THIS] -> is docking allowed at $ShipTarget
while [ENVIRONMENT] != $ShipTarget
if $ShipTarget == [HOMEBASE]
[THIS] -> set command: COMMAND_RETURN_HOME target=$ShipTarget target2=null par1=null par2=null
@ = [THIS] -> fly to home base
else
[THIS] -> set command: COMMAND_DOCKAT target=$ShipTarget target2=null par1=null par2=null
@ = [THIS] -> fly to station $ShipTarget
end
@ = wait randomly from 200 to 400 ms
skip if $ShipTarget -> exists
break
end
end
end
LOL I actually understood most of that Lucike I've only been reading bits of scripts for a day or so.
Cycrow, the Logic is working ok apart from one little thing, I dumped some ecells, 1MJ sheilds and SpaceFuel into one Dock and let it do it's thing.
It called the ship ok split the products ok and sent it back to the other Dock (Although no jumping). When it got there however it only dropped the Ecells and Spacefuel and left the Sheilds in the cargo bay? (there was already 1 Sheild in there though and nothing else, so that may have messed something up)
I shouldn't have a problem with space for Ecells for Jumping I'm using a Caimen SF, so hopefully getting the jumping going shouldn't be hard.
I would test a bit more but it takes ages for the Caimen to get from AP to LoH.
Cycrow, the Logic is working ok apart from one little thing, I dumped some ecells, 1MJ sheilds and SpaceFuel into one Dock and let it do it's thing.
It called the ship ok split the products ok and sent it back to the other Dock (Although no jumping). When it got there however it only dropped the Ecells and Spacefuel and left the Sheilds in the cargo bay? (there was already 1 Sheild in there though and nothing else, so that may have messed something up)
I shouldn't have a problem with space for Ecells for Jumping I'm using a Caimen SF, so hopefully getting the jumping going shouldn't be hard.
I would test a bit more but it takes ages for the Caimen to get from AP to LoH.
Cycrow, another issue, which you helped me with (overspawning of ships) has introduced me to the Global Script area of the game. I had to kill over a hundred plugin.m7.spawnship tasks, from an XTM 5c mod installation.
But, during this very tedious process, I had to wade through maybe a few hundred tdn.returnhome tasks.
Now, I tried the tradiing network script back when it first came out, and I removed it, all related ships and stations, back when I first noticed "slow down" issues (eventually discovered to be from old XTM install). But, I still have a little game stutter, and now I'm wondering if the few hundred or so of these "tdn" global tasks are slowing my game down. Deleting them one by one is going to be impossible; it will take days.
What do you suggest? These tasks are locked into my saved games. Any script I can run to end all of these tasks that this script started?
Thanks!
PS: Please keep the xplanation simple. I have no where near the game mechanics understanding that the rest of you guys have.
But, during this very tedious process, I had to wade through maybe a few hundred tdn.returnhome tasks.
Now, I tried the tradiing network script back when it first came out, and I removed it, all related ships and stations, back when I first noticed "slow down" issues (eventually discovered to be from old XTM install). But, I still have a little game stutter, and now I'm wondering if the few hundred or so of these "tdn" global tasks are slowing my game down. Deleting them one by one is going to be impossible; it will take days.
What do you suggest? These tasks are locked into my saved games. Any script I can run to end all of these tasks that this script started?
Thanks!
PS: Please keep the xplanation simple. I have no where near the game mechanics understanding that the rest of you guys have.
Last edited by russbo on Thu, 5. Oct 06, 04:22, edited 1 time in total.
-
- Posts: 1267
- Joined: Sat, 3. Dec 05, 03:40
Yea, that's what I was afraid of. But, I figured if Cycrow knew how to write scripts that added global tasks, maybe he'd know how to kill them?
My girlffriend is not going to understand my sitting in front of the computer all day again, LOL.
Oh, and while we're playing in the Global Scripts, anyone know why I have about fifty plugin.advthrust.keepstock. and plugin.advjump.keepstock tasks going? Do I need fifty or so of each, or does just one of each suffice? If you haven't figured this out yet, my Global Scripts area is pretty big.
My girlffriend is not going to understand my sitting in front of the computer all day again, LOL.
Oh, and while we're playing in the Global Scripts, anyone know why I have about fifty plugin.advthrust.keepstock. and plugin.advjump.keepstock tasks going? Do I need fifty or so of each, or does just one of each suffice? If you haven't figured this out yet, my Global Scripts area is pretty big.
I'm going to have to suggest that this script might be referenced as a beta, until the global task issue is officially taken care of. It has caused me a lot of unnecessary headaches, and a tremendous waste of hours over the past two days. Not typical for the usual Cycrow wizardry.
Initially, I thought my game slowdown was due to older XTM mod scripts causing spawning issues in my game. After going through two days of dealing with that, I now discover that that was not the issue. The slowdown has been due to the Trading Networks' initial plugins. I literally have HUNDREDS of plugin.tdn.returnhome tasks running in my global scripts I have spent hours killing these, (my mouse is maneuvering better), but I still have quite a while to go before all of these tasks are gone.
An excellent concept, as usual by Cycrow. I hope the future issues of this do not cause this problem. I can't tell you how aggravating it is to kill hundreds of tasks in the global script area, using a mouse that jitters across the screen.
EDIT: I'm done. I think, quite literally, there were well over five to seven hundred of these tasks running. Got them all; killed quite a few other nonrelated tasks in the process. Not sure what's going to happen to my game, but, I am amazed at how smooth the mouse moves now. Those tasks must have used a lot of processor power.
Looking forward to a version that doesn't do this.
Initially, I thought my game slowdown was due to older XTM mod scripts causing spawning issues in my game. After going through two days of dealing with that, I now discover that that was not the issue. The slowdown has been due to the Trading Networks' initial plugins. I literally have HUNDREDS of plugin.tdn.returnhome tasks running in my global scripts I have spent hours killing these, (my mouse is maneuvering better), but I still have quite a while to go before all of these tasks are gone.
An excellent concept, as usual by Cycrow. I hope the future issues of this do not cause this problem. I can't tell you how aggravating it is to kill hundreds of tasks in the global script area, using a mouse that jitters across the screen.
EDIT: I'm done. I think, quite literally, there were well over five to seven hundred of these tasks running. Got them all; killed quite a few other nonrelated tasks in the process. Not sure what's going to happen to my game, but, I am amazed at how smooth the mouse moves now. Those tasks must have used a lot of processor power.
Looking forward to a version that doesn't do this.