[Script] Factory Complex Constructor [22.9.2007] [V3.21 FINAL]

The place to discuss scripting and game modifications for X³: Reunion.

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

x3hydrino
Posts: 25
Joined: Tue, 12. Dec 06, 21:41
x3

Remote station placement or remote complex construction

Post by x3hydrino »

Profitlord since you are very familiar with scripting and station placement; do you think it is possible to remotely deploy stations from TL class ships? At least on vanilla x3 station placement or construction requires that you be in the same sector. I have read through many scripts and mods, but have found nothing mentioning a remote station placement capability. This would be useful in preventing low fps and game lag. I think that it would be useful even if the station still needed to be purchased and loaded into a TL class ship.
User avatar
ChemODun
Posts: 440
Joined: Mon, 12. Feb 07, 21:58
x4

Post by ChemODun »

It's possible from version 3.11
Changelog:

3.11:
-New: Camera Drones
-New: OOS-Station building
Multiply entropy by absolute zero

Freedom in space
User avatar
-Dusty-
Posts: 2301
Joined: Fri, 30. Dec 05, 20:17
x3tc

Post by -Dusty- »

ChemODun wrote:It's possible from version 3.11
Yes, but the system has been improved a lot in version 3.12.
The problem with building stations OOS is that X3 doesn't calculate the physics -> that means, there are no collisions and it's impossible to define the size of a factory.
And the size of a station is the most important value for offset-positioning, the distance between the two factories depends on their sizes.

Now, I've included a library which contains the sizes of every station in the vanilla-game (and the new stations of the XTM, too).

If somebody uses another mod which adds stations to X3 and wants to build them OOS, it's required to create a custom library. This function checks all stations available for their sizes and writes them into the library.

How you can create a library is described in the manual in chapter 6.1 ...


@x3hydrino: If you want to know exactly how to build stations OOS, read chapter 3.11 in the manual (well, it's not that difficult because of it works exactly like building Stations IS :D)

btw... welcome to the forum :)
x3hydrino
Posts: 25
Joined: Tue, 12. Dec 06, 21:41
x3

Thank you for your prompt assistance both of you.

Post by x3hydrino »

I havent used any of the mods yet so I didnt realize that oos meant out of sector. Thank your for the clarification, and thank you for all the unpaid time both of you took to create and especially debug this script. I will look into the readme or manual to see how it works. If I have any other questions then I know where to ask. :)
User avatar
-Dusty-
Posts: 2301
Joined: Fri, 30. Dec 05, 20:17
x3tc

Post by -Dusty- »

The User Novastorm has found a bug: Stations didn't start the production when they have been built OOS by using the Offset-Positioning.

Corrected Version is uploaded.
If someone wants to download the Fix seperately, click here. Unpack the File and copy it into your 'scripts' Folder.

To repair the faulty stations: Simply unfix and fix them. This solves the problem.
JTK225
Posts: 19
Joined: Fri, 23. Dec 05, 17:55
x3

Post by JTK225 »

Question, is there a minimum distance to place stations?
User avatar
-Dusty-
Posts: 2301
Joined: Fri, 30. Dec 05, 20:17
x3tc

Post by -Dusty- »

JTK225 wrote:Question, is there a minimum distance to place stations?
No. You can move the stations via the hotkeys as near as you want.

(... as long as they don't collide with each other :D)
JTK225
Posts: 19
Joined: Fri, 23. Dec 05, 17:55
x3

Post by JTK225 »

I am trying to fix an old complex but I am having a hard time aligning the stations. Is there an easy way to align the nodes?
User avatar
-Dusty-
Posts: 2301
Joined: Fri, 30. Dec 05, 20:17
x3tc

Post by -Dusty- »

JTK225 wrote:Is there an easy way to align the nodes?
No, unfortunately. It's not possible to get the position of the nodes via script... But I think it shouldn't be a big problem with the hotkeys - just imagine you had to do the same with the Tractor beam, and you will be really glad :mrgreen:
alyandon
Posts: 10
Joined: Mon, 31. Jul 06, 02:50

Post by alyandon »

Sorry if my question is simple/easy, I've read over the documentation and I'm unable to find a direct answer.

Will this script allow me to fix an existing complex hub (rotate, move, etc) that was poorly placed? One particular complex I have has a connector tube running through one of the docking ports on the hub which causes ships to crash if they are attempting to dock with it and I happen to be in sector.

The hilarious upside to my problem is that the ships that crash attempting to dock with my complex usually leave valuable cargo behind that I can scoop.
User avatar
-Dusty-
Posts: 2301
Joined: Fri, 30. Dec 05, 20:17
x3tc

Post by -Dusty- »

alyandon wrote:Will this script allow me to fix an existing complex hub (rotate, move, etc) that was poorly placed? One particular complex I have has a connector tube running through one of the docking ports on the hub which causes ships to crash if they are attempting to dock with it and I happen to be in sector.
Yes, you can unfix the complex hub (or any other station) and move it to another position. You can also rotate it in every direction you want.

The only problem when moving stations in a complex (or the whole complex) is that the tubes stay at the old position - you have to connect an additional station to the complex.
The easiest way do to that is to build a single control center and connect it to the complex. (See chapter 3.9 A in the manual for details)
x3hydrino
Posts: 25
Joined: Tue, 12. Dec 06, 21:41
x3

I have one more question before I create a massive station issue.

Post by x3hydrino »

I know that this may have been discussed in this thread before, but why can't complex construction kits be used OOS? I know you said something about collision detection for stations, but I have seen stations that have gone through complex tubes before using IS methods. If it is hard coded then what does that mean? Is the code protected by some eula or is the encryption too great? I thought that hackers could break through any encryption, and I have seen some very bright people like yourself profitlord do great things. I guess that maybe it could just be too time consuming for you as well. Please enlighten me on the reason if you don't mind Profitlord.


I just want to know the reason its going to take 3 weeks(if lucky) replacing thousands of tubes for thousands of stations. I could of course not use the x3-x3 converter to transfer my tiny empire to xtm, but I just like the idea of having even more sectors to build more stations. At least the answer will give me heart when spending 5 minutes at slide show fps to rebuild each of my avarice connections. Well that is not your problem Profitlord, but thanks in advance for any information you can give me to stew over.
x3hydrino
Posts: 25
Joined: Tue, 12. Dec 06, 21:41
x3

Sorry about the last comment since I know you perfected to the your best abilities.

Post by x3hydrino »

I have been using this to build new stations oos. There seems to be a problem with the hotkeys. Is there anyway to target a station oos? If not is there a way to increase or decrease the offset size without the hotkeys? I also cannot tell if a station is fixed or not fixed oos. Does anyone have any answers? Dont worry Rusty I wont mention my concerns stated in my previous post anymore. I would like to know more about oos in terms of hotkeys though.



edit: Also why are there 2 commands. One of them says build station by coordinates, and the other just says build station. The poster long ago was right that the first station tends to be built at the center of sectors. It would be nice to be able to build stations at greater positions from the center and not have all stations connected to the central station for oos and is building. Thanks for your patience Rusty Profitlord.
Xkaarj666
Posts: 192
Joined: Fri, 29. Jun 07, 15:06

Post by Xkaarj666 »

A little request,
Can i get some screens?

The pics that represents this script looks sick, i asume its al Crystal fabs?

Or are there pics posted somewhere else?

I would appreciate it :) .
ericma
Posts: 5
Joined: Mon, 2. Jul 07, 06:21
x3tc

Post by ericma »

the newest version support the Ashley's XXL Fabs? or how can I make it compatiable.
Rimes
Posts: 88
Joined: Thu, 3. Jun 04, 23:42
x4

Post by Rimes »

Hi,

The download link is dead. Does anybody have a mirror or a copy they could send?
Hubasan
Posts: 49
Joined: Fri, 19. Dec 03, 04:45
x3tc

Moving Headquarters BUG?

Post by Hubasan »

HI Guys,

I just recently downloaded this script and it works great on complexes and stations but I wanted to Move my HQ since my TL's sometimes have problems parking in since it is close to one of the asteroids, and after I moved it successfully all my wares were GONE??? All lasers, shields and mineral resources for building ships ALL GONE, and further more after the move, HQ was showing that it is FULL while in fact there was absolutely nothing in it!!! It was showing 500000/500000. I saved the game of course before I did all this so no harm was done, but I would like to move my HQ without this BUG if at all possible. since my r******* Boron Orca takes about 2 hours to park.

HQ was moved while there were only 2 argon NPC ships parked in it (I waited for them to undock but they never did), since I sent all my 50+ ships away to other sectors. And also HQ was working on production of my Pirate Nova Raider fighters at the time.

I'm not sure if this Script supports moving HQ or not but that's what happened to me!

Any advice or pointers would be greatly appreciated.

Thanks again,
User avatar
-Dusty-
Posts: 2301
Joined: Fri, 30. Dec 05, 20:17
x3tc

Post by -Dusty- »

First of all, sorry for nor answering your questions in the last three weeks - holidays, no X3, no internet, no computer at all :D


Well, even if it's a bit late...


The download link has been broken? Maybe the Server crashed, or something else... anyway, the file seems to be back up again.


@x3hydrino: 1. You can't connect factories with construction kits via script at all, because of the hardcode, as you assumed.

In Fact it is possible to edit the source (hard)code, but it's a lot more complicated than a MSCI-Script; at least it's way too complicated for me.

A few months ago, some russian guys programmed additional script commands, like disabling the collision calculation - but the only worked with X3 1.4 and were buggy. And I guess it's also a point of law, editing any source code which is owned by a company (and not open source) and publishing it is prohibited...

2. The first station does not have to be placed in the center of the sector... you can build it at any position you want.
The mentioned point was a bug in an earlier version, but it was fixed in 3.10 (I guess).

3. You can't move, rotate or do anything else which has to do with a hotkey OOS, it works only IS.


@ericma: It is compatible. But read chapter 6.1 in the manual ;)


@Hubasan: OK, seems like the HQ should not be supported by the FCC... The HQ is a very special case, most of its functions are hardcoded and may be incompatible with the way the FCC handles the stations.
I will change this in the next version, thanks for the hint.
Rimes
Posts: 88
Joined: Thu, 3. Jun 04, 23:42
x4

Post by Rimes »

Hi,

Maybe it's just me, but every time I click the download link I just get a "connection reset by server" error.
User avatar
-Dusty-
Posts: 2301
Joined: Fri, 30. Dec 05, 20:17
x3tc

Post by -Dusty- »

The link works fine. Some wrong Internet settings, I guess. Check for Cookies and Scripts on the site...

Anyway, here's another Link:
>>>Alternative Link<<<

Return to “X³: Reunion - Scripts and Modding”