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: 70323

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 8222 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: 2743

[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 load it, I get ...
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: 1373

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: 1188

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 advanced_chest()
local ...
by WIZ4
Fri Mar 23, 2018 6:57 pm
Forum: Modding help
Topic: How to count players with a particular tag
Replies: 4
Views: 1621

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: 1621

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 1621 times
by WIZ4
Thu Mar 22, 2018 7:13 pm
Forum: Pending
Topic: [0.16.32] Crash during game loading
Replies: 3
Views: 1366

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 107 times
by WIZ4
Thu Mar 22, 2018 5:32 pm
Forum: Pending
Topic: [0.16.32] Crash during game loading
Replies: 3
Views: 1366

[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 1366 times
1Animation.gif
1Animation.gif (25.34 MiB) Viewed 1366 times
factorio-current.log
(15.56 KiB) Downloaded 132 times
by WIZ4
Tue Mar 20, 2018 12:59 pm
Forum: Resolved Problems and Bugs
Topic: [Rseding91] [16.30]Missing specification of font with name
Replies: 1
Views: 1044

[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 1044 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: 1662

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 1637 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: 1662

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 ...
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: 1662

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 1653 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: 1662

[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 1662 times
by WIZ4
Thu Mar 15, 2018 6:45 pm
Forum: Modding help
Topic: Researched all technologies before science pack 3
Replies: 2
Views: 958

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 ...
by WIZ4
Thu Mar 15, 2018 5:12 pm
Forum: Modding help
Topic: Researched all technologies before science pack 3
Replies: 2
Views: 958

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 ...
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: 3060

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: 3060

[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 ...
by WIZ4
Sun Mar 11, 2018 5:51 pm
Forum: Modding help
Topic: How to use gui drop-down
Replies: 2
Views: 1116

Re: How to use gui drop-down

Thanks

Go to advanced search