Author Topic: Run.bat  (Read 193 times)

0 Members and 1 Guest are viewing this topic.

Offline Dolbadarn

  • Laborer
  • **
  • Posts: 15
  • Country: 00
Run.bat
« on: February 09, 2019, 05:44:50 AM »
How do I specify multiple resource lists to load using Run.bat when starting the game to test before packaging?

In my Run.bat I have:

..\bin\x64\Application-x64-profile.exe /ref woodroundhouseResources.rsc:resource /pathres ../Dolbadarn/woodroundhouse /pathdat ../Dolbadarn/woodroundhouse/bin
..\bin\x64\Application-x64-profile.exe /ref stoneroundhouseResources.rsc:resource /pathres ../Dolbadarn/stoneroundhouse /pathdat ../Dolbadarn/stoneroundhouse/bin
pause

This causes the game to run the first time with the wood house then when I close the game it opens for a second time with the stone house but I want both to load in-game together.

Sorry for all the amateur questions, I'm still learning the code language.

Thanks

Offline Discrepancy

  • Modders
  • Architect
  • *****
  • Posts: 978
  • Country: au
Re: Run.bat
« Reply #1 on: February 09, 2019, 05:53:17 AM »
it isn't something I've ever done....

but could you make another resource list that your run.bat loads that references both of the other resource lists?

like:

Code: [Select]
ExternalList resource
{
External _resources
[
"woodroundhouseResources.rsc:resource",
"stoneroundhouseResources.rsc:resource",

]
}


no idea if it will work though...

but why not just combine the contents of both into 1 resource list anyway? :)

Online RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 10511
  • Country: ca
Re: Run.bat
« Reply #2 on: February 09, 2019, 06:46:44 AM »
i never nevr never run,bat i always check real live in game.
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

Offline Dolbadarn

  • Laborer
  • **
  • Posts: 15
  • Country: 00
Re: Run.bat
« Reply #3 on: February 09, 2019, 06:58:51 AM »
The problem I have is that woodroundhouseResources.rsc and stoneroundhouseResources.rsc and all the other files they reference are in separate folder locations:

ModKit/Dolbadarn/woodroundhouse/woodroundhouseResources.rsc

ModKit/Dolbadarn/stoneroundhouse/stoneroundhouseResources.rsc


So in ModKit/Dolbadarn I have created "AllAssetsResources.rsc" with

Code: [Select]
ExternalList resource
{
External _resources
[
"woodroundhouseResources.rsc:resource",
"stoneroundhouseResources.rsc:resource",

]
}

Also in ModKit/Dolbadarn I have created Run.bat

Code: [Select]
..\bin\x64\Application-x64-profile.exe /ref AllAssetsResources.rsc:resource /pathres ../Dolbadarn /pathdat ../Dolbadarn/bin
pause

But when I go to launch game with Run.bat I get the error:
Assert: Source resource 'C:\BanishedKit\Dolbadarn\woodroundhouseResources.rsc' does not exist, and compiled resource not found in pack!
The game is looking in the wrong file location.
Can I alter the externalList resource to correct the path to: C:\BanishedKit\Dolbadarn\woodroundhouse\woodroundhouseResources.rsc with /pathres command?

Offline Jinxiewinxie

  • Modders
  • Trader
  • *****
  • Posts: 208
  • Country: us
Re: Run.bat
« Reply #4 on: February 09, 2019, 07:15:15 AM »
If I have two WIP mods and I want to have access to Mod A while hitting Run.bat on Mod B, I just package Mod A first and stick Mod A in my modkid's bin Windata folder and load it as I would a normal Mod. Then, when I run Mod B, I can enable my Mod A in the mod list and start a new game to have access to both at the same time =)