Space Engineers

Space Engineers

Dhr's bomb drop prediction script
 This topic has been pinned, so it's probably important
Dhr  [developer] 22 Apr, 2022 @ 9:57pm
Help/Questions
Use this discussion for reporting bugs or any questions about the script. If you are reporting the bug make sure to give information on what the bug is.
< >
Showing 1-15 of 26 comments
TONK THE PROTO 23 Apr, 2022 @ 12:43am 
soo i cant seem to figure out how to use this, it says

vehicle height mode
Caught exception during execution of script: Object reference not set to an instance of an object. At program.main(string argument,updatetype updateSource) at

Sandbox.game.entities.blocks.myprogrammebleblock.<>cDisplayClass42_0.<execute code>b0(mygridProgramprogram)

At Sandbox.game.entities.blocks.myProgrammableBlock.RunSandboxedProgramActionCore(Action'1
Action,
String&
(Response)


did i miss something in setting up the script?
edit its the same when in the sky
Last edited by TONK THE PROTO; 23 Apr, 2022 @ 12:45am
Dhr  [developer] 23 Apr, 2022 @ 1:17am 
Ok, this error is because the script is having trouble trying to find one of the blocks, so check that all of your blocks are there, and are named EXACTLY how I have set out in the program, everything must be exact, with no extra letters and all capitals correct.

I'll see what I can do about maybe making this system less stringent on the naming requirements, but that will take time.

Also Side note: you can copy and paste the error code in the of the programmable block, there should be a copy button. Well at least I think you typed it out, as there were a few missing capitals and what not, although nothing to large.

EDIT: For now I think I will quickly release an update that will give an actually nice error message if you name something wrong.


Originally posted by TONKIE:
soo i cant seem to figure out how to use this, it says

vehicle height mode
Caught exception during execution of script: Object reference not set to an instance of an object. At program.main(string argument,updatetype updateSource) at

Sandbox.game.entities.blocks.myprogrammebleblock.<>cDisplayClass42_0.<execute code>b0(mygridProgramprogram)

At Sandbox.game.entities.blocks.myProgrammableBlock.RunSandboxedProgramActionCore(Action'1
Action,
String&
(Response)


did i miss something in setting up the script?
edit its the same when in the sky
Last edited by Dhr; 23 Apr, 2022 @ 1:19am
TONK THE PROTO 23 Apr, 2022 @ 1:23am 
Originally posted by Dhr:
Ok, this error is because the script is having trouble trying to find one of the blocks, so check that all of your blocks are there, and are named EXACTLY how I have set out in the program, everything must be exact, with no extra letters and all capitals correct.

I'll see what I can do about maybe making this system less stringent on the naming requirements, but that will take time.

Also Side note: you can copy and paste the error code in the of the programmable block, there should be a copy button. Well at least I think you typed it out, as there were a few missing capitals and what not, although nothing to large.

EDIT: For now I think I will quickly release an update that will give an actually nice error message if you name something wrong.


Originally posted by TONKIE:
soo i cant seem to figure out how to use this, it says

vehicle height mode
Caught exception during execution of script: Object reference not set to an instance of an object. At program.main(string argument,updatetype updateSource) at

Sandbox.game.entities.blocks.myprogrammebleblock.<>cDisplayClass42_0.<execute code>b0(mygridProgramprogram)

At Sandbox.game.entities.blocks.myProgrammableBlock.RunSandboxedProgramActionCore(Action'1
Action,
String&
(Response)


did i miss something in setting up the script?
edit its the same when in the sky



so i have everything hinge,camera,control seat and named exactly like on the steam page but still the same error

edit this may help
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2798437150
this is the plane i use
Last edited by TONK THE PROTO; 23 Apr, 2022 @ 1:25am
Dhr  [developer] 23 Apr, 2022 @ 1:49am 
Originally posted by TONKIE:
Originally posted by Dhr:
Ok, this error is because the script is having trouble trying to find one of the blocks, so check that all of your blocks are there, and are named EXACTLY how I have set out in the program, everything must be exact, with no extra letters and all capitals correct.

I'll see what I can do about maybe making this system less stringent on the naming requirements, but that will take time.

Also Side note: you can copy and paste the error code in the of the programmable block, there should be a copy button. Well at least I think you typed it out, as there were a few missing capitals and what not, although nothing to large.

EDIT: For now I think I will quickly release an update that will give an actually nice error message if you name something wrong.




so i have everything hinge,camera,control seat and named exactly like on the steam page but still the same error

edit this may help
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2798437150
this is the plane i use


Alright give me a second ill look at your thingy
Dhr  [developer] 23 Apr, 2022 @ 1:52am 
Originally posted by TONKIE:
Originally posted by Dhr:
Ok, this error is because the script is having trouble trying to find one of the blocks, so check that all of your blocks are there, and are named EXACTLY how I have set out in the program, everything must be exact, with no extra letters and all capitals correct.

I'll see what I can do about maybe making this system less stringent on the naming requirements, but that will take time.

Also Side note: you can copy and paste the error code in the of the programmable block, there should be a copy button. Well at least I think you typed it out, as there were a few missing capitals and what not, although nothing to large.

EDIT: For now I think I will quickly release an update that will give an actually nice error message if you name something wrong.




so i have everything hinge,camera,control seat and named exactly like on the steam page but still the same error

edit this may help
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2798437150
this is the plane i use

what mods are you using for the plane? It won't appear in my world
TONK THE PROTO 23 Apr, 2022 @ 2:12am 
Originally posted by Dhr:
Originally posted by TONKIE:



so i have everything hinge,camera,control seat and named exactly like on the steam page but still the same error

edit this may help
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2798437150
this is the plane i use

what mods are you using for the plane? It won't appear in my world


plane parts
plane parts plus (1x1x1 propelor box)
Dhr  [developer] 23 Apr, 2022 @ 2:22am 
Originally posted by TONKIE:
Originally posted by Dhr:

what mods are you using for the plane? It won't appear in my world


plane parts
plane parts plus (1x1x1 propelor box)


I don't seem to have all the blocks, as it is missing a cockpit for controller the vehicle. But your problem is that you haven't capitalised the starting letters of each name.

Also side note, this plane is awesome, if you can get it working i'll gladly use this thing on the workshop
Last edited by Dhr; 23 Apr, 2022 @ 2:25am
TONK THE PROTO 23 Apr, 2022 @ 2:27am 
Originally posted by Dhr:
Originally posted by TONKIE:


plane parts
plane parts plus (1x1x1 propelor box)


I don't seem to have all the blocks, as it is missing a cockpit for controller the vehicle. But your problem is that you haven't capitalised the starting letters of each name.

Also side note, this plane is awesome, if you can get it working i'll gladly use this thing on the workshop

oh yeah sorry i forgot "spacebars cockpit imporium
edit i have updated the blueprint and it still dont work
Last edited by TONK THE PROTO; 23 Apr, 2022 @ 2:32am
Dhr  [developer] 23 Apr, 2022 @ 2:31am 
Originally posted by TONKIE:
Originally posted by Dhr:


I don't seem to have all the blocks, as it is missing a cockpit for controller the vehicle. But your problem is that you haven't capitalised the starting letters of each name.

Also side note, this plane is awesome, if you can get it working i'll gladly use this thing on the workshop

oh yeah sorry i forgot "spacebars cockpit imporium

Yup, so to fix it you just need to capitalise the first letter of each word and it should work.

If you want I could also fix the thing, give it to you through the workshop or something, then delete it from my profile.
Dhr  [developer] 23 Apr, 2022 @ 2:43am 
Originally posted by TONKIE:
Originally posted by Dhr:


I don't seem to have all the blocks, as it is missing a cockpit for controller the vehicle. But your problem is that you haven't capitalised the starting letters of each name.

Also side note, this plane is awesome, if you can get it working i'll gladly use this thing on the workshop

oh yeah sorry i forgot "spacebars cockpit imporium
edit i have updated the blueprint and it still dont work


Update: I have got the script on your plane working
TONK THE PROTO 23 Apr, 2022 @ 2:45am 
Originally posted by Dhr:
Originally posted by TONKIE:

oh yeah sorry i forgot "spacebars cockpit imporium
edit i have updated the blueprint and it still dont work


Update: I have got the script on your plane working

what did i do wrong?
Dhr  [developer] 23 Apr, 2022 @ 2:48am 
Originally posted by TONKIE:
Originally posted by Dhr:


Update: I have got the script on your plane working

what did i do wrong?


You wrote the names without capital letters, so "control seat" vs "Control Seat," and that caused an issue.

But something else, that might have stopped it from working, is that the programmable block, for whatever reason broke and I had to replace it cause it kept on saying there was an error that didn't exist. So rename all the blocks with capitals, and after delete that programmable block, place another down and run it again.
Dhr  [developer] 23 Apr, 2022 @ 2:59am 
Originally posted by TONKIE:
Originally posted by Dhr:


Update: I have got the script on your plane working

what did i do wrong?

You get your plane working?
TONK THE PROTO 23 Apr, 2022 @ 3:07am 
Originally posted by Dhr:
Originally posted by TONKIE:

what did i do wrong?

You get your plane working?

wel it flys but the bomb sight still dont work
Dhr  [developer] 23 Apr, 2022 @ 3:09am 
Originally posted by TONKIE:
Originally posted by Dhr:

You get your plane working?

wel it flys but the bomb sight still dont work


Do you want me to send you a blueprint to a working plane?
< >
Showing 1-15 of 26 comments
Per page: 1530 50