Space Engineers

Space Engineers

PLC-OS Beta 3 [15-2-24]
Twotwinbrothers  [developer] 24 Sep, 2021 @ 5:34am
Discussion about cursor unable to show up, whit @ricardopriscojunior
the cuase:
Itemname was not set

the solution:
I make it more prommenent that the itemname must be set in the manuel
Last edited by Twotwinbrothers; 5 Oct, 2021 @ 12:38am
< >
Showing 1-10 of 10 comments
thank you for this plugins.
I seem do found a bug, or melt my brain.

have follow the setup one time. setup control, remote, lcd tag.
rename lcd block to show screen number [lcd]

  • then chante it to [lcd] [0] , setup the resolution display with "res"... all ok.
    when tryed the mouse, it change to list a blue screen with borders, but no mouse.
    maybe i`ve done something wrong, so i change it back.. and it stops update de lcd

    Current with

    Cockpit name: "[OS] Ship - [cockpit] [LCD][0]"

    Programable block name: "[OS] Ship - Programmable log"

    Custom data at the programablem block:
    pittag, [cockpit]
    remtag, [remote]
    lcdtag, [LCD]
    [LCD],[0],0,Screen 0res,0,0,0,0

    No erros in Log.
    Command, remote and LCD Tag detected

    At the cockpit lcd:
    content = script "Clock" imagem. - have changed to others but doesn't work.

    Any toughs? Do I made something wrong?
Last edited by ricardopriscojunior; 2 Oct, 2021 @ 7:10pm
Twotwinbrothers  [developer] 3 Oct, 2021 @ 3:25am 
@ricardopriscojunior

after recompiline wil the script start working again?

affter leaving cockpit/remote the script will go to sleep mode after set time. By defauld it 200 tiks
to turn off sleepmode add "sleep,0" to the customdate.
if the script is in sleep mode it will add "[sleepmode]" to Programable block name

for the mouse not showing up:
can be different thing.

You dit not tell the script on which screen you want to show the cursor, by defauld it is"screen0"
to change mouse screen add "mouse,Screen 0" to the customdate
probely have to change that wen i update the script.

you can force the mouse on screen by adding these two rules
"mouse mode,true"// force the cursor to show up
"park switch,false"//turn off park must be on to show cursor

in the log you can see mouse options.



Last edited by Twotwinbrothers; 3 Oct, 2021 @ 3:26am
@Twotwinbrothers

No. Its does not work for me.

Steps I did and results:

- Demolish rebuild progamable block and control seat
- add the script to the programablem block, ckeck and run it
- both block are on the sabe grid
- change the programable block custom data to:

sleep,0
park switch,false
add all,[OS]
pittag, [control]
remtag, [remote]
lcdtag, [lcd]


rename relevant blocks with tag name

add all,[OS]

Name cockpit is "[OS] Flight Seat [control] [lcd]"
Name remote is "[OS] Remote [remote]"
Name programmablo block is "[OS] Programmable block log"


Then:

Change cockpit name to: "[OS] Flight Seat [control] [lcd]["asterisk simbol]"
Result: got the number '0" on a black screen

Then:

Change cockpit name to: "[OS] Flight Seat [control] [lcd][-]"
Result: screen back to default image

then change the custom data of programable block to:
sleep,0
park switch,false
add all,[OS]
pittag, [control]
remtag, [remote]
lcdtag, [lcd]
[lcd],[0],0,Screen 0,0,0,0,0

Result: nothing change

Then:
Change cockpit name to: "[OS] Flight Seat [control] [lcd][0]"

Result: nothing change

Then:
change the custom data of programable block to:

sleep,0
park switch,false
add all,[OS]
pittag, [control]
remtag, [remote]
lcdtag, [lcd]
[lcd],[0],0,Screen 0res,0,0,0,0

Result: nothing change

Done multiple times, changed all the stuff, remove lines, recompiled, revert to code above, and got m brain fryed.... :D





Last edited by ricardopriscojunior; 3 Oct, 2021 @ 10:31am
Dont know if its intended:

When remove "add all,[OS]" from the custom data, it stops to update the screens to show numbers - [asterisk] command.

With "add all,[OS]" log ERRORS shows 1 lines with

'Total blocks: 57" and below
'Total blocks: 57" blinking with "..."
Last edited by ricardopriscojunior; 3 Oct, 2021 @ 10:52am
twotwinbrothers  [developer] 3 Oct, 2021 @ 11:32am 
@ricardopriscojunior

what i understand out of this, you dont get the mouse to show up
you still did not tell the script n which screen it have to show up

sleep,0 park switch,false add all,[OS] pittag, [control] remtag, [remote] lcdtag, [lcd] [lcd],[0],0,Screen 0,0,0,0,0 //now add mouse,Screen 0 mouse mode,true

cursor should show up
then

sleep,0 park switch,false add all,[OS] pittag, [control] remtag, [remote] lcdtag, [lcd] [lcd],[0],0,Screen 0,0,0,0,0 //now add "//" to shut the below rule down. or remove them //mouse,Screen 0 //mouse mode,true

then you should be able to switch the cursor on/off whit PB argument "mouse"

Last edited by twotwinbrothers; 3 Oct, 2021 @ 11:34am
@Twotwinbrothers

I wish this works, but alread tryed. The code above is just to see the screen with resolution. With I got the first time (blue screen, with borders and a text with resolution of the screen).

I got this one time, but after the step to get the mouse working, got no mouse. Destroyed all, and started from scratch multipe times, and still canot get de res argument to work.

Tryed the code yout sent above, and no mouse. Can onty change the screen to show its mumbers. [asterisk argument], then change to [-], then to [0]...

Maybe I`m too dumb. Maybe its a bug or something inside my word save....

Below its a link to my word. Hope it helps me, or help you in some way...

https://drive.google.com/file/d/1pFbRAHuPVhoJdo31hjeCWdHKds8rIu-f/view?usp=sharing


Edit ----------------------------------------------------------

The puppy shark, your ship, started with only brown screens, then I Installed Plugin Loader and restart and start to show the OS. Tryed with plugin loader on my world, and still canot get any signal (mouse or anyting else) on screen. Just the "0" using [asterisk] command.
Last edited by ricardopriscojunior; 3 Oct, 2021 @ 3:40pm
twotwinbrothers  [developer] 4 Oct, 2021 @ 12:43am 
@ricardopriscojunior

you can change the defauld value("screen0") in line 17 in the script

it looks like this:
string Щlcd="screen0",//can be set in customdata to.
change it to:
string Щlcd="Screen 0",//can be set in customdata to.

youre are not recompiling the script every time you change somthing in the costumdata, that can be the problem to
Originally posted by twotwinbrothers:
@ricardopriscojunior

you can change the defauld value("screen0") in line 17 in the script

it looks like this:
string Щlcd="screen0",//can be set in customdata to.
change it to:
string Щlcd="Screen 0",//can be set in customdata to.


changed the code "Screen 0" above but it didn't worked. Made some changes ...


Manage to make it works with this code:

itemname,[OS] sleep,0 park switch,false pittag,[control] remtag,[remote] lcdtag,[lcd] [lcd],[0],0,Screen 0,0,0,0,0 mouse,Screen 0 mouse mode,true

* removed "add all,[OS]"
* changed to "itemname,[OS]"
* cockpit named to "[OS] Control [control] [lcd][0]"

and got the mouse working.
Last edited by ricardopriscojunior; 4 Oct, 2021 @ 8:01pm
Twotwinbrothers  [developer] 5 Oct, 2021 @ 12:21am 
  • i did not notice that the itemname was not set yet.
    this one is quite inportant (this causes your problem)

  • "add all,[OS]" is a easy way to set the itemname to all your blocks

  • "[OS] Control [control] [lcd][0]"you dit not needed to change the block name as long the tags are there it will work

  • make shure to add "//" to the line below
    mouse,Screen 0 mouse mode,true

    otherwise the cursor will not be able to leave the screen.

    glad that it is solved. i hope i can be more off a help next time.:steamhappy:
Originally posted by Twotwinbrothers:
  • i did not notice that the itemname was not set yet.
    this one is quite inportant (this causes your problem)

  • "add all,[OS]" is a easy way to set the itemname to all your blocks

  • "[OS] Control [control] [lcd][0]"you dit not needed to change the block name as long the tags are there it will work

  • make shure to add "//" to the line below
    mouse,Screen 0 mouse mode,true

    otherwise the cursor will not be able to leave the screen.

    glad that it is solved. i hope i can be more off a help next time.:steamhappy:

Thank you so much for your help and time spent. Looking forward to learn more with this. Your work is awesome!
< >
Showing 1-10 of 10 comments
Per page: 1530 50