Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. MW3 Modding Releases & Resources
  3. [Release] Plutonium Filesystem

[Release] Plutonium Filesystem

Scheduled Pinned Locked Moved MW3 Modding Releases & Resources
3 Posts 2 Posters 1.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • tomundefined Offline
    tomundefined Offline
    tom
    wrote on last edited by tom
    #1

    This plugin adds additional functionality to ChaiScript that allows you to read and write files into your computer.

    Installation

    • Download the latest release from https://github.com/StaRT1337/PlutoniumFilesystem/releases
    • Drag the DLL into %localappdata%/Plutonium/storage/iw5/plugins

    Usage

    /*
      Creates a file handler.
    
       First param: File path
       Second param: Mode 
    */
    var file = Filesystem("helloworld.txt", "w+");
    
    
    /*
       Writes/appends into file.
    
       First param: string to write
    */
    file.Write("Hello, World!")
    
    
    /*
       Reads the contents of the file.
    */
    var contents = file.Read();
    
    print(contents) // Hello, World!
    

    Notes

    • All available file modes are shown here.
      • The plugin will only create a file handle if the file already exists. therefore modes like r+ and w+ will act the same.
    • For security measures, the file must be within the game folder (Not exactly in it, could also be in a folder that's within the game folder).
    • For people who wish to build from source, make sure to set the C++ version to latest, set the run time library to /MT and only compile as Release and x86.
    • While the plugin automatically closes the file handle as it goes out of scope, to manually close it use the .Close() method.
    1 Reply Last reply
    1
    • floxundefined Offline
      floxundefined Offline
      flox
      wrote on last edited by
      #2

      I rate 10\10 best plugin ever. I banned all hacker !

      tomundefined 1 Reply Last reply
      0
      • tomundefined Offline
        tomundefined Offline
        tom
        replied to flox on last edited by
        #3

        flox YEs my friend made special from Durga Software Solutions

        1 Reply Last reply
        0

        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Donate