Search found 209 matches

by WIZ4
Mon Apr 16, 2018 9:47 am
Forum: News
Topic: Friday Facts #238 - The GUI update (Part II)
Replies: 143
Views: 55606

Re: Friday Facts #238 - The GUI update (Part II)

EFLFE wrote:The helicopter will not be the fastest mode of transport (as logistic robots), as opposed to the aircraft. Still wondering what will happen if the plane, during the flight, runs out of fuel?))
If there was a character in the plane, a new game would appear.
Screenshot_6.png
Screenshot_6.png (2.56 MiB) Viewed 6303 times
by WIZ4
Mon Apr 16, 2018 9:40 am
Forum: Resolved Problems and Bugs
Topic: [wheybags] [0.16.36] Crash when rocket launch
Replies: 2
Views: 2254

[wheybags] [0.16.36] Crash when rocket launch

I create forces team1,team2 and moved yourself to team1. Then I build a rocket silo and before launching the rocket, i unified the team1 with the team2. /c game.merge_forces("team1","team2") I launched a rocket and got crash. After I unified the team, I save game. But now when I ...
by WIZ4
Mon Apr 02, 2018 10:02 pm
Forum: Modding help
Topic: How to find out which item was launched in the rocket
Replies: 3
Views: 1073

How to find out which item was launched in the rocket

How to find out which item was launched in the rocket in event on_rocket_launched?
by WIZ4
Tue Mar 27, 2018 4:16 pm
Forum: Modding help
Topic: How to insert all the items in several chests?
Replies: 1
Views: 895

How to insert all the items in several chests?

I can not insert on all items in chests. Items that do not fit in the chest, disappear.How to solve this problem? global.items = {} global.items.items_list = { defence = { ["stone-wall"] = 1000, ["gun-turret"] = 500, ["uranium-rounds-magazine"] = 1000 }} function advanc...
by WIZ4
Fri Mar 23, 2018 6:57 pm
Forum: Modding help
Topic: How to count players with a particular tag
Replies: 4
Views: 1218

Re: How to count players with a particular tag

eradicator wrote:

Code: Select all

local count = 0
for _,player in pair(game.players) do
  if player.tag == 'whatever' then
    count = count +1
    end
  end
game.print(count)
(untested)
Yes it works fine, thanks!
by WIZ4
Fri Mar 23, 2018 5:06 pm
Forum: Modding help
Topic: How to count players with a particular tag
Replies: 4
Views: 1218

How to count players with a particular tag

This command print that tag = nil

Code: Select all

/c game.print(#game.players.tag['[Tag]'])
Screenshot_7.png
Screenshot_7.png (114.92 KiB) Viewed 1218 times
by WIZ4
Thu Mar 22, 2018 7:13 pm
Forum: Pending
Topic: [0.16.32] Crash during game loading
Replies: 3
Views: 1130

Re: [16.32]Crash during game loading

Rseding91 wrote:Thanks for the report. Can you upload the dump file as well?
factorio-dump-current.dmp
(450.26 KiB) Downloaded 76 times
by WIZ4
Thu Mar 22, 2018 5:32 pm
Forum: Pending
Topic: [0.16.32] Crash during game loading
Replies: 3
Views: 1130

[0.16.32] Crash during game loading

I got crash when the game was loading. But I could still play it
Screenshot_6.png
Screenshot_6.png (180.37 KiB) Viewed 1130 times
1Animation.gif
1Animation.gif (25.34 MiB) Viewed 1130 times
factorio-current.log
(15.56 KiB) Downloaded 83 times
by WIZ4
Tue Mar 20, 2018 12:59 pm
Forum: Not a bug
Topic: [Rseding91] [16.30]Missing specification of font with name
Replies: 1
Views: 728

[Rseding91] [16.30]Missing specification of font with name

I created label with a non-existent font:

Code: Select all

frame.add{type = "label", name = "name", caption = "caption"}
frame.name.style.font = "default-medium-bold"
And got this error:
Screenshot_5.png
Screenshot_5.png (5.51 KiB) Viewed 728 times
I think this error should not lead to the closing game
by WIZ4
Mon Mar 19, 2018 6:54 pm
Forum: Not a bug
Topic: [16.30]Server description not transfer lines automatically
Replies: 5
Views: 1302

Re: [16.30]Server description not transfer lines automatically

So, I saw another problem. If the string is too long, the selection does not work correctly
Animation.gif
Animation.gif (148.78 KiB) Viewed 1277 times
by WIZ4
Mon Mar 19, 2018 6:41 pm
Forum: Not a bug
Topic: [16.30]Server description not transfer lines automatically
Replies: 5
Views: 1302

Re: [16.30]Server description not transfer lines automatically

Thanks for the report. The text box won't automatically add newlines - you have to manually add them if you want multiple lines. Or are you talking about something else? Why not? For example,map exchange string it does Animation.gif That's text-wrapping not adding newlines. The description field wi...
by WIZ4
Mon Mar 19, 2018 6:37 pm
Forum: Not a bug
Topic: [16.30]Server description not transfer lines automatically
Replies: 5
Views: 1302

Re: [16.30]Server description not transfer lines automatically

Rseding91 wrote:Thanks for the report. The text box won't automatically add newlines - you have to manually add them if you want multiple lines.

Or are you talking about something else?
Why not? For example,map exchange string it does
Animation.gif
Animation.gif (87.76 KiB) Viewed 1293 times
by WIZ4
Mon Mar 19, 2018 6:28 pm
Forum: Not a bug
Topic: [16.30]Server description not transfer lines automatically
Replies: 5
Views: 1302

[16.30]Server description not transfer lines automatically

The description of the server does not transfer lines automatically
Screenshot_8.png
Screenshot_8.png (381.18 KiB) Viewed 1302 times
by WIZ4
Thu Mar 15, 2018 6:45 pm
Forum: Modding help
Topic: Researched all technologies before science pack 3
Replies: 2
Views: 755

Re: Researched all technologies before science pack 3

for k, force in pairs (game.forces) do for k, technology in pairs (force.technologies) do local before_3 = true for k, ingredient in pairs (technology.research_unit_ingredients) do if ingredient.name == 'science-pack-3' then before_3 = false end end if before_3 than technology.researched = true end...
by WIZ4
Thu Mar 15, 2018 5:12 pm
Forum: Modding help
Topic: Researched all technologies before science pack 3
Replies: 2
Views: 755

Researched all technologies before science pack 3

How can I research all technologies before science pack 3? I tried to use it, but it research all technologies: for k, force in pairs (game.forces) do for k, technology in pairs (force.technologies) do for k, ingredient in pairs (technology.research_unit_ingredients) do if ingredient.name ~= 'scienc...
by WIZ4
Wed Mar 14, 2018 1:55 pm
Forum: Resolved Problems and Bugs
Topic: [Rseding91] [16.30] Crash on_pre_player_crafted_item
Replies: 3
Views: 2526

Re: [16.30] Crash on_pre_player_crafted_item

Bilka wrote:
16586.416 Time travel logging:
:D
What this?
by WIZ4
Wed Mar 14, 2018 1:04 pm
Forum: Resolved Problems and Bugs
Topic: [Rseding91] [16.30] Crash on_pre_player_crafted_item
Replies: 3
Views: 2526

[Rseding91] [16.30] Crash on_pre_player_crafted_item

I used this event in control.lua script.on_event(defines.events.on_pre_player_crafted_item, function(event) local player = game.players[event.player_index] if event.recipe then player.cancel_crafting() end end) As soon as I started craft, i got crash. Apparently because of cancel_crafting() i wrote ...
by WIZ4
Sun Mar 11, 2018 5:51 pm
Forum: Modding help
Topic: How to use gui drop-down
Replies: 2
Views: 801

Re: How to use gui drop-down

Thanks

Go to advanced search