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

Show technology mistakenly unlocking research #39

Closed
cmears opened this issue Apr 12, 2019 · 3 comments
Closed

Show technology mistakenly unlocking research #39

cmears opened this issue Apr 12, 2019 · 3 comments

Comments

@cmears
Copy link

cmears commented Apr 12, 2019

When I click on the technology in a recipe, the technology window isn't shown and instead the clicked-on technology becomes unlocked. The game gives this output:

  40.414 Script @__FNEI__/core/Debug.lua:98: [FNEI][ERROR] <FNCustomEvents>  FNEI: event  recipe sprite-button tech  return error!
  40.420 Script @__FNEI__/core/Debug.lua:98: [FNEI][ERROR] <FNCustomEvents>  LuaForce::current_research is read only.
stack traceback:
        __FNEI__/utils/open_tech_hook.lua:68: in function 'show_tech'
        __FNEI__/scripts/recipe/controller.lua:305: in function 'cur_event'
        __FNEI__/scripts/custom_events.lua:65: in function <__FNEI__/scripts/custom_events.lua:64>
        [C]: in function 'pcall'
        __FNEI__/scripts/custom_events.lua:64: in function 'invoke'
        __FNEI__/scripts/events.lua:75: in function <__FNEI__/scripts/events.lua:72>

So I guess manipulating current_research in this way is no longer possible?

@cmears
Copy link
Author

cmears commented Apr 12, 2019

(with Factorio 0.17.29 by the way)

@MageKing17
Copy link

The hackish solution is no longer needed anyway, now that LuaControl::open_technology_gui() exists.

@npo6ka
Copy link
Owner

npo6ka commented Apr 14, 2019

Fixed in 0.2.4.

@npo6ka npo6ka closed this as completed Apr 14, 2019
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

3 participants