Talk:Scripts:Modified admin script
From BF2 Technical Information Wiki
I'm new to Python, so I might've missed something here, but this line (around line 637):
mapListFileParts = host.rcon_invoke( 'mapList.configFile' ).split( '/' );
Causes this script to fail on my Windows machine.
Changing it to this:
mapListFileParts = host.rcon_invoke( 'mapList.configFile' ).split( '\\' );
Fixes it for me..