Quantcast
Channel: Programming (In-game)
Viewing all 903 articles
Browse latest View live

Code review for first script

$
0
0
Hi all. I am relatively new to SE, and just getting started with the PG and C#, but not new to programming at all. I spent a bit of time this evening reading the docs and some of the posts in this forum (I will certainly read more of them, as there is a lot of good info here) and I worked out my first sort of test script. I value peer review and am mostly just interested in whether I have the basics down correctly or not. Can folks take a look at my script and point out any bad patterns...

Code review for first script

Share Inertia Tensor property on IMyMotorStator?

$
0
0
Good Day Engineers

Just would like to find out if there is a way to set the "Share inertia tensor" property on an IMyRotorStator object in scripting?


Thank you

Item Transfer Script throwing exception

$
0
0
Hey guys,

I've been trying to write a simple item transfer script so I can get the idea down before I write a larger script with this one incorporated into it. This one, I thought was going to be straight forward...but I keep getting this:

"Caught exception during execution of script: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary'2.get_Item(Tkey key)
at Program.Main(string argument)
at...

Item Transfer Script throwing exception
Viewing all 903 articles
Browse latest View live