1 fichier aimé
897 commentaires
33 vidéos
3 uploads
27 followers
9 265 téléchargements
@Anas0133 I'm confused by your request. What exactly do you mean the brand?
The way this mod works is the script is able to spawn vehicles by reading the name of the files which are given the spawn name. It was really created for addons not for vanilla. The problem with using models of addons is that they are meaningless. For example I have a addon of 250 GTO. What is its brand name? Ferrari 250 GTO, 250 GTO, Ferrari GTO 250 1962? There is no standard name for addons and vehicles only spawn with their hash or spawn name.
What I have done, in the WIP, is the ability to show the brand/model name on screen. The problem is that mod creators don't care about those names so very frequently they are incorrect. The only solution is for the user to edit hundreds of files and then I would have to guess all the possible naming variations, or have a user created file which the script reads and provides a brand name defined by user. Which is what I've done in the WIP version which isn't uploaded yet.
TLDR: Vehicles must spawn with "spawn name", example 458it. There is no standard brand/model names for addons.
@Anas0133 I just finished implementing the process to have the "real names" of addons cars, but it's user driven because I don't have a table from hashes or from spawn names to real names..in fact that doesn't exist for addons. Why don't you just use the menu in your picture? I prefer images in the center and actually I'm going to increase the size because i find the current ones too small. Finally, I'd like to do something innovative with this, if I can't it's going to the trash heap with all my other mods that don't cut it.
Anyway, the table I created, to be populated by an interested user, looks like this:
458it=Ferrari 458 Italia
250gto62=Ferrari 250 GTO 1962
308gts=Ferrari 308 GTS
488misha=Ferrari 488 Misha Designs
599gto=Ferrari 599 GTO
the logic:
string imageFileName = Path.GetFileName(imagePath);
string vehicleName = Path.GetFileNameWithoutExtension(imageFileName);
string displayName = vehicleDescriptions.ContainsKey(vehicleName) ? vehicleDescriptions[vehicleName] : vehicleName;
@Anas0133
1. Not sure mean by brands images
2. To categorize by brands, simply create a subfolder of images
For example: Ferrari, Ford, Racing Cars, Italian Cars, Convertibles - you decide how to categorize
As for images, the script doesn't come with images. You can do screen captures of your addons and you can also start with 2500 images from this mod:
https://www.gta5-mods.com/misc/pack-1-vehicles-previews-for-menyoo-and-add-on-vehicle-spawner
@shifuguru Thank you sir.
@Kazumo That's very kind thank you. What seems like a long time ago, @JustDancePC had very kindly created a music mod for me (not the one here) and populated mp3s from folders and subfolders. That is really cool. Fast forward years later when I actually can script, I revisited his code and thought, hmmm, can we do something with this. So i started with libraries, then realized external folders are more convenient, and loaded images of maps/worlds. This wasn't really great because what do you use as coordinates. I mean LCPP is huge. You would need dozens of images. Then I thought of cars and here we are. Not sure where this is going from here but I think it's fun to quickly scroll through for the previews and I like the ability to structure the subfolders by category.
@Edbarcelos Obrigado. The question:
Very cool the mod. A simple way to show the cars. Can you make a way to randomly choose only from the cars you have in your mod's folder?
Answer: Yes I could include a randomize feature, but this mod does not read the mods folder, it reads the image folder and its subfolders.
Sim, eu poderia incluir um recurso de aleatorização, mas este mod não lê a pasta mods, ele lê a pasta de imagem e suas subpastas.
@lupys I could, but those functions are already done in trainers. I'd like to keep this focused as a viewer/spawner that is extremely flexible from an organization point of view, i.e. using image subfolders by brand, model, country, whatever.
My first choice for trainers is the original Menyoo. It might be outdated in some respects but it does what you require and much more.
https://github.com/MAFINS/MenyooSP/releases
@ALEXSYS Thanks! Yeah the wrong names is a pain and that's why I never used the Add-On Vehicle Spawner by @ikt because no way I'm going to manually edit 200+ vehicles. I love automation and I write scripts for that purpose but this one can't be automated. I have my own personal vehicle menus, aside from this one, that have the correct names, but the idea of this one was just drop and spawn.
It would be a great community project if:
1. We could split up the pool of addons, the one's without images, and create and share those images.
2. Create a table that has the spawn name in one column and the correct brand/model/year name in another column.
@Ikt's mod has this in one of the log or other files, I dont' remember which one, but it still has lots of wrong brands and once more that's entirely the fault of the vehicle dev.
Ok, so what if you don't have an image for your specific addon or addons? Just create an image which has the spawn name of your addon. For example, cobra.png or cobra.jpg. Most of my addon vehicles don't have images, not in the 2500 vehicle pack, but I still wanted to spawn them. So I created a placeholder image (visible in the video) and then i wrote a command script that created over 500 placeholder images, each with the name of one of my addon vehicles. This allows me to spawn all my addons. Eventually I hope to add images for each missing one. Remember for persistence, just step out of the car before spawning a new one.
@Starfox1993 Thank you. In the next release I will add simple customizations options for paint, liveries, and extras. The major problem, which is not technical, is getting a list of all the "real names". In other words I'd like the menu to show Ferrari 250 GTO instead of xyz25062 (just an example) and that's a manual process unless someone has done it before. As i wrote in the description, the names in the meta data, at least for my addons, are really inaccurate.