Ugh, ports. The problem is that in scripts, ports are numbered from 0. So if you have 4 ports
configured, you refer to them with the numbers 0, 1, 2, and 3.
In the UI though, we display them starting from 1, the thinking here is that non-programming users aren't used to seeing 0 as a port number, they expect to see 1 to mean "first".
So we have a numbering inconsistency depending on where you are looking. I don't remember how old MOS scripts numbered ports, I thought they were also zero based but maybe not. So with that in mind, I was able to do "set outputPort 2" in a MOS script, and it went to the right place, it's just that 2 means "the third port" not "the second port".
If you wanted to do this in MSL the syntax would be
outputPort = 2
The biggest difference between 2.x and 3 related to ports is the way in which you configure them. In 2.x you would select an audio interface and it would automatically add numbers for every port that interface supported. So if you had an 8x8 interface, there would be 4 stereo ports in each direction numbered 0-3.
In Mobius 3, the UI I use to configure audio devices is provided by Juce (a tool that I use) and there it is a two step process. You first pick the output device you want to use. Then UI then displays a list of all of the available channels and you have to check the boxes next to the ones you want to use. It won't automatically include all of them. So again if you had an 8x8 interface and you wanted Mobius 3 to use the same port numbers as 2.x, you would have to check the boxes for "Output 1 + 2", "Output 3 + 4", "Output 5 + 6" and "Output 7 + 8". Each channel is grouped into a stereo pair and each pair is a Mobius port. Only the channel pairs that are checked will be assigned port numbers.
So, If you had only the boxes checked for "Output 1 + 2" and "Output 7 + 8" "Output 1 + 2" would be Mobius port 0 and "Output 7 + 8" would be Mobius port 1.
If you are using Mobus as a plugin the process is different. There you configure the number of ports the plugin will advertise to the host in the Configuration->System Configuration popup window. There are two fields labeled "Plugin inputs" and "Plugin Outputs". If you want 4 ports in each direction you have to type the number 4 in both fields.
If your scripts does "set outputPort 2" that means "use the 3rd output port" and the value of Plugin Outputs must be at least 3.