EnglishGermanFrenchRussianPolishItalianSpanish
Log inRegister
 
Mayhem - Sanctuary Scraper command v0.11 - DEPRECATED
Post new topic Reply to topic
View previous topic :: View next topic
Author Message
lostProfitssssArrgh





Joined: 22 Aug 2017

Location: Unknown Sector(23,19)

modified
PostPosted: Fri, 25. Aug 17, 06:16    Post subject: Mayhem - Sanctuary Scraper command v0.11 - DEPRECATED Reply with quote Print

The 'Scraper' command attempts to collect all excess wares from Sanctuaries and bring all of those to a central station (with potentially a future warehouse addition in mind...). As it is, any ware for a which a capacity was not set or any ware stocked over 100% will get picked up. Stations that don't meet the aforementioned criteria are ignored. The script is trying to supplement IDN/local DA's and freighters where those fall short.

This is my first attempt at a script going beyond the useful 1-liners one can throw together so it still has a very long way to go before it can be considered 'release worthy'. Which is why I humbly request some feedback towards proper functionality and integration from any experienced modder with a few minutes to spare.

Change log:

v < 0
initial post

v .01
added basic comments and to-dos
freighter name and color
main loop, uses randomWait in between iterations
available cargo check at pickup

v .05
command integration (uses 461)
fixed main loop
idling feedback text

v .10
- checks for updated script version, behavior will change after current station run
- prerequisites checks now actually work as expected
- skips the home-base when the home-base is a sanctuary (duh!)
- checks the home-base ware amount at loading time. Skips if full or only loads what the home-base is capable of storing (uses max storage so it will overstock where possible)
- checks the home-base ware amount upon arrival, in case it increased during the return flight. Offloads whatever possible, sends a message to the player and stops the command if needed.

v .11
- fixed auto-jump check, it would always disable the scraper command due to the test command returning a value different than true/false.
- added a total ware volume check (currently at 100) so that the scraper doesn't constantly fly to pick-up negligible ware amounts.


---> FILES <---


install:
files in addon/scripts go into %yourInstallPathToX3AP.exe%/addon/scripts
files in addon/t go into %yourInstallPathToX3AP.exe%/addon/t
(overwrite files with latest when upgrading)
restart the command for users upgrading from versions older than 0.10

In-game requirements:
- LU 1.7.2 and Mayhem 2.1.3
- Trade Command softwares mk1 & mk2
- Trading System Extension
- Station Agent Software
- Any ship with a jump-drive, auto-jump and refuel settings turned on (100 jumps should be enough for everybody)
- a home base that is a dock

TO DO:
Menu to choose which Sanctuaries will get scraped if not all
Add a way to set the minimum volume threshold that\ll trigger a run
Find a way to add the warehouse station without asking the users to fiddle with TDocks
Make a warehouse model instead of using the Boron Equipment Dock
Figure out how to integrate the warehouse into Mayhem without changing Joubarbe's files.
'Balance' the warehouse : probably by making it outrageously expensive and making it a priority target for enemies (esp. OCV)
Pray that the Panda doesn't rip me to shreds for offering to make ware management in Mayhem less of a headache

Comments welcomed,
LPA



Last edited by lostProfitssssArrgh on Sat, 16. Sep 17, 14:49; edited 8 times in total
Back to top
View user's profile Send private message
Litcube





Joined: 20 Oct 2006
Posts: 4167 on topic
Location: Canada
Thank you for registering your game
PostPosted: Fri, 25. Aug 17, 08:00    Post subject: Reply with quote Print

Have you noticed it hangs on you?


_________________


Litcube's Universe Wiki
Back to top
View user's profile Send private message
lostProfitssssArrgh





Joined: 22 Aug 2017

Location: Unknown Sector(23,19)

PostPosted: Fri, 25. Aug 17, 16:19    Post subject: Reply with quote Print

I does indeed from time to time, although it did go through the station list once in its current state. I'm guessing the fly commands are absolutely not handled correctly..?

Back to top
View user's profile Send private message
lostProfitssssArrgh





Joined: 22 Aug 2017

Location: Unknown Sector(23,19)

PostPosted: Fri, 25. Aug 17, 19:50    Post subject: Reply with quote Print

Checked again. As it is, the freighter docks to 3 sanctuaries out of 5 picks up wares and drops them off correctly.

What caught your attention..?

Thx,
LPA

Back to top
View user's profile Send private message
Joubarbe





Joined: 31 Oct 2006
Posts: 2569 on topic
Location: France
Thank you for registering your game
PostPosted: Fri, 25. Aug 17, 21:34    Post subject: Reply with quote Print

Use the X-Studio macros man... "for each", "dim", "do if", etc.

Code:
inc $count



_________________
Mayhem - Satellites Monitoring - Internal Distribution Network - ADS (Joubarbian Edition) - Bounty Board - The Joubarbian Toolkit - EasyConnect
Back to top
View user's profile Send private message
lostProfitssssArrgh





Joined: 22 Aug 2017

Location: Unknown Sector(23,19)

PostPosted: Fri, 25. Aug 17, 23:15    Post subject: Reply with quote Print

I'm still mostly using the in-game script editor ( i know, i know : dumb newb).

Even though I've installed Litcube's library, x-studio is still missing a few things that are in-game and vice-versa. I need to sort that out :/

EDIT > posted v .01 above

Back to top
View user's profile Send private message
lostProfitssssArrgh





Joined: 22 Aug 2017

Location: Unknown Sector(23,19)

PostPosted: Sat, 9. Sep 17, 07:26    Post subject: Reply with quote Print

version 0.11 posted

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic Reply to topic
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Fri, 22. Sep 17, 20:43

All times are GMT + 2 Hours


Board Security

Copyright © EGOSOFT 1989-2017
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.25203 seconds, sql queries = 21