Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on PvP #101

Closed
Damgam opened this issue Apr 29, 2017 · 8 comments
Closed

Crash on PvP #101

Damgam opened this issue Apr 29, 2017 · 8 comments

Comments

@Damgam
Copy link

Damgam commented Apr 29, 2017

http://i.imgur.com/72ajDIT.png
happen when you try to start match on PvP scenario

@kyranf
Copy link
Owner

kyranf commented Apr 29, 2017 via email

@Damgam
Copy link
Author

Damgam commented Apr 29, 2017

only Robot Army and Creative Mode.
when you start PvP scenario you have "lobby" map. when you set everything you click "start" and then battle map appear... it's creating new forces at this moment... we were 2 on the map and this happened when i clicked "start" to generate battle map (i guess it's something with forces)

@kyranf
Copy link
Owner

kyranf commented Apr 30, 2017

@Damgam thanks, i'm probably missing some new tables that should be instantiated during the "on_force_created" event but are being missed, and then later when all forces are iterated through to check for tick updates, the force doesn't have a tick table yet.

@kyranf
Copy link
Owner

kyranf commented Apr 30, 2017

I was able to reproduce it instantly by using:
/c game.create_force("test_force")

while playing, it's definitely some missing code in the on_force_created event which should be making some of the new tables but clearly isn't.

@kyranf
Copy link
Owner

kyranf commented Apr 30, 2017

Turns out it was the handleForceCreated event handler was running but the input (the new force object) wasn't being used properly, so all the code after that (which was fine) was not doing what it was meant to!

kyranf added a commit that referenced this issue Apr 30, 2017
…rrectly, nor the tick tables being filled
@kyranf
Copy link
Owner

kyranf commented Apr 30, 2017

Fixed in Unstable branch, please download the branch and name your mod folder 0.3.1 and everything should be good. I'm working on other patches for the other new issue with the Position error in the base Factorio lua lib.

@Damgam
Copy link
Author

Damgam commented Apr 30, 2017

Thanks :)

@kyranf
Copy link
Owner

kyranf commented Aug 5, 2017

appears fixed, no more bugs reports related to this since.

@kyranf kyranf closed this as completed Aug 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants