[IDEA] Community Maintained Library

The place to discuss scripting and game modifications for X4: Foundations.

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

celludriel
Posts: 163
Joined: Thu, 12. Sep 13, 11:29
x4

[IDEA] Community Maintained Library

Post by celludriel »

Hey,

I've been looking at the md code from egosoft for the past four weeks now and I see a lot of duplicate or near duplicate code appearing all over. I was wondering if we couldn't improve a little bit. I bet there are a lot of cue's written that are generic and can be reused. However I'm not going to start a big effort kickstarting this if nobody is interested. If there is interest I like to start a public github repository and add any contributer to it that has interest. I can think right of the bat of the following library cue's that could be interesting

-FindNeigboringSpaceForSpace
-GetNearestRouteToStationOfType
-GetMilitaryStrenghtForFaction
-FindLowestPriceForWare
-FindHighestPriceForWare
-FindAveragePriceForWare
-BuildStationOfType
-BuildFactoryOfType
-SpawnGroupOfShips
-BuildGroupOfShips
-ForceDestroyShip
-ForceDestroyGroupOfShips
-SpawnJob
-BuildJob
-ForceDestroyJob
-SpawnSubordinatesForJob
-GiveOrdersToShip
-GiveOrdersToShipGroup
-CreateMission
-RemoveMission

I suspect there are more things to think about and other needs people have that could be reused

I propose two things if more then five people that want to contribute to this codebase present themselfes

- Setup of Trello bord with cards for each lib cue
- Setup of Git repository
- One Developer For Each lib cue initially after release maintenance by anyone
- Merging of code only by pull request (possible code review but maybe that is a bridge to far for some people)
alexringess
Posts: 41
Joined: Tue, 25. Sep 18, 23:57
x4

Re: [IDEA] Community Maintained Library

Post by alexringess »

So I'm not actualy a mod developer. I haven't the skill.
But I agree with this idea.
This are libraries like that that made modding great for X3 and gave Litcube Universe and some other great mods like that.
It's definitively a need, so bump.

Return to “X4: Foundations - Scripts and Modding”