Fougerite Official

Fougerite Official 1.9.4

No permission to download
  • Update for the Player class
Better this way.
  • Nothing serious, just added On_PlayerBan for API usage.
  • IronPython Updated
  • Magma Updated
  • Jint Updated
  • MoonSharp Updated
  • Fougerite.dll Updated
I have tested some SQL queries It seemed to work for me, and instantly saved It in the DB.
  • Added missing System.Transactions.dll which seems to solve the issue with the Typeloading.
  • Added missing System.Data and Serialization dlls for json.
Example:

Python:
class Test5:

    def On_PluginInit(self):
        sbuilder = JSON.CreateStringBD()
        writer = JSON.CreateJsonWriter(sbuilder, True)
        #writer.Formatting = Formatting.Indented
        writer.WriteStartObject()
        writer.WritePropertyName("CPU")
        writer.WriteValue("Intel")
        writer.WritePropertyName("PSU")
        writer.WriteValue("500W")
        writer.WritePropertyName("Drives")
        writer.WriteStartArray()
        writer.WriteValue("DVD read/writer")
        writer.WriteComment("(broken)") # I do not suggest using It though, It might throw an error if using in Py, Js, Lua
        writer.WriteValue("500 gigabyte hard drive")
        writer.WriteValue("200 gigabype hard drive")
        writer.WriteEnd()
        writer.WriteEndObject()
        Util.Log(sbuilder.ToString())


        jsonobject = JSON.CreateJsonObject()
        jsonarray = JSON.CreateJsonArray()
        jsonarray.Add("Manual text")
        jsonarray.Add("Manual text2")
        jsonobject["MyArray"] = jsonarray
        Util.Log(jsonobject.ToString())

        json = "{ 'CPU': 'Intel', 'PSU': '500W', 'Drives': [ 'DVD read/writer', '500 gigabyte hard drive', '200 gigabype hard drive']}"

        jsontextreader = JSON.CreateJsonTextReader(json)
        while jsontextreader.Read():
            if jsontextreader.Value is not None:
                Util.Log("Token: " + str(jsontextreader.TokenType) + " Value: " + str(jsontextreader.Value))
            else:
                Util.Log("Token: " + str(jsontextreader.TokenType))
upload_2017-6-12_21-26-23.png