so im about to undertake this swap with a 5.2 out of a 2000 ram 1500 into a 2.5 87 comanche, wiring is racking my brain right now, any idea what i will have to do to make it run happily and have everything work?
Don't really know what advise to give you. Wiring is always a PITA with a motor swap on computer controlled vehicles.
One advantage of the 318 swap into a late model XJ compared to say an LS swap is that the wiring is similar. Many of the plugs and connectors are the same though not all and of course there are lots missing. But the computer connectors are the same, injectors, etc.
For you, you're swapping a late model motor into a Remix era XJ which to me means all of the wiring from the current motor should be yanked. All of the wiring from the Ram should be swapped in. That may cause some issues if the computer cannot be located roughly the same as it was in the Ram. You may have to shorten some wires and lengthen others.
Butt splices are a major no no so you have a few choices there. Either get really good at soldering or buy high end waterproof connectors and the associated tools to crimp the wires and use them to do your splicing.
Any way you go about it the wiring is going to be a bog challenge but obviously not your only. You have to fan motor and trans mounts, all of your exhaust, fuel lines, etc, etc.
Sorry I cannot be more help,
B