I need help
Moderator: DosItHelp
-
- Posts: 9
- Joined: 16 Nov 2019 20:21
- Location: Jiutepec, Mexico
I need help
Hello everyone
I am new, my name is Emiliano Fierro and I am very interested in retro games
Recently I had a problem with hex codes
I want to convert some hex codes to the codes used by MS-DOS
I hope you help me
David was not clear in his explanation so there are two options in 2 cases
I am new, my name is Emiliano Fierro and I am very interested in retro games
Recently I had a problem with hex codes
I want to convert some hex codes to the codes used by MS-DOS
I hope you help me
David was not clear in his explanation so there are two options in 2 cases
Re: I need help
Could you give some more context information and also link to the post(s) you are referring to?Emiliano Fierro wrote:David was not clear in his explanation so there are two options in 2 cases
Intuitively i would use environment string manipulation for that (but that might be suboptimal in your code; untested alphanumeric example):Emiliano Fierro wrote:I want to convert some hex codes to the codes used by MS-DOS
Code: Select all
@echo off
setlocal enableExtensions disableDelayedExpansion
set "table= 0123456789 ABCDEFGHIJKLMNOPQRSTUVWXYZ _ abcdefghijklmnopqrstuvwxyz"
echo(%table:~0x30,1% to %table:~0x39,1%
echo(%table:~0x41,1% to %table:~0x5A,1%
echo(%table:~0x5F,1%
echo(%table:~0x61,1% to %table:~0x7A,1%
goto :eof
-
- Posts: 9
- Joined: 16 Nov 2019 20:21
- Location: Jiutepec, Mexico
Re: I need help
Here I explain it
- Attachments
-
- Replaced codes.txt
- (283 Bytes) Downloaded 315 times
-
- Screenshot_20191116-145034.png (311.16 KiB) Viewed 9468 times
-
- Posts: 9
- Joined: 16 Nov 2019 20:21
- Location: Jiutepec, Mexico
Re: I need help
I come from another forum of The game Prince of Persia
But I will not give more details
So I wanted to change some colors and asked for help, David answered and was not very clear
Today in the morning I used a hex editor and did what I needed
But I still want to learn to use MS-DOS
But I will not give more details
So I wanted to change some colors and asked for help, David answered and was not very clear
Today in the morning I used a hex editor and did what I needed
But I still want to learn to use MS-DOS
-
- Posts: 9
- Joined: 16 Nov 2019 20:21
- Location: Jiutepec, Mexico
Re: I need help
https://forum.princed.org/viewtopic.php?f=76&t=4431
This is the forum which I talk about
This is the forum which I talk about
Re: I need help
Seems you are actually talking about DOS. Can't recall what opportunities you have on DOS to change binary data. But I'm afraid you can't do that using Batch scripting.
Steffen
Steffen
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
-
- Posts: 9
- Joined: 16 Nov 2019 20:21
- Location: Jiutepec, Mexico
Re: I need help
Does anyone know the name of the codes used by MS-DOS, I need it to make the conversion
From hex to ???
From hex to ???
Re: I need help
Umm, from HEX to binary. But if you are able to use a HEX editor wherein you change the original binary file then the changed HEX values will be automatically converted back to binary as soon as you save the file.
Steffen
Steffen
-
- Posts: 9
- Joined: 16 Nov 2019 20:21
- Location: Jiutepec, Mexico
Re: I need help
Thanks
Do you know about any code converter?
The thing is that I want to make the files since 0
Re: I need help
No. If you want to program the binary file you need to get the source code and learn the programming language used. The program to make source code to binary program code is called compiler.
To program your own game is probably more than two years of intensive learning ahead of you though.
Steffen
To program your own game is probably more than two years of intensive learning ahead of you though.
Steffen
-
- Posts: 9
- Joined: 16 Nov 2019 20:21
- Location: Jiutepec, Mexico
Re: I need help
I need another format (not the binary)
I need this other format
Look at the example of the binary code
I need this other format
Look at the example of the binary code
- Attachments
-
- Screenshot_20191118-134603.png (333.33 KiB) Viewed 9419 times
-
- Screenshot_20191118-134447.png (352.41 KiB) Viewed 9419 times
-
- Posts: 9
- Joined: 16 Nov 2019 20:21
- Location: Jiutepec, Mexico
Re: I need help
Just consider that I'm not a programmer
I want to learn more about codes
One day I will become an engineer and I want to make my own games for the MS-DOS OS and open them with DosBox but nobody will teach me
aGerman: Right, I won't send you any PM like “answer my post” or so
This is why I need a code converter
I want to learn more about codes
One day I will become an engineer and I want to make my own games for the MS-DOS OS and open them with DosBox but nobody will teach me
aGerman: Right, I won't send you any PM like “answer my post” or so
This is why I need a code converter
Last edited by Emiliano Fierro on 18 Nov 2019 13:56, edited 1 time in total.
Re: I need help
The subject of this forum is Batch scripting. Please explain what your question has to do with it.
Steffen
Steffen
-
- Posts: 9
- Joined: 16 Nov 2019 20:21
- Location: Jiutepec, Mexico
Re: I need help
I just want a code converter from the Hex to this format
That's all
- Attachments
-
- Screenshot_20191118-134603.png (333.33 KiB) Viewed 9411 times