Ast7

Eurobricks New Members
  • Content Count

    2
  • Joined

  • Last visited

About Ast7

Spam Prevention

  • What is favorite LEGO theme? (we need this info to prevent spam)
    Technic
  • Which LEGO set did you recently purchase or build?
    42095

Profile Information

  • Gender
    Male

Extra

  • Country
    France

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Yes, some blocks could be interesting for advanced coding (didn't test them yet) I also tried to add the same widget but it was just ignored. Even Lego used 2 different widgets for sliders with the design, so may be it's not possible
  2. This post to share some MODdings that can be done to the Powered Up Android APP interface (Create mode with controller). I searched the forum but didn't find a similar post. With the actual version, it's possible to change the size and positions of the widgets, and mix on the same interface the widgets of the 2 controllers It's even possible to add the widgets of the Play mode controllers (Te trains and Batman), and access more code blocks. So theorically, it should be possible to control several trains/cars with one interface. After creating a new project with controller, go to "/android/data/com.lego.common.poweredup/files/Activities/<xxxxxxxx>/" to find the associated files (if you open the metadata.json file you can verify in the "name" if it's the right project) In the "playCanvas.json" file there's all the actual widgets, identified by their "widgetId", with their positioning informations. It's then possible to add/modify them, and restart each time the App to see the results. To find out the widgetId, you can create a new project with the other controller and open it's "playCanvas.json" file (the positioning should hint on the concerned widgets). To exploit the added widgets, we need their associated code blocks. For that, in the powered-up-metadata.json file, replace the "Controller" value by "00000000-0000-0000-0000-000000000000". Thus, the palette.json file will be used to display the needed code blocks by replacing "/widgets/widget-(.+)-block-(5[5-9])" or "/widgets/widget-(.+)-block-(3[7-8])" by "/widgets/.*" The App has to be restarted after the modifications. To go further and use the Play mode widgets, you can search the widgetId in their playCanvas.json files at "/android/data/com.lego.common.poweredup/files/PredefinedActivities/<xxxxxxxx>/" and change the playCanvas.son as above, and do those modifications in the "palette.json" file : - add the following at the end of "TabDefinitions" : {"Name": "Dev", "HexColor": "CompositeBlock3"} This will add new category "Dev" in the code blocks - in "contents", disable all the blocks with "null", and add the following at its end : {"Field": "TypeName", "Value": ".*", "Tab": "Dev"} After App restart, a new tab (red) will appear with new code blocks. The ones to use has the same icons as the global variables but are orange with a red "P" written on them. The parameter to use is the widgetId. Don't consider this as a tutorial as it needs some clarifications and I surely miss other informations. Also, this may not work with the comming versions of the App