Jump to content

First come, first served (productionsindex.lua file)


Gobolino

Recommended Posts

Hi!. I was having a lot of problems trying to "mod" the productionsindex.lua file and after trying and trying I FINALLY came to the obvious reason.

I'm not using the "mod" forum section because this is happening (to me at least) with a game without any mods ON!.

 

Now, the productionsindex.lua file has all the Factory/Mines/Farms/that style of station, with all of their ingredients, results and garbages, right?.

 

The problem (without mods, so I hope it's not only me) is that the FIRST  result in the line, determines the whole outcome and it's not changed by anything after that.

 

Follow me, in the original file, there are these lines:

 

"Noble Metal Mine ${size}", ingredients={}, results={{name="Gold", amount=1}, {name="Platinum", amount=1}}, garbages={}})

"Noble Metal Mine ${size}", ingredients={}, results={{name="Silver", amount=1}, {name="Platinum", amount=1}}, garbages={}})

"Noble Metal Mine ${size}", ingredients={}, results={{name="Silver", amount=1}, {name="Gold", amount=1}}, garbages={}})

 

Now, the rule of first come, first served applies here in the two last ones:

"If I try to spawn/build a thousand of times the third one (Silver/Gold), as the "Silver/Platinum" comes first, the only station that the game actually spawns... is

the Silver/Platinum"

 

Please someone could check this? (It happens to me but I don't have any friend with the game to ask if this happens also to them).

 

Steps:

1.- Open the ~dev debug menu.

2.- In there, there are three "Noble Metal Mine" in the spawn factory section.

3.- The first one, corresponds to the first one in order in the file. so if you click the first one, it spawns a "Gold/Platinum" mine.

4.- The second one, corresponds to the second one in order in the file, so if you click the second one, it spawns a "Silver/Platinum" mine.

5.- The third one, "should" correspond to the third one in order in the file, so if you click the third one, "should" spawn a "Silver/Gold" mine, however,

as the game see the first result as "silver", it spawns a "Silver/Platinum" mine.

6.- So... if you put "Silver/Gold" as it is, in the third line, the second line starts with "Silver" so it spawns a "Silver/Platinum".

7.- Same way, if you put "Gold/Silver" in the third line, the first line starts with "Gold" so it spawns a "Gold/Platinum"

 

Anyone can check if this happen to you too?.

Also, anyone with a lot of resources can check if the "build" station menu in the game, works in the same way?.

 

[Can't imagine a solution]. =(

 

[update]: Starting messing with the order and I think it has more than just that.

Steps:

 

Changed the order in the original file to:

First line: Platinum-  Gold // First Button spawn: Platinum + Gold mine.

Second line: Gold - Silver // Second Button spawn: Platinum + Gold mine.

Third line: Silver - Gold // Third button spawn: Gold + Silver mine.

 

So it seems that my game:

1.- Reads the first line and it's ok with that Platinum + Gold.

2.- Reads the second line and sees that starts with "Gold", and it just says, wait I read this before, ah, here, so it spawns a Platinum + Gold.

3.- Reads the third line and, as in the  second line "stopped" reading at gold, it never reads "silver" so it spawns a "Silver + Gold" mine.

(This last one, even if it already says "gold" in the first line).

 

[Treating this as a general bug because it isn't that the game isn't reading a mod file, the game isn't reading "completely" the original file. O.O!!!]

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...