• Doors and .cfg files

    From Cozmo@21:3/135 to All on Wed Jun 9 19:01:31 2021
    I'm trying to get an old door to work . It uses filename.exe filename.cfg in the menu command. I need to have a .cfg file for each node. How do I get Mystic to recognize which .cfg file to use based on whatever node the user has logged in on? The .cfg file won't accept the temp%1 for the directory. So I can't use the same .cfg file for all the nodes, it has to be temp1, temp2 in the .cfg file etc.

    --- Mystic BBS v1.12 A47 2021/04/08 (Windows/32)
    * Origin: Lunatics Unleashed BBS (21:3/135)
  • From Wall E. Weasel@21:2/121 to Cozmo on Wed Jun 9 21:13:00 2021
    I'm trying to get an old door to work . It uses filename.exe
    filename.cfg in the menu command. I need to have a .cfg file for each node. How do I get Mystic to recognize which .cfg file to use based on whatever node the user has logged in on? The .cfg file won't accept
    the temp%1 for the directory. So I can't use the same .cfg file for
    all the nodes, it has to be temp1, temp2 in the .cfg file etc.

    Let Windows parse the node information from within the game's batch file. Name each of the config files with the node number as part of the filename, such as node1.cfg, node2.cfg, and so on. Have Mystic call the game's batch file with the node number as a parameter. The menu data for the door command (assuming you're using NetFoss again) would look like:

    C:\MYSTIC\NETFOSS\NF.BAT /N%N /H%H C:\DOORS\GAME\GAME.BAT %N

    The NetFoss batch file would then call GAME.BAT with the node number as parameter %1. GAME.BAT then converts that parameter as the configuration filename:

    C:
    CD \DOORS\GAME
    GAME.EXE node%1.cfg

    Windows replaces %1 with the first parameter of the batch file, so it actually calls GAME.EXE with the parameter node1.cfg, node2.cfg, and so on.


    --- MultiMail/Win v0.52
    * Origin: The Basement Theory - Sciotoville, Ohio USA (21:2/121)
  • From HSM@21:2/162 to Cozmo on Thu Jun 10 15:59:19 2021
    On 09 Jun 2021, Cozmo said the following...

    I'm trying to get an old door to work . It uses filename.exe
    filename.cfg in the menu command. I need to have a .cfg file for each node. How do I get Mystic to recognize which .cfg file to use based on whatever node the user has logged in on? The .cfg file won't accept the temp%1 for the directory. So I can't use the same .cfg file for all the nodes, it has to be temp1, temp2 in the .cfg file etc.

    door.exe temp%N.cfg where %N is the current node number.

    |01 ├|06HSM|01─|14aka|01─|07Ga|08ry|01───────────────┐
    |14 ┐|01│ Mystic|14.|01BBSGameTime|14.|01com|14:|0323|01 │|14┌
    │|01│ ScoobysDoo|14.|01ddns|14.|01net|14:|032023|01 │|14│
    │|01└───────────────────────────┘|14│

    --- Mystic BBS v1.12 A47 2021/05/27 (Windows/32)
    * Origin: BBS GameTime - mystic.BBSGameTime.com:23 (21:2/162)
  • From Cozmo@21:3/135 to Wall E. Weasel on Thu Jun 10 17:27:12 2021
    C:\MYSTIC\NETFOSS\NF.BAT /N%N /H%H C:\DOORS\GAME\GAME.BAT %N
    The NetFoss batch file would then call GAME.BAT with the node number as parameter %1. GAME.BAT then converts that parameter as the configuration filename:
    C:
    CD \DOORS\GAME
    GAME.EXE node%1.cfg

    Last night APAM helped me out on this. Had me do exactly what you are suggesting. Worked like a charm :) I was close when I tried my batch file but was off.

    Thanks for the reply.

    --- Mystic BBS v1.12 A47 2021/04/08 (Windows/32)
    * Origin: Lunatics Unleashed BBS (21:3/135)