DOS Games Message Board
DOS Games Discussion
A message board to talk about DOS games, get help, and find old games.
Do NOT post warez or abandonware requests please
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
NEW! DOSGames.com has been massively upgraded to v2.0 with TONS of new features!
Check out the new design and dozens of new features including online play!


Text Compression Routine

 
Post new topic   Reply to topic    DOS Games Discussion Forum Index -> Game Creation
Author Message
tienkhoanguyen
PSEUDOCODER


Offline
Joined: 05 Sep 2014
Posts: 2664
Location: Texas

PostPosted: Wed May 13, 2015 11:39 am     Post subject: Text Compression Routine Reply with quote

hehe - Well, you know I love Tacos!hehe Unfortunately, I can't eat any right now because I am on welfare haha.

Anyways, here is a text compression program I am rolling out. It is the ultimate for me in particular anyways because I have been able to compress up to 98% efficiency in 1 case. The files was over 5000 bytes and too hours to compress, and it was worth it to see.

Disclaimer: This program is new so keep your original files if you use it for compression. It has been fixed so far however you never know. I didn't catch the trailing Y until just yesterday.

It is a fully working DEMO so enjoy. It might not contain all the fancy and robust features as my beloved WinRAR 3.93 however it is mine and free.

http://www.mediafire.com/download/ktkbbnkd9rlbt1m/jctxtcmp.rar
Back to top
tienkhoanguyen
PSEUDOCODER


Offline
Joined: 05 Sep 2014
Posts: 2664
Location: Texas

PostPosted: Fri May 15, 2015 1:22 am     Post subject: Major update so it works with other files too... Reply with quote

May 15, 2015 Friday - just released after midnight sometimes.

JCcompt3 is a compression program based on RLE. It is an extremely simplified version of RLE so the compression varies greatly from close to 90+% efficient to a horrible double the size of the original file.

It gives a brief greetings to www.classicdosgames.com

However if you are not on there - you are important too!



SOURCE (written in Borland Turbo C 2.01 and Borland Turbo Assembler 4.1)
http://www.mediafire.com/view/ql7qse7ud83w98z/jccompt3.c

RUN FILE
http://www.mediafire.com/download/spzj81pp4t09ynl/JCCOMPT3.EXE



Note: This version is more flexible. It should be able to handle any file types.


-Tien Khoa Nguyen

P.S. In previous versions, the images would not show right. However that has been fixed for all the tested files so far.
Back to top
tienkhoanguyen
PSEUDOCODER


Offline
Joined: 05 Sep 2014
Posts: 2664
Location: Texas

PostPosted: Fri May 15, 2015 9:57 am     Post subject: DOSgames website and others added to credits screen Reply with quote

Jesus!hehe

In this edition, DOSgames and other websites have been added for reference.

You just have to look through the pages and hopefully you see your website.

If you feel I have left you out and would like to be included please write me.

Thank you!!

Once again all credits go for this version.

http://www.mediafire.com/download/wf9ikxx6vbb3cb4/JCCOMPT3.EXE

http://www.mediafire.com/view/o8mg4gdjo1s49nv/jccompt3.c

To Cheese-its & Rice - the speed has been increased somewhat#!!
Back to top
tienkhoanguyen
PSEUDOCODER


Offline
Joined: 05 Sep 2014
Posts: 2664
Location: Texas

PostPosted: Fri May 15, 2015 12:10 pm     Post subject: God, Cheese-its & Rice, is number one!hehe Reply with quote

Cheese-its & Rice!hehe

Here is proof it has compress a bitmap down to 5% or less - THANK GOD!
http://www.mediafire.com/download/5fgu77vc254fn7o/COMPRESS

If you take the above "COMPRESS" and put it in JCcompt3 version 2.

Then you (U)ncompress it.

It produces the original file.

However the name needs to be changed from UNCOMP to UNCOMP.bmp

Then you can view it in your bitmap viewer

Thank you Cheese-its & Rice!
Back to top
tienkhoanguyen
PSEUDOCODER


Offline
Joined: 05 Sep 2014
Posts: 2664
Location: Texas

PostPosted: Sat Jun 06, 2015 2:18 am     Post subject: God, Cheese-its & Rice, is number one!hehe Reply with quote

Cheese-its & Rice!hehe

This is the fixed version (hopefully hehe).

It has two compression method.

The first is that it will try "simple RLE (Run-Length-Encoding)".

If the resulting output is not smaller it simply stores the original away.

So at max it will only be 3 bytes greater than the original.
http://www.mediafire.com/download/3ey53rn06mdbu21/jccmp3-3.zip

Thank you God for sending your son Jesus down to give me insight!

Through "Divine Intervention" from Heaven from God I made this!!!!!
Back to top
tienkhoanguyen
PSEUDOCODER


Offline
Joined: 05 Sep 2014
Posts: 2664
Location: Texas

PostPosted: Sun Jun 07, 2015 4:37 pm     Post subject: JCcompt3 - version 2 (Edition C) Reply with quote

http://www.mediafire.com/download/7zds1f5u6mwe8uw/COMPRESS

http://www.mediafire.com/view/g1f4huip4rz2ge6/jccmp32c.c

http://www.mediafire.com/download/d586fp7686wwhqe/JCCMP32C.EXE

http://www.mediafire.com/download/292bzq9g80p9up7/JCCMP32C.OBJ

http://www.mediafire.com/download/g9yvzhg197kvq3x/jccmp32c.rar

http://www.mediafire.com/view/2ctvk9d0kbye3hh/jcmearth.bmp

http://www.mediafire.com/download/bdvamk1lw1d3yk2/loadfile

http://www.mediafire.com/download/69beejmz7oa3zeo/UNCOMP
Back to top
tienkhoanguyen
PSEUDOCODER


Offline
Joined: 05 Sep 2014
Posts: 2664
Location: Texas

PostPosted: Tue Jun 09, 2015 7:45 am     Post subject: God, Cheese-its & Rice, is number one!hehe Reply with quote

Cheese-its & Rice!hehe

This version of JCcompt3 - version 2 (d) now accepts commandline instructions. It is flexible enough that someone without any knowledge of programming can use. It works for both DOS and 32-bit versions of XP. XP is noticeably faster in modern machines.

To use, type in the commands in the following guidelines on the DOS prompt:

JCcmp32d u
u stands for uncompress
the default input file is COMPRESS without any extension
the default output file is UNCOMP without any extension

JCcmp32d c
c stands for compress
the default input file is LOADFILE without any extension
the default output file is COMPRESS without any extension

JCcmp32d c BITMAP.BMP FILE1.CMP
BITMAP.BMP can be any bitmap file to compress
FILE1.CMP is where you want to store the compressed version
(you could compress many files; just replace BITMAP.BMP with FILE.JPG, etc.)
[the output file can be any valid DOS filename]


Here are your freeware download links:

http://www.mediafire.com/download/z17ehf2351u71gh/COMPRESS

http://www.mediafire.com/view/2nxzv1d51r7bmcp/jccmp32d.c

http://www.mediafire.com/download/9qlmgr5wcilo83p/JCCMP32D.EXE

http://www.mediafire.com/download/gx1ox8zty7x7j7y/JCCMP32D.OBJ

http://www.mediafire.com/view/8h6i8t73yp13292/jccmp32e.c

http://www.mediafire.com/view/4vloofs848b0mx5/JCOOLEST.BMP

http://www.mediafire.com/download/lmqajrx07xaq06x/UNCOMP

[main files have been updated June 9, 2015 Tuesday]


P.S.
Thank you God for another bless day with my real mom Huong Thi Vu!
Blessings and honours to my real mom.
Honours to my real dad Nguyen Binh Thuy.
Back to top
tienkhoanguyen
PSEUDOCODER


Offline
Joined: 05 Sep 2014
Posts: 2664
Location: Texas

PostPosted: Tue Jun 09, 2015 7:56 am     Post subject: God, Cheese-its & Rice, is number one!hehe Reply with quote

Cheese-its & Rice!hehe

Please note that above post from today refers also to XP (specifically 32-bit versions of XP); There is no guarantee other versions of XP will work.

To use the above compression program in XP, you would run it in the command prompt in XP. You know, the black screen with plain text hehe

Anyways, on a modern machine you would have at least 1 gigahertz of computing power. This is 200 times faster than DOS running at native 5 megahertz. So the compression will most likely be extremely fast on most small files.

Thank you Jesus!
Back to top
tienkhoanguyen
PSEUDOCODER


Offline
Joined: 05 Sep 2014
Posts: 2664
Location: Texas

PostPosted: Thu Jun 11, 2015 6:35 am     Post subject: JCcompt3 - version 2 (Edition J) Reply with quote

JCcompt3 - version 2 (j):

In this edition, the compression and decompression routine has been tested and will NOT work with XP (32-bit) if it uses longer lengths than 8 characters for the filenames. Also you should avoid using any numbers as your filenames to compress since it ends up replacing the original and messing it up.

*
The asterisk is a hidden function that batch compresses all the files in directory

-
The minus is also NOT documented and will decompress all the files.
However for it to work you need the FILELIST.CMP generated by the asterisk.
You also need all the numbers generated by the asterisk.

Remember DOS is slow so it may take quite some time for many files.

I max out DOSBox 0.74 at about 2.5 ghz and it takes about a minute.
This is for over 200 files.

http://www.mediafire.com/download/85m6xiwhvg8kb01/JCCMP32J.OBJ
http://www.mediafire.com/view/8ebgeqoehiu78a0/JCCMP32J.C
http://www.mediafire.com/download/aeyn10j53c7zsyg/JCCMP32J
http://www.mediafire.com/download/py7h165bmxpccl2/JCCMP32J.EXE

Thank you to Health and Human Services Commission of Texas and Supplemental Security Income. Without you I would be homeless.

Thank you to Jesus of course for my talents to program in my leisure.

I would like to think I am good hehe
Back to top
tienkhoanguyen
PSEUDOCODER


Offline
Joined: 05 Sep 2014
Posts: 2664
Location: Texas

PostPosted: Thu Jun 11, 2015 10:38 am     Post subject: God, Cheese-its & Rice, is number one!hehe Reply with quote

Cheese-its & Rice!hehe

I just tested the above link in pure what seems to be pure DOS and it seems to NOT work right. So I'm sorry for that. I know what the problem is now. I will see to it an update is made. In the mean time you could use the regular version that processes a single file at a time.

Once again, I'm sorry - I've been working so hard on producing DOSBox 0.74 versions that I neglected MS-DOS 6.22 itself. At least I didn't test it on DOS so I didn't know. Hope you will forgive me! Thanks.
Back to top
tienkhoanguyen
PSEUDOCODER


Offline
Joined: 05 Sep 2014
Posts: 2664
Location: Texas

PostPosted: Thu Jun 11, 2015 12:19 pm     Post subject: God, Cheese-its & Rice, is number one!hehe Reply with quote

Cheese-its & Rice!hehe
http://www.mediafire.com/download/6zbpc0v241pb3ko/JCCMP32T.OBJ
http://www.mediafire.com/view/69fxtgl82j2dg2e/jccmp32t.c
http://www.mediafire.com/download/0m3kn0f56dtpd1a/JCCMP32T.EXE


Well, this version has been tested in MS-DOS 6.22 so it is fine now.

Remember, if you do a batch compression - you need to remove all numbers.

The numbers mess everything up since the outputs are numbers too.

It gets confused.

hehe

Thank you God my mom is still alive today - I saw her this morning!

My real mom is Huong Thi Vu.
My real dad is Nguyen Binh Thuy.
Back to top
tienkhoanguyen
PSEUDOCODER


Offline
Joined: 05 Sep 2014
Posts: 2664
Location: Texas

PostPosted: Thu Jun 11, 2015 5:17 pm     Post subject: God, Cheese-its & Rice, is number one!hehe Reply with quote

Cheese-its & Rice!hehe

Here is a really cool update. It has two new features that you might end up wanting. It makes a backup of FILELIST.CMP which is really necessary for you to do batch decompression. It also allows doing another batch compression on top of the previous one instead of having you delete all the numbers first. This is handy if you are in a hurry. However, a clean slate is always better and safer in 99.9% of the cases!

http://www.mediafire.com/download/uz1bijzml9xfjgq/JCCMP32Z.OBJ

http://www.mediafire.com/view/tyfbn7ti25cg2mu/jccmp32z.bk1

http://www.mediafire.com/view/w9hoogwn0ytar77/jccmp32z.c

http://www.mediafire.com/download/foj01fvz8dfe2ex/JCCMP32Z.EXE


Thank you God I have my mother until at least she is one hundred years old!!!!!!!!!!!!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    DOS Games Discussion Forum Index -> Game Creation All times are GMT - 5 Hours
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group and Ask an Expert
Also powered by Darren and the other admin and mods' hard work! ;)