Transparent zip support with zomis file archive
Moderators: Flumminator, Zomis
-
- Posts: 362
- Joined: Sun Sep 25, 2005 4:41 pm
- Location: Germany
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
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
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
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
And the answer is ... 42 !
-
- Posts: 362
- Joined: Sun Sep 25, 2005 4:41 pm
- Location: Germany
-
- Posts: 362
- Joined: Sun Sep 25, 2005 4:41 pm
- Location: Germany
Ding Dong!
Holger dont you see this post:
Thanks in advance.
Btw: May you noticed that - my time table is shifted a little.
Holger dont you see this post:
How can I check that a programmed_action is finished?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.
Thanks in advance.
Btw: May you noticed that - my time table is shifted a little.
And the answer is ... 42 !
> 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? :-)
> 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? :-)
-
- Posts: 362
- Joined: Sun Sep 25, 2005 4:41 pm
- Location: Germany
Thanks. This improved the sokomode. Even "follow mouse" mode works fine (slow but fine)It's finished when "player->programmed_action" and "player->MovPos" are both zero.
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?
MEZ. My journey is shifted (my departure is later)which time zone are you posting then?
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 !
-
- Posts: 362
- Joined: Sun Sep 25, 2005 4:41 pm
- Location: Germany
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).
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 !
-
- Posts: 362
- Joined: Sun Sep 25, 2005 4:41 pm
- Location: Germany
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.
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 !
-
- Posts: 362
- Joined: Sun Sep 25, 2005 4:41 pm
- Location: Germany
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.
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 !
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
http://202-159.is.net.pl/linux/ rocksndiamonds-levelsimage-emc.spec