All of the above is good input and I am just an armchair quarterback here since currently, I am not in the trenches as a mechanic on a day-to-day basis....but I remember working on those trucks when they needed transmission work back in the day.
Please, just(!) pull the kick panel on the drivers side and see if you can see any numbers on the TCM to see if
@Rdnck84_03 hit the nail on the head with the original computer being swapped for a gas unit..??
On a diesel TCM, you should not even HAVE any MAP or MAF codes.
There is no MAF on the durn thing and any MAP you might have would only be a belt-driven vacuum pump monitor thats only purpose would be to warn you that you don't have any vacuum to power your brakes.
MAP and MAF is for gas engines. It has no business being on a diesel of that vintage.
As far as other sensors...if one of them is ailing...it might pull the others down that are three-wire sensors and use a common source voltage. So....that might cause a code that drags you down a rabbit hole.
This statement makes me even more suspect of the tcm.
Also if you're truck had a factory third brake light it has to work or the transmission will not shift correctly.
Other common issues that come to mind are MLPS, FILP, VSS
This guy guessed that the truck could have been converted from gas to diesel...that is possible.
To find out...look at your VIN and decode the thing...it will tell you if the truck was originally a gas or diesel and then let's start with that and check to see if you have a TCM to match the engine.
Anything else done or time spent on it before you find out what you really have to work with will be chasing your tail.
Back to basics, first.
Also...a GM MAP does not use the same method of signalling the computer that the Ford MAP does...ask me how I know...wait, don't ask...it cost me a better grade on a written test...back in the 1990's...
The Ford uses a Hertz signal, the GM one uses 0-5 VDC.
The diesel BARO sensor is the only thing that your truck would use. You don't connect any vacuum hose to it.
Just(!) trying to help....