• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

OS and File IO Lib

Status
Not open for further replies.
Here you go.

JASS:
native FileCreate takes string filename returns nothing
native FileCopy   takes string filename, string dest returns nothing
native FileDelete takes string filename returns nothing
native FileWrite  takes string filename, string contents returns nothing
native FileAppend takes string filename, string contents returns nothing
native FileMove   takes string filename, string dest returns nothing
native FileRead   takes string filename returns string
native FileExists takes string filename returns boolean

native GetInstallPath takes nothing returns string

native OSVersion takes nothing returns string
 

Attachments

  • plugins.rar
    1.2 KB · Views: 83
Level 19
Joined
Aug 8, 2007
Messages
2,765
Yes, SharpCraft

Like writing it's own data in files, without preloading or setting the data to the player's name.

Why?...

Preload natives work fine and theyre not buggy (not to mention work without installing SharpCraft)

the shit that doesnt work is synchronization.

e/ genius idea-

A .bat file is used to enable local files on the user's PC
can't we make that .bat file also throw in a hotfix for the SyncStoredString native?
 

Kazeon

Hosted Project: EC
Level 34
Joined
Oct 12, 2011
Messages
3,449
Here you go.

JASS:
native FileCreate takes string filename returns nothing
native FileCopy   takes string filename, string dest returns nothing
native FileDelete takes string filename returns nothing
native FileWrite  takes string filename, string contents returns nothing
native FileAppend takes string filename, string contents returns nothing
native FileMove   takes string filename, string dest returns nothing
native FileRead   takes string filename returns string
native FileExists takes string filename returns boolean

native GetInstallPath takes nothing returns string

native OSVersion takes nothing returns string

Cool. But just want to mention that OS plugin still has a script error.
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
I suggest limiting these natives so that you cant add extension, or it will automatically append .txt or something at the end of the file name, so you cant do what you can with preloads(Create bananas in "On system startup")
 
Status
Not open for further replies.
Top