Search found 11 matches

by DeznekCZ
Fri Oct 02, 2020 1:42 am
Forum: Technical Help
Topic: Game freezes
Replies: 15
Views: 4534

Re: Game freezes

I got an idea to solution how to make it more efficient. There could be queue with all guns and every tick will be updated only some of them instead checking of all grids. In first tick after load will be queue constructed and in any call of entity will be equiped or unequiped, this queue will be ch...
by DeznekCZ
Thu Oct 01, 2020 10:18 pm
Forum: Technical Help
Topic: Game freezes
Replies: 15
Views: 4534

Re: Game freezes

Hi all, GunEquipment can take that much time how much grids (equipment grids) are on map. In version 0.0.11 was some optimalization, but it can not handle all. For now it contain many loops, specially in OnRobotBuildEntity and in OnBuildEntity. If there was build many entities in one tick, may cause...
by DeznekCZ
Mon Aug 31, 2020 11:09 pm
Forum: Won't implement
Topic: Event: on_player_removed_equipment - actual energy value needed
Replies: 4
Views: 2031

Re: Event: on_player_removed_equipment - actual energy value needed

As for the other values and the event It's already counting the number of equipments removed, would it be that difficult to return the total energy contained in those? As it looks like only one type of equiment can be removed at once anyway i think just one number would be sufficient. Or is this ab...
by DeznekCZ
Mon Aug 31, 2020 8:40 pm
Forum: Won't implement
Topic: Event: on_player_removed_equipment - actual energy value needed
Replies: 4
Views: 2031

Re: Event: on_player_removed_equipment - actual energy value needed

You mean for example create a simple script call after fire (inside event of weapon), store actual value and in custom on remove reaction read that value?
Is there any identifier of grid?
by DeznekCZ
Sun Aug 30, 2020 11:18 pm
Forum: Won't implement
Topic: Event: on_player_removed_equipment - actual energy value needed
Replies: 4
Views: 2031

Event: on_player_removed_equipment - actual energy value needed

Hi Developers, for my mod i request to know how many energy was inside removed equipment items. Is there possible to add some optional arguments to get result. Ideas: add event: on_player_pre_removed_equipment: equipment: LuaEquipment, grid: LuaEquipmentGrid, owner: LuaEntity add event value: energy...
by DeznekCZ
Tue Jun 05, 2018 7:42 am
Forum: Modding help
Topic: Wall water transition
Replies: 0
Views: 672

Wall water transition

Hi developers, I have found something bad. Can i know the reason why walls make a water transition? See picture original collision mask = {"ground-tile"} custom collision mask = {"ground-tile", "layer-14", "item-layer", "object-layer"} or = {"it...
by DeznekCZ
Sun Jun 03, 2018 12:57 am
Forum: Already exists
Topic: [SOLVED] Name of tile (mined, placed)
Replies: 3
Views: 2087

[SOLVED] Name of tile (mined, placed)

Hi developers, I have found that function LuaSurface::get_tile(x,y) returns LuaTile without values in prototype and name. Booth are "nil" Solved - be careful with events local function on_mined_tile(event) local surface = game.surfaces[event.surface_index] local tiles = event.tiles for _,t...
by DeznekCZ
Sun Jun 03, 2018 12:48 am
Forum: Modding help
Topic: [Resolved] Identify floor/tile being mined name
Replies: 5
Views: 2132

Re: Identify floor name while mining or placing

Hi 321freddy,

is nice solution but, i need the name know in every tick and every tick i don't have stack of tiles.

That looks like bigger problem in C++ code.

Thanks for answer
by DeznekCZ
Wed Jan 17, 2018 6:05 pm
Forum: News
Topic: Friday Facts #225 - Bots versus belts (part 2)
Replies: 1016
Views: 427289

Re: Friday Facts #225 - Bots versus belts (part 2)

We hope, we are waiting. Stack-belt Stack-belt.gif Hi WIZ4 Nice solution but i thing this one can be used only for plates (exclude steel), gears or circuit. Other items wold look bad. But I thing we need something else like: Pallet belt + Crane - Transports all intermediate products (like gear, cir...
by DeznekCZ
Fri Sep 23, 2016 1:03 pm
Forum: Multiplayer
Topic: Looking for people to play with (ENG)
Replies: 6
Views: 2347

Re: Looking for people to play with (ENG)

Hi,
today I finished solo game and I could help you with building of your base.

Go to advanced search