[MOD] Warehouse Conveyor v. 1.06 (2018.03.02)

The place to discuss scripting and game modifications for X Rebirth.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
Andy_MB
Posts: 72
Joined: Fri, 24. Jul 15, 17:47
x4

[MOD] Warehouse Conveyor v. 1.06 (2018.03.02)

Post by Andy_MB » Fri, 28. Oct 16, 17:14

Steam link


This MOD for industrialists.
With ships, creating a network for distribution of your products in all systems.
Warehouses - a network hub.
Use off for the transfer of wares "Transfer ships".

To start work new ship (new menu) - Enter - 6 - (3)
-//- (old menu) - Talk w/ L/XL trade ship commander

Direct link v.1.06
Last edited by Andy_MB on Fri, 2. Mar 18, 17:59, edited 1 time in total.
_____________

Andy_MB
Posts: 72
Joined: Fri, 24. Jul 15, 17:47
x4

Post by Andy_MB » Sun, 30. Oct 16, 15:03

Hello!
Can anyone translate into German?
People ask ...

<!-- Main menu button-->
<t id="1000">Storage transfer menu</t>
<t id="1001">Ships control cettings for Automatic transfer of wares between your warehouses</t>
<!-- Menus / Options -->
<t id="1002">Select the station</t>
<t id="1003">Select the station - the sender to Conveyor</t>
<t id="1004">Select the station - the recipient of the Conveyor</t>
<t id="1005">Display Conveyor in manual trading menu? (Yes / No) - Do not display!</t>
<t id="1006">Add a prefix "*" to the name(s) of the Conveyor(s)? (Now is no prefix)</t>
<t id="1015">Display Conveyor in manual trading menu? (Yes / No) - Show!</t>
<t id="1016">Remove a prefix "*" from the name(s) of the Conveyor(s)? (Now prefix presents)</t>
<t id="1007">Set Conveyor</t>
<t id="1008">Remove Conveyor</t>
<t id="1009">Maintenance Mode two warehouses</t>
<t id="1010">Fill Mode for warehouse</t>
<t id="1011">Unloading Mode for warehouse</t>
<t id="1012">Mode Selection / Setting Options</t>
<!--menu tooltips-->
<t id="1013">Information about the sending station</t>
<t id="1014">Information about the reciving station</t>
<t id="1017">Information about the ship-carrier</t>
<!--context menu Staff-->
<t id="1018">AMB Remove ship</t>
<t id="1019">AMB Add ship</t>
<t id="1030">AMB Menu</t>
<t id="1031">This ship is already occupied by the mod YAT</t>

<t id="1020">Pilot's workspace</t>
<t id="1021">Galaxy</t>
<t id="1022">Cluster</t>
<t id="1023">Sector</t>
<!--Uninstal-->
<t id="1111">Uninstall MOD "Warehouse Conveyor"</t>
<!--OwerView-->
<t id="1200">Conveyor tasks overview</t>
<t id="1201">%1 has task: "%2", load at %3, deliver to %4. Workspace: %5. Command: %6.</t>
<t id="1209">In mode "Two Warehouses"</t>
<t id="1210">In mode warehouse load</t>
<t id="1211">In mode warehouse unload</t>
<!--Load-->
<t id="1230">own or frendly stations</t>
<t id="1231">Your stations</t>
<!--Deliver-->
<t id="1220">all frendly stations in galaxy</t>
<t id="1221">Your stations</t>
_____________

UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader » Sun, 30. Oct 16, 15:56

<!-- Main menu button-->
<t id="1000">Warentransfermenü</t>
<t id="1001">Shiffskontrolle für den automatischen Transfer von Waren zwischen deinen Lagerhäusern</t>
<!-- Menus / Options -->
<t id="1002">Wähle die Station</t>
<t id="1003">Wähle die Station - Sender(of the conveyer)</t>
<t id="1004">Wähle die Station - Empfänger(of the conveyer)</t>
<t id="1005">Zeige Förderer im regulären Handelsmenü? /(Ja / Nein/) - Nicht anzeigen!</t>
<t id="1006">Füge Prefix "*" zum Namen der Förderer hinzu? (Momentan nicht)</t>
<t id="1015">Zeige Förderer im regulären Handelsmenü? /(Ja / Nein/) - Anzeigen!</t>
<t id="1016">Entferne Prefix "*" vom Namedn der Förderer? /(Momentan vorhanden/)</t>
<t id="1007">Setze Förderer</t>
<t id="1008">Entferne Förderer</t>
<t id="1009">Wartungsmodus zwei Lagerhäuser</t>
<t id="1010">Füllmodus für Lagerhäuser</t>
<t id="1011">Entlademodus für Lagerhäuser</t>
<t id="1012">Moduswahl / Optionen</t>
<!--menu tooltips-->
<t id="1013">Informationen über die sendende Station</t>
<t id="1014">Informationen über die empfangende Station</t>
<t id="1017">Informationen über das Schiff</t>
<!--context menu Staff-->
<t id="1018">AMB Schiff entfernen</t>
<t id="1019">AMB Schiff hunzufügen</t>
<t id="1030">AMB Menü</t>
<t id="1031">Dieses Schiff wird bereits von der YAT-Mod verwendet</t>

<t id="1020">Arbeitsbereich des Piloten</t>
<t id="1021">Galaxie</t>
<t id="1022">System</t>
<t id="1023">Sektor</t>
<!--Uninstal-->
<t id="1111">Deinstalliere "Lagerhaus Conveyor"</t>
<!--OwerView-->
<t id="1200">Conveyor Aufgabenübersicht</t>
<t id="1201">%1 hat die Aufgabe: "%2", Lade bei %3, Liefere zu %4. Arbeitsraum: %5. Kommando: %6.</t>
<t id="1209">Im Modus "Zwei Lagerhäuser"</t>
<t id="1210">Im Modus Lagerhaus füllen</t>
<t id="1211">Im Modus Lagerhaus leeren</t>
<!--Load-->
<t id="1230">Eigene oder befreundete Stationen</t>
<t id="1231">Eigene Stationen</t>
<!--Deliver-->
<t id="1220">alle befreundeten Stationen in der Galaxie</t>
<t id="1221">Eigene Stationen</t>



HINT: you have used much stuff with ( ) - but this marks an inline-comment in t-files and is discarded when reading from it. you have to escape them with /( /) to display literal ( ) ;) (did that with the translation above)
Note: i am not using your Mod myself so no idea if ithe translation fits everywhere. best ask the users to confirm that or suggest better ones.

btw: ho can i detect from MD if a Ship is running your Script? (and possibly also the Station) - best something which fits in the format
<do_if value="§object.pilot.$localvar?">
because this way i could integrate it in my Renaming Script (which is very likely incompatible with your prefixes since it re-evaluates and re-sets the Object Namen on certain events, based on a stored unformatted name. the "*" prefix is then omitted if you didnt account for that)
EDIT: or better:
set a value $ship.pilot.$namereplacement.$scriptset with your intended Short Name and send Name Update Signal. In my Script its not implemented this way yet, but i think this is a future-proof way of adding this functionality, and if you do i would make the needed changes immediately.
code for this looks like this:

Code: Select all

<do_if value="this.$unformatted_object_name?" comment="Optional Code for Compatibility with UniTraders Advanced Renaming">
  <do_if value="not this.$namereplacement?">
    <set_value name="this.$namereplacement" exact="table[]">
  </do_if>
  <set_value name="this.$namereplacement.$scriptset" exact="'WhConv'"><!-- just an example short name - better read this from t-file -->
  <signal_objects object="this.container" param="'Object Name Updated'"/>
</do_if>
this is the Pilot of a Ship or the Manager of a Station.
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)

Andy_MB
Posts: 72
Joined: Fri, 24. Jul 15, 17:47
x4

Post by Andy_MB » Sun, 30. Oct 16, 16:24

Thanks for the translation and notes!
the presence of mod can be defined by "global. $ amb_version" must exist and be greater than 0
Rename options not set if true: <do_if value = "not @global.$rename or global.$rename == 0">
Pilots also have blackboard "***.pilot.$from_id /or/ pilot.$to_id"

I make my MOD compstible w/ YAT MOD.
I don't use YAT ships.

I will check compatibility w/ Your MOD and add some changes if not compatible.
Last edited by Andy_MB on Mon, 31. Oct 16, 09:54, edited 1 time in total.
_____________

Andy_MB
Posts: 72
Joined: Fri, 24. Jul 15, 17:47
x4

Post by Andy_MB » Mon, 31. Oct 16, 09:50

I checked. Compatible w/ UT CaC Advanced Renaming.
No need to change anything!
_____________

User avatar
Lord Micha
Posts: 118
Joined: Fri, 24. Oct 08, 16:40
x4

Post by Lord Micha » Sun, 11. Dec 16, 14:51

UniTrader wrote: Note: i am not using your Mod myself so no idea if ithe translation fits everywhere. best ask the users to confirm that or suggest better ones.
Conveyor:

Better use the german words 'Frachter' (big-huge) or 'Transporter' (some smaller and faster). I prefer 'Frachter'. This was used in the previous X-series.
'Förderer' doesn´t fit the sense ;)

Hankyke
Posts: 23
Joined: Mon, 16. Jul 12, 15:50
x4

Post by Hankyke » Tue, 7. Mar 17, 19:05

Hello.
I understand "Maintenance Mode two warehouses" perfectly.
But can you explain the 2 other modes?
"Fill Mode for warehouse"
"Unloading Mode for warehouse"

Thank you.
Laptop: MSI GE62-6QD . Intel Core i7-6700HQ, 16 Gb DDR4 memory, NVIDIA GeForce GTX 960M 2 GB GDDR5, 128 Gb SSD

ns88ns
Posts: 90
Joined: Sun, 11. Sep 11, 22:00
x4

Post by ns88ns » Wed, 28. Feb 18, 04:43

Hi.

Can I ask couple of questions regarding this mod?

1. It seems ships in this mod don't "move" wares. It looks like they "trade" wares instead. At least ship move nothing from a my station to my warehouse while warehouse's manager doesn't have money. It looks odd as for internal logistic.

2. Second strange thing is that ships "jumps" even if route points are in the same sector. Regularly L & XL ships use jump drive to jump between sectors. To move across sector they use regular sustainer engine, isn't it?

3. What is the function "Assistant Manager"? How to use it?




Thank you a lot in advance.

Andy_MB
Posts: 72
Joined: Fri, 24. Jul 15, 17:47
x4

Post by Andy_MB » Wed, 28. Feb 18, 10:35

Hi.
The MOD does not check the manager account.
The ship can be assigned in three modes:
1. Exchange between two warehouses. (the main exchange script between the player's warehouses located in different systems)
"Manager Assistant":
2. The mode of filling the station with resources (usually for the newly built, it is sometimes useful if the player sees that the station is idle due to a lack of resources for production).
3. Mode of rapid sales of the station's products. (when the player see that the station to be idle. The manager can not sell the goods in this cluster.) The ship will seek sales throughout the galaxy.)
... The area of ​​work you ask yourself - I recommend - the galaxy!

1) In order for the ship to move goods from your station (s) to the warehouse, you need to give it a second mode (Station Filling Mode). Station = Warehouse.

Algorithm:
1. a list of wares created that buys by a warehouse and the hold is checked for compliance with the type of cargo.

2. A shoppinglist is checked and tasks from this list are performed.

3. Check the goods in the hold.
3.1 are transferred to the warehouse, if they are needed,
3.2 If our warehouse is not needs this ware, then trying to sell to the player stations,
3.3 if not, sell to anyone at the max price.
(to exclude 2-3 assign a ship with an empty hold)

4. We check the warehouse buyoffers and proceed to the search of sellers:
Here the priority is the minimum price and enough quantity! If you want him to buy mainly from the player's stations, then put the price of the goods on your station as low as possible in the space that you designate. (you can put a minimum and prohibit the manager of the production station to trade with other factions)

...About jumping.
If the skill "navigation" from the commander = 5 stars, then the ship jumps right away at the target object!
If target station is in ship zone - will no jump!

Code: Select all

<do_if value="this.zone != $targetobject.zone">
        <run_script name="'transfer.move.generic'">
          <param name="destination" value="$targetobject" />
          <param name="endintargetzone" value="true" />
        </run_script>
      </do_if>
So I wanted to do it initially, but it led to a serious change in the move.generic script. Now the speed of the ship is affected only by the skill "morale".
_____________

ns88ns
Posts: 90
Joined: Sun, 11. Sep 11, 22:00
x4

Post by ns88ns » Wed, 28. Feb 18, 15:37

Clear. Thank you for explanation.

I configured a ship with Station Filling mode and selected warehouse as station. The warehouse is configured to buy just one ware. Ship has maximum 2 planned routes:

1 - buy 0x <ware> on <station>
2 - sell 0x <ware> on <station>

So ship constanttly flying between stations and warehouse and carrying 0 items per turn while warehouse's manager have 0 on its account.

When manager get money then ship buying and selling wares for money (not for free as expected).

Also I have installed mod "Yet Another Trader" v2.03b - are these two modes compatible?

Andy_MB
Posts: 72
Joined: Fri, 24. Jul 15, 17:47
x4

Post by Andy_MB » Wed, 28. Feb 18, 16:14

I recently learned about this error and fixed it in version 1.6
v2.03b I did not check for compatibility,
YAT AI improved version V4.01 from 09/25/2016 - compatible.
_____________

ns88ns
Posts: 90
Joined: Sun, 11. Sep 11, 22:00
x4

Post by ns88ns » Thu, 1. Mar 18, 00:16

Ok.

Is the version 1.6 released already? Unfortunately I don't use Steam so I can't download the mod from Steam. Is there an option to get it via direct download link?

Thank you.

Andy_MB
Posts: 72
Joined: Fri, 24. Jul 15, 17:47
x4

Post by Andy_MB » Thu, 1. Mar 18, 00:40

Now in 1.6 is not ready. Testing...
Upload to Steam. I will place a direct link here.
_____________

Thufar
Posts: 407
Joined: Wed, 6. Nov 02, 20:31
x4

Post by Thufar » Fri, 7. Sep 18, 00:41

I have ships assigned to sell wares from three different warehouses in the HOL system. I'm getting spammed with messages that the sellers can't sell all the goods in their hold, but when I check the ship, everything has sold. It seems to happen with all ships assigned to sell, and with each trade they make. Any way to stop this constant spamming of messages? They are almost constant, and getting annoying.

Regards,
Thufar

Post Reply

Return to “X Rebirth - Scripts and Modding”