Author Topic: [DONE][Suggestion] Several Types of Air lock  (Read 6380 times)

Offline bulletdesigner

  • Commander
  • *****
  • Posts: 685
    • View Profile
[DONE][Suggestion] Several Types of Air lock
« on: March 18, 2020, 02:17:00 pm »
Trowing this into the mix i don´t know if its hard or easy to do.
But creating several types of airlock, will give an kool advantage is to have several bases type
Using the ProvideFunc on that facility,  we can have a base underground and other overground for ex.
Or have bases by races, or limiting construction making some bases only small.
« Last Edit: November 01, 2020, 01:00:34 pm by Meridian »

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9103
    • View Profile
Re: [Suggestion] Several Types of Air lock
« Reply #1 on: March 18, 2020, 02:28:12 pm »
todolisted

Offline bulletdesigner

  • Commander
  • *****
  • Posts: 685
    • View Profile
Re: [Suggestion] Several Types of Air lock
« Reply #2 on: March 18, 2020, 05:37:56 pm »
thks

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9103
    • View Profile
Re: [DONE][Suggestion] Several Types of Air lock
« Reply #3 on: November 01, 2020, 01:00:21 pm »
Added.

Possible air lock types to build are filtered by research requirements and texture type (normal vs fake underwater).

Note that:
- The first base is still limited to the standard air lock = the one with the lowest list order (and not fake underwater)... if that's a problem, let me know, I can try to extend it somehow
- Air locks still don't cost any money or resources. Only monthly maintenance.
« Last Edit: November 01, 2020, 01:09:11 pm by Meridian »

Offline bulletdesigner

  • Commander
  • *****
  • Posts: 685
    • View Profile
Re: [DONE][Suggestion] Several Types of Air lock
« Reply #4 on: November 01, 2020, 03:05:59 pm »
ho shit, Meridian you don´t let me take breaks between launches... hehehe looks awesome

Offline Ethereal

  • Commander
  • *****
  • Posts: 684
    • View Profile
Re: [DONE][Suggestion] Several Types of Air lock
« Reply #5 on: November 01, 2020, 07:19:54 pm »
Small bases - are interesting, but only if there are more than eight of them ...
It would be very nice if there was an opportunity to build 6 full-fledged bases and 12 small.
Well it is, dreams.

Offline bulletdesigner

  • Commander
  • *****
  • Posts: 685
    • View Profile
Re: [DONE][Suggestion] Several Types of Air lock
« Reply #6 on: November 05, 2020, 05:13:44 pm »
hey, so 3 new problem raised , the tunnel´s connections and the empty slot´s

1- Basically is there a way to stop the mapscript from digging tunnels on specific blocks?
2- Is there a Way on basecape facility's to make him not having the connecting things? (being spriteshape 0 is not an option due to being a 4x4)
3- Is there a way to have the tile that fill be specific from base type on mapscript the fill block, change by airlock type or other map present like the dependencies on the roads, only if the airlock tile is present then can be filled by type

Screenshot for better understanding

Also for testing can i use the testing OXCE one you provided on craft skinS?

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1933
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: [DONE][Suggestion] Several Types of Air lock
« Reply #7 on: November 05, 2020, 05:27:52 pm »
1. Maybe? After the digTunnel, you could removeBlock for specific groups/blocks then re-add them, but I'd test it to check first.

2. Not without disabling them for all other facilities - you can redraw the sprite in basebits that is drawn for the connectors to an empty frame.

3. Yes, but again with more complicated mapScripts. Set the airlocks' groups to something unique, use checkBlock to see which airlock is used in the base, then add conditionals to your fillArea commands based on which airlock is used.

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9103
    • View Profile
Re: [DONE][Suggestion] Several Types of Air lock
« Reply #8 on: November 05, 2020, 07:36:41 pm »
1/ I don't know anything about digging tunnels, I'll wait for oharty's feedback and if needed I will study the code later

2/ don't know much about this either, but it doesn't sound too intimidating, I will check later what can be done

Also for testing can i use the testing OXCE one you provided on craft skinS?

yes

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1933
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: [DONE][Suggestion] Several Types of Air lock
« Reply #9 on: November 05, 2020, 09:35:59 pm »
We figured out limiting when tunnels are dug by mapScripts, an example of using the same mapScript to do both underground bases with tunnels and above ground bases without for anyone interested:

Code: [Select]
mapScripts:
  - type: XBASE
    commands:
    #*** normal facility placing happens here, before anything else

    #*** figure out if this is a normal base or an outpost
    - type: fillArea # mask off everything for the checkblock
      groups: [6]
    - type: checkBlock # check the map for which type of lift we placed
      rects:
        - [0, 0, 6, 6]
      groups: [7] # or whichever group we set the outpost to
      label: 1
    - type: removeBlock # remove the mask
      groups: [6]
      rects:
        - [0, 0, 6, 6]

    #*** this is a normal base, dig some tunnels and fill in with dirt
    - type: digTunnel
      conditionals: [-1]
      direction: both
      tunnelData:
        level: 1
        MCDReplacements:
          - type: westWall
            set: 1
            entry: 13
          - type: northWall
            set: 1
            entry: 14
    - type: fillArea
      conditionals: [-1]
      blocks: 20

    #*** this is an above-ground outpost, don't dig and fill in with above-ground stuff
    - type: fillArea
      conditionals: [1]
      groups: [8] # or whatever we want to do for above-ground stuff

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9103
    • View Profile
Re: [DONE][Suggestion] Several Types of Air lock
« Reply #10 on: November 06, 2020, 12:11:43 pm »
2- Is there a Way on basecape facility's to make him not having the connecting things? (being spriteshape 0 is not an option due to being a 4x4)

How many facilities are on the screenshot? 2 or 20?

Which one is an airlock? 1x1 or 4x4?

In what order have they been built? All were built by a player or some are part of the starting base?

Offline bulletdesigner

  • Commander
  • *****
  • Posts: 685
    • View Profile
Re: [DONE][Suggestion] Several Types of Air lock
« Reply #11 on: November 06, 2020, 01:00:10 pm »
https://youtu.be/8vbws2eZlf8
How many facilities are on the screenshot? 2 or 20?

Which one is an airlock? 1x1 or 4x4?

In what order have they been built? All were built by a player or some are part of the starting base?

made a video to explain
https://youtu.be/8vbws2eZlf8

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9103
    • View Profile
Re: [DONE][Suggestion] Several Types of Air lock
« Reply #12 on: November 06, 2020, 04:31:05 pm »
made a video to explain
https://youtu.be/8vbws2eZlf8

ok, so you have some "dirt" facilities and you don't want the connectors to be drawn between normal facilities and "dirt" facilities... correct?
« Last Edit: November 06, 2020, 04:33:18 pm by Meridian »

Offline bulletdesigner

  • Commander
  • *****
  • Posts: 685
    • View Profile
Re: [DONE][Suggestion] Several Types of Air lock
« Reply #13 on: November 06, 2020, 05:13:02 pm »
ok, so you have some "dirt" facilities and you don't want the connectors to be drawn between normal facilities and "dirt" facilities... correct?

yap all the upground base dont need connector on other words

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9103
    • View Profile
Re: [DONE][Suggestion] Several Types of Air lock
« Reply #14 on: November 06, 2020, 05:16:51 pm »
Done.

Code: [Select]
facilities:
  - type: STR_LIVING_QUARTERS
    connectorsDisabled: true
« Last Edit: November 22, 2020, 04:08:09 pm by Meridian »