It is currently 16 Apr 2024, 17:00
   
Text Size

My enemy deck randomizing batch script

MicroProse's Shandalar Campaign Game, now with new cards & a new look!

Moderators: BAgate, drool66, Aswan jaguar, gmzombie, stassy, CCGHQ Admins

My enemy deck randomizing batch script

Postby Enzi » 13 Nov 2022, 07:09

Hello fellow Shandalar players!

I made a batch script which changes your enemies decks from time to time while you play Shandalar. This should make the fights less boring since every enemy has 5-6 decks which they switch through.

The decks in the "decks" folder are only with original cards from the Duel of the Planeswalker expansion. I included the original decks, the decks of the SotA update, three sets of decks posted on this forum and 10 additional decks I made myself.


HOW TO USE IT:
First download the DeckRandomizer archive.
Unpack it into your Mtg folder. If you have custom edited decks inside your decks folder, better make a backup copy of them first in case I included a bug.

IMPORTANT: Then open randalar.bat and at the second line change the path to the Mtg folder used on your computer and save it again.
To run Shandalar now always run randalar.bat. It will start shandalar.exe and stay open in the background to switch the decks after a bit more than 3 minutes.

The script runs in a loop and just copies all files called *.dc1 to *.dck, then *.dc2,etc.., up to *.dc999 or whenever there are no deck files with this number in which case it restarts with *.dc1.
You although don't need to have a deck for each enemy, because then it just keeps the previous one and only changes the other ones.
At the moment it has decks named *.dc1 to *.dc6. To add another list rename your decks from *.dck to *.dc7 then copy the files into the "decks" folder.

And to spare you the hassle of getting original Shandalar (with DotP expansion) to run on a modern PC or on linux, I made virtual disk images for Qemu and Virtual Box which load into Windows 95 and autostart Shandalar and my deck randomizer.
Edit: Forgot to mention I didn't get sound to working with Qemu

Link:

https://gofile.io/d/QrHct5

I used the following command to run it at decent speed with qemu:
Code: Select all
qemu-system-i386    -drive file=~/Downloads/Randalar.raw,format=raw,cache=unsafe             -cpu pentium3       -vga std        -m 768  -boot c -enable-kvm
Please feel free to leave your comments or if you have your own custom enemy deck lists I would be happy to include them. :-)

Edit: Batch script updated, following the suggestion from the post below.
Attachments
DeckRandomizer.tar.gz
Extract into your Mtg folder and set your mtgpath in randalar.bat
(44.51 KiB) Downloaded 76 times
Last edited by Enzi on 06 Dec 2022, 06:57, edited 3 times in total.
Enzi
 
Posts: 6
Joined: 28 Oct 2022, 05:49
Has thanked: 0 time
Been thanked: 1 time

Re: My enemy deck randomizing batch script

Postby Aswan jaguar » 04 Dec 2022, 08:57

Enzi wrote: just copies all files called *.dc1 to *.dck, then *.dc2,etc..,
So if you run some duels, the original decks existing to .dck will be overwritten for good, right? they are not saved somewhere are they? So possibly those decks should be in another number lets say *.dc7 if you have already 6 packs so they don't get lost.
---
Trying to squash some bugs and playtesting.
User avatar
Aswan jaguar
Super Tester Elite
 
Posts: 8078
Joined: 13 May 2010, 12:17
Has thanked: 730 times
Been thanked: 458 times

Re: My enemy deck randomizing batch script

Postby Enzi » 05 Dec 2022, 19:12

Hello,
I now added a check and everytime a *.dck file is different from all *.dc1,2,... files it should copy them first to *.dc7,... So creating a new set of decks everytime it detects a edited or otherwise different *.dck file.

Although I removed the *.dck files from the "decks" folder in my archive since everone should have them already in their folder and it would be stupid if they would be overwritten while extracting the archive.
Enzi
 
Posts: 6
Joined: 28 Oct 2022, 05:49
Has thanked: 0 time
Been thanked: 1 time

Re: My enemy deck randomizing batch script

Postby Enzi » 06 Dec 2022, 06:59

Oops,
the file I uploaded didn't actually work. But now it should be fixed. Sorry for that.
See first post for downloads.
Enzi
 
Posts: 6
Joined: 28 Oct 2022, 05:49
Has thanked: 0 time
Been thanked: 1 time


Return to Shandalar

Who is online

Users browsing this forum: No registered users and 26 guests


Who is online

In total there are 26 users online :: 0 registered, 0 hidden and 26 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 26 guests

Login Form