ACS read/write to file

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: ACS read/write to file

by Sphagne » Thu Mar 17, 2005 11:58 pm

How about an ACS functions that would write the content of a File or a Text lump within the current wad on the screen, something like hud message.

by Bio Hazard » Thu Mar 17, 2005 8:30 pm

Please explain how one could write a virus and infect your computer? i mean, sure it could write a virus by writing a string that is binary virus data, but the user would still have to execute it outside the game and if you ask me, if a video game wrote me an exe file, i sure as hell wouldnt execute it...


unless "writing files" includes adding a ShellExecute() or WinExec() or System() or whatever which ZDoom (or any video game for that matter) definately would never need

well, if you ran the wad from a batch file one could easily execute the written virus automatically once you finish playing ZDoom

by Xaser » Thu Mar 17, 2005 6:38 pm

I have a suggestion. We could implement this in a way so that Zdoom only reads/writes to a specific file, whose filename would ALWAYS consist of a the wad's filename with a different extension besides .wad (for example, if a wad called map01.wad writes to a file, it would only be able to write to the file map01.zdf (or some other extension, it doesn't matter). Therefore, nothing gets overwritten or anything, because since their names are always the same as the wad names, and you can't have two wads with the exact same name in the same directory.

Also, in that text file, the data should be encrypted in some way or form. If it's just in plain text format, someone could open it up and change the stuff inside to "cheat" and stuff. :P

by Macil » Thu Mar 17, 2005 5:40 pm

Or how about it can only read and write files in WADINFO\ subdirectory or whatever the user sets in the config?

by chopkinsca » Thu Mar 17, 2005 3:10 pm

What about a new type of lump file? An entry that ACS can write and read to, and after the game is done, anything in it still remains. It would be just a file that contains variable data dumps. I have no idea on if this would even be possible though as I am not really a programmer of any kind.

Limiting the size the file can get would need to be done, so someone doesn't create a loop that constantly increases a file's size. Creating an external file may be something some people don't want, especially if the location can be chosen by whomever created the map.

by jallamann » Thu Mar 17, 2005 2:58 pm

Tell me how you'd write a virus/trojan/whatever if the script would read and write plain text files (that means not password files and such, also the editor wouldn't know where your personal text files would be stored anyway) and the only new commands would be something like

Code: Select all

file_read(str filename; str location, int var1, int var2, int var3 [...])
file_write(str filename; str location, int var1, int var2, int var3 [...])

by Graf Zahl » Thu Mar 17, 2005 2:27 pm

CodeImp wrote:If ACS could read and write files, people could write viruses, spyware and trojans of any kind with it. You'd be reading my passwords and personal files while im playing your map. This is a very bad idea.

Don't tell me. Guess why I think it's a bad idea. Doom maps should be self contained without any access to the outside. At most they should be allowed to write variables to ZDoom's config but nothing more under any circumstances!

(You can copy this to the HTTP access thread as well! The same logic applies.)

by TheDarkArchon » Thu Mar 17, 2005 2:22 pm

What if it is just plain text files?

That way you can't make viruses for it.

by CodeImp » Thu Mar 17, 2005 1:55 pm

If ACS could read and write files, people could write viruses, spyware and trojans of any kind with it. You'd be reading my passwords and personal files while im playing your map. This is a very bad idea.

Re: ACS read/write to file

by jallamann » Wed Mar 16, 2005 2:46 am

Tormentor667 wrote:Think about the possibilites :) Let's say - without the usage of savegames, you have to get a good highscore which unlocks new features of the game permanently without using the savegameslots!
And without having to load a specific savegame too...
Of course, I can see why Graf doesn't like the idea, but I think there are more possibilites than bugging the player...

by Your Name Is » Tue Mar 15, 2005 6:30 pm

I liked the titlemap.

Re: ACS read/write to file

by Tormentor667 » Tue Mar 15, 2005 4:51 pm

jallamann wrote:Just sharing a thought..
A high-score list, so that you can keep track of your previous scores,
etc.
Think about the possibilites :) Let's say - without the usage of savegames, you have to get a good highscore which unlocks new features of the game permanently without using the savegameslots!

by Xaser » Tue Mar 15, 2005 12:39 pm

This would be useful for, like, a high score table of some sort. It could write the score to a file and then make it show up later and stuff.

by Bio Hazard » Mon Mar 14, 2005 6:55 pm

i would be nice to write to files in a sense that you could interpret the result with an external program, to make like, a spreadsheet or something

by Graf Zahl » Mon Mar 14, 2005 4:02 pm

Yes, you can do all kinds of annoying shit with it but everything I can think of would annoy me endlessly. I'm still against it.

Top