Programmable blocks with sensors?

DISCUSSION

I'm currently running a ship that uses this script: http://steamcommunity.com/sharedfiles/filedetails/?id=641928600 Mainly because it looks so friggin cool.

But my problem now is that with the latest patch, the script can no longer compile. The error it gives is Problem(193, 8): Error: The type or member 'IMyEntity' is prohibited.

I do know how to program but I can't find any comprehensive programming documentation so I haven't really taken the time to learn the Space Engineers scripting API, so bear with me here...

Does the error above mean that we can no longer access sensor.LastDetectedEntity through a programmable block?

Are there any alternatives here?

Posted Aug 21, 2016, 7:06 AM UTC

313
evidenc3•

This is why programming blocks were, and are, a bad idea. People shouldn't have to learn to program to get the ultimate experience from a game.

To those that say, "but you don't have to learn to program. You can just get scripts from the workshop" without understanding what you are implementing into your ship/game you risk it being completely broken by a patch with no guarantee of the script being updated and no way to fix it yourself.

If you can program and want to change the base game, write a mod. If you can't program and really want to change the base game, use someone else's mod.

-10
plaYer2k<O >,..., <o >•

"This is why the physics engine was a bad idea. People shouldnt have to learn physics to get their non-trivial block-stacked ships right for the ultimate experience."

We can of course cut all features that are non-essential for the people out there unable to understand so we get the smallest common featureset everyone, and i really mean every single person, will be able to understand or even understands already. That sure will make a great game :-)

How dare a game have optional features or even offer a broad spectrum of skillsets.
Obviously all those who know to code are also great in physics to come up with nice concepts of ship functions. They also are brilliant artists and do the fanciest ship designs and paintjobs. So those darn coder are a rare superhuman breed we have to banish for our own survival or they will outrule us.

On a sidenote, i also hate using all the other technology i dont fully understand to fix myself like computers, cars and the darn internet. Its a pain to rely on others in our simple world.

9
A_Gigantic_Potato•

People shouldnt have to learn physics

And they don't. They don't need to learn orbital mechanics or how to correctly balance a ship or even actual refinery methods. the only thing they need to know is: put engines in back to go forward, but engines in front to slow down.

1
evidenc3•

Seriously? People don't need to learn physics to play this game... And that is exactly my point. If you needed a physics major to handle a specific aspect of this game I would be complaining about that too. A fair comparison would be - imagine if the game forced you to understand what v2 = v02 + 2a(x − x0) means in order to pilot your ship.

Having to learn a real world programming language is not the same thing as understanding simple physics game mechanics that have no resemblance to real life. If it was a simplified logic interface I would have no problem with it.

I'm also tired of hearing people calling it "optional". If you are playing in a multiplayer environment, especially if with a PvP element, one player with scripts can have a sizable advantage over a player without them. I'm tired of seeing people request good features (like being able to see the health of your blocks during a battle) only to be told "You can do that via a script with the [supposedly optional] programming block"

-3
piratep2r•

Also remember that the game is not finished yet. Normally these kind of comments annoy me "it's in alpha, it's in alpha," but seriously this time - scripts and mods won't be constantly broken every week when the game is actually finished, because KSH won't be pushing major updates in a regular cycle.

I guess you could change your comment to say something like "mods and scripts should not be in the game during development" but even there I would probably disagree. Mods and scripts are a powerful preview of what the game might be like once finished. It is annoying when they break, but considering how much work amazing players put into the mods we have now, think about the mods and scripts we will have once the authors know their work won't be nuked every month!

4
evidenc3•

I have no problem with mods. Mod all you like. Mods are optional. My problem is having a feature that requires understanding of complicated, real world concepts or risk being at a disadvantage to other players. Everything the programming block does could be accomplished with a simplified logic interface, or simply with mods. It alienates a whole group of people for no reason.

Also, who knows if this game will ever be "released" in the normal sense of the word.

-3
sepen_Vanilla Survival 1-1-1•

Everything the programming block does could be accomplished with a simplified logic interface, or simply with mods.

That's just uninformed bullshit.

On the contrary, the programming block adds dynamic to the game we couldn't have without it.

All you want is for KSH to cut a unique selling point from everyone else's game because it exceeds your abilities.

(And I'd bet you haven't even tried.)

4
evidenc3•

Please give me an example of something the programming block does that couldn't be accomplished with a simplified logic interface or a mod.

I bet 80% of the people playing space engineers have never written anything in the programming block and only ever downloaded what other people have done off the workshop.

It's nice for you that you're so clever, but I have a child an no time to invest in learning C#. If you could get off your elitist podium for just a second you might understand that creating barriers to others enjoyment simply so you can maintain your superiority complex is often referred to as "being a dick".

Waits for more downvoting because reddit cant handle disagreement.

-2
piratep2r•

I actually think I see where you are coming from, and I can't imagine I would have fun if I was PVP dueling someone who was using a "supersecretscript" that allowed him to have lock on missiles that I could not get, or constantly knew my location, etc.

But maybe it is a matter of faith. People like u/alysius and u/rdav and u/whip and a host of others seem dedicated to releasing mindcrogglingly awesome scripts for everyone. I just don't see a "ranked and competitive PVP SE scene" in the future, but even if this came to pass in the ideal situation where space engineers is released I think the scripts that you (or I) might be afraid of will be available for everyone - not just the jerk you happen to be fighting.

Does that mean you will have to learn to use (Note: not code) programming blocks? Yes and maybe. As a server admin myself, I know that I have the power to forbid blocks if I want. Like programming blocks. So, if your concern is justified I think we will both see an end result of some PVP servers being p block free, for people who just want to do their shooting up close and personal, with no radar, no aim assist, no guidance, etc.

But I do not think that will come to pass much, if at all. I think most players will learn to use prog blocks without being able to code (that is where I am - I can't code) and be better off for it!

edit: addition: if you are having trouble learning or using a common script/PB block, feel free to PM me and I will do my best to talk you through it!

3
evidenc3•

Upvoted, because even though not agreeing with me you at least tried to understand my issue.

You might be right about PVP servers banning the p-block. The thing is those ideas sound cool, radar, damaged block displays, etc and I'm afraid that with the existence of the p-block too many ideas, that should really be vanilla, get skipped because "you can do that with the p-block".

2
evidenc3•

Fundamentally, I believe anything it is possible to do in a game should be possible to learn in game.

1