@jjb62556 , you can edit your initial post and fix that not very informative subject line. There is a "Modify Post" link on the top right of your own posts.
I prefer replacing bulbs with LEDs as those are simpler to deal with, and have much longer lifespan. Any chance of doing that?
You didn't mention what voltage those bulbs operate on (if you even know) or whether there is some DCC decoder already installed. Those would be important clues for assisting you.
Assuming that the bulbs are 1.5V they still could have various current ratings. I have seen tiny 1.5V bulbs rated at 10, 15, 20 mA. If you have a 10mA bulb and calculate a resistor for a 20mA bulb your bulb will glow too brightly and will have short life.
As I said, to get things right you need to know the specs of the bulbs, or replace them with LEDs (with typical 1000 ohm resistors in series).