[Info] GoD rebuilding stations and asteroids

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

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

Post Reply
User avatar
Gazz
Posts: 12430
Joined: Fri, 13. Jan 06, 17:39
x3tc

[Info] GoD rebuilding stations and asteroids

Post by Gazz » Sun, 24. Aug 08, 18:23

I ran some tests today on how and when stations respawn.

I only tested equipment docks.

-------------------------------------------------------------
Method of destruction:
1. laser/missile fire
2. destroy with explosion
3. destroy without explosion

These give identical results.

-------------------------------------------------------------
Respawn location

My script built a station of identical type in the exact same spot after the original was destroyed.

Wreckage or not - sometimes the newly rebuilt station appeared in the old spot, completely overlapping the one built by my script, sometimes in another.
Seems to be just plain random with GoD ignoring anything the player has built.

Note: GoD only builds in preset spots, and never "chooses" a completely new one.

-------------------------------------------------------------
Respawn time.

Stations respawned that many hours after destruction:
7,88 h
8,98 h
12,37 h
15,81 h
16,59 h
20,92 h
(Test aborted at 60 hours)

The order does not correspond to the order they were destroyed in.

-------------------------------------------------------------
Disabling GoD respawn

$Station -> disable ship rebuild

before destroying a station (in any way)
and GoD will not respawn it.

That also works for asteroids that would normally respawn if blown up and/or harvested.

-------------------------------------------------------------

Keywords god respawn spawn build rebuild station stations asteroid asteroids
Last edited by Gazz on Mon, 25. Aug 08, 11:54, edited 4 times in total.
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.

jlehtone
Posts: 17206
Joined: Sat, 23. Apr 05, 21:42
x4

Post by jlehtone » Sun, 24. Aug 08, 22:15

Ok, how do you explain:

Xenon Taxi K shoots a Shipyard (obviously in sector). Debris. No build of other stations in-place by player. After the delay, Shipyard respawns in the other side of sector. Has occurred twice, vanilla.
Goner Pancake Protector X
Insanity included at no extra charge.
There is no Box. I am the sand.

User avatar
Gazz
Posts: 12430
Joined: Fri, 13. Jan 06, 17:39
x3tc

Post by Gazz » Sun, 24. Aug 08, 22:18

That's easy to explain. I didn't have enough data (but at least I said so =) and made a false assumption.
At around 30 samples statistics start to make any kind of sense and I had 3. =)

Still some useful data in there. I needed it for a specific project but maybe it can dispell some misconceptions about how/when GoD builds.
When you're messing with stations you have to know how GoD will react to that in the long run and it's quite difficult to find good info on that.
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.

eladan
Posts: 5325
Joined: Sat, 7. Jan 06, 17:01
x4

Re: [Info] GoD rebuilding stations and asteroids

Post by eladan » Mon, 25. Aug 08, 05:58

Gazz wrote:disable ship rebuild = [TRUE]
Damn. That works on stations? (Particularly docks?)

Idle thought: I Wonder if setting it false for an ordinary station that you script in makes GoD add it to its spawnable list?

Good info Gazz - why couldn't you have done this a year or two ago? :)

silenced
Posts: 2029
Joined: Tue, 20. Jun 06, 19:43
x4

Post by silenced » Mon, 25. Aug 08, 06:08

since it will be pretty much the same in terran conflict: right in time
... what is a drop of rain, compared to the storm? ... what is a thought, compared to the mind? ... our unity is full of wonder which your tiny individualism cannot even conceive ...

< Ich werde ab sofort auf eine korrekte Deutsche Rechtschreibung achten ! =) >

jlehtone
Posts: 17206
Joined: Sat, 23. Apr 05, 21:42
x4

Post by jlehtone » Mon, 25. Aug 08, 10:54

Btw, is it correct to call these "GoD"? I thought that the auto-respawn of ships/docks/rocks is an ancient engine, while the Global Decision engine (GoD) for toggling NPC Factories on/off first saw action on X3:R v1.3.
Goner Pancake Protector X
Insanity included at no extra charge.
There is no Box. I am the sand.

User avatar
Gazz
Posts: 12430
Joined: Fri, 13. Jan 06, 17:39
x3tc

Post by Gazz » Mon, 25. Aug 08, 11:51

Interesting historical question.
Are you sure that Ancient Engine is still working as a separate entity or has become a subroutine of what we call GoD?

eladan wrote:why couldn't you have done this a year or two ago? :)
Heh. Because *I* didn't need it back then. Why didn't you do it? =P
Just a watcher script and a few hours of SETA on another box.
Well, and I tested a total of 12 different scenarios for how stations could potentially be destroyed and respawn...
Didn't care for any surprises later on...

eladan wrote:Idle thought: I Wonder if setting it false for an ordinary station that you script in makes GoD add it to its spawnable list?
Sorry, that was a typo. The syntax is:
$Station -> disable ship rebuild
therefore... forget it.
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.

eladan
Posts: 5325
Joined: Sat, 7. Jan 06, 17:01
x4

Post by eladan » Mon, 25. Aug 08, 13:02

Gazz wrote:Heh. Because *I* didn't need it back then. Why didn't you do it? =P
Well, I did do some investigation at one point, but I wasn't smart(?) enough to try out the ship rebuild command on a station for its potential to stop the station respawning. That takes a special kind of genius. :wink:
$Station -> disable ship rebuild
therefore... forget it.
Drat - looked it up, and you're right. On a quick look, can't see any likely commands to reverse it...

Post Reply

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