OC:R new wizard script

Post » Tue Jan 26, 2016 9:27 pm

I've remade the OC:R archive by inserting Blood & mud together with the OC:R compatibility .esps.


I've changed the wizard script to that:



If DataFileExists('Open cities Reborn.esp')


SelectOne "Do you want to install Blood & Mud?", \


"|Yes", "Installs Ryan's Bravil Blood & Mud", "_Screenshots\\Bravil.jpg", \


"No", "Do not install Blood & Mud", "_Screenshots\\Bravil.jpg"


Case 'Yes'


SelectSubPackage '01 Blood & Mud Additions'


Break


Case 'No'


Break


EndSelect


EndIf



Is that ok ?


User avatar
joannARRGH
 
Posts: 3431
Joined: Mon Mar 05, 2007 6:09 am

Post » Tue Jan 26, 2016 8:55 pm

No. If you have added all the files from Ryan's Blood & Mud into a folder named '01 Blood & Mud Additions' and added this folder into the Open Cities Reborn archive, then that script will not work because it is checking for the presence of the OCR ESP - which won't exist because that ESP is also going to be part of this archive's installation, so will only exist AFTER you have made all of your choices from the wizard script and installed it. You don't need to bother with the condition check for the OCR ESP, so remove the first and last lines and just keep from SelectOne down to EndSelect. And of course don't share this combined archive of OCR and B&M without permission from both Arthmoor and Ryan.

User avatar
evelina c
 
Posts: 3377
Joined: Tue Dec 19, 2006 4:28 pm

Post » Tue Jan 26, 2016 9:27 am

Thank you a lot. :)

User avatar
Breautiful
 
Posts: 3539
Joined: Tue Jan 16, 2007 6:51 am

Post » Tue Jan 26, 2016 6:35 pm

I want to add also Vault of Cyrodil for Open cities that is curretnyl inside the folder 100 Vault of cyrodil


SelectOne "Do you want to install Vault of Cyrodil?",


"|Yes", "Installs Vault of Cyrodil",


"No", "Do not install Vault of Cyrodil",


Case 'Yes'


SelectSubPackage '100 Vault of Cyrodil'


Break


Case 'No'


Break


EndSelect


Is that right?


User avatar
TOYA toys
 
Posts: 3455
Joined: Sat Jan 13, 2007 4:22 am

Post » Tue Jan 26, 2016 11:51 pm

Looks right to me. You do realise that the best way to find out if it's right is to simply run the wizard and check what options it gives you? You don't even need to zip the mod into an archive, simply place the folder containing all the files into the BAIN Installers directory, and Bash will recognise that folder as an installable object. Run the wizard, and whatever the result, you can click cancel at the end if you don't wish to install yet. Then tweak the wizard and try again.

User avatar
Da Missz
 
Posts: 3438
Joined: Fri Mar 30, 2007 4:42 pm

Post » Tue Jan 26, 2016 6:31 pm

Thanks for your patience. I'm getting this error:


An error occurred in the wizard script:

Line 71: "|Yes",

Error: (Line 71, Column 17): Too few arguments to Keyword 'self.text': got 3, expected min: 7.



That's my wizard:


;Open Cities Reborn BAIN Wizard Installation Script by Arthmoor


RequireVersions '1.2.0.416','0.0.20.6','','292'



ResetAllEspmNames


DeSelectAll



SelectSubPackage '00 Core'



SelectOne "Would you like to install the open versions of the Imperial Prison and Arcane University?", \


"|Yes", "Installs open versions of the Imperial Prison and Arcane University.", "_Screenshots\\ImperialPrison.jpg", \


"No", "The Imperial Prison and Arcane University will remain closed districts.", "_Screenshots\\ImperialPrison.jpg"


Case 'Yes'


SelectSubPackage '10 Outer Districts'


Break


Case 'No'


Break


EndSelect



SelectOne "Do you want to install Blood & Mud?", \


"|Yes", "Installs Ryan's Bravil Blood & Mud", "_Screenshots\\Bravil.jpg", \


"No", "Do not install Blood & Mud", "_Screenshots\\Bravil.jpg"


Case 'Yes'


SelectSubPackage '01 Blood & Mud Additions'


Break


Case 'No'


Break


EndSelect



If DataFileExists('DLCShiveringIsles.esp')


SelectOne "Shivering Isles detected. Would you like New Sheoth to be installed as an open city?", \


"|Yes", "Installs the open version of New Sheoth for Shivering Isles.", "_Screenshots\\NewSheoth.jpg", \


"No", "New Sheoth will remain as a closed city.", "_Screenshots\\NewSheoth.jpg"


Case 'Yes'


SelectSubPackage '20 New Sheoth'


Break


Case 'No'


Break


EndSelect


EndIf





If DataFileExists('Knights.esp')


SelectOne "Knights of the nine detected. Would you like to install the compatibility patch?", \


"|Yes", "Installs the Kotn patch.",


"No",


Case 'Yes'


SelectSubPackage '02 Knights of the nine patch'


Break


Case 'No'


Break


EndSelect


EndIf




If DataFileExists('bartholm.esp')


SelectOne "J. Sera's Bartholm has been detected. Would you like to install an open version of this city?", \


"|Yes", "Installs the open version of J. Sera's Bartholm.", "_Screenshots\\Bartholm.jpg", \


"No", "J. Sera's Bartholm will remain as a closed city.", "_Screenshots\\Bartholm.jpg"


Case 'Yes'


SelectSubPackage '30 Bartholm'


Break


Case 'No'


Break


EndSelect


EndIf





SelectOne "Do you want to install The Old Crow Inn (esp originale)?", \


"|Yes",


"No",


Case 'Yes'


SelectSubPackage '03 The Old Crow Inn Originale'


Break


Case 'No'


Break


EndSelect




SelectOne "Do you want to install za bank of cyrodil?", \


"|Yes",


"No",


Case 'Yes'


SelectSubPackage '04 za bank of cyrodil cleaned'


Break


Case 'No'


Break


EndSelect




SelectOne "Installing Unique Castles. Have you installed B&M?", \


"|Yes",


"No",


Case 'Yes'


SelectSubPackage '05 Unique Castles B&M'


Break


Case 'No'


SelectSubPackage ' 05 Unique Castles vanilla'


Break


EndSelect



SelectOne "Do you want to install Cats & Rats?", \


"|Yes",


"No",


Case 'Yes'


SelectSubPackage '06 Cats and Rats 2.5b EV'


Break


Case 'No'


Break


EndSelect






LODString = "40 LOD Compatibility - Anvil Reborn"



SelectMany "Landscape LOD Compatibility: Anvil. Select any mods you have that need LOD compatibility.", \


"Castle Seaview", "Castle Seaview", "_Screenshots\\Anvil.jpg", \


"UL: Lost Coast", "UL: Lost Coast", "_Screenshots\\Anvil.jpg", \


"UL: Cliffs of Anvil", "UL: Cliffs of Anvil", "_Screenshots\\Anvil.jpg"


Case 'Castle Seaview'


LODString = LODString + " + Castle Seaview"


Break


Case 'UL: Lost Coast'


LODString = LODString + " + UL Lost Coast"


Break


Case 'UL: Cliffs of Anvil'


LODString = LODString + " + UL Cliffs of Anvil"


Break


EndSelect



If LODString != "40 LOD Compatibility - Anvil Reborn"


SelectSubPackage LODString


EndIf



LODString = "50 LOD Compatibility - Cheydinhal Reborn"



SelectMany "Landscape LOD Compatibility: Cheydinhal. Select any mods you have that need LOD compatibility.", \


"UL: Arrius Creek", "UL: Arrius Creek", "_Screenshots\\Cheydinhal.jpg", \


"UL: Rolling Hills", "UL: Rolling Hills", "_Screenshots\\Cheydinhal.jpg", \


"UL: Cheydinhal Falls", "UL: Cheydinhal Falls", "_Screenshots\\Cheydinhal.jpg"


Case 'UL: Arrius Creek'


LODString = LODString + " + UL Arrius Creek"


Break


Case 'UL: Cheydinhal Falls'


LODString = LODString + " + UL Cheydinhal Falls"


Break


Case 'UL: Rolling Hills'


LODString = LODString + " + UL Rolling Hills"


Break


EndSelect



If LODString != "50 LOD Compatibility - Cheydinhal Reborn"


SelectSubPackage LODString


EndIf



Finish

User avatar
meg knight
 
Posts: 3463
Joined: Wed Nov 29, 2006 4:20 am


Return to IV - Oblivion

cron