The flip_horizontal and flip_vertical fields of the on_pre_build event are documented as being boolean true/false, but in fact are Lua numbers 0 and 1. This is a problem since in Lua 0 is truthy, so
I looked in the code, and I believe that you should use the BlueprintSelectArea event. This is exactly the event we are talking about. BlueprintSelectArea on the C++ side is translated to on_player_setup_blueprint. During the processing of this event, there is no reliable way to get access to the b...
Okay, the gun turret bug should be fully fixed. Thanks to kingarthur and eradicator for your help. Looking back, it seems all I really needed was the force.reset_technology_effects() command, which I simply put in a loop in a new lua migration file. I've been iterating over game.forces in my migrat...
I like the idea of a semi-automatic machine, which just cuts existing trees nearby, and a while ago I even found another mod (for reference) that did just that - I think it was called Wood Harvester or something similar. However, it's more involved that just imitating the base prototypes like I usu...
I'm with sparr here. Functionality trumps appearance. If 6 wagons fit in the block without spilling into the next block, there should be 6 frames shown, even if they visually spill past the train signal. If it's desired that the frames don't spill past the signal for cosmetic reasons, then the logic...
Unless I'm mistaken, you should be using on_player_configured_blueprint. I might call it a bug that creating a new blueprint immediately sets the blueprint (the player did not confirm anything)*. I believe you are mistaken. on_player_configured_blueprint fires when the player selects Confirm in the...
I have the same problem. Then I tried to load the game all mods disabled and only enabled the miniloader mod and got following error: error_miniloader.JPG thanks for your great work =) Hello! Im getting this same error "Fast-filter-miniloader (recipe)" running 18.X and Miniloader 1.11.1 (UPDATE: Ju...
This is extremely important, as the current behavior breaks a whole slew of modding use cases: 1) If a player places a blueprint using a blueprint library record, during `on_put_item` there is no way for mods to access the blueprint configuration or content. 2) If a player deconstructs an area with ...
Observed behavior: 1. Add event handler for on_player_setup_blueprint. 2. Create a blueprint of an entity. 3. In the event handler, observe the following: player.blueprint_to_setup.valid_for_read is true player.cursor_stack.valid_for_read is false player.blueprint_to_setup.is_blueprint is true playe...
Congratulations to the whole team at this fantastic achievement. This has been my “forever” game since I bought it in the 0.10 timeframe. So many amazing milestones (rocket silo, multiplayer, Steam release, and so many more!) and experiences, and many more yet to come now that it’s officially out in...
Original lore minded, I have VERY BAD feelings lore wise with the ship that crashed looking like such a one-man-one-use-only ship look. Shouldn't the guy with such wizardly engineering skills come from a civilization of some kind??? I prefer to think of the ship as an escape pod/lifeboat of some so...
I'm looking forward to the new emergency break features. Complete with sparks and high-pitched squeaking. No. You can not un-announce it now :p. Also the hover-shoes research looks interesting too. The emergency brakes is actually concealed rocket boosters that are automatically activated when a pl...
Really, really like the re-revised mining drill graphics. One thing that I immediately noticed was the chute that feeds the ore from the rails to the output roller. I thought "that's a lovely detail." Only then did I realize that it was there in the previous design, because it was so obscured by the...
Edit: It seems work if I put a pump directly on the input and force feed the acid. Is that how it's supposed to work? There are some fluidbox errors. Input fluid boxes should have base_level = -1, and output fluid boxes should have base_level=1. Some of the input fluidboxes have the wrong base_leve...
Discovered by creating a new surface: /c game.create_surface("test").spill_item_stack({0,0}, {name="iron-plate", count=1}) but also reproducible on nauvis by pointing to an area of the map yet to be generated: /c game.surfaces[1].spill_item_stack({500000,500000},{name="iron-plate",count=1}) Observed...
This is kind of implemented in 0.18.30. FluidWagon prototype will have tank_count with allowed values of 1,2 or 3 and default value of 3. No mods should be broken. Tank connection points will have spacing of 2 as always and set of connectors will be centered. This name initially made me think that ...
Pretty sure he means “axles.” I quite liked the variety of mechanical intermediates in XM2, without the sheer number of them that are in something like Industrial Revolution, and I’m sad to hear that they’re gone now (?). It felt good that even the simplest machines required multiple metals, some in...
There are multiple ways to create or edit a blueprint through script that don't have any event logic associated. Adding it for one and not the rest doesn't make sense to me. Additionally I have no plans to add events for all the ways it can be done so there's no point in adding it for any of them. ...
I recently received a bug report where another mod is using create_blueprint(), and this was bypassing my mod's on_player_setup_blueprint handling. My proposed fix was for the other mod to raise the event manually, but since this approach will no longer be accessible, it makes it more important that...