1. DOS Rescue

Forked from Re: Support for older Euphoria programs? And porting DOS-Windows?

SDPringle said...

I have just ported this to 4.0. I didn't modify the program files themselves. It seems possible to have distinct include directories in 3.1 and 4.0 without changing environment variables. eu.cfg can contain a directory pointing to these version 4 libraries and in EUINC version 3 libraries. The old EUPHORIA will ignore eu.cfg. Check if the EU 4, uses eu.cfg before EUINC.

Shawn

Shawn, can you please help me, how to apply this patch to the dos_rescue? I have some patch.exe from the Free Pascal package. That's it's output:

c:\FPC\2.4.2\bin\i386-win32\patch.exe < dosrescue2-for-4.0.patch 
can't find file to patch at input line 2 
Perhaps you should have used the -p or --strip option? 
The text leading up to this was: 
-------------------------- 
|diff -r dosrescue2/dos_rescue.ew dosrescue2for4.0//dos_rescue.ew 
-------------------------- 
File to patch: 
Skip this patch? [y] 
Skipping patch. 
64 out of 64 hunks ignored 
can't find file to patch at input line 326 
Perhaps you should have used the -p or --strip option? 
The text leading up to this was: 
-------------------------- 
|diff -r dosrescue2/mouse_rescue.ew dosrescue2for4.0//mouse_rescue.ew 
-------------------------- 
File to patch: 
Skip this patch? [y] 
Skipping patch. 
1 out of 1 hunk ignored 
can't find file to patch at input line 330 
Perhaps you should have used the -p or --strip option? 
The text leading up to this was: 
-------------------------- 
|diff -r dosrescue2/release-notes.txt dosrescue2for4.0//release-notes.txt 
-------------------------- 
File to patch: 
Skip this patch? [y] 
Skipping patch. 
1 out of 1 hunk ignored 
can't find file to patch at input line 354 
Perhaps you should have used the -p or --strip option? 
The text leading up to this was: 
-------------------------- 
|diff -r dosrescue2/sb.exw dosrescue2for4.0//sb.exw 
-------------------------- 
File to patch: 
Skip this patch? [y] 
Skipping patch. 
3 out of 3 hunks ignored 
can't find file to patch at input line 365 
Perhaps you should have used the -p or --strip option? 
The text leading up to this was: 
-------------------------- 
|diff -r dosrescue2/select.e dosrescue2for4.0//select.e 
-------------------------- 
File to patch: 
Skip this patch? [y] 
Skipping patch. 
2 out of 2 hunks ignored 
 

new topic     » topic index » view message » categorize

2. Re: dos_rescue2: Port patches for 3.1 projects 4.0

Shawn: 
 
Why are you are you patching dos_rescue ? 
 
It is a small file, why not just replace the file on the download page ? 
 
I could understand if it was a large complicated file in development. 

new topic     » goto parent     » topic index » view message » categorize

3. Re: dos_rescue2: Port patches for 3.1 projects 4.0

zebra said...

Shawn:

Why are you are you patching dos_rescue ?

It is a small file, why not just replace the file on the download page ?

I could understand if it was a large complicated file in development.

I think that we should really look to put this code into the standard library for 4.0.3. Obviously, it's not currently cross platform, but I wonder how difficult that would be.

Matt

new topic     » goto parent     » topic index » view message » categorize

4. Re: dos_rescue2: Port patches for 3.1 projects 4.0

dosrescue has big problems when accessing colors other than 4-bpp. With the current uploaded patch. All of the demos work on Windows. I am attempting to add support for various routines that disappeared when we dropped DOS32 as well as for other color depths.

I used patches because I would rather Isolar apply these patches and later I can ask that this patch be removed from the archive. Thus only one version. I wanted to avoid having more than one version of dosrecue2 in the archive. Having multiple versions is like a digital version of clutter. One example of how bad this can get is win32lib. The archive doesn't even sort it out by date for you. When you do a search you get a list and at the top you see the one that was uploaded in 2001.

Shawn Pringle

new topic     » goto parent     » topic index » view message » categorize

5. Re: dos_rescue2: Port patches for 3.1 projects 4.0

SDPringle said...

dosrescue has big problems when accessing colors other than 4-bpp.

I have solved this problem days ago. Now there is 8-bpp color support.

Another problem is that dosrescue do not redraw screen after minimizing-restoring of the window or hiding it by another window. I am working on it. As soon as this problem is solved, I will upload the newer version of the dosrescue.

new topic     » goto parent     » topic index » view message » categorize

6. Re: dos_rescue2: Port patches for 3.1 projects 4.0

It would also be nice to see implementations for the other now-absent graphics routines. B/W, modes wont be handled correctly IMO because there is no branch for that case to set the palette to black and white. There are routines for multiple pages documented in 3.1, for double buffering.

I will upload what I have so far.

Shawn

new topic     » goto parent     » topic index » view message » categorize

7. Re: dos_rescue2: Port patches for 3.1 projects 4.0

The most recent version of the dosrescue2: http://rghost.ru/5465760 (updated link)

What's new:

  • The rest routines from image.e were implemented (save_image(), display_image(), read_bitmap(), save_bitmap(), save_screen(), set_active_page(), set_display_page, get_active_page(), set_active_page())
  • pixel(), get_pixel() routines reimplemented using DIB sections, now work much faster.
  • Solved problem with output of '\t' characters (using code from the ed.ex)
  • scroll() routine optimized.
  • Palette routines now affect on already drawn image.
  • Added demos: bitmap.exw, sanity.exw, test_pages.exw, test_palette.exw.
  • Fixed some bugs found with sanity.exw.
  • More video modes added.

Thanks to Shawn Pringle for ideas about palette routines implementation.

P.S. Comments are welcome

new topic     » goto parent     » topic index » view message » categorize

8. Re: dos_rescue2: Port patches for 3.1 projects 4.0

mattlewis said...

I think that we should really look to put this code into the standard library for 4.0.3. Obviously, it's not currently cross platform, but I wonder how difficult that would be.

Matt

Matt, I think it is possible to rewrite it to use some cross platform graphics library like SDL.

new topic     » goto parent     » topic index » view message » categorize

9. Re: dos_rescue2: Port patches for 3.1 projects 4.0

Dosrescue2 update http://rghost.ru/5465760

Changes:

  • Fixed bug in read_bitmap()
  • scroll() optimized using mem_copy()
  • Other small changes
  • Removed some files
new topic     » goto parent     » topic index » view message » categorize

10. Re: dos_rescue2: Port patches for 3.1 projects 4.0

Insolor said...
mattlewis said...

I think that we should really look to put this code into the standard library for 4.0.3. Obviously, it's not currently cross platform, but I wonder how difficult that would be.

Matt, I think it is possible to rewrite it to use some cross platform graphics library like SDL.

True, but that's a lot more heavy weight than I think we would want. I've started porting it to X. I've got the basic window, and drawing stuff, although I don't think the colors are quite right.

Matt

new topic     » goto parent     » topic index » view message » categorize

11. Re: dos_rescue2: Port patches for 3.1 projects 4.0

There is a library for Linux similar to DOS Rescue in the Archive already. But I do not know is it up to date: http://www.rapideuphoria.com/cgi-bin/asearch.exu?lnx=on&keywords=eu_engin

Graphics Engine for Linux by Bernie Ryan, Dec 20/00 said...

A set of include files for doing graphics on Linux. It lets you write graphics programs on Linux using the same routines that are available in Euphoria for DOS. You can also access other SVGAlib graphics routines.

new topic     » goto parent     » topic index » view message » categorize

12. Re: dos_rescue2: Port patches for 3.1 projects 4.0

Insolor said...

There is a library for Linux similar to DOS Rescue in the Archive already. But I do not know is it up to date: http://www.rapideuphoria.com/cgi-bin/asearch.exu?lnx=on&keywords=eu_engin

Graphics Engine for Linux by Bernie Ryan, Dec 20/00 said...

A set of include files for doing graphics on Linux. It lets you write graphics programs on Linux using the same routines that are available in Euphoria for DOS. You can also access other SVGAlib graphics routines.

Yeah, I had thought of that, but it seems to be for fullscreen / console, not windowed.

Matt

new topic     » goto parent     » topic index » view message » categorize

13. Re: dos_rescue2: Port patches for 3.1 projects 4.0

I've put my code into a bitbucket repo:

https://bitbucket.org/mattlewis/dos_rescue

This code is for 4.1, though, and requires a pretty recent version.

Matt

new topic     » goto parent     » topic index » view message » categorize

14. Re: dos_rescue2: Port patches for 3.1 projects 4.0

mattlewis said...

I've put my code into a bitbucket repo:

https://bitbucket.org/mattlewis/dos_rescue

This code is for 4.1, though, and requires a pretty recent version.

Matt

Matt, how can I commit some changes? Shawn's version had some bugs, eg.:

-- dos_rescue.ew 
... 
s[i] = floor(or_bits(s[i],{#FF0000,#FF00,#FF })/{#40000,#400,#4 } ) --  line 673 
... 
floor(or_bits(color_map[color_index+1],{#FF0000,#FF00,#FF })/{#40000,#400,#4 } ) -- line 680 

There would be and_bits() function instead.

In general, can I upload my version of dos_rescue for eu3.1 as a different branch?

new topic     » goto parent     » topic index » view message » categorize

15. Re: dos_rescue2: Port patches for 3.1 projects 4.0

Insolor said...

Matt, how can I commit some changes? Shawn's version had some bugs, eg.:

[snip]

In general, can I upload my version of dos_rescue for eu3.1 as a different branch?

Sure. You need a bitbucket account (which is free) and I can add you there (anyone else interested is welcome, too, though with my free account, I can only add up to 4 people, I think).

Matt

new topic     » goto parent     » topic index » view message » categorize

16. Re: dos_rescue2: Port patches for 3.1 projects 4.0

I already have bitbucket account. See followers of the project, Mike Manturov (insolor)

new topic     » goto parent     » topic index » view message » categorize

17. Re: dos_rescue2: Port patches for 3.1 projects 4.0

Insolor said...

I already have bitbucket account. See followers of the project, Mike Manturov (insolor)

OK, you now have write access.

Matt

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu