Jump to content

Founding mines - Entity exists already


Hammelpilaw

Recommended Posts

We have a problem on our server while founding mines from claimable asteroids:

 

2017-08-07 12-39-39| could not execute function 'foundFactory' in '"data/scripts/entity/minefounder.lua"':
2017-08-07 12-39-39| Entity exists already
2017-08-07 12-39-39| 	[C]:-1: in function createEntity
2017-08-07 12-39-39| 	data/scripts/entity/minefounder.lua:285: in function transformToStation
2017-08-07 12-39-39| 	data/scripts/entity/minefounder.lua:252: in function ?
2017-08-07 12-39-39| Setting state to invalid.
2017-08-07 12-39-43| An error occurred during remote call to 'foundFactory' in script "data/scripts/entity/minefounder.lua". Function doesn't exist.

 

When this happens the claimable asteroid does not despawn, but most times the claimed mine spawns anywhere in the sector with strange plans loaded, wich already exist on other player mines. For example this one:

 

593B1164152F9E394D6FB6C59C654927B53003DA

 

The huge stone block looks like a mine wich already exists in the galaxy (sadly we do not know wich one exactly), the small cargo blocks wich looks like what a founded station adds to a founding ship are automaticly added. This was generated when I founded the mine, I did not modify it... and it caused the error log above.

 

 

Could this be caused by loading ship plans on founded mines?

Link to comment
Share on other sites

We use a lot of mods, but the scripts itself does not seem to be the problem. The scripts itself works.

 

2017-08-07 12-39-39| Entity exists already

 

I think there should be a problem with entities... we just backed up the galaxy and started to destroy and delete some of the existing player mines, now it works fine again. But this was not the first time that this error accured... the last time there was only one player mine wich needed to be completely deleted to make everything work fine again.

Link to comment
Share on other sites

Just did some testing:

The problem seems to happen, when you found two mines of the same type, like two copper mines. The first one works fine, the 2nd one gets bugged.

I reproduced this in a vanilla offline game, in a new galaxy (ok I used the Avorion command package to spawn some equipment for finding asteroids, but this should not cause these issues). So to me it looks like an avorion bug.

Link to comment
Share on other sites

Can confirm this issue, we haven't find out the cause yet as we have a lot of mods aswell.

The only one that directly involves claimable asteroids is MineCorp, but there doesn't seem to be an issue with that.

 

This isn't the first time the engine has issues with duplicate entities so my bet is that it's a vanilla bug.

Link to comment
Share on other sites

Can confirm this issue, we haven't find out the cause yet as we have a lot of mods aswell.

The only one that directly involves claimable asteroids is MineCorp, but there doesn't seem to be an issue with that.

 

This isn't the first time the engine has issues with duplicate entities so my bet is that it's a vanilla bug.

 

It is definitely not caused by a mod, because i get this issue also in a new generated vanilla galaxy. MineCorp should not touch claimable asteroids... but even if it does, the mod works fine. So if I am not the only one this must be an Avorion bug. Lets hope for a fix soon.

Link to comment
Share on other sites

Just replicated this issue on vanilla, here are the steps:

 

- Build a mine on a claimable asteroid, doesn't matter which type.

- Build the same type of mine in the same sector or elsewhere, doesn't matter.

- When acknowledging the warning screen of the second mine it draws the money but doesn't build the mine.

- When you jump out of the sector and back in, the old asteroid is still at its original position but in the center of the sector a glitched mine will spawn of the type you purchased, without any functionality besides being able to hire crew there.

 

Here is a screenshot of the associated error:

pVGm-wYsToihzkL5LMU-NQ.png

 

Link to comment
Share on other sites

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...