X Rebirth

X Rebirth

57 ratings
LibMJ - MadJoker's Library Scripts
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
85.377 KB
1 May, 2014 @ 5:42am
3 Feb, 2015 @ 12:00pm
7 Change Notes ( view )

Subscribe to download
LibMJ - MadJoker's Library Scripts

Description
Author: MadJoker
Version: V0.1.1
Date: 3rd February 2015

X:Rebirth Version: 3.20

About

This is a set of library scripts and UIs that can be used by modders.

Details

This library contains:
  • A generic installation and version control MD script. See the LibMJ.xml file for an example of how the generic script is used by the LibMJ initialization script itself.

  • A generic radial menu generator.

  • A mechanism to add menu items to the sidebar (compatible with SidebarExtender).

  • A way to create dictionaries/associative arrays to be used in scripts:

    For a long time, I have searched for a way to have dictionaries in the X:Rebirth XML scripting language. Then I realized, that entities/actors could be used for this purpose, since they have a blackboard which behaves almost like a dictionary (with the exception, that keys cannot be
    enumerated). The second insight was that it is possible to store a "virtual entity" in a completed cue, and still access it as if it was real. This allows to use those virtual entities as dictionaries. To create a new dictionary simply use

    <create_cue_actor name="$dDict" cue="md.LibMJ.DictionaryContainer" />

    However, you need to be aware that this actor will stay in the cue indefinitely unless manually removed. It is important to clean up each dictionary created, since otherwise the savegame will be bloated. To
    remove a dictionary simply use

    <remove_cue_actor cue="md.LibMJ.DictionaryContainer" actor="$dDict" />

  • A UI framework to effortlessly created new UIs. A usage guide might be provided at a later point. For now please see the other UI scripts for examples of how to use the framework.

  • Some generic UI screens for selecting a ship/zone through a list or capture some text input.
For Modders

You can find the sources in my GitHub repository[github.com].

Compatibility

Since this is only a library, there are no compatibility issues.

Known limitations/issues
  • none so far
Technical Details

For texts I am using page 99997.

Release history
  • [2014-05-01 - V0.0.1]
    Initial Release
  • [2015-01-17 - V0.1.0]
    Compatibility with X:Rebirth 3.10
    New mechanism for adding items to the sidebar
  • [2015-02-03 - V0.1.1]
    Compatibility with X:Rebirth 3.20
Future Plans
  • none
26 Comments
Draconix26 11 Mar, 2016 @ 1:40pm 
i wish i understood all this so i can do my own mods but i am so lost lol
Draconix26 11 Mar, 2016 @ 1:38pm 
innes isnt working either atleast not for me
Destra125 3 Feb, 2016 @ 1:48pm 
oh okay thanks,
Mr_WolfZ  [author] 1 Feb, 2016 @ 9:14am 
Hi |9th|naganata warrior120, I do not recommend using my script library anymore. It is severly outdated (last updated almost exactly a year ago) and I do not have more interest in modding Rebirth, so it won't be updated anymore. This library is only here for reference. I don't know anything about Innes' library, but if it is more up-to-date I'd recommend using that.
Destra125 31 Jan, 2016 @ 1:59pm 
which is better Innes Library Scripts or Madjoker's Library Scripts? and im having trouble finding my sidebar any suggestions on a fix?
rincarsarff 13 Oct, 2015 @ 10:02pm 
Just to let people know Innes Library Scripts and LibMJ - Madjoker's Library Scripts do not work together. I try to buy engines and the mechanic takes the money, takes my current engine and the one I bought and smashes them on the ground so I can't buy either of them from him again. This repeats for every engine I buy and unless i reload my save I'm stuck with no engine in the end of this horrible cycle.
TerryDuke 22 Feb, 2015 @ 12:35am 
Thanks!!!
Core 20 Feb, 2015 @ 7:08am 
Thank you very much!
Wegadin 15 Feb, 2015 @ 6:11pm 
Thanks!
Mr_WolfZ  [author] 15 Feb, 2015 @ 2:48pm 
Hi Wegadin, as you can see from the start of the description of this mod, it is fully updated for Rebirth 3.20