How to autoswitch algo to the new Monero algo on fork ?

Unfortunately the method is not too elegant, but it should work. It has to be done this way because the settings (config) for the old and new Monero algo are not the same.

First, set the config for 'normalv8' in algos.txt file

Then you need to make a new temporary pools file : pools-fork.txt
                  {
"pools" :
[
{
"pool" : "your-v7-monero-pool-here",
"wallet" : "your-wallet-here",
"password" : "x",
"cryptonight_type" : "normalv7"
},
{
"pool" : "your-v8-monero-pool-here",
"wallet" : "your-wallet-here",
"password" : "x",
"cryptonight_type" : "normalv8"
}
]
}

The logic is simple : you define 2 pools, they can be the same pool, or different, it's your choice. (if pool will use same port after fork for ex.)
What is important is that the first uses "cryptonight_type" : "normalv7", and the second one "cryptonight_type" : "normalv8".

Miner will start mining with 'normalv7' algo, but it will detect when a job for the new algo is received, and it will restart with the config you defined in algos.txt for 'normalv8' using the second pool you defined in pools-fork.txt, and that is the 'normalv8' pool.

Your start.bat can look like this for example :
                  setx GPU_MAX_HEAP_SIZE 100
setx GPU_MAX_USE_SYNC_OBJECTS 1
setx GPU_SINGLE_ALLOC_PERCENT 100
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_MAX_SINGLE_ALLOC_PERCENT 100
@echo off
cd %~dp0

SRBMiner-CN.exe --config Config\config-normalv7.txt --pools pools-fork.txt --usealgoswitching

Later on you should delete this temporary pools-fork.txt file you created and just do everything the normal way.


How to set it up for multiple algos/coins ?

With this method you set everyting regarding the GPU's and pool in the batch (.bat) file.

For this method to work you must have at least an empty config.txt file that looks like this:
              {
}
You can of course set other parameters in the config file. (min hashing speed etc..)
If you want to set failover pools, you must do that in the pools config, because you can set only a main pool in the batch file.

Example batch file for Monero mining on Nanopool with 5 GPU's:
                setx GPU_MAX_HEAP_SIZE 100
setx GPU_MAX_USE_SYNC_OBJECTS 1
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_MAX_SINGLE_ALLOC_PERCENT 100
@echo off
cd %~dp0
cls
SRBMiner-CN.exe --ccryptonighttype normalv8 --cgpuid 0,1,2,3,4 --cgpuworksize 16,16,16,16,16 --cgpuintensity 120,120,112,118,120 --cgputhreads 2,2,2,2,2 --cpool xmr-eu1.nanopool.org:14444 --cwallet your-wallet-here


Example batch file for BitTube mining on mining.bit.tube with 12 GPU's all using auto intensity and logging enabled:
                setx GPU_MAX_HEAP_SIZE 100
setx GPU_MAX_USE_SYNC_OBJECTS 1
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_MAX_SINGLE_ALLOC_PERCENT 100
@echo off
cd %~dp0
cls
SRBMiner-CN.exe --ccryptonighttype bittubev2 --cgpuid 0,1,2,3,4,5,6,7,8,9,10,11 --cgpuintensity 0,0,0,0,0,0,0,0,0,0,0,0 --cgputhreads 2,2,2,2,2,2,2,2,2,2,2,2 --cpool mining.bit.tube:19999 --cwallet your-wallet-here --logfile log-bittube.txt