1. This forum is obsolete and read-only. Feel free to contact us at support.keenswh.com

Looking for MyObjectBuilder_Beacon

Discussion in 'Programming Questions and Suggestions' started by Squida, Mar 2, 2016.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. Squida

    Squida Trainee Engineer

    Messages:
    77
    Last edited: Mar 2, 2016
  2. mexmer

    mexmer Senior Engineer

    Messages:
    1,977
    what you found is quite outdated, also ModAPI is for mods and mod scripts.
    PB can use only ModAPI.Ingame namespace. Object builders are not part of it.
     
    • Like Like x 1
  3. Squida

    Squida Trainee Engineer

    Messages:
    77
    When I search for, example IMyTerminalBlock. I know it is located under Sandbox.ModAPI but when I enter it, it does not recognize it.

    same for ObjectBuilders, can't find it in any of the dll files.

    Thanks for the info though.
     
    Last edited: Mar 2, 2016
  4. Malware

    Malware Master Engineer

    Messages:
    9,867
    Objectbuilders are in separate assemblies now. I don't have the game here so I can't find the exact name but they should be easily recognizable if you check your game folder.
     
    • Like Like x 1
  5. mexmer

    mexmer Senior Engineer

    Messages:
    1,977
    ModAPI is general API available for mods (and modscripts)
    inside ModAPI there is namespace Ingame, which is accessible by PB.
    Lot of interfaces from ModAPI have also parts exposed in Ingame namespace.

    there are few exaceptions like VRage.Math, which is also accessible for PB (not all stuff, but some of it is whitelisted).
    If you look into Tools\Documentation.chm (inside game install folder), whatever you find under ModAPI.Ingame, you can access from PB, other stuff is not granted to be accessible for PB.

    I know ObjectBuilders were whitelisted some time ago (or at least you could retrieve definitions from them), but due refactor, there might be lot of stuff not accessible anymore.
     
    • Like Like x 1
  6. Squida

    Squida Trainee Engineer

    Messages:
    77
    Oh, well what is the difference between making a c# script in VS then using the program block and the documentation helps, but I am unable to find the common files with the commands from the Documentation that KS supplied. so now I am really confused as to why I see C# scripts and C# is also used for PB, but it is laid out differently. SO I am unsure on if I am supposed to use the Bin folder as well as the mod sdk folder. or just the 2 dll files in the SDK folder?

    then you also have this C# guide that helps a lot.

    And I want to make a block mod, not using the PB. but using VS and C#

    https://forum.keenswh.com/threads/a-...s-in-space-engineers.7377614/#post-1286948550


    Having heaps of trouble trying to get Sandbox.Common.ObjectBuilders in the using area of the script (for a mod and not PB) anyone know where the new location is, I have all the Sanbox and VRage DLL's in the references but I think ObjectBuilder has moved. I am just trying to follow the tutorial and having issues of course, Probably due to it being old.

    Can someone just give me a link to the updated info or just let me know please.

    I found only MyObjectBuilderType, is that what we use now?

    I found it!
    It was in the VRage.Game.Components;

    Still can not find the beacon.

    UPDATE 6/3/2016: Managed to find what I was looking for, realized that I was looking way too much into it and got confused on how they have changed the location of the dll and Mod API features to create mods, I was going way too deep into the code, then realized the only files i need is the one from SDK.

    If I am wrong and I need more DLL files, can someone please tell me.
     
    Last edited: Mar 5, 2016
  7. Malware

    Malware Master Engineer

    Messages:
    9,867
  8. Squida

    Squida Trainee Engineer

    Messages:
    77
    I swear I am such a lost c#$t in forums ahahahah, thanks man.
     
    Last edited: Mar 10, 2016
Thread Status:
This last post in this thread was made more than 31 days old.