Transparent zip support with zomis file archive

Discussion about Rocks'n'Diamonds, Boulder Dash, Supaplex, Emerald Mine and any other BD hybrid.

Moderators: Flumminator, Zomis

HerzAusGold
Posts: 362
Joined: Sun Sep 25, 2005 4:41 pm
Location: Germany

Post by HerzAusGold »

Someone brought me on it:
Download a musicfile to the right place, for example:

> rndTest10 -levtmps=music/mus_classic -url=195

Download Martijn's "improved Boulderdash II mp3" to the classic music folder.
Disadvantage: Then you cant play levels you stored in levtmps.

Don't know if it was worth to think twice :wink:
May be if someone integrate download from menu, then for each type:
- levels, artwork, music, aso.
of course without making a (new) P.2.P client :P
And the answer is ... 42 !
HerzAusGold
Posts: 362
Joined: Sun Sep 25, 2005 4:41 pm
Location: Germany

Post by HerzAusGold »

What about a "7z" support?
And the answer is ... 42 !
User avatar
Holger
Site Admin
Posts: 4081
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Post by Holger »

Yes, this would indeed be nice! :-)
Zomis
Posts: 1502
Joined: Mon Jun 21, 2004 1:27 pm
Location: Sweden
Contact:

Post by Zomis »

HerzAusGold wrote:What about a "7z" support?
What is "7z" exactly anyways? :?
User avatar
Francesco
Posts: 577
Joined: Thu Dec 29, 2005 2:22 pm
Location: Sardinia (Italy)
Contact:

Post by Francesco »

7z is a software for compressing archives, just like zip or rar.
It's free and offers a better compression. It also supports all other formats (7z stand for seven zip) - Just posting by memory, could be wrong.
Anyway, by the way, have fun!
Francesco
User avatar
Holger
Site Admin
Posts: 4081
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Post by Holger »

> What is "7z" exactly anyways?

Just have a look at the current "News" page of www.artsoft.org! :-)
HerzAusGold
Posts: 362
Joined: Sun Sep 25, 2005 4:41 pm
Location: Germany

Post by HerzAusGold »

Ding Dong!
Holger dont you see this post:
See comments in "events.c" (each try have a separate comment char)
But dont really know how i can check for finished programm_action.
btw. sokomode=3 (which call movePlayer and digField) causes NO troubles.
*edit*
But this is not taped and have an ugly (or no) animation.
How can I check that a programmed_action is finished?
Thanks in advance.

Btw: May you noticed that - my time table is shifted a little.
And the answer is ... 42 !
User avatar
Holger
Site Admin
Posts: 4081
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Post by Holger »

> Ding Dong!
> Holger dont you see this post:

Oops, sorry! Thanks for the reminder!

> How can I check that a programmed_action is finished?

It's finished when "player->programmed_action" and "player->MovPos" are both zero.

> Btw: May you noticed that - my time table is shifted a little.

What do you mean with "my time table is shifted a little"? Posting at a different time of day than before? From which time zone are you posting then? :-)
HerzAusGold
Posts: 362
Joined: Sun Sep 25, 2005 4:41 pm
Location: Germany

Post by HerzAusGold »

It's finished when "player->programmed_action" and "player->MovPos" are both zero.
Thanks. This improved the sokomode. Even "follow mouse" mode works fine (slow but fine)
But if I want to push (the lamp) I have to set "player->push_delay = 2".
Right?

And how can i determine it is diggable/eatable (like the mushrooms in snake_bite)
Is programmed_action taped?
How can I do a "snap" or "drop" with programmed_action?
which time zone are you posting then? :-)
MEZ. My journey is shifted (my departure is later)
My bad english - I know.
Last edited by HerzAusGold on Sun Mar 12, 2006 2:07 pm, edited 1 time in total.
And the answer is ... 42 !
HerzAusGold
Posts: 362
Joined: Sun Sep 25, 2005 4:41 pm
Location: Germany

Post by HerzAusGold »

Hi,
I upload rndTest11.
Playing SnakeBite with the mouse make more fun now.

> rndTest11 -sokomode=13

Move the mouse near the player press right mouse and the player
follow the mouse.

Look into "hag_readme.txt" for detailed descriptions for the sokomodes.

Have fun.
------
Up to now the player can't eat mushrooms (see questions in last post).

Of course the follow mouse mode can be improved.
- only moving with the mouse (without press right mouse bottom)
- snap left with left buttom
- snap right with right buttom
- snap down with middle buttom
- is "snap up" necessary?
- Or snap with mouse gestures
- quicker react

But I need the help from Holger.
Please Holger look to "events.c" the sokomode stuff is really simple.
I have inherit all my modes - that you can see what the difference.
If possible answer to my questions and my german email.

Btw: "7z" support is also included now.
Cause the "lzma"-sdk not include a single file extraction, it needs some memory (reading the whole 7z into memory).
And the answer is ... 42 !
HerzAusGold
Posts: 362
Joined: Sun Sep 25, 2005 4:41 pm
Location: Germany

Post by HerzAusGold »

Btw: "7z" support is also included now.
Cause the "lzma"-sdk not include a single file extraction, it needs some memory (reading the whole 7z into memory).
WARNING: Up to now it works only with one main folder! (top level folder)

If I rewrite the "7z" support, so it can read more folders, than the
ArchiveOpen, especially ArchiveExFree costs a lot of cpu, memory and time. Because it's give each folder free step by step.
I have tested this with the EMC-Levelset (with 112 folder and over 10000 files) resulting in loading RND in 15 Minutes...

Hm, this can be improved (store the archive database once), but..
LZMA (7z) seems "not prepared" for transparent zip support.
cause' it can only extract folders (into memory).

If it is really necessary to have a "7z" support, we have to ask the author about this.
And the answer is ... 42 !
HerzAusGold
Posts: 362
Joined: Sun Sep 25, 2005 4:41 pm
Location: Germany

Post by HerzAusGold »

Hi, I have upload a new version of RndTest with updated "7z" support.
It can now be used with more then one folder - without any trouble.

But it is recommended that you only use a "7z" with ONLY ONE main folder! (It's decompress/destroy the whole folder to memory).

cause "7z" is designed for very good compression and fast decompression - but not for transparent zip support.

*edit>*
this is no disadvantage, because a series is normally one folder in levels directory,
*<edit*

The distributed level files should stay "normal" .zip files.
And the answer is ... 42 !
user
Posts: 9
Joined: Wed Feb 15, 2006 10:48 pm

Post by user »

i found other simple solution, but only for linux - use of automounted squashfs image - full emc package weight less then 30M (unpacked 7zip - ~220MB with 4k filesystem block), and after deleting tittlescreens 25M (~200M), for better compatibility use older version of squashfs-tools (mksquashfs), rpm spec file prepared and (bit) tested on mandriva 2007:
http://202-159.is.net.pl/linux/ rocksndiamonds-levelsimage-emc.spec
Tomi
Posts: 339
Joined: Wed Aug 03, 2005 3:37 pm
Location: Slovakia

Post by Tomi »

There are also many other virtual file systems that can work with zip archives. For example "avfs" ("A Virtual File System"). (Google knows the URL.)
Post Reply