Jump to content




Volatile memory directory (unlimited size, not written to the server)


  • You cannot reply to this topic
5 replies to this topic

#1 JJRcop

  • Members
  • 131 posts

Posted 13 April 2013 - 06:01 PM

My proposal is to have a directory such as "\mem", or whatever you come up with, that is volatile, that is, only persistent while the computer is on and loaded.

My reason for it is I want to be able to translate my file to npaintpro/paint's filetype.
(My file is around four times smaller than the native npaintpro filetype, as it saves each pixel as four bits of a byte, instead of two bytes like npaintpro does.)

I don't want a big ugly error when someone fills their drive with only a few remaining bytes left for use, or if the maximum size is weirdly low, so if there is volatile memory, it doesn't even save to the computer and will be simply stored in memory until the computer is either unloaded or turned off.

EDIT: I'm going to translate it, then write it to a file and call npaintpro with the file as the argument, then translate it back to my filetype and write to the original file my program was called with

Edited by JJRcop, 13 April 2013 - 06:28 PM.


#2 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 13 April 2013 - 10:04 PM

I think see what you mean, but either I'm miss understanding you or you don't have a full grasp on how multiplayer works.

You can't store it locally, the server handles everything, even key presses. How would other users use it?

Why not just store it in memory (as a variable)?

#3 immibis

    Lua God

  • Members
  • 1,033 posts
  • LocationWellington, New Zealand

Posted 13 April 2013 - 10:11 PM

You could write this yourself in Lua.

#4 JJRcop

  • Members
  • 131 posts

Posted 14 April 2013 - 03:29 AM

I see some of you may be thinking: Why not just store it in a variable?
But how can I call another program made for using files as input, using a variable as the argument, without editing the program itself?

EDIT: I see, overwrite the fs API.. Mkay guess I'm going to have to hack around a problem again.

#5 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 14 April 2013 - 04:04 AM

It isn't our job to provide solutions to your problems. That is your job. If you can do it in Lua you should.

#6 JJRcop

  • Members
  • 131 posts

Posted 14 April 2013 - 04:19 AM

Thanks, I understand.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users