[No] ACS read/write to file

Moderator: GZDoom Developers

ACS read/write to file

Postby jallamann » Mon Mar 14, 2005 4:32 am

Just sharing a thought..
Wouldn't it be cool to have ACS able to read and write variables, strings etc. to files for later use? Say if you do some stuff in a map, then quit ZDoom, then start the same map the next day, and the map responds to what you did the last time?

Examples could be:
Like HL2's main menu; the background is where you left the game the last time,
A high-score list, so that you can keep track of your previous scores,
etc.

Thoughts?
User avatar
jallamann
isn't very active on the forums at all
 
Joined: 24 May 2004
Location: Ålesund, Norway

Postby Graf Zahl » Mon Mar 14, 2005 5:08 am

No.

That's what savegames are for. If a map is started fresh it should be independent of the last time it was played.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Postby RabidZombie » Mon Mar 14, 2005 11:52 am

Actully this would be quite nice for some effects (like the HL2 thing)

You could maybie make a code an episode system, where when you reach that eppisode you can now play it directly from the 'New Game', or make it so behind the menu is a different titlemap depending on how far you are in the game, and many othber things (that i cant think of)

I agree that starting a map from new should make the map back to normal, but other things could be done!
RabidZombie
In true ZDoom Very Fatal Error Ways... Die!
 
Joined: 30 Aug 2004
Location: Still hell... Somewhere

Postby 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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Postby 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
User avatar
Bio Hazard
Lord of the Lord of Nitpicking.
 
Joined: 15 Aug 2003
Location: ferret ~/C/ZDL $

Postby 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.
User avatar
Xaser
anarchivist
 
 
 
Joined: 20 Jul 2003

Re: ACS read/write to file

Postby 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!
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

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

I liked the titlemap.
User avatar
Your Name Is
Wake up and smell the ashes.
 
Joined: 31 Oct 2004
Location: Raleigh, NC

Re: ACS read/write to file

Postby 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...
User avatar
jallamann
isn't very active on the forums at all
 
Joined: 24 May 2004
Location: Ålesund, Norway

Postby 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.
User avatar
CodeImp
 
Joined: 28 Dec 2003
Location: Netherlands

Postby 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.
User avatar
TheDarkArchon
OUT!
 
Joined: 07 Aug 2004
Location: Some cold place

Postby 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.)
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Postby 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 allExpand view
file_read(str filename; str location, int var1, int var2, int var3 [...])
file_write(str filename; str location, int var1, int var2, int var3 [...])
User avatar
jallamann
isn't very active on the forums at all
 
Joined: 24 May 2004
Location: Ålesund, Norway

Postby 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.
User avatar
chopkinsca
Nothing
 
Joined: 11 Dec 2003

Postby Agent ME » 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?
User avatar
Agent ME
Title Not Found
 
Joined: 22 Mar 2004
Location: California, USA
Discord: Macil#5633
Twitch ID: macil_tech
Github ID: Macil

Next

Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest