TUXDB - LINUX GAMING AGGREGATE
by NuSuey
NEWSFEED
▪️ GAMES
▪️ STEAM DECK ▪️ DEALS ▪️ CROWDFUNDING ▪️ COMMUNITY
tuxdb.com logo
Support tuxDB on Patreon
Currently supported by 9 awesome people!

🌟 Special thanks to our amazing supporters:


✨ $10 Tier: [Geeks Love Detail]
🌈 $5 Tier: [Arch Toasty][Benedikt][David Martínez Martí]

Steam ImageSteam ImageSteam ImageSteam ImageSteam ImageSteam Image
Friday Facts #210 - Circuit connector module implementation

It’s been several weeks since we showed you the graphics for new high resolution circuit connector modules (FFF-202). However now is finally the time when we have them in the game. In this article I will briefly show you what was done both in the graphics and code, and what new benefits are there for you as players and modders. I find the 0.15 version of the circuit connector module has following “problems”: [olist]

  • The wire connectors are different from the combinators.
  • Wires sometimes completely overlap, making only one of them properly visible.
  • Modularity - you can somewhat tell what is happening based on the LED states, but it could be much nicer.
  • Connecting a belt always looks weird, while the yellow structure which holds the connector box could be made more specific.
  • Some of the rotations are utterly useless.
  • The Lua definitions are spread over every single entity, so revisiting them all is a big pain.[/olist]

    1. The wire connectors are different from the combinators


    We have been experimenting with the design of how the little pieces which connect to wires should look like. Most of them don’t really make sense in terms of physics, but visually the combinator ones seem to work pretty nicely in my opinion. That, and the circuit connector should be somewhat consistent with the combinators in this regard, so we just used the combinator design from when Albert made the combinators back in 2015 (FFF-88).

    2. Wires sometimes completely overlap


    As we already tried to hint in FFF-202 (but we didn’t have a proper picture for it yet because the hr circuit connector wasn’t in the game yet), when you build entities vertically, they would very often only show one colour of wire.
    To prevent this from happening, I took a pixel grid in Blender and I tried to always have the connectors far away from each other to prevent this from happening. The same issue happens with combinators, but let’s see if we ever have time to change that.

    3. Modularity


    The system of drawing has slightly changed - now when you connect an entity, you can clearly recognize what it is doing and what is it's state. The rule is: Red/Green LED means write mode - generally stopping/starting the entity. Blue LED means reading mode - generally reading chest contents, reading signal colours, and so on.
    If you only connect to the logistic network, even the wire connection points are going to disappear as you can see on the pump above.

    4. Transport belt connectors


    Previously we were using the universal connector on belts, and to support it we made a special layer with a frame to hold it. This just uses another layer and generally looks rather weird.
    We found it better to just make specific sprites for belts, which should integrate nicer and use less layers.

    5. Useless rotations


    If you ever looked at how the circuit connector module spritesheet actually looks, you would have noticed that there are 32 rotations of it. For the first row, which is just flat on the ground, all of the 8 rotations are useful, but when the box starts tilting, the last three are looking away from the camera and are basically impossible to use.
    At the same time, on some entities and in some cases it would be really cool to be able to just put the wire connection points at the opposite side of the box. I put the two things together and made the impossible-to-use rotations just be a flipped version of the useful ones. The picture below is a mockup, the actual spritesheets have separate layers to allow the modularity mentioned above.
    The game does not actually utilize all of the 32 rotations, but it’s easier to have them all for future new entities - importantly also new entities added by mods.

    6. Lua definitions made at each entity


    When the graphics were finished, I was looking at how could I put the connector in the game. We had good experience with generating the Lua code in combinators, and I wanted to make use of some similar system again, because there is just a stupid amount of shiftings and definitions to be made. To get all the shifting values, we are using a very similar system to what was described in FFF-202, special pictures from After Effects processed by python scripts. The only real difference is that now After Effects also has to import spritesheets of our existing entities and align them with the shifting values. Luckily, After Effects supports javascript based expressions which makes this work simpler. var shiftingX = 16; var shiftingY = 8; var finalX = transform.position[0]+ (shiftingX * 2); var finalY = transform.position[1]+ (shiftingY * 2); [finalX, finalY] This simple expression just lets me center the sprite and copy the X and Y shifting values from Lua, instead of having to worry about making calculations all the time, and it’s more readable when re-visiting and checking. With the shifting values ready, the next step is to tell the game to accept them somehow. I wouldn’t dare to try overwriting all of the entries in entities.lua and similar files, simply because it would probably mean massive amount of errors, both by hand or somehow automatically. So instead Michal (Posila) wrote a python script which generates a new circuit connector file where all of the specific definitions are kept, and refactored the entities so that each entity connectible to the circuit network just grabs the values from the master circuit connector file. Hopefully this makes it more maintainable for the future...

    High resolution lamp


    As one of the often used entities in the circuit network, the lamp is getting a high resolution version. The graphics are a work in progress so there will likely be some changes.
    As always let us know what you think, just like you have been in the last 4 years (FFF-1) on our forum. We would like to thank you for all the attention and feedback through all this time, it’s really nice to be able to talk about our work, and sometimes even add something we forgot and you mentioned.


    [ 2017-09-29 14:49:09 CET ] [ Original post ]

  • Factorio
    Wube Software LTD. Developer
    Wube Software LTD. Publisher
    2020-08-14 Release
    Game News Posts: 506
    🎹🖱️Keyboard + Mouse
    Overwhelmingly Positive (164072 reviews)
    The Game includes VR Support
    Public Linux Depots:
    • Factorio Linux64 [306.86 M]
    • Factorio Linux32 [300.1 M]
    Available DLCs:
    • Factorio: Space Age
    Factorio is a game in which you build and maintain factories. You will be mining resources, researching technologies, building infrastructure, automating production and fighting enemies. In the beginning you will find yourself chopping trees, mining ores and crafting mechanical arms and transport belts by hand, but in short time you can become an industrial powerhouse, with huge solar fields, oil refining and cracking, manufacture and deployment of construction and logistic robots, all for your resource needs. However this heavy exploitation of the planet's resources does not sit nicely with the locals, so you will have to be prepared to defend yourself and your machine empire.

    Join forces with other players in cooperative Multiplayer, create huge factories, collaborate and delegate tasks between you and your friends. Add mods to increase your enjoyment, from small tweak and helper mods to complete game overhauls, Factorio's ground-up Modding support has allowed content creators from around the world to design interesting and innovative features. While the core gameplay is in the form of the freeplay scenario, there are a range of interesting challenges in the form of the Scenario pack, available as free DLC. If you don't find any maps or scenarios you enjoy, you can create your own with the in-game Map Editor, place down entities, enemies, and terrain in any way you like, and even add your own custom script to make for interesting gameplay.

    Discount Disclaimer: We don't have any plans to take part in a sale or to reduce the price for the foreseeable future.

    What people say about Factorio


    • No other game in the history of gaming handles the logistics side of management simulator so perfectly. - Reddit
    • I see conveyor belts when I close my eyes. I may have been binging Factorio lately. - Notch, Mojang
    • Factorio is a super duper awesome game where we use conveyor belts to shoot aliens. - Zisteau, Youtube

    MINIMAL SETUP
    • OS: Linux (tarball installation)
    • Processor: Dual core 3Ghz+Memory: 4 GB RAM
    • Memory: 4 GB RAM
    • Graphics: OpenGL 3.3 core. DirectX 10.1 capable GPU with 512 MB VRAM - GeForce GTX 260. Radeon HD 4850 or Intel HD Graphics 5500
    • Storage: 3 GB available space
    RECOMMENDED SETUP
    • OS: Linux (tarball installation)
    • Processor: Quad core 3GHz+Memory: 8 GB RAM
    • Memory: 8 GB RAM
    • Graphics: OpenGL 4.3 core. DirectX 11 capable GPU with 2 GB VRAM - GeForce GTX 750 Ti. Radeon R7 360
    • Storage: 3 GB available space
    GAMEBILLET

    [ 6102 ]

    16.99$ (15%)
    16.97$ (15%)
    16.96$ (15%)
    16.52$ (17%)
    20.49$ (18%)
    12.59$ (16%)
    5.03$ (16%)
    4.44$ (78%)
    4.44$ (78%)
    8.47$ (15%)
    8.89$ (11%)
    12.66$ (16%)
    8.47$ (15%)
    13.19$ (12%)
    1.67$ (16%)
    1.67$ (16%)
    31.14$ (11%)
    16.59$ (17%)
    12.59$ (16%)
    16.96$ (15%)
    17.39$ (13%)
    17.79$ (11%)
    16.59$ (17%)
    25.46$ (15%)
    4.09$ (18%)
    18.39$ (8%)
    29.71$ (15%)
    16.39$ (18%)
    13.34$ (11%)
    12.74$ (15%)
    GAMERSGATE

    [ 764 ]

    9.94$ (45%)
    7.73$ (45%)
    0.68$ (91%)
    1.8$ (82%)
    10.58$ (47%)
    8.49$ (58%)
    4.73$ (68%)
    0.43$ (91%)
    1.7$ (91%)
    2.13$ (91%)
    0.85$ (79%)
    5.1$ (74%)
    8.5$ (79%)
    7.73$ (45%)
    0.68$ (90%)
    8.66$ (49%)
    0.37$ (63%)
    0.53$ (92%)
    0.85$ (91%)
    0.77$ (91%)
    1.95$ (90%)
    3.83$ (62%)
    35.99$ (10%)
    20.39$ (49%)
    7.5$ (50%)
    1.02$ (83%)
    0.53$ (92%)
    2.55$ (83%)
    19.99$ (20%)
    0.77$ (91%)

    FANATICAL BUNDLES

    Time left:

    12 days, 10 hours, 59 minutes


    Time left:

    19 days, 10 hours, 59 minutes


    Time left:

    8 days, 10 hours, 59 minutes


    Time left:

    5 days, 10 hours, 59 minutes


    Time left:

    13 days, 10 hours, 59 minutes


    Time left:

    15 days, 10 hours, 59 minutes


    Time left:

    36 days, 10 hours, 59 minutes


    Time left:

    356461 days, 2 hours, 59 minutes


    Time left:

    18 days, 10 hours, 59 minutes


    Time left:

    47 days, 10 hours, 59 minutes


    Time left:

    33 days, 10 hours, 59 minutes


    HUMBLE BUNDLES

    Time left:

    0 days, 4 hours, 59 minutes


    Time left:

    2 days, 4 hours, 59 minutes


    Time left:

    7 days, 4 hours, 59 minutes


    Time left:

    9 days, 4 hours, 59 minutes


    Time left:

    14 days, 4 hours, 59 minutes

    by buying games/dlcs from affiliate links you are supporting tuxDB
    🔴 LIVE