Search found 17 matches

by cogito123
Thu Jan 23, 2020 4:03 pm
Forum: Not a bug
Topic: [0.18.x] No API to spawn particles
Replies: 1
Views: 114

[0.18.x] No API to spawn particles

Hi,

I made a thread in modding help, but I got no reply regarding new API to spawn particles for 2 days. We think it's a bug, that you cannot make particles using LuaSurface::create_trivial_smoke.

Thread in the question: viewtopic.php?f=25&t=80255
by cogito123
Wed Jan 22, 2020 5:46 pm
Forum: Resolved Problems and Bugs
Topic: [posila] [0.18.0] surface.min_brightness issue
Replies: 6
Views: 466

Re: [posila] [0.18.0] surface.min_brightness issue

Hi,

That's also an issue in my scenario. Having surface as dark as possible during the night was part of a game. What's this "LUT" thingy and how can I use it, in scenario code?
by cogito123
Tue Jan 21, 2020 4:58 pm
Forum: Implemented mod requests
Topic: [0.18.x] New API to spawn particles
Replies: 2
Views: 224

[0.18.x] New API to spawn particles

Hi,

As the particles are not entities anymore how can I create them using 0.18 API? I tried using LuaSurface::create_trivial_smoke, but particle names were not recognized.
by cogito123
Sat Jan 18, 2020 6:44 pm
Forum: Modding help
Topic: [0.17.x] LuaRendering:draw_polygon vertices order
Replies: 3
Views: 141

[0.17.x] LuaRendering:draw_polygon vertices order

Hi, In which order do I have to pass vertices into draw_polygon to make it not look like 1 big mess? I already tried passing them as clockwise, counter clockwise, but none of them seem to give visually appealing result. I mean, it works ok for triangles, but that's not what this function is about if...
by cogito123
Thu Dec 26, 2019 8:00 pm
Forum: Modding help
Topic: [0.17.x][Scenario] map_gen_settings.autoplace_settings doesn't work with most of the entities
Replies: 0
Views: 67

[0.17.x][Scenario] map_gen_settings.autoplace_settings doesn't work with most of the entities

Hi, I'm creating a new surface and I want to specify additional things to spawn, like gun turrets. local map = { default_enable_all_autoplace_controls = false, autoplace_settings={ entity = { settings = { ["gun-turret"] = { frequency = 10, size = 10, richness = 10 } } } } } game.create_surface("aren...
by cogito123
Sun Aug 18, 2019 2:35 pm
Forum: Modding help
Topic: [0.17.66] LuaControl:shooting_state bugged interface
Replies: 2
Views: 159

[0.17.66] LuaControl:shooting_state bugged interface

Hi, I'm writing a complex scenario where LuaEntity with a "character" type tracks enemies on their own and tries to kills them. The scenario also assumes that "character" type can also destroy building such as walls. The problem is that after I search for enemies using LuaSurface:find_entities_filte...
by cogito123
Wed Jul 17, 2019 6:24 pm
Forum: Modding help
Topic: [0.17.x][scenario] Extend LuaPlayer instance
Replies: 2
Views: 114

[0.17.x][scenario] Extend LuaPlayer instance

Hi, I got for example: local p = game.players[1] Now, I can access properties such as 'force', 'name' and so on. My question is, why I can't assign more properties into this instance? I would like to do something like: local p = game.players[1] p["my_local_variable"] = 123 If my understanding is cor...
by cogito123
Tue Jul 16, 2019 3:35 pm
Forum: Not a bug
Topic: [0.17.57] LuaStyle::horizontal_align does nothing for label
Replies: 1
Views: 106

[0.17.57] LuaStyle::horizontal_align does nothing for label

Hi,

The LuaStyle::horizontal_align seems to have no effect on label type of widget. Even if I set it to "center" I still require to add padding manually to center the text.
Label widget is a child of frame element if that helps.
by cogito123
Tue Jun 11, 2019 6:02 pm
Forum: Not a bug
Topic: [0.17.x] Repeated "shoot select" lag
Replies: 3
Views: 134

Re: [0.17.x] Repeated "shoot select" lag

Loewchen wrote:
Tue Jun 11, 2019 5:54 pm
That is just caused by leaving latency hiding when shooting. NaB.
I disagree as I very rarely experience lag in factorio multiplayer, this bug is consistent and isn't caused by my ping.
by cogito123
Tue Jun 11, 2019 5:54 pm
Forum: Won't fix.
Topic: [0.17.x] Character entity holds weapon, even if weapon tab is empty [Visual bug]
Replies: 1
Views: 204

[0.17.x] Character entity holds weapon, even if weapon tab is empty [Visual bug]

Hi,

When you shot at something and you quickly empty your inventory from any weapon, character assigned to player still runs with weapon in his hand.
Video demonstrating the issue:
https://www.youtube.com/watch?v=Ctg5UVxMRiM
by cogito123
Tue Jun 11, 2019 5:40 pm
Forum: Not a bug
Topic: [0.17.x] Repeated "shoot select" lag
Replies: 3
Views: 134

[0.17.x] Repeated "shoot select" lag

Hi, since I remember there was always this kind of weird lagging, when player tries to draw weapon using default C key "Shoot select". When you hit it repeatedly it teleports you 2 meters back. When you press it and hold it for a second, then release it - you get "lag boosted", but it looks like gam...
by cogito123
Fri May 24, 2019 4:31 pm
Forum: Not a bug
Topic: [0.17.42] Data race in LuaGameScript::create_surface
Replies: 6
Views: 420

Re: [0.17.42] Data race in LuaGameScript::create_surface

Thanks for the report however I can't reproduce what you're describing. The code snip you have in your original post isn't even valid Factorio Lua since you can't use game outside of an event. Additionally you will never get a surface_created event where the surface_index is invalid. If you get the...
by cogito123
Thu May 23, 2019 3:54 pm
Forum: Not a bug
Topic: [0.17.42] Data race in LuaGameScript::create_surface
Replies: 6
Views: 420

Re: [0.17.42] Data race in LuaGameScript::create_surface

Fair enough, bad ordering in the internal code then, or insufficient documentation (regarding when a surface is actually "created"). If I receive event on_surface_created I expect surface object to be fully initialized, if it's not, then what's the point of this event if I can't do anything meaning...
by cogito123
Wed May 22, 2019 6:09 pm
Forum: Not a bug
Topic: [0.17.42] Data race in LuaGameScript::create_surface
Replies: 6
Views: 420

[0.17.42] Data race in LuaGameScript::create_surface

Hi, Snippet that roughly demonstrates the problem: 1. local surface = game.surfaces[1] 2. local map_settings = surface.map_gen_settings 3. local new_surface = game.create_surface("test", map_settings) ... 4. script.on_event(defines.events.on_surface_created, function(event) 5. if event.surface_index...
by cogito123
Sat May 18, 2019 4:48 pm
Forum: Ideas and Suggestions
Topic: [PVP] Attack buildings with no weapons
Replies: 0
Views: 93

[PVP] Attack buildings with no weapons

Hi,

I make some hardcore PVP scenario. It would be really good if the player could attack any other entity using only axe. Current state of things prevent me from making enjoyable PVP scenario. I imagine adding support for this thing would be trivial as player can already attack units with only axe.
by cogito123
Sat Mar 02, 2019 8:56 am
Forum: Resolved Problems and Bugs
Topic: [0.17.x] Desync during rendering of [special-item=] tag on linux
Replies: 1
Views: 447

[0.17.x] Desync during rendering of [special-item=] tag on linux

Hi, The desync is 100% reproducible on my machine. When I enter in multiplayer chat: [special-item=0eNp1jtEKwjAMRX9l5rnCxkShvyIi3YxboU1Lm4lj9N9N54sv5iFwL/eeZIPBLRiTJQa9gR0DZdDXDbKdyLjq8RoRNFhGDwrI+Ko4GcoxJD4O6BiKAksPfIPuyk0BElu2+CXtYr3T4gdMEvjHUBBDllqgelVQrYJVdqnE/br+eVaBM1ITb0bnQvNMwTc8YzPOhiZ0YTpI...
by cogito123
Thu Feb 28, 2019 7:14 pm
Forum: Minor issues
Topic: [Twinsen][0.17.2] Anyone can cause total blackout for any player in multiplayer (icon spam in chat)
Replies: 3
Views: 785

[Twinsen][0.17.2] Anyone can cause total blackout for any player in multiplayer (icon spam in chat)

Hi, The bug causes whole screen to get filled with icons of [ img=tile/out-of-map ]. There is no limit on the chat on any server that I trolled :twisted: . You can just spam [ img=tile/out-of-map ] times 500 in a whisper command to anyone and he will not be able to see anything. You cannot scroll to...

Go to advanced search