Files |  Tutorials |  Articles |  Links |  Home |  Team |  Forum |  Wiki |  Impressum

Aktuelle Zeit: Fr Mär 29, 2024 09:25

Foren-Übersicht » Sonstiges » Projekte
Unbeantwortete Themen | Aktive Themen



Ein neues Thema erstellen Auf das Thema antworten  [ 3 Beiträge ] 
Autor Nachricht
BeitragVerfasst: Mi Nov 26, 2008 19:27 
Offline
DGL Member
Benutzeravatar

Registriert: Di Jul 01, 2003 18:59
Beiträge: 887
Wohnort: (The Netherlands)
Programmiersprache: fpc/delphi/java/c#
What is a Virtual File System? See VFS

Thanks to a question of Brainer on the pgd forum ( http://www.pascalgamedevelopment.com/vi ... sc&start=0 ) i started writing a virtual file system in pascal. Things now become useable.

2008-12-29: Beta1 is Released. So it needs beta testers.

2008-12-21: Alpha9 is released. When a (virtual)file becomes smaller additional blocks are marked as deleted. Should work, but needs additional testing. If this goes ok it is almost time for an real beta version.

Alpha8 is here. ReadData and Write are now rewritten to use the TVirtualFileStream instead of writing blocks directly. Both routines are now only 4 lines long :-)

Now it is alpha 7 time already. Now it is also possible to delete files. Deleted blocks are reused again.
This only works for tvirtualfilestream bases access to the tvirtualfilesystem. So writedata (and readdata) need to be rewritten to use a tvirtualfilestream. Besides making reusing deleted blocks work with those it save some double code.
With reusing deleted block the tvirtualfilesystem may end up to be defragmented. Hmm how to write such an thing?

Who are willing to give this alpha version a test run? It comes with an basic example i use for testing.
I still have to give the virtualfilesystem a proper name and i am out of ideas so suggestions are welcome.

Download: http://noeska.net/projects/files/2008/12/nvfs.zip

A short tutorial:

Opening a virtual file system.
Code:
  1.  
  2.   TestDataFile := TVirtualFileSystem.Create();
  3.   TestDataFile.FileName := 'myfilesystem.dat';
  4.   TestDataFile.Open;
  5.  


Writing a tmemo (mTest) inside the virtual file system:
Code:
  1.  
  2.   MyStream:= TvfsFileStream.Create('test.txt', TestDataFile);
  3.   mTest.Lines.SaveToStream(MyStream);
  4.   MyStream.Free;
  5.  


Reading a tmemo (mTest) from inside the virtual file system:
Code:
  1.  
  2.   MyStream:= TvfsFileStream.Create('test.txt', TestDataFile);
  3.   mTest.Lines.LoadFromStream(MyStream);
  4.   MyStream.Free;
  5.  


Post your feedback and name suggestion here: viewtopic.php?t=7986

_________________
http://3das.noeska.com - create adventure games without programming


Zuletzt geändert von noeska am Mo Dez 29, 2008 17:23, insgesamt 1-mal geändert.

Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: So Dez 21, 2008 21:34 
Offline
DGL Member
Benutzeravatar

Registriert: Di Jul 01, 2003 18:59
Beiträge: 887
Wohnort: (The Netherlands)
Programmiersprache: fpc/delphi/java/c#
2008-12-21: Alpha9 is released. When a (virtual)file becomes smaller additional blocks are marked as deleted. Should work, but needs additional testing. If this goes ok it is almost time for an real beta version.

Download: http://www.noeska.net/downloads/Virtual ... Alpha9.zip

_________________
http://3das.noeska.com - create adventure games without programming


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Mo Dez 29, 2008 17:20 
Offline
DGL Member
Benutzeravatar

Registriert: Di Jul 01, 2003 18:59
Beiträge: 887
Wohnort: (The Netherlands)
Programmiersprache: fpc/delphi/java/c#
The vfs has a name. Not the most original, but it has a name now and it is: nvfs . Or in full: Noeska's Virtual File System .
The project site is being setup now. (ps it almost took me more time to setup wordpress mu then to write nvfs :-) )

Project Site: http://www.noeska.net/projects/nvfs/
Download version 1.0b: http://www.noeska.net/projects/files/2008/12/nvfs.zip

The basics are working now so i took it out of alpha and into beta.

I need beta testers now. So test it if you dare...

_________________
http://3das.noeska.com - create adventure games without programming


Nach oben
 Profil  
Mit Zitat antworten  
Beiträge der letzten Zeit anzeigen:  Sortiere nach  
Ein neues Thema erstellen Auf das Thema antworten  [ 3 Beiträge ] 
Foren-Übersicht » Sonstiges » Projekte


Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 36 Gäste


Du darfst keine neuen Themen in diesem Forum erstellen.
Du darfst keine Antworten zu Themen in diesem Forum erstellen.
Du darfst deine Beiträge in diesem Forum nicht ändern.
Du darfst deine Beiträge in diesem Forum nicht löschen.
Du darfst keine Dateianhänge in diesem Forum erstellen.

Suche nach:
Gehe zu:  
cron
  Powered by phpBB® Forum Software © phpBB Group
Deutsche Übersetzung durch phpBB.de
[ Time : 0.105s | 17 Queries | GZIP : On ]