Search found 4 matches

by alexa
Wed Sep 11, 2019 12:16 am
Forum: Modding help
Topic: Get size of window.
Replies: 11
Views: 298

Re: Get size of window.

After looking through this mod https://mods.factorio.com/mod/SmogVisualPollution I have found that they do it by drawing over every chunk. I run on a potato and loading this onto an established map dropped my fps significantly. So for me the "ideal" mod api would be access to the camera position an ...
by alexa
Mon Sep 09, 2019 10:05 pm
Forum: Modding help
Topic: Get size of window.
Replies: 11
Views: 298

Re: Get size of window.

Good to know, I would like to avoid that level of hack but at least there is some way around it. Thanks :)
by alexa
Mon Sep 09, 2019 12:53 pm
Forum: Modding help
Topic: Get size of window.
Replies: 11
Views: 298

Re: Get size of window.

I am looking to add weather to factorio, right now the thought process has been to draw an image over the screen. Since my last post I realized that I am dumb and it's just LuaPlayer.display_resolution. Thank you Choumiko. This appears to work for the default zoom level however does not update when ...
by alexa
Mon Sep 09, 2019 3:02 am
Forum: Modding help
Topic: Get size of window.
Replies: 11
Views: 298

Get size of window.

I want to be able to draw a red square in the top left corner of the map relative to wherever the player is. Right now I have this code rendering.draw_rectangle({ surface = game.surfaces["nauvis"], left_top = game.players[1].position, right_bottom = { game.players[1].position.x + 10, game.players[1]...

Go to advanced search