Starmade MANIAC LOGIC

    Joined
    Jul 30, 2013
    Messages
    398
    Reaction score
    282
    • Wired for Logic Gold
    • Legacy Citizen 8
    • Purchased!

    Hello everyone, I have been very absent due to personal issues, but I come back with something that will help to "customize" more your constructions for both spaceships and space stations: Use text as menu in display blocks.

    Have buttons to do this or that is fine, but if we want to "centralize" everything in one place, using the least possible space, and having as many possibilities as possible, you only have one solution, use menus. The menus are everywhere, and are a great tool to have everything tidy in one place, so I started to work on a way to implement the "menus" within the game, and give that power of options, to Anyone who wants to use them.

    For this purpose, I have created several regex commands, which allow you to move through the menus "UP&DOWN" and "LEFT&RIGHT".

    Display Menu UP&DOWN
    DOWN

    UP

    SELECT OPTION MENU

    DISPLAY MENU WORKING

    For the UP function
    Code:
    [REPLACEALL](.*()\n*)(\s{2})([a-zA_Z0-9]*)(\s{3})(.*)\n(#)([a-zA_Z0-9]*)(#)(\s{1})(.*\s*)()[WITH]$1$2$7$4$7$10$6
    $3$8$5$11
    Regex101 - online regex editor and debugger

    For the DOWN function
    Code:
    [REPLACEALL](\#)([a-zA_Z0-9]*)(\#)(\s{1})(.*)\n{1}(\s{2})([a-zA_Z0-9]*)(\s{3})(.*)[WITH]$6$2$8$5
    #$7#$4$9
    Regex101 - online regex editor and debugger

    For select the OPTION MENU
    Code:
    [REPLACEALL]([\s\S]*)(\#)([a-zA_Z0-9]*)(\#)(\s*)(.*)([\s\S]*)[WITH]$6
    Regex101 - online regex editor and debugger
    Display Menu LEFT&RIGHT
    MOVE RIGHT

    MOVE LEFT

    SELECT OPTION MENU

    DISPLAY MENU WORKING
    For the LEFT function
    Code:
    [REPLACEALL](\s{3})([a-zA_Z0-9]*)(\s{2})(\[)([a-zA_Z0-9]*)(\])(\s{2})[WITH]$3$4$2$6$3$5$1
    Regex101 - online regex editor and debugger

    For the RIGHT function
    Code:
    [REPLACEALL](\s{2})(\[)([a-zA_Z0-9]*)(\])(\s{2})([a-zA_Z0-9]*)(\s{3})[WITH]$7$3$1$2$6$4$1
    Regex101 - online regex editor and debugger

    For select the OPTION MENU
    Code:
    [REPLACEALL](\s*.*\s*)(\[)([a-zA_Z0-9]*)(\])(.*\s*)[WITH]$3
    Regex101 - online regex editor and debugger

    This is all for today, if someone does not know how to change / modify the regex commands to do something different, or use other characters, just ask the question in the post :)

    I upload the templates for both menu designs, so you will only have to copy & paste them into your template folder, for more convenience.
     

    Attachments

    Last edited:
    Joined
    Jul 30, 2013
    Messages
    398
    Reaction score
    282
    • Wired for Logic Gold
    • Legacy Citizen 8
    • Purchased!


    After creating the previous post "DISPLAY MENU 2.0" ... I have decided to add more content to it... using the previous method, you can navigate the menus ... and for that purpose, all the menus must be typed in different "Display blocks" ...

    But in order to "use as few blocks as possible", I created an addition that will make this method even more efficient ... having several menus in the same display block; Of course, this method can be used to have as many menus as you want, following simple rules.

    For example, we have 5 menus in one display block in this order:

    SHIELD1[1SHIELD,2SHIELDCAP,3SHIELDPERCENT,]
    ENERGY2[1POWER,2POWERCAP,3POWERPERCENT,]
    STRUCTURE3[1STRUCTUREHP,2STRUCTUREHPCAP,3STRUCTUREHPPERCENT,]
    ARMOR4[1ARMORHP,2ARMORHPCAP,3ARMORHPPERCENT,]
    OTHERS5[1MASS,2BLOCKCOUNT,3SECTOR,4SYSTEM,]

    BLUE:
    Name of the menu ( This can be anything, that refers to what it contains ).
    YELLOW: Number of the Menu ( This must be a number between 0 and any ).
    GREEN: Name of the menu options ( All options must be preceded by a number, from 0 to any, and be separated by a "comma" ... the last option should have a "comma" at the end ).

    Then, we want to select menu number 5 (OTHERS); To do this, we must change the "number in parentheses" of this regex command:
    Code:
    [REPLACEFIRST](.*\n)*(.+?)(3)\[(.*)\](.\n)*(.*\n*)*[WITH]$4
    By doing this, we will get the information in brackets from that menu:
    1MASS,2BLOCKCOUNT,3SECTOR,4SYSTEM,
    Regex101 - online regex editor and debugger

    Ok ... but the result is not a real "menu" ... it's just a line of words preceded by numbers and separated by commas ... you keep reading :)

    To transform this line of words into a "real menu" that we can "navigate", we will use the combination of two regex commands.
    Code:
    [REPLACEALL](\d*)(.*?)(,)()[WITH]  $1   $2
    $4
    This will put the different menu options in vertical
      1   MASS
      2   BLOCKCOUNT
      3   SECTOR
      4   SYSTEM
    Regex101 - online regex editor and debugger
    Code:
    [REPLACEFIRST]^(\s{1})(\s)(\d*)(\s)*(.*?)\n((\s{2})(\d)(\s*)*(.*?)\n)[WITH]#$3# $5
    $6
    This add "#" in the first menu option, making it ready to work with the regex of "display menu 2.0"
    #1# MASS
      2   BLOCKCOUNT
      3   SECTOR
      4   SYSTEM
    Regex101 - online regex editor and debugger

    Example of one display block with 5 menus typed inside

    We select menu number "5"

    Then, convert that ugly "line menu options"

    And finaly, add "#" to the menu, for allow work with the "DISPLAY MENU 2.0"

    And this isall; if someone needs help to adapt this system to their needs, or if they have doubts, do not hesitate to expose your problem in the comments, and i will do my best for solve/adapt it :) ...
     
    Last edited:
    Joined
    Jul 30, 2013
    Messages
    398
    Reaction score
    282
    • Wired for Logic Gold
    • Legacy Citizen 8
    • Purchased!


    After a well deserved respite (holidays), I have come back with new ideas and new projects.

    Since new functions were added to the display blocks, something has always been around my head ... have the same text written in them, can be monotone, so today I bring a simple regex command to animate their display blocks.



    How to build&link


    Code:
    [REPLACEALL](?m)((.|\n)*)(\n)^(.*)$\z[WITH]$4
    $1
    Regex101 - online regex editor and debugger

    If you want to make any text follow the same pattern, just add any character at the beginning of each line, and the regex command will do the rest.

    Other example:
    Regex101 - online regex editor and debugger
     
    Last edited:
    Joined
    Jul 30, 2013
    Messages
    398
    Reaction score
    282
    • Wired for Logic Gold
    • Legacy Citizen 8
    • Purchased!


    Another character update for display blocks, this time using a 7x7 matrix to form the different letters & numbers; as before, I have put each of the characters in the form of "templates" for a much easier and faster use.


    If someone needs & wants a different alphabet or special characters, just tell me in the comments.
     

    Attachments

    • Like
    Reactions: JinM
    Joined
    Jul 30, 2013
    Messages
    398
    Reaction score
    282
    • Wired for Logic Gold
    • Legacy Citizen 8
    • Purchased!


    This is an improvement on my previous slide display design programmable, this time using display blocks, making the programming and the choice of messages much easier, and occupy a lot less space.

    1. SYSTEM DESCRIPTION
    • A display in which to write the message to be displayed, this can be changed, either by a player, or using different displays to store different messages.
    • A logic pulse generator.
    • A module with regex commands to create the transition of the letters of the message.
    • A module saving all the characters to use, it can be expanded to add new characters.
    2. SOME IMAGES WITH EXTRA INFORMATION


    3. HOW DOES IT WORK
    • First you must enter the desired message.
    • When we press the button next to the display block, it copies the message in the module of the regex commands.
    • In the regex module, one of the regex commands separates the first character from the rest of the message, and sends it to the module where the characters are stored. The other regex command returns the resulting message (without the first character) to both display blocks, and the process is repeated until characters are no longer present.
    • In the module that saves the characters, the block sensors compare the character that the regex module has sent, and send the result to the set of displays, to create the illusion of scrolling.
    If you want to add more special characters, just follow the pattern in which the character storage module is built.

    Remember to enter, in each and every one of the display blocks, if this is not done, the present information will not work. (yes, we all know of this annoying visualization bug)

    If someone does not know how is configured / constructed any part of the slide display, just ask your questions in the post.
     

    Attachments

    Joined
    Jul 10, 2013
    Messages
    626
    Reaction score
    486
    • Community Content - Bronze 2
    • Purchased!
    • Legacy Citizen 7
    Rhaaaaaaaaaaaa drooling...... Going to download that multiple times.....


    Errr Downloaded the thing, spawned it...

    What do you mean by "remember to enter each and everyone of the display blocks " ?

    Ok, got it now.
     
    Last edited:
    Joined
    Jul 30, 2013
    Messages
    398
    Reaction score
    282
    • Wired for Logic Gold
    • Legacy Citizen 8
    • Purchased!
    I mean, "Press key R" and then click "OK" (for enter the edit mode), so the text inside the display be "saved correctly", there are a well know bug, when you copy&paste or spawn a entity with display blocks, if you dont do that, if you leave the sector ( sector unload ) or leave/close the game, the text inside of any display block, is lost.

    I hope schema-team do anything for fix that as soon is possible :)
     
    Joined
    Jul 30, 2013
    Messages
    398
    Reaction score
    282
    • Wired for Logic Gold
    • Legacy Citizen 8
    • Purchased!
    * NEW SECTION: LOGIC TUTORIALS *

    Hello everyone, I would like to start a section in my post, dedicated to "how to do it yourself" tutorials, and I would like people to propose things, that they would like to know how to do them, no matter the task to play, as long as they are made with logical blocks.
     

    JumpSuit

    Lost-Legacy Director
    Joined
    Feb 5, 2015
    Messages
    343
    Reaction score
    93
    Logic Idea #1: A Display Module Interactive Archive to store sensitive information. Not sure how to go about doing this, but the idea came from like those old Archives people stuble upon with those massive shelves of books. it'd be cool to ither 'read/write' into a 'Archive' for important matters.
     
    • Like
    Reactions: GalactusX
    Joined
    Jul 30, 2013
    Messages
    398
    Reaction score
    282
    • Wired for Logic Gold
    • Legacy Citizen 8
    • Purchased!
    Logic Idea #1: A Display Module Interactive Archive to store sensitive information. Not sure how to go about doing this, but the idea came from like those old Archives people stuble upon with those massive shelves of books. it'd be cool to ither 'read/write' into a 'Archive' for important matters.
    Working on it :)
     
    Joined
    Sep 19, 2015
    Messages
    13
    Reaction score
    7
    • Purchased!
    could you please explain how to make a clock in starmade that has 1 Ghz rate.
     

    NeonSturm

    StormMaker
    Joined
    Dec 31, 2013
    Messages
    5,110
    Reaction score
    617
    • Wired for Logic
    • Thinking Positive
    • Legacy Citizen 5
    New could you please explain how to make a clock in starmade that has 1 Ghz rate.
    Once there was a bug, allowing that with parrallel clocks (but it was with random frequency modulation).

    It is now removed.
     
    Joined
    Jul 30, 2013
    Messages
    398
    Reaction score
    282
    • Wired for Logic Gold
    • Legacy Citizen 8
    • Purchased!
    I want to make a guide for beginners / advanced players, to understand the logic and how to play with it. My idea is to create a section where players can have a distributed INDEX as if it were a school class, I would like people to propose topics to be discussed and explained carefully.

    If someone is in school, and would like some topics to be explained better, I would appreciate if you send me "photos" of their textbooks, the indexes of the subjects to be treated.
     
    Joined
    Sep 14, 2017
    Messages
    666
    Reaction score
    928


    Another character update for display blocks, this time using a 7x7 matrix to form the different letters & numbers; as before, I have put each of the characters in the form of "templates" for a much easier and faster use.


    If someone needs & wants a different alphabet or special characters, just tell me in the comments.
    How do you achieve these blocks you make the letters out of. I'm assuming it's a unicode thing, but I have not been able to figure out how to inject unicode characters into SM displays like this.
    [doublepost=1521842617,1521842504][/doublepost]
    could you please explain how to make a clock in starmade that has 1 Ghz rate.
    The limit now is 32hz. you can do this by chaining flip-flops that feed back into the chain.
     
    Joined
    Jul 30, 2013
    Messages
    398
    Reaction score
    282
    • Wired for Logic Gold
    • Legacy Citizen 8
    • Purchased!
    How do you achieve these blocks you make the letters out of. I'm assuming it's a unicode thing, but I have not been able to figure out how to inject unicode characters into SM displays like this.
    Its simple, i use this image, then i type "by hand" in all the display blocks

     
    Joined
    Sep 14, 2017
    Messages
    666
    Reaction score
    928
    Its simple, i use this image, then i type "by hand" in all the display blocks

    No, I mean what character do you use for your "pixels"? I normally use # because I can't figure out how to make a ⬛
     
    Joined
    Sep 14, 2017
    Messages
    666
    Reaction score
    928
    Thanks, I guess I was trying paste Unicode characters outside of ASCII range.