HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

IO question

09-09-2008, 11:45 PM#1
The Great Noob
Anyone knows if it is possible to have IO with WC3? For example if I have a text file with some data and want to use it with my map (or write data to a text file) at runtime? If yes, details would be appreciated
09-10-2008, 05:26 AM#2
darkwulfv
What is IO? Please elaborate.
09-10-2008, 05:33 AM#3
Jazradel
Not with WC3. Unless you count the localisation files.

WE can though, with vJass.
09-10-2008, 06:06 AM#4
fX_
input output

...stream things

...you want to access files on the players computer? u gonna hack 'em or find out his local time or sumtin?
09-10-2008, 11:55 AM#5
The Great Noob
I want access to text files yes. I want to train an AI and want to write out progress etc (statistics) every x seconds to a file, to be able to later on make graphs, improve methodology I use etc.
09-10-2008, 12:10 PM#6
Alexander244
Grimoire allows for the use of custom natives that print to text files. It currently doesn't work with the 1.22 patch, but can be used with 1.21b.

Assuming your using JNGP:
  • Uncomment both loaddll("bin\\japi.dll") and loaddll("bin\\nativepack.dll") in ongameload.lua.
  • Import the common.j in the japi folder to your map with the path "scripts\common.j"
  • Use the native DebugPrint takes string msg returns nothing to print to logs\nativepacklog.war3
09-11-2008, 12:59 AM#7
rulerofiron99
Where is this text file written to?

Wouldn't this also be a plausible way to improve save/load hero codes?
09-11-2008, 02:19 AM#8
Ammorth
log folder of jassnewgen pack.

no, since information cannot be read from the text file and it requires the custom natives to exist on everyone's computers to work.
09-11-2008, 02:20 AM#9
darkwulfv
No, because everyone would have to have those scripts on and imported, and it probably wouldn't work well anyways.
09-11-2008, 11:56 AM#10
rulerofiron99
Of well, the idea of save/load codes without actually typing them just sounded too good to be true.
09-11-2008, 11:28 PM#11
Kazinac]UA[
Well, Iv Havin Issues With My Map Im Making.. I Just Got This Terrain And I Dont Know How To Load It Up... Wherre Do I Put It?!?!
09-11-2008, 11:50 PM#12
Ammorth
There is a person developing a program that would analyze data outputed from a map (in the form of a screen-shot) to generate a save-code to re-input (via clipboard) back into the next map. I beleive the project was at the hive.