Author Topic: Simple Garage  (Read 265 times)

Cas

  • Corner Controller
  • ***
  • Posts: 1245
  • Think different. That's OK... as long as you think
    • View Profile
    • Dimioca Labs
Simple Garage
« on: September 24, 2021, 12:00:47 AM »
I have had an idea very similar to Dreadnaut's CarPark in the relatively recent past. That is, besides the idea of a more complex and elaborate car manager more like what Daniƫl and KyLiE would like, which I also like, at a point, I thought that I could make something command-line-oriented to have it working soon and to make it flexible for the keyboard-centric user like me.

My idea was not exactly the same, but similar. Instead of using command line arguments for the main program, I envisioned the program like you'd call it and you'd get a command line interface inside it. Then you'd type command to list the cars, delete, backup, restore, etc. You'd also have commands to tag cars, so that groups of cars could exist that you could backup or move together quickly.

In my experience, nothing takes more time in developing a program than working on the interface visuals, so making this a command-line program would make it possible to complete the project very quickly, although it wouldn't be the nicest car manager for most users, which leaves space for somebody else making another with a different style as well.

Metadata?  Well, that's another topic. I don't think it should be dynamically added or removed from cars while handled by a car swapping program. Whether metadata should be added by the author when creating the car, that's another thing and I think it's up to the author.

EDIT: OK, I got tempted by the idea and I made this simple command-line-based garage manage. I didn't want to steal the name, so I called it Simple Garage. It's made quickly and my own way, but if you like it, just tell me, or I could just add things to it to make it more like the CarPark idea. Anyway, I'm willing to collaborate. The zip I've uploaded contains the Linux and DOS versions. I can also compile it for Windows if you guys want. If you call it with a command line, it'll execute the command. If you just call it alone, it'll open a console and you can call commands there. Type "HELP" for... well, help. "EXIT" to exit, of course.

Dreadnaut: if you like it and if you want to guide me a little, I can make this one work more and more as you want and then, if you prefer it, we could use the CarPark name. What it currently does is pretty simple. You can create groups of cars and move either individual cars or whole groups between Stunts and the garage. If a car has a number of files other than four, they're still all copied together, but you get a warning when you list them.
« Last Edit: September 24, 2021, 07:02:40 AM by Cas »
Earth is my country. Science is my religion.

dreadnaut

  • Corner Controller
  • ***
  • Posts: 1287
    • View Profile
    • chezDreadnaut
Re: Simple Garage
« Reply #1 on: September 24, 2021, 05:39:48 PM »
EDIT: OK, I got tempted by the idea and I made this simple command-line-based garage manage.

Hahaha, discussing a project sometimes is enough to make it start, isn't it? ;D

I have also started writing some code, with the UI in mind first instead. Let's proceed on our own ideas separately, we'll see where we end up!

Cas

  • Corner Controller
  • ***
  • Posts: 1245
  • Think different. That's OK... as long as you think
    • View Profile
    • Dimioca Labs
Re: Simple Garage
« Reply #2 on: September 24, 2021, 06:33:11 PM »
Ha, ha!  Yes, it's because I had this in mind for long, so your thread made me think "Then I'm not the only one wanting something like this. I better get it done".

I made some bug fixes and updated a few things. It's really quick to work on something like this because there isn't much interface to write. I'll upload an update later.
Earth is my country. Science is my religion.

Daniel3D

  • Corkscrew Cad
  • ***
  • Posts: 1088
    • View Profile
Re: Simple Garage
« Reply #3 on: September 25, 2021, 10:51:29 AM »
When I started to use Sgar i just edited the CFG with the right directories (running separate instances of dosbox makes E:\ the game dir in my case)
but when I moved cars to the garage it seemed to work well. Within Sgar i could list and see them in the garage and move cars back and fort.
but when I exited the program, the garage dir did not exist and the cars were gone.

This issue was solved by manually creating the garage dir.

Don't know if this is a known and already fixed bug though. But since there is no update yet. I thought I mention it.
« Last Edit: September 26, 2021, 09:34:41 PM by dreadnaut+ »
Ever tried, ever failed. Try again, fail better.

Currently running 19 separate instances of Stunts or 4D Sports Driving.
---------
Stunts resources.
https://mega.nz/folder/JM8HQI5a#mH5ZBNwXC0eEBmockWo50A

Cas

  • Corner Controller
  • ***
  • Posts: 1245
  • Think different. That's OK... as long as you think
    • View Profile
    • Dimioca Labs
Re: Simple Garage
« Reply #4 on: September 26, 2021, 01:10:45 AM »
The program is not very rich in terms of reporting when things go wrong. The directories you put in the configuration file are supposed to exist prior to using, but granted, this isn't stated anywhere. Also, when you try to move cars to a non-existing directory, Simple Garage happily tells you that this has been done, which is also wrong.

I have already fixed some bugs, but I'm going to take special care about this issue. It's not a bug in the sense that I expected people would set up existing directories and knew it wouldn't work otherwise, but it definitely it's not good for it to not report this or help the user solve the problem. I'll post the update soon.

EDIT: Here it is. Fixed that bug and a few others and added some commands. Take a look at the powerful group features... for example, the "only" command.
« Last Edit: September 26, 2021, 02:44:04 AM by Cas »
Earth is my country. Science is my religion.