Page 1 of 1

[Resolved 0.3.1] Bug on mission 2

Posted: Sun Mar 31, 2013 6:41 pm
by Smake
Hi,

I have replayed the mission 2 after have recovered the computer.
After 5~6 minutes when the countdown of the next attack appear the game freeze.

I load a old saved game on the same mission when the countdown reappear the game freeze without attack from aliens.

I'm on Windows 8 64bits for information.

Before update with the 0.3.0, i don't have this bug.
(Sorry for my english)

Re: [0.3.0] Bug on mission 2

Posted: Sun Mar 31, 2013 6:47 pm
by Leffi
hi,
i have the same problem.
Mission 2, after few minutes, before alien attack the game will crash.
i tried 64bit and 32bit verion and no difference.
on the older version works fine

Re: [0.3.0] Bug on mission 2

Posted: Sun Mar 31, 2013 8:38 pm
by zeldafan42
I have located the error in the script, it is an easy fix.... You simply have to navigate to your Factorio Folder (normally something like C:\Program Files\Factorio\data\base\campaigns\beta\level-02) and open up control.lua with an Editor of your choice(the normal Editor is sufficient altough I prefer Notepad++) then navigate to:

Code: Select all

  game.setmulticommand({type=defines.command.attack,
                          target=game.player,
                          distraction=defines.distraction.byenemy},
                          glob.attackcount)
and change the line with target in it to:

Code: Select all

target=game.player.character,
and it should work. :D

Best regards
zeldafan42

Re: [0.3.0] Bug on mission 2

Posted: Sun Mar 31, 2013 8:57 pm
by Leffi
It works!

thanks a lot!

Re: [0.3.0] Bug on mission 2

Posted: Mon Apr 01, 2013 12:09 am
by kovarex
Thx for the report, it will be fixed in 0.3.1 (As well as better handling of this error, so the game will create error message instead of freezing, when different object type is given)

Re: [0.3.0] Bug on mission 2

Posted: Mon Apr 01, 2013 9:39 am
by Jarekexe
Didnt solve the problem for me... any ideas why it's still crashing?


Nevermind, 0.3.1 solved the problem ^^