If there was a character in the plane, a new game would appear.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?))
Search found 209 matches
- 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)
- 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 ...
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 ...
- Mon Apr 02, 2018 10:29 pm
- Forum: Modding help
- Topic: How to find out which item was launched in the rocket
- Replies: 3
- Views: 1373
- 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?
- 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 ...
global.items = {}
global.items.items_list =
{
defence =
{
["stone-wall"] = 1000,
["gun-turret"] = 500,
["uranium-rounds-magazine"] = 1000
}}
function advanced_chest()
local ...
- 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
Yes it works fine, thanks!eradicator wrote:(untested)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)
- Fri Mar 23, 2018 5:50 pm
- Forum: Modding help
- Topic: How to count players with a particular tag
- Replies: 4
- Views: 1621
- 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]'])
- 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?
- 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
- 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:
And got this error:
I think this error should not lead to the closing game
Code: Select all
frame.add{type = "label", name = "name", caption = "caption"}
frame.name.style.font = "default-medium-bold"
- 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
- 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 ...
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 ...
- 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
Why not? For example,map exchange string it doesRseding91 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?
- 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
- 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 ...
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 ...
- 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 ...
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 ...
- 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
What this?Bilka wrote:16586.416 Time travel logging:
- 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 ...
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 ...
- 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