HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Is it possible to make a txt file?

08-07-2004, 04:00 AM#1
Buttink
Is it even slightly possible to make a txt file, on the hard drive, in jass and have a map read and write to it. U know this would be so much easyer if it was just writen in C or some other normal code grrr.
08-07-2004, 08:59 AM#2
PitzerMike
I think there is a Python 2 Jass converter but I've not used it yet.
Anyway you would still have to cnp the generated code to the map yourself.
08-07-2004, 08:39 PM#3
Extrarius
Quote:
Originally Posted by Buttink
Is it even slightly possible to make a txt file, on the hard drive, in jass and have a map read and write to it. U know this would be so much easyer if it was just writen in C or some other normal code grrr.
I think PitzerMike misunderstood you. No, there is no way to do general file access in JASS. You can use gamecaches in single player maps, but there is no way to have persistant data in multiplayer maps.
08-08-2004, 12:04 AM#4
Buttink
Well i could always try making a password system u know like old snes and nes games.
09-01-2004, 10:36 PM#5
Ari
Quote:
Originally Posted by PitzerMike
I think there is a Python 2 Jass converter but I've not used it yet.
Anyway you would still have to cnp the generated code to the map yourself.

I think he's asking about the ability of jass to write to the hard drive in some way other than saving a game. As far as I know, this is impossible (though boy, would it make testing an ai easier). Perhaps there's some aspect of a save game file that is easily readable. Perhaps custom values, or perhaps even a variable, if you can find where they're stored in the file and use that as some kind of stand-in for an external file. That's way outside my knowledge, though. Happy hunting :)
09-01-2004, 11:13 PM#6
-={tWiStÄr}=-
no, it's impossible. someone else was asking about this for a clock on the game that never stops, even if you stop playing. so if it were single player he could create a game cache, and then have some type of batch file change it every second or so to real time or whatever he wants. but it sounds like you just need to use a code they type in for yours.