[TOOL] XLib Development Library v1.00 (12-March-2013)

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

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

Post Reply
User avatar
mr.bear
Posts: 444
Joined: Sat, 11. Dec 10, 01:38
x2

[TOOL] XLib Development Library v1.00 (12-March-2013)

Post by mr.bear » Tue, 12. Mar 13, 19:18

C# development library for manipulating X³ Reunion, X³ Terran Conflict and X³ Albion Prelude game data.

There's a few projects on here that have withered and died, so I thought it might help to have a single library that simplifies handing the loading/saving of game data, and then developers can just concentrate on their own program logic. Most of the functionality I've added so far is available through combinations of doubleshadow's libraries and source code, but they're split across separate libraries in a mix of C++, C#, ANSI and UNICODE. Since most programs here are written in C# I thought having a single C# library would be really useful. I've actually used doubleshadow's C# T-File parser too, so anybody who has used his TObject classes in their program should be able to port to this library fairly easily, and it should cut down on bugs.

I'm going to add support for editing scripts next, so you can safely change the objects and string IDs referenced by commands. That should help people trying to create these infamous mod-merge programs. I'll also add access to jobs, ware lists and game starts.

Download
  • LATEST RELEASE: v1.00
    RELEASE DATE: 13th March 2013


    [ external image ]

    Instructions:
    Run the example app, select your game folder, click "Build VFS" then "Load Game Data".

    Requirements:
    .NET framework v3.5
Features
  • • Easy access to any files within the game folder (automatically handles file precedence for you)
    • Handles locating, parsing and generating language files, T-Files and catalogues
    • Easy access to all objects, strings and pages in the game through C# collections
    • Perform search/replace on any/all language files using regular expressions
    • Provides extra properties for objects, like prices, descriptions, correct display names etc.
    • Allows you to create new catalogue/datafiles files easily
    • Compatible with the TObject classes from doubleshadow's X3Editor2
    • Example application showing how to use the library
    • Sandcastle-generated API documentation

    [ external image ] [ external image ] [ external image ] [ external image ]
Latest Updates
  • X-Lib v1.00 : 12th March 2013
    • Provides access to the physical and catalogue file system
    • Handles locating, parsing and generating language files, T-Files and catalogues
    • Access to all objects, strings and pages through C# collections
Mr. Bear

UPDATED: 12th July 2014
Last edited by mr.bear on Sat, 12. Jul 14, 10:20, edited 6 times in total.
Rapunzel, Rapunzel, let down your bear...

User avatar
mr.bear
Posts: 444
Joined: Sat, 11. Dec 10, 01:38
x2

Post by mr.bear » Tue, 12. Mar 13, 19:18

Reserved
Rapunzel, Rapunzel, let down your bear...

User avatar
DrBullwinkle
Posts: 5715
Joined: Sat, 17. Dec 11, 01:44
x3tc

Post by DrBullwinkle » Wed, 13. Mar 13, 16:43

This could be very cool, Mr. Bear. Thank you for publishing it!

User avatar
Jack08
Posts: 2993
Joined: Sun, 25. Dec 05, 10:42
x3tc

Post by Jack08 » Mon, 9. Jun 14, 12:45

This may sound like a silly question... But is the XLib code actually missing from the download? - only the TestUI seems to be present!
[ external image ]
"One sure mark of a fool is to dismiss anything that falls outside his experience as being impossible."
―Farengar Secret-Fire

User avatar
mr.bear
Posts: 444
Joined: Sat, 11. Dec 10, 01:38
x2

Post by mr.bear » Mon, 9. Jun 14, 21:34

oh god you're right.
I'll upload the proper code tomorrow.

mr.bear
Rapunzel, Rapunzel, let down your bear...

User avatar
mr.bear
Posts: 444
Joined: Sat, 11. Dec 10, 01:38
x2

Post by mr.bear » Sat, 12. Jul 14, 10:18

EDIT: Fixed download link

Jack: i'm really sorry it took me so long,
mr.bear
Rapunzel, Rapunzel, let down your bear...

User avatar
Jack08
Posts: 2993
Joined: Sun, 25. Dec 05, 10:42
x3tc

Post by Jack08 » Mon, 14. Jul 14, 09:25

mr.bear wrote:EDIT: Fixed download link

Jack: i'm really sorry it took me so long,
mr.bear
Yay! NP, and thanks.
[ external image ]
"One sure mark of a fool is to dismiss anything that falls outside his experience as being impossible."
―Farengar Secret-Fire

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”