Jump to content

Gobolino

Members
  • Posts

    3
  • Joined

  • Last visited

Gobolino's Achievements

0

Reputation

  1. Am I the only one in the whole world with this problem? @.@
  2. 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!!!]
  3. Hi!. I know this is not a programming board, but I'm kinda desperate and frustrated here. =/ This all started reading that you can "add" stations by modding the productionsindex.lua So great, I thought... in my game (SP) I have a trading port with too many drones and drones can only be sold to another one and as their goods that buy/sell are random, I literally have 158 sectors with trading ports... NONE buys me. So I went... ok, I have this mine, this TP that sells drones... okey, maybe I can get something useful from it. (transforming "ore" into "materials ore"). And here started my nightmare... After trying and trying and trying, I came up with this code: Why Mineral Robots?, because it had everything (ingredients, results and garbage). Made a mod with that, started the game, open up the ~dev debug menu and there, in the factories, there is the "last one", mine!. (checked too trying to "build one" with a founder able ship). Everything good until now... I click the button, spawn one.... and it adds a "Vanilla" Mineral Robots.... After trying a bit, I just went with a "modified" Mineral Robots, just in case the "ore" was the one blocking it: As you see, it's EXACTLY a copy of the vanilla one, just with the ingredients modified. (there are a lot of "duplicates" with different ingredients in the lua, so what I did was not much different?). Did the same... and.... it again spawns a "normal" vanilla one... Ok... maybe if I can change it again, so I did this: So, it's now a farm... (and I wanted to know if I was clicking the right button). Did all again and *YES*, in the ~dev menu, it SAYS: "Mining Robot Farm". Good.... click on it... it spawns the vanilla one AGAIN. BUT!!!... the actual station that spawned, says: "Mining Robot Factory". So, the line is being read well (shows in the ~dev as Farm) but the actual station that it creates, it's the normal one. Ok, maybe if I try something that's not in the lua by default, something like this: Great, in the ~dev, it shows "Xanion Ore Mine", click on it and YES!, it spawns a mine with the name of "Xanion Ore Mine" but of course when I try to trade goods with it to see if it worked at last.... and this: Of course it doesn't "produce" anything... and it demands the same things as other mines. Now, in the SAME sector, I have a Cooper and a Zync mine, and they DO produce, they do work well... Back in 2017, there was this: https://www.avorion.net/forum/index.php?topic=4049.0 And in there, it says: "But when you add new stations to to productionsindex.lua, you do not need to add them anywhere else. The game automaticly creates factories from all stations in productionsindex.lua." So... I just CAN'T imagine, what's wrong... =(
×
×
  • Create New...