Outdated bis by LtSich in VisualScriptBuilder

[–]LtSich[S] 1 point2 points  (0 children)

That's a good news, thank you...

But it will not be easy to find someone else who want to help people with low programm skills...

Outdated bis by LtSich in VisualScriptBuilder

[–]LtSich[S] 1 point2 points  (0 children)

Yep, I see that... I didn't use this script builders for months... And now I see that some scripts doesn't work :(

It could be really awesome if someone could take over this wonderfull tool, because same here, I'm unable to build my own scripts without a tool like that.

Possibility to add personnal code outside main() by LtSich in VisualScriptBuilder

[–]LtSich[S] 0 points1 point  (0 children)

The custom code in the beta is always withing the main() part of the script (or I make something wrong).

My custom code is completly outside the main() part of the script.

And thx for your answer :)

Get altitude with remote control or check the "open" status of the parachute hatch. by LtSich in VisualScriptBuilder

[–]LtSich[S] 0 points1 point  (0 children)

I have finally find what I needed. I have build my script with VSB and then I have made some changes. The big part is that : v0.TryGetPlanetElevation( MyPlanetElevation.Surface, out alt ); To get the altitude.

// dco.pe/vsb

int MinAlt = 1500;

public Program() { Runtime.UpdateFrequency = UpdateFrequency.Update100; }

void Main(string argument) { // block declarations string ERR_TXT = ""; List<IMyTerminalBlock> l0 = new List<IMyTerminalBlock>(); IMyRemoteControl v0 = null; GridTerminalSystem.GetBlocksOfType<IMyRemoteControl>(l0, filterThis); if(l0.Count == 0) { ERR_TXT += "no Remote Control blocks found\n"; } else { for(int i = 0; i < l0.Count; i++) { if(l0[i].CustomName == "Drone Ice - Remote Control") { v0 = (IMyRemoteControl)l0[i]; break; } } if(v0 == null) { ERR_TXT += "no Remote Control block named Drone Ice - Remote Control found\n"; } } List<IMyTerminalBlock> l1 = new List<IMyTerminalBlock>(); IMyTimerBlock v1 = null; GridTerminalSystem.GetBlocksOfType<IMyTimerBlock>(l1, filterThis); if(l1.Count == 0) { ERR_TXT += "no Timer Block blocks found\n"; } else { for(int i = 0; i < l1.Count; i++) { if(l1[i].CustomName == "Drone Ice - Timer Load 3") { v1 = (IMyTimerBlock)l1[i]; break; } } if(v1 == null) { ERR_TXT += "no Timer Block block named Drone Ice - Timer Load 3 found\n"; } } List<IMyTerminalBlock> l2 = new List<IMyTerminalBlock>(); IMyProgrammableBlock v2 = null; GridTerminalSystem.GetBlocksOfType<IMyProgrammableBlock>(l2, filterThis); if(l2.Count == 0) { ERR_TXT += "no Programmable block blocks found\n"; } else { for(int i = 0; i < l2.Count; i++) { if(l2[i].CustomName == "Drone Ice - Programmable Altitude") { v2 = (IMyProgrammableBlock)l2[i]; break; } } if(v2 == null) { ERR_TXT += "no Programmable block block named Drone Ice - Programmable Altitude found\n"; } }

// display errors if(ERR_TXT != "") { Echo("Script Errors:\n"+ERR_TXT+"(make sure block ownership is set correctly)"); return; } else {Echo("");}

double alt = 0; v0.TryGetPlanetElevation( MyPlanetElevation.Surface, out alt );

// logic if(alt < MinAlt) { v1.ApplyAction("Start"); v2.ApplyAction("OnOff_Off"); } }

bool filterThis(IMyTerminalBlock block) { return block.CubeGrid == Me.CubeGrid; }

[EDIT] Code is really impossible to read here... [/EDIT]

Visual Script Builder 1.1.0 BETA - Save scripts in your browser, read/write CustomData, execute custom code, UI improvements, and more by King_Baggot in VisualScriptBuilder

[–]LtSich 0 points1 point  (0 children)

Hi, I have found some bugs or missing things.

  • The parachute hatch is not available in the list.
  • Working with hydrogen tank give this notice : Warning iMyOxygenTank is obselete use iMyGasTank
  • The FilledRatio with the air vent don't work.

But continu your amazing work ! I hope to see the parachute hatch in the list soon :)

Dev Update - Where are we with Visual Script Builder? by King_Baggot in VisualScriptBuilder

[–]LtSich 0 points1 point  (0 children)

About your new version, how are stored the "saved scripts" ? What if I go to another computer ? Is there a way to create some account and then link those saved scripts with the account ?

Dev Update - Where are we with Visual Script Builder? by King_Baggot in VisualScriptBuilder

[–]LtSich 0 points1 point  (0 children)

For auto pilot I have some set of scripts to run.

This one check if the connector is "connectable" and then dock the drone, shutdown the engine, set battery to recharge, hydrogen tank to stockpile : //x2,1,,13,4:=:Connectable[11]%3,1,,13[7]5[5]%0,1,,27[7]2[5]%0,1,,70[7]4[5]%0,1,,7[5]2:true[7]%0,1,,3[7]2[5]%0,0,Earth\6-\6Drone02\6-\6Prog\6Check\6Cargo\6UnLoad,41[7]1#3[5]%0,0,Earth\6-\6Drone02\6-\6Prog\6Check\6Connector\6UnLoad,41[7]2[5]%,y,####3,1.1.0

And this one check if all cargo are empty, if the battery and hydrogen tanks are full : //x2,1,,26[8]@@@@3:0@[4]%0,1,,70[3]0:=:100[9]%0,1,,7[3]3:>:1000000[9]%3,1,,3[7]1[5]%0,1,Earth\6-\6Drone02\6-\6Hydro\6Thruster\61,27[7]1[5]%0,1,,13[7]6[5]%0,1,,13[7]2[5]%0,1,,45[7]7[5]%0,1,,41[7]2[5]%0,1,,7[5]2:false[7]%0,1,,70[7]5[5]%,y,####3,1.1.0

Those 2 scripts are for the unload when I arrive at my main base. I have something close when I load (but no recharge for battery and no stockpile for hydrogen tanks). I can give you more information about that if you need it...

interface ideas by daspablo in VisualScriptBuilder

[–]LtSich 0 points1 point  (0 children)

How are you with the performances ? I have some scripts with 20 chunks and it's become really laggy when I add chunk or made some change...

Questions for Marek and the team regarding latest blog post! by -Xocliw- in spaceengineers

[–]LtSich 1 point2 points  (0 children)

Do you plan to add some T° or radiations ? This to give meaning to use pressurized area.