Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - MUY_Belgium

Pages: [1]
1
Programming with Blackvoxel / Re: Programmatic handling of the player
« on: November 28, 2019, 12:46:58 am »
I have not used those function too.  Indeed throwing the user anywhere to the sky rapidly kill it.  There is programmation exemples but i cannot remember where i found then.  I noticed that this code cause the player to go up really fast.  I usually finish this with "u" (stop all robots).  Use this onderground only!

Voxel_Step()
{
  local Diff = GetInfo(5) - GetY(); 
  if (GetZ() == GetInfo(6)) //  && Diff>0 && Diff<4)
  {
    PlayerSetAccel(0.0, 1500.0, 0.0)
    if (Diff>1) Move(4);
  }
}


For horizontal displacments, I could not manage to use PlayerSetAccel and used PlayerMove instead.  I really cannot figure out what the numbers figures, player displacement seems not proportionnal to the numbers given in arguments but

PlayerMove(15.0, 0.0, 0.0);

seems to safelly displace the player by 23 voxels if the place is empty with a ground.

You may want to foound a way to limit the number of UP to 16, 32 or 64 voxel depending upon the extraction robot you are using...

2
Thank you, indeed beter to know! 

I advanced a bit BlackVoxel robots programming, that's quite cool! 

 :)

3
Hello,

I have made a programmable robot, then tried out some programming.  I saw that files are created in the Script/Squirrel directory, but cannot see a editor in my full screen game, but indeed no error message too. I could not realise that there was a syntaxt error in the code : no local variable declaration (variable X is not defined).  What if functin Voxel_Step is missing?

All this put together, looks as if the Programmable Robot Silently fails to compile. :'(

I think that displaying an error on execution errors should give more confidence to the player, explaining what his/her :-[ error was...

Hopes it helps,

4
Suggestions / Website css
« on: August 16, 2015, 12:26:02 pm »
Hello,

I have experimented some difficulties, because my computer is not powerful enough to sustain the game fullscreen and the browser at the same time.  I have to exit the game to read the help.

I rather print the help to get on-game help (I know not a good practice !).

If the following code is added to /look/css/default.css , the unnecessary context menu would not get printed any more.

Code: [Select]
@media print {

li.rightcolumn       { display:none; }
div.plotvente        { display : none; }
div.mdbox_02         { display : none; }
div.footerlinks      { display : none ; }

/* remove space for non-visible page header */
ol.tabmenu           { display:none; }
div.contentpagetitle { display :none;}

/* Use all the available space on page */
li.middlecolumnwide { width : 100% ; }
}

see http://www.w3schools.com/css/css_mediatypes.asp for more informations.

Possibly, setting the width of li.middlecolumnwide may not be a good idea.

Pages: [1]