News:

Herr Otto Partz says you're all nothing but pipsqueaks!

Main Menu

Car archive

Started by dreadnaut, November 09, 2023, 08:51:48 PM

Previous topic - Next topic

dreadnaut

We need to start somewhere: https://github.com/dreadnaut/stunts-cars/

Comments, suggestions, thoughts: everything welcome! ;D

Cas

I had been thinking of auto-generating car images viewed from the side to make a graphical garage, but had not considered SVG. It would be a nice thing to have, as the same image could be used for many things. My idea was to just generate a large bitmap, then scale it down to average colours and produce a softer image.

I don't understand most of the concepts in the idea, but it sounds cool! :)
Earth is my country. Science is my religion.

Daniel3D

#2
What about adding the txt file in resources as info####.txt or info####.nfo
in this case infoCDOR.txt

And an multi platform accepted thumbnail image.
Img1CDOR.bmp.. (or tif, gif.. whatever is most convenient for programmers)

That way the car files are extended to 6 and include metadata and an image (or a few).
And can be used by other tools, like car managers.
Edison once said,
"I have not failed 10,000 times,
I've successfully found 10,000 ways that will not work."
---------
Currently running over 20 separate instances of Stunts
---------
Check out the STUNTS resources on my Mega (globe icon)

dreadnaut

Quote from: Daniel3D on November 10, 2023, 12:31:19 PMWhat about adding the txt file in resources as info####.txt or info####.nfo
in this case infoCDOR.txt

In my mind the archive is not meant to invent a new standard, that we cannot (and should not) impose on car makers, but to work with whatever they create — be it 30 years ago, or today. I think this is where tools that can generate images from the car files come in. Structured data would also live outside the car files, in the archive itself.

Part of the plan is a front-end to the archive itself, that can make data and images available in a consistent way:

- car makers make cars as they prefer
- the archive collects them and compiles details
- front-end generates images and offers a standard interface (e.g., zip files, previews, etc)
- tools can talk to the front-end and download data or files


Cas

Simple Garage does support a very basic additional car file. I think it's CAR*.CFG, but I don't remember. If it's not there, everything works as usual. If it's there, you can specify the author and version number. I would have to check back on the code to remember the details.

An interface for a car archive does sound great indeed. Lots of integrations and exchanges can result from that :)
Earth is my country. Science is my religion.

dreadnaut

After adding a first car I'm starting to think that Markdown might not be a good idea. Yes, one can write free text, but a free text description would be a minor part of the archive. The most important information for each car is structured data: author, date, powergear yes / no, colours, etc. A brief description could be one of this attributes. This brings it closer to @Cas configuration files, and indeed those could be generated automatically.

The main bit would then be something like this:
---
name: Melange XGT-88
nickname: Melange
author: Alan Rotoi
year: 2013
colors: [ Blue, Red, Yellow, Light Grey, Brown, Black, Green, Purple, Striped ]
urls:
  wiki: https://wiki.stunts.hu/wiki/Melange_XGT-88
description: |
  Alan's much-loved machine is a timeless classic with a long and proud
  history in prestigious contests. It is an IMSA pipsqueak with more than a
  few twists to spice it up.

With more attributes to come of course (suggestions?) and structure to be defined. But this feels like a more productive direction.

Daniel3D

#6
Combined with the SVG images...

My idea was. If you make a database with additional information. Make it so that there are flexible uses for it.
Like a resource/database for other programs or the wiki...
Edison once said,
"I have not failed 10,000 times,
I've successfully found 10,000 ways that will not work."
---------
Currently running over 20 separate instances of Stunts
---------
Check out the STUNTS resources on my Mega (globe icon)

Erik Barros

I still miss download links in the wiki, and in cases like Melange it would be cool the link to different versions.

alanrotoi

Quote from: Erik Barros on November 11, 2023, 03:08:39 PMI still miss download links in the wiki, and in cases like Melange it would be cool the link to different versions.

I'll add my cars. They're already in a free access google drive.

alanrotoi

Ok added the download links from every car page and in the list of custom cars:

https://wiki.stunts.hu/wiki/Custom_cars#List_of_custom_cars

Cas

@dreadnaut - Yes, Simple Garage's config files are super simple, a lot more basic than that. I think they use the equals sign instead of the colon, but other than that, they're pretty much the same idea. As they have not been used much, I could follow your standard for the next version for exchange
Earth is my country. Science is my religion.