Search results

  1. balu92

    Bug in the patcher

    Good idea, change it to... uhm... balluminati92 :D
  2. balu92

    EasyAirdrops

    var Req_Players = ini.GetSetting("Settings", "PlayersRequired"); if(Req_Players == Server.Players.Count || Req_Players < Server.Players.Count){ ini.GetSetting(); will give you a string, you store it in Req_Players, and then compare the string with a number... you should: var Req_Players...
  3. balu92

    Bug in the patcher

    dAmn *wipes_fougeriteforum_and_githubaccount*
  4. balu92

    Focusing on the future

    The server still crashes after that, which isn't a good deal for a server mod...
  5. balu92

    Focusing on the future

    No problem, take your time. Thanks for trying to help me out here. :) But still no go. Tried moving around my AttachBootstrap() in the Assembly-CSharp.dll, checked in dotPeek, it's always there, in the right spot. If I insert it in Bootstrap.Initialization() before [0x00] instruction, I see the...
  6. balu92

    Retrieving mods of a weapon

    I tried quite a few things by now, no luck. I will try to gather some cecil doc on that tomorrow.
  7. balu92

    (Double #=q56a_jc0QHQ3y6sZTJ06ekw==) [0x00000] in <filename unknown>:0

    http://fougerite.com/threads/fougerite-mc.148/#post-1399
  8. balu92

    Retrieving mods of a weapon

    (didn't tested, but should work) function On_Command(Player, cmd, args) { if(cmd == "showmods") { var type; Util.TryFindType("SaveableInventory", type); // var type = Util.TryFindReturnType("SaveableInventory"); var saveables =...
  9. balu92

    Retrieving mods of a weapon

    Util.TryFindType("SaveableInventory", type);
  10. balu92

    Retrieving mods of a weapon

    that's what I'm talking about: 'ITEM_TYPE' is a private sealed class in BulletWeaponDataBlock, I don't know how to cast to that type at compile time
  11. balu92

    IronPython needs testers

    Well, just test whatever comes to your mind. Or port a plugin and see if there is anything that doesn't work. I know you can 'import sys', and you must 'import clr' if you want to add reference to other libraries, you can do: print "some msg" and it will print the msg into the output_log.txt, I...
  12. balu92

    Retrieving mods of a weapon

    function On_Command(Player, cmd, args) { if(cmd == "showmods") { var items = Player.Inventory.Items; var barItems = Player.Inventory.BarItems; var imods; for(var i=0; i < items.Length; i++) { try { imods = items[i].RInventoryItem.itemMods; } catch...
  13. balu92

    Retrieving mods of a weapon

    At runtime(with jint, magma, ironpython), you can get it for any weapon, but at compile time you would need to cast the IInventoryItems to a type of: BulletWeaponDataBlock+ITEM_TYPE...
  14. balu92

    Antiglitch

    Magma (AntiPB.js, I didn't tested this one): function On_EntityDeployed(Player, Entity) { if(Entity.Name == "WoodPillar" || Entity.Name == "MetalPillar") { var v3 = UnityEngine.Vector3.zero; v3.x = Entity.X; v3.y = Entity.Y; v3.z = Entity.Z; var cols =...
  15. balu92

    Focusing on the future

    Still not working. For the bootstrap I created a new project, I only edited the patcher, removed the hooks from it and changed the BootstrapAttachPatch() function in the patcher to insert my ExpBootstrap() function into Bootstrap.Initialization() instead ServerInit.Awake().
  16. balu92

    Focusing on the future

    http://pastie.org/private/yj2jdwobf1ep8xib9zeg I edited the Fougerite.Patcher, checked in dotPeek, it's there and it's called as you can see in the log. I built it for mono/net3.5 and I realized I was trying it on an older version of experimental. I will try it with new serverfiles and building...
  17. balu92

    Focusing on the future

    I tried that first and it doesn't worked for me. :O
  18. balu92

    Focusing on the future

    wow, may I ask from what you have inherited your class and where you have added it to be able to add the bootstrap? I tried to inherit it from Monobehaviour and tried to call my bootstarp from their Bootstrap class and also from the ServerMgr class, but no luck. (I have never patched any program...
  19. balu92

    Approved No Wasteland

    It's in IronPython, I didn't wanted to make a fougerite pull request before it's tested, and now I'm lazy to do that. :D
  20. balu92

    Antiglitch

    Is that actually working on oxide?