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

Car Causes Crash on load with factorio version 0.11.18 #292

Closed
Cheata opened this issue Mar 12, 2015 · 6 comments
Closed

Car Causes Crash on load with factorio version 0.11.18 #292

Cheata opened this issue Mar 12, 2015 · 6 comments

Comments

@Cheata
Copy link

Cheata commented Mar 12, 2015

latest version of factorio changes the crash damage multiplyer to energy to hit point

easy fix while waiting for Dysoch to produce a new version :)
in MAIN-DyTech-Machine_1.0.2\prototypes\cars\entity.lua
line 56 (under the setup for car2)
change
crash_damage_multiplier = 0.1,
to
energy_per_hit_point = 1,

and for the tank
MAIN-DyTech-War_1.0.1\prototypes\tanks\entity.lua
somwere around line 12 seems to work

add the line
energy_per_hit_point = 0.5,

@MIZTigerForLife
Copy link

Also experiencing this issue. The above fix allows factorio to load. Thanks for the temporary workaround.

@nrich61
Copy link

nrich61 commented Mar 17, 2015

So the cars fix seems to work, but when I do the tanks fix I get this

factorio

If i don't do the tanks fix I get this
factorio 2

are there people who are actually able to play this mod on .18 (not meant as a criticism)?

@L3PO
Copy link

L3PO commented Mar 17, 2015

Hello nrich61,
write the line so:

to help

@Cheata
Copy link
Author

Cheata commented Mar 18, 2015

looking at my copy of the file in question i would guess that you are either putting the energy per hit point line after the "stack size =1" line, if this is the case you need to leave the comma off the energy_per_hit_point line and add it to the end of the stack size line.

or possibly you are mistakenly deleting the }, which exists around line 13, without looking at your modified file i cant say specifically what the mistake is.

simplest solution is to do it exactly as L3PO has done it in his screen shot above

also i would recommend using a notepad replacement such as notepad++ or notepad2 which can be setup to display line numbers and format code neatly

@L3PO
Copy link

L3PO commented Mar 18, 2015

@Cheata, thanks for the tip, notepad2 is very helpful.

@Dysoch
Copy link
Owner

Dysoch commented Mar 18, 2015

fixed for release of next version tomorrow around noon (UTC +1)

@Dysoch Dysoch closed this as completed Mar 18, 2015
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

5 participants