Search results

  1. mikec

    Help me prioritize

    What about a total conversion mod? I used dotPeek to turn the Assembly into a project. Now I am trying to figure out how to get Unity Desktop to load the project and resources from the legacy server files. The Last Survivors of Meridian 59 Github
  2. mikec

    Help me prioritize

    Thanks for the input. I'll put "ways to add new content" at the top of the list.
  3. mikec

    Solved Searching in World.Entities fails Silently

    I was able to realize a significant performance boost by replacing the call to Concat() the deployable list to the structure list, with 3 calls. First to initialize a List<Entity> with the capacity to hold both, and then two calls to AddRange() to add the structure and deployable lists...
  4. mikec

    Solved Searching in World.Entities fails Silently

    I've tried several ways of passing a Javascript function to the List methods FindAll and ForEach, none worked. I get a type error. If I find a way to do it, I'll post here. Meantime, just convert the List to Array and carry on using Javascript methods. This works perfectly...
  5. mikec

    Retrieving mods of a weapon

    You must patch the assembly to make it public, same as was done for all the private fields we need to access.
  6. mikec

    Retrieving mods of a weapon

    function On_Command(Player, cmd, args) { if(cmd == "showmods") { var type; Util.TryFindType("SaveableInventory"); var saveable = UnityEngine.Object.FindObjectsOfType(type); var imods; for(var i=0; i < saveable.Length; i++) { // ? }...
  7. mikec

    Help me prioritize

    Things I am now working on for Fougerite: Magma compatibility fixes. Making broke stuff work again. JintPlugin Things I want to work on when those things are in good shape. Use existing assets from legacy server files to build another populated zone on the far side of the island, with its own...
  8. mikec

    Live Stats?

    BadZombi has had this stuff working under Magma since March. Player stats, clickable map, all the bells and whistles. JintPlugin has a PostJSON method and a class for querying the server contents.
  9. mikec

    Hooks

    I meant this project, Fougerite. :) No one but me has committed any code for over two weeks.
  10. mikec

    Hooks

    I stole this entire project. LOL. :)
  11. mikec

    Fougerite GSP [Deleted]

    This version is obsolete. Do not use. No further updates will be posted for this resource thread.
  12. mikec

    Retrieving mods of a weapon

    I don't know if there is another way. I just shared what I knew.
  13. mikec

    Retrieving mods of a weapon

    public interface IHeldItem : IInventoryItem The Interface for HeldItem extends the Interface for InventoryItem. That means you will only find this IHeldItem object when a player is holding the item, which means you can find the mod attached through this object, only when the player is holding...
  14. mikec

    Solved Searching in World.Entities fails Silently

    This is one of my favorite bug reports now. :) This bug report led me down the rabbit hole into the depths of the .Net Common Language Runtime (CLR). When I looked at the code for World.Entities, I knew what the solution was going to be, but I didn't understand why the bug was in...
  15. mikec

    Approved Fougerite MC [Deleted]

    mikec updated Fougerite MC with a new update entry: Fougerite MC 4 Read the rest of this update entry...
  16. mikec

    Solved Searching in World.Entities fails Silently

    Do you mean failing in JintPlugin, used to work in MagmaPlugin?
  17. mikec

    Tips for Datastore / DataStore.Save();

    public static void savealldata() { try { AvatarSaveProc.SaveAll(); ServerSaveManager.AutoSave(); Helper.CreateSaves(); DataStore.GetInstance().Save(); } catch (Exception ex)...
  18. mikec

    Solved Throws error

    Is the key null in your code? No. So it's not wrong. I am pretty sure people won't deliberately pass null as the key. Null as a value is perfectly OK to store. But ds.Get("table", someMethod()) would be "wrong" if someMethod() returned null. In that case, DataStore now substitutes the...
  19. mikec

    Solved Throws error

    This is fixed in MC3. If the key is null for DataStore.Add, I add the string "NullReference" as the key. If the key is null for DataStore.Get I return null. I don't return the value of the "NullReference" string key. That could be some other plugin's null key value. You can call...
  20. mikec

    Tips for Datastore / DataStore.Save();

    On_BaluConnected() :rightbackatcha