[request] revealing everything

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

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

User avatar
Earth Ultimatum IV.
Posts: 5280
Joined: Mon, 3. May 10, 14:39
x4

[request] revealing everything

Post by Earth Ultimatum IV. »

It would really help if someone made a mod, which would automatically discover all zones in the universe, mark every station and place trade agents on all stations, when I create a new savegame. (to speed things up, skip the "recon" part of game)
So, that when I remove the mod afterwards, the agents and discovered locations will stay.
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

this should cover it:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<mdscript xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Reveal" xsi:noNamespaceSchemaLocation="http://utnas/~unitrader/XRebirthxsds/md.xsd">
  <cues>
    <cue name="Reveal">
      <actions>
        <find_cluster name="$objects" multiple="true"/>
        <do_all exact="$objects.count" counter="$i">
          <set_known object="$objects.{$i}" known="true"/>
        </do_all>
        <find_sector name="$objects" multiple="true"/>
        <do_all exact="$objects.count" counter="$i">
          <set_known object="$objects.{$i}" known="true"/>
        </do_all>
        <find_zone name="$objects" multiple="true"/>
        <do_all exact="$objects.count" counter="$i">
          <set_known object="$objects.{$i}" known="true"/>
        </do_all>
        <find_station name="$objects" multiple="true" space="player.galaxy"/>
        <do_all exact="$objects.count" counter="$i">
          <set_known object="$objects.{$i}" known="true"/>
          <add_trade_subscription object="$objects.{$i}"/>
        </do_all>
      </actions>
    </cue>
  </cues>
</mdscript>
note that there is no condition when this should be executed, so it will run immediately. this applies to both Savegames and new games. also it will only be executed once per Save.
Also it will set the Stations to known, but it wont Scan them (i think how this works changed in the last 2 Years)
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 ;)
User avatar
Earth Ultimatum IV.
Posts: 5280
Joined: Mon, 3. May 10, 14:39
x4

Post by Earth Ultimatum IV. »

And where do I put that code in? :D
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

just put it as .xml file into the MD folder of some extension (best create a new one)
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 ;)
Rubini
Posts: 452
Joined: Mon, 7. May 07, 05:17
xr

Post by Rubini »

Yorrick's Devries FreeStart mod already have something like this inside, as a start point. It let you start more or less in the same situation where you end the main plot.
pref
Posts: 5625
Joined: Sat, 10. Nov 12, 17:55
x4

Post by pref »

Thanks UniTrader!

Can it cause any problems if i just keep the last part about adding trade agents on stations?
Do i need to unpack the game files, or just need to place it in a folder somewhere?
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

no need to unpack game files, just create a new Folder in Extensions to create a new extension, create an md folder inside there and paste the code above in a new xml file there ;)

and yep, you can leave out the Trade Agents part (
<add_trade_subscription object="$objects.{$i}"/> )
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 ;)
pref
Posts: 5625
Joined: Sat, 10. Nov 12, 17:55
x4

Post by pref »

Thanks again!

I only want to keep the trade agents though.. thought that way i could still 'explore' (sort of).
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

well, the script above just sets everything to known, but you still know nothing about it (0% scan status) - its like having a Map of a Region you never have been before ;)
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 ;)
User avatar
Earth Ultimatum IV.
Posts: 5280
Joined: Mon, 3. May 10, 14:39
x4

Post by Earth Ultimatum IV. »

Seems to work, thanks! I have to enter a zone to add stations to the zone map, but I can live with that (Iam starting a new game, and don't feel like exploring every zone and getting a trade agent aboard every station again - it would be for the fourth time already :) ).
Thanks again.
User avatar
Earth Ultimatum IV.
Posts: 5280
Joined: Mon, 3. May 10, 14:39
x4

Post by Earth Ultimatum IV. »

Hello, here I come again :)
I uploaded this little mod on the workshop, as many suggested to me. And a request appeared from Sindrali, he asks if it's possible to make this little mod add all stations of the universe to the ship computer map (currently it adds all zones and places trade agents everywhere, but stations are not revealed).
Can you guys help again here? I don't have experience with modding, not a slightest bit here. :gruebel:
BlackRain
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 7465
Joined: Mon, 15. Dec 03, 18:53
x4

Post by BlackRain »

Earth Ultimatum IV. wrote:Hello, here I come again :)
I uploaded this little mod on the workshop, as many suggested to me. And a request appeared from Sindrali, he asks if it's possible to make this little mod add all stations of the universe to the ship computer map (currently it adds all zones and places trade agents everywhere, but stations are not revealed).
Can you guys help again here? I don't have experience with modding, not a slightest bit here. :gruebel:
People have tried to do this before, but I am not sure if it is possible.
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

sorry, cannt help you there.. just a hint: i think you need to somehow scan the related Stations to get at least 1% knowledge about them, but didnt need something like this recently so no idea how to exactly achieve that..
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 ;)
Sparky Sparkycorp
Moderator (English)
Moderator (English)
Posts: 8074
Joined: Tue, 30. Mar 04, 12:28
x4

Post by Sparky Sparkycorp »

Maybe this old command line tool could offer a clue.

http://forum.egosoft.com/viewtopic.php?t=372336

Return to “X Rebirth - Scripts and Modding”