1. put prog in forum .. how ?
- Posted by Selgor Nov 20, 2012
- 1370 views
hello.
forgotten how to show a programme.
used <eucode>.
Got lines through the code .
So, incorrect. taa.
2. Re: put prog in forum .. how ?
- Posted by DerekParnell (admin) Nov 20, 2012
- 1451 views
hello.
forgotten how to show a programme.
used <eucode>.
Got lines through the code .
So, incorrect. taa.
Enclose the code with <eucode> and </eucode>, making sure each of these are on its own line.
3. Re: put prog in forum .. how ?
- Posted by DonCole Nov 21, 2012
- 1230 views
Hello Selgor,
Nice to hear from you again.
Of course I don't check this forum every day.
Don Cole
4. Re: put prog in forum .. how ?
- Posted by Selgor Nov 21, 2012
- 1175 views
Hello Don.
Yes, still around.
And,like yourself, don't get around the forum much any more.
But I thought I could help with a "proggie" for the Dos Rescue people.
Will post soon.
Good to know great people are still in touch.
Cheers.
Selgor.
5. Re: put prog in forum .. how ?
- Posted by Selgor Nov 24, 2012
- 1119 views
hello.
forgotten how to show a programme.
used <eucode>.
Got lines through the code .
So, incorrect. taa.
Enclose the code with <eucode> and </eucode>, making sure each of these are on its own line.
nope. Does not work.
Cheers.
6. Re: put prog in forum .. how ?
- Posted by DerekParnell (admin) Nov 24, 2012
- 1076 views
nope. Does not work.
Yes it does ... if you do it correctly. Show me exactly what you are doing and I should be able to fix it up for you.
7. Re: put prog in forum .. how ?
- Posted by Selgor Nov 24, 2012
- 1084 views
- Last edited Nov 26, 2012
Hello Derek.
I do this .
I put <eucode> on a line press enter. I put </eucode> on the next line press enter.
I put code in.
Then <eucode> on a line press enter. Put </eucode> on next line press enter.
And this is how it comes out.
I used to do this without any trouble.
Thanks in anticipation. Cheers.
-- BkCl3Bst.ex Polygons 2 -- ----------------------------- --include graphics.e without type_check include dos_rescue.ew as dos_rescue include select.e include machine.e include mouse.e dos_rescue:use_vesa(1) if graphics_mode(18) then end if constant X = 1, Y = 2 sequence config integer nlines, npoints, spacing, solid,klr,kol,kolr,key procedure stall() for i = 1 to 3750000 do end for end procedure procedure colour() --key = dos_rescue:get_key() --0if get_key() = 27 then abort(0) end if klr=rand(15) kol=rand(15) kolr=rand(15) if klr=kol or klr=kolr then colour() elsif kol=kolr or kol=klr then colour() elsif kolr=klr or kolr=kol then colour() end if -- key = dos_rescue:get_key() -- if get_key() = 27 then abort(0) end if bk_color(kolr) end procedure colour() --key = dos_rescue:get_key() --if get_key() = 27 then abort(0) end if procedure dun() -- key = dos_rescue:get_key() -- if get_key() = 27 then abort(0) end if mouse_pointer(0) mouse_events(2) if sequence(get_mouse()) then abort(0) end if end procedure procedure poly_pattern() sequence points,pts,deltas,dels,history,his config = video_config() pts=rand(repeat(config[VC_XPIXELS..VC_YPIXELS],npoints))+2 points = rand(repeat(config[VC_XPIXELS..VC_YPIXELS], npoints))+2 deltas = rand(repeat({2*spacing-1, 2*spacing-1}, npoints)) - spacing dels=rand(repeat({2*spacing-1,2*spacing-1},npoints))-spacing key = dos_rescue:get_key() if get_key() = 27 then abort(0) end if dun() history = {} his={} dos_rescue:clear_screen() --key = dos_rescue:get_key() -- if get_key() = 27 then abort(0) end if dun() key = dos_rescue:get_key() while get_key() != 27 do if length(history) >= nlines then polygon(0, solid, history[1]) history = history[2..nlines] --if get_key() = 27 then abort(0) end if dun() end if if length(his) >= nlines then polygon(0,solid,his[1]) his=his[2..nlines] end if --key = dos_rescue:get_key() --if get_key() = 27 then abort(0) end if polygon(klr,solid,pts) polygon(kol, solid, points) dun() history = append(history, points) his=append(his,pts) points += deltas pts+=dels --key = dos_rescue:get_key() -- if get_key() = 27 then abort(0) end if dun() for j = 1 to npoints do if points[j][X] <= 0 or points[j][X] >= config[VC_XPIXELS] then deltas[j][X] = -deltas[j][X] end if -- key = dos_rescue:get_key() -- if get_key() = 27 then abort(0) end if dun() if points[j][Y] <= 0 or points[j][Y] >= config[VC_YPIXELS] then deltas[j][Y] = -deltas[j][Y] end if -- key = dos_rescue:get_key() -- if get_key() = 27 then abort(0) end if dun() end for for j = 1 to npoints do if pts[j][X] <= 0 or pts[j][X] >= config[VC_XPIXELS] then dels[j][X] = -dels[j][X] end if -- key = dos_rescue:get_key() -- if get_key() = 27 then abort(0) end if dun() -- key = dos_rescue:get_key() -- if get_key() = 27 then abort(0) end if dun() if pts[j][Y] <= 0 or pts[j][Y] >= config[VC_YPIXELS] then dels[j][Y] = -dels[j][Y] end if end for if rand(101) = 1 then colour() end if -- was 201 dun() stall() -- key = dos_rescue:get_key() -- if get_key() = 27 then abort(0) end if end while end procedure key = dos_rescue:get_key() while get_key() != 27 do nlines = 6 npoints = 4 spacing = 15 solid=0 dun() poly_pattern() --key = dos_rescue:get_key() -- if get_key() = 27 then abort(0) end if dun() end while
8. Re: put prog in forum .. how ?
- Posted by EUWX Nov 24, 2012
- 1017 views
Just do this:
<eucode> - your line of code without the -, then put enter - your line of code without the -, then put enter - your line of code without the -, then put enter - and so on - In the line below there are extra spaces; remove them - Also the - is put to make the creole treat it as eucode; - in real work you use the expresion without the - - < /eucode>
You can just cut and paste your whole program from notepad in between the two.
You don't need more than one pair of start and finish and they should not follow each other but they should be filled with your whole code in between.
9. Re: put prog in forum .. how ?
- Posted by Selgor Nov 24, 2012
- 1049 views
Hello EUWX, and Derek.
How could I be so forgetful.
Of course. <eucode> on line. Then code. Then </eucode> on line to finish.
And it does work.
Sorry Derek. I am wrong again. I misread your explanation.
Thank you EUWX.
Some of the code below.
-- BkCl3Bst.ex Polygons 2 -- ----------------------------- --include graphics.e without type_check include dos_rescue.ew as dos_rescue include select.e include machine.e include mouse.e dos_rescue:use_vesa(1) if graphics_mode(18) then end if constant X = 1, Y = 2 sequence config integer nlines, npoints, spacing, solid,klr,kol,kolr,key procedure stall() for i = 1 to 3750000 do end for end procedure procedure colour() --key = dos_rescue:get_key() --0if get_key() = 27 then abort(0) end if klr=rand(15) kol=rand(15) kolr=rand(15) if klr=kol or klr=kolr then colour() elsif kol=kolr or kol=klr then colour() elsif kolr=klr or kolr=kol then colour() end if -- key = dos_rescue:get_key() -- if get_key() = 27 then abort(0) end if bk_color(kolr) end procedure
Cheers. Selgor.
10. Re: put prog in forum .. how ?
- Posted by EUWX Nov 25, 2012
- 984 views
Selgor: I am glad you got the hang of it.