Search found 243 matches
- 02 May 2023 09:03
- Forum: DOS Batch Forum
- Topic: create macro: Let's create a small handout with reports .
- Replies: 17
- Views: 5038
Re: create macro: Let's create a small handout with reports .
To focus more on the points of your question: 2) for complex code should I use the LF trick? Can I avoid this by putting all the code on one line? What advantages are there? It can help readability of complex macro's. 3) what other precautions should I take into account to use both variables expande...
- 02 May 2023 08:43
- Forum: DOS Batch Forum
- Topic: create macro: Let's create a small handout with reports .
- Replies: 17
- Views: 5038
Re: create macro: Let's create a small handout with reports .
For arithmetic macro's, it's rather practical to define an array of sums that can be indexed using one or more "key" variables, expanding the relevant macro using the current value of the given "key" String/s expanded using a for /f string loop if needed. Think of it as using lookup values to enact...
- 02 May 2023 07:54
- Forum: DOS Batch Forum
- Topic: create macro: Let's create a small handout with reports .
- Replies: 17
- Views: 5038
Re: create macro: Let's create a small handout with reports .
For arithmetic macro's, it's rather practical to define an array of sums that can be indexed using one or more "key" variables, expanding the relevant macro using the current value of the given "key" String/s expanded using a for /f string loop if needed. Think of it as using lookup values to enact ...
- 30 Apr 2023 04:31
- Forum: DOS Batch Forum
- Topic: DosBatch 3D Engine.
- Replies: 36
- Views: 34309
Re: DosBatch 3D Engine.
raster font was the first thing I tried, as I did see the clipping Ive done 5 more runs for each speed setting. the tables below represent the greatest variance between each of the 5 runs for each given speed. fps speed splits free - fps splits free 36.4 1 8 4% / 35.7 6 0% 24.8 2 12 3% / 23.9 8 0% 2...
- 29 Apr 2023 15:02
- Forum: DOS Batch Forum
- Topic: DosBatch 3D Engine.
- Replies: 36
- Views: 34309
Re: DosBatch 3D Engine.
Had to make a small change - _R was hard coded to 160 which sized the sphere beyond the bounds of the console, distorting output
Changed to _Cols
The performance recorded as the highest reported fps:
Selected Speed:Fps
9:10.1
8:10.7
7:12.1
6:13.7
5:16.0
4:18.1
3:22.5
2:28.4
1:32.8
Changed to _Cols
The performance recorded as the highest reported fps:
Selected Speed:Fps
9:10.1
8:10.7
7:12.1
6:13.7
5:16.0
4:18.1
3:22.5
2:28.4
1:32.8
- 28 Apr 2023 06:46
- Forum: DOS Batch Forum
- Topic: DosBatch 3D Engine.
- Replies: 36
- Views: 34309
Re: DosBatch 3D Engine.
Phenomenally Impressive!
Edit: FYI, I got an average of 16.6 fps with my processor specs being:
Intel(R) Core(TM) i5-9400 CPU @ 2.90GHz, 2904 Mhz, 6 Core(s), 6 Logical Processor(s)
Edit: FYI, I got an average of 16.6 fps with my processor specs being:
Intel(R) Core(TM) i5-9400 CPU @ 2.90GHz, 2904 Mhz, 6 Core(s), 6 Logical Processor(s)
- 26 Apr 2023 13:50
- Forum: DOS Batch Forum
- Topic: Stacker, A batch interpretation of the game.
- Replies: 8
- Views: 2798
Re: Stacker, A batch interpretation of the game.
Yes, I was referring to alternate data streams. By deleting the batch file you have reset. At least I think that is where the problem may be. The "space" key no longer worked. If you encounter the problem again, Insert the below code into the start of the file after @Echo off, run it, then remove t...
- 26 Apr 2023 10:40
- Forum: DOS Batch Forum
- Topic: Stacker, A batch interpretation of the game.
- Replies: 8
- Views: 2798
Re: Stacker, A batch interpretation of the game.
I tried to delete the batch file and now it started working again. There must be a bug maybe on stream management. I haven't experienced this bug, but I typically run scripts from the command line When you say stream, are you thinking ther may be an error with the Alternate Data stream the file use...
- 25 Apr 2023 23:21
- Forum: DOS Batch Forum
- Topic: Stacker, A batch interpretation of the game.
- Replies: 8
- Views: 2798
Re: Stacker, A batch interpretation of the game.
Thanks Einstein. Icarus Yeshi and I are collaborating on a game engine at the moment that is going to allow for far more exciting batch gameseinstein1969 wrote: ↑21 Apr 2023 09:56Well done T3rry!
It's fun and difficult, but definitely a great idea.
thank you for sharing!
- 20 Apr 2023 21:34
- Forum: DOS Batch Forum
- Topic: Stacker, A batch interpretation of the game.
- Replies: 8
- Views: 2798
Stacker, A batch interpretation of the game.
Yet another batch game, this time it's the classic Stacker game Spacebar to drop the current block onto the stack, customization menu at game start for colors, characters and difficulty. =================================== @REM Stacker by T3RRY. Save with utf-8 encoding. @REM Requires windows 10 v10...
- 04 Feb 2023 09:20
- Forum: DOS Batch Forum
- Topic: Help to break loop
- Replies: 4
- Views: 12258
Re: Help to break loop
If someone has any better idea, would be nice and wellcome. This is the bare basics of how to implement a non blocking input method to continue execution of a loop while waiting for a keypress event. If you wish to break the loop based on another event in addition, you'll need to incorporate the us...
- 03 Feb 2023 05:38
- Forum: DOS Batch Forum
- Topic: Help to break loop
- Replies: 4
- Views: 12258
Re: Help to break loop
Batch file input methods are blocking - that means execution of the batch file waits for input before continuing to the next line What you need is non blocking input to take input during a loop in the way you desire. Multithreading can be used to achieve this with xcopy - there's a few examples of u...
- 21 Jan 2023 03:58
- Forum: DOS Batch Forum
- Topic: Can't CLS during redirection - New bug or known?
- Replies: 2
- Views: 7561
Re: Can't CLS during redirection - New bug or known?
When a CLS command is redirected to a disk file, it output an ASCII 12 character, Ctrl-L called Form Feed that in most printers cause to eject current page and jump to a new page. This is a rather logical "conversion" of screen CLS command to a (paper) text file. This conversion is well-known, but ...
- 21 Jan 2023 00:10
- Forum: DOS Batch Forum
- Topic: Can't CLS during redirection - New bug or known?
- Replies: 2
- Views: 7561
Can't CLS during redirection - New bug or known?
Not something I've encountered before, but found myself wanting to clear the screen between outputs during a redirected block, and CLS wouldn't work. I did a bit of searching, couldn't find mention of the problem here previously. I believe the issue only occurs if it's STDOUT being redirected. Flipp...
- 11 Jan 2023 08:39
- Forum: DOS Batch Forum
- Topic: Escaping special characters in a variable in for loop
- Replies: 3
- Views: 7546
Re: Escaping special characters in a variable in for loop
Special handling of the environment state is required to preserve Exclamation characters. Variable assignment must occur before DE is enabled, DE then gets toggled on and of during the loop, with an additional for loop required to tunnel the concatenation variable across the endlocal. Thanks so muc...