.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Air Command 3.0- Save $15.00
BCT Commander- Save $8.00

   







Go Back   .com.unity Forums > The Camo Workshop > WinSPMBT
Notices


Reply
 
Thread Tools Display Modes
  #1  
Old September 29th, 2005, 06:41 PM

markgame markgame is offline
Corporal
 
Join Date: Nov 2000
Posts: 62
Thanks: 1
Thanked 0 Times in 0 Posts
markgame is on a distinguished road
Default Adding new scenario utility

I don't remember what it was called or where I last saw it, but wasn't there a utility that enabled you to install new scenarios to SP, and would number them to the next available slot? Does such a beastie exist for winSPMBT? I know it's not really needed, you can re-number manual, but I was just wondering...
Reply With Quote
  #2  
Old September 30th, 2005, 01:57 AM
Pyros's Avatar

Pyros Pyros is offline
Colonel
 
Join Date: Mar 2005
Posts: 1,668
Thanks: 0
Thanked 5 Times in 5 Posts
Pyros is on a distinguished road
Default Re: Adding new scenario utility

Hi,

I think WB has mentioned something like this, probably in the campaign subforum.

cheers,
Pyros
Reply With Quote
  #3  
Old September 30th, 2005, 03:41 AM
desh44's Avatar

desh44 desh44 is offline
Sergeant
 
Join Date: Jun 2005
Location: Maryland
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
desh44 is on a distinguished road
Default Re: Adding new scenario utility

I had a utility for SP which enabled you to load it into a file and then move it from that file to the folders for the game. When you opened the utility it had a 2 listings one from the game and one from a temp folder. You could create any number of temp folders and each one held 100 scenarios. You could move scenarios from one slot to another and it would renumber them for the appropriate slot. The format showed the scenarios as they appear in the game menu and when you moved them it would move all the appropriate files and number them correctly. I bought this program a few years ago unfortunately when my hard drive crashed a year and a half ago it was lost. I haven't been able to find where I got this one from but I am still looking. If anyone else should find one like it I would like to know also as it was a real time saver.
Tom
Reply With Quote
  #4  
Old September 30th, 2005, 11:55 AM

jvankessel jvankessel is offline
Private
 
Join Date: Jun 2005
Posts: 36
Thanks: 0
Thanked 2 Times in 1 Post
jvankessel is on a distinguished road
Default Re: Adding new scenario utility

If you can spec precisely what the program is supposed to do, I'll take a few hours to write it. Not this weekend though; I'm going sailing.
Reply With Quote
  #5  
Old September 30th, 2005, 12:50 PM
junk2drive's Avatar

junk2drive junk2drive is offline
Sergeant
 
Join Date: Jun 2005
Location: Arizona West Coast
Posts: 260
Thanks: 1
Thanked 1 Time in 1 Post
junk2drive is on a distinguished road
Default Re: Adding new scenario utility

What was the "Scenario Wrangler" program?
Reply With Quote
  #6  
Old September 30th, 2005, 01:59 PM

markgame markgame is offline
Corporal
 
Join Date: Nov 2000
Posts: 62
Thanks: 1
Thanked 0 Times in 0 Posts
markgame is on a distinguished road
Default Re: Adding new scenario utility

Quote:
jvankessel said:
If you can spec precisely what the program is supposed to do, I'll take a few hours to write it. Not this weekend though; I'm going sailing.
Enjoy your sail!

The utility should be able to extract the scenario files from a zip file and move them to the scenario folder in winSPMBT, renaming the files to place them in the next available unoccupied slot.

The files are in the format "spscnXXX.YYY" where XXX can range from 001 to 999. YYY is the extention which can be .cmt, .dat and .txt and all three should exist for each scenario. The files must be placed in the \Scenarios folder of the winSPMBT installation, so the path to that folder could be variable but the name "Scenarios" is fixed.

Example of files in the Scenarios folder:
spscn000.cmt
spscn000.dat
Spscn000.txt
spscn001.cmt
spscn001.dat
Spscn001.txt
SPSCN002.CMT
SPSCN002.DAT
Spscn002.txt
SPSCN003.CMT
SPSCN003.DAT
Spscn003.txt

The XXX should be replaced in the name of each of the three files with the next unused slot in the Scenarios folder. In the example above the next unused slot would be "004". If you feel so motivated you could add an option to specify the minimum value of XXX, so that add-on scenarios would always be placed in slots at or above that value, so that they can be grouped together.

The source location of the zips should be able to be specified using a "Browse to" button and saved in something like an .ini file so that the user doesn't have to re-specify locations on each use. The same of course for the destination "Scenarios" folder.

Scenarios are usually supplied in Zip compressed files, does this present a problem?

You did say "precisely", didn't you ? I review and approve software requirements and specifications for a living!
Reply With Quote
  #7  
Old October 2nd, 2005, 03:55 PM

jvankessel jvankessel is offline
Private
 
Join Date: Jun 2005
Posts: 36
Thanks: 0
Thanked 2 Times in 1 Post
jvankessel is on a distinguished road
Default Re: Adding new scenario utility

Quote:
markgame said:
Enjoy your sail!

Thanks. I most certainly did.

Quote:
markgame said:

<...> (Specs).

You did say "precisely", didn't you ? I review and approve software requirements and specifications for a living!
I like precisely. I'll write and upload this before Friday.
Reply With Quote
  #8  
Old October 7th, 2005, 10:57 AM

jvankessel jvankessel is offline
Private
 
Join Date: Jun 2005
Posts: 36
Thanks: 0
Thanked 2 Times in 1 Post
jvankessel is on a distinguished road
Default Re: Adding new scenario utility

All done. See attachment. Please read the readme.txt file.

<edit> Version 1.01, which parses the zip file and notifies the user if it is not a valid WinSPMBT scenario zip file, with a continue/abort option.
Attached Files
File Type: rar 385722-scenario_unpack_1.01.rar (85.0 KB, 199 views)
Reply With Quote
The Following 2 Users Say Thank You to jvankessel For This Useful Post:
  #9  
Old October 7th, 2005, 11:49 AM
Beeg's Avatar

Beeg Beeg is offline
Corporal
 
Join Date: Jul 2005
Location: W. Mass.
Posts: 116
Thanks: 25
Thanked 7 Times in 6 Posts
Beeg is on a distinguished road
Default Re: Adding new scenario utility

Great utility! Amazing in it's simplicity. Thanks very much.

Beeg
__________________
"The beatings will continue until morale improves!"
Reply With Quote
  #10  
Old October 7th, 2005, 02:32 PM

markgame markgame is offline
Corporal
 
Join Date: Nov 2000
Posts: 62
Thanks: 1
Thanked 0 Times in 0 Posts
markgame is on a distinguished road
Default Re: Adding new scenario utility

I just installed and tested it on a couple of zips and it indeed does work as requested . I also tested it on a non-scenario zip and verified (at least in this case) that it didn't put any of the extracted files into the scenarios folder.

For a "try to break it" test I did put a PDF file into another scenario zip and the unpacker renamed the PDF and put it into the scenarios folder with the three regular files. However, since it wasn't noted in the requirements that only those three files are to be renamed and transfered, I have no issues with extra files being put the folder.

It did transfer a scenario that was missing one of the three files. I don't have a problem with this, since jvankessel did nicely provide a window where the user can see the files before transfering them.

So in all a good job, jvankessel!!! Take another sail!!!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 12:10 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2022, Shrapnel Games, Inc. - All Rights Reserved.