PiBoSo Official Forum

GP Bikes => Mods => Paints => Topic started by: doubledragoncc on May 31, 2020, 08:32:07 AM

Title: PAINTS DATABASE
Post by: doubledragoncc on May 31, 2020, 08:32:07 AM
Due to the fact many pnt files no longer work and to keep track of all new ones I am not sure what to do.

I have 8,43 GB of pnt files thats 2893 files in total and many will no longer work!!!

To edit files of other users is not right but how the hell we are going to do this and not have pnt files all over the place as many do not say what they are for I will need help from you guys.

ONCE Piboso give me the correct name length as he has not posted it!!!!

We can start to figure something out.

PLEASE make sure you post only pnt files that work in beta18b ONLY

I will try to sort it out but many files were made by people that are no longer here or just dont update them.
I have a hundreds myself!!!

Please help with this guys.

DD
Title: Re: PAINTS DATABASE
Post by: h106frp on May 31, 2020, 08:56:03 AM
This was the reply when I asked;

quote;
The filename ( but not the internal name, displayed in the user interface ) of paints has always been limited to 31 characters.
It is now enforced to avoid crashes, memory corruption and other issues.
Sorry for the inconvenience.

If you had the files on a local drive you could probably batch file truncate them, not much you can do if they are on mega.
It does seem fairly generous for a filename length but it would have been nice to have known a limit existed.
Title: Re: PAINTS DATABASE
Post by: doubledragoncc on May 31, 2020, 09:16:44 AM
The 31 is for INGAME name

It is the filename he changed and he has given NO exact number for it yet

It is going to cause big issues online and make my life hell to sort out

DD
Title: Re: PAINTS DATABASE
Post by: h106frp on May 31, 2020, 10:04:28 AM
Thats not what is stated here;

The filename ( but not the internal name, displayed in the user interface ) of paints has always been limited to 31 characters.

Is PB incorrect? I assume by trial and error discovery
Title: Re: PAINTS DATABASE
Post by: Hawk on May 31, 2020, 10:42:15 AM
DD..... You need to just announce that all paint authors need to rename their paint files and send them to you again.....

It's not your duty to rename a whole database of paints, it's the paint-authors responsibility to maintain their paint files and send them to you if they want to have their paints added to the paint database. Simple as that mate. This is not your responsibility to be renaming paint files.

Don't take on too much mate.  ;)
Title: Re: PAINTS DATABASE
Post by: h106frp on May 31, 2020, 11:26:49 AM
You could try https://www.bulkrenameutility.co.uk/#features (https://www.bulkrenameutility.co.uk/#features)

Appears to have a length function, or if your feeling adventurous this is the sort of example batchfile function to look for;

@echo off
setlocal EnableDelayedExpansion

REM  loop over all files in the cwd
for /f %%a in ('dir /a-d /b') do (
   REM  store this filename in a variable so we can do substringing
   set ThisFileName=%%a
   REM  now take a substring
   set ThisShortFileName=!ThisFileName:~0,31!
   REM  finally, the rename:
   echo ren %%a !ThisShortFileName!
)


:EOF
endlocal
Title: Re: PAINTS DATABASE
Post by: adrmelandri on May 31, 2020, 12:38:24 PM
I'm gonna check my paints if they exceed 31 characters
Title: Re: PAINTS DATABASE
Post by: doubledragoncc on May 31, 2020, 01:52:47 PM
OKay...............
So it looks as if it is not as I thought as all names I have are in 31 limint but numbers over 26 seem to not work it my be an error

Just hold back on renaming for now

DD
Title: Re: PAINTS DATABASE
Post by: doubledragoncc on May 31, 2020, 01:54:57 PM
Thanks H but I dont have time for all this is the problem and that sort of thing aont for me lol

how many guys out of 2893 paints are still about lol

DD

EDIT: So..........it seems to be a bug and think Piboso is working on it so DO NOT edit your file names please
Title: Re: PAINTS DATABASE
Post by: Furious on May 31, 2020, 11:21:07 PM
Depending on the format of the "database" I may be able to help with automated renaming of the files. If agreeing on common name format is possible it can be easily converted.
Also, I'm humbly looking for some form of a side project, so maybe someone would be interested in creating something like simracingsystem.com skin transfer app? https://www.simracingsystem.com/showthread.php?tid=736
Title: Re: PAINTS DATABASE
Post by: doubledragoncc on June 01, 2020, 08:41:25 AM
Furious..........it is a bug and will be sorted so I will NOT be renaming files.

We need to wait for Piboso to fix the error in beta18

DD
Title: Re: PAINTS DATABASE
Post by: h106frp on June 01, 2020, 02:00:04 PM
Quote from: Furious on May 31, 2020, 11:21:07 PMDepending on the format of the "database" I may be able to help with automated renaming of the files. If agreeing on common name format is possible it can be easily converted.
Also, I'm humbly looking for some form of a side project, so maybe someone would be interested in creating something like simracingsystem.com skin transfer app? https://www.simracingsystem.com/showthread.php?tid=736

I think I get the idea - all the assetts required for a session are automatically downloaded in the background to the client into some sort of temporary folder.

This sort of feature has been requested several times but I do not believe that currently the data can be requested from the session server.

@Piboso, is it possible to query the server and retrieve a list of all the assetts ?;
i.e. track + version + trackcode, bike + version + paint, rider + paint

 This would be a good start towards a more useful game session lobby - must admit that thinking about it a unique hexstring (checksum) similar to trackcode for bikes and paints would have been a really, really good idea..........
Title: Re: PAINTS DATABASE
Post by: Myst1cPrun3 on June 01, 2020, 07:07:03 PM
iRacing has had something similar for ages... Trading paints works in that you upload a skin to the app and have it in the background.

Can see a bunch more skins and has all the templates there.

GPB needs this, and/or Steam workshop support if it ever wants to be successful on Steam
Title: Re: PAINTS DATABASE
Post by: h106frp on June 01, 2020, 07:50:59 PM
As a start it would be great if you could link a default rider type, helmet and suit (avatar style) to your GPB racing account logon and allow the server to upload and cache and then download these to clients (optional) when you join a session. At least the server replay would have all the correct rider liveries.
Title: Re: PAINTS DATABASE
Post by: doubledragoncc on June 05, 2020, 08:35:59 AM
As long as all new paints have a file name no longer than 26 characters it will go on a new section for beta18 paints on the database

DD
Title: Re: PAINTS DATABASE
Post by: Hawk on April 28, 2022, 08:59:25 PM
Did you get the your paints database sorted DD..... I'm looking for your paints database thread but cannot see it?? ;)
Title: Re: PAINTS DATABASE
Post by: doubledragoncc on April 29, 2022, 09:16:37 AM
Paints Database (https://mega.nz/folder/mzgSWazC#2-Shz-XPh3tJS045nZPKMA)

GPBikes All MODS Database (https://mega.nz/folder/6rJjEQgS#xZJnTmI1zN4viBvSUHqC_Q)
Title: Re: PAINTS DATABASE
Post by: Hawk on April 29, 2022, 11:01:26 AM
Thanks DD.... I found it eventually.... Matty sticky'd it for you, mate. ;)
Title: Re: PAINTS DATABASE
Post by: doubledragoncc on April 29, 2022, 07:15:02 PM
I posted new link in other thread lol but ta

Hope we get to ride again on 2t's sometime online m8

DD
Title: Re: PAINTS DATABASE
Post by: Hawk on April 29, 2022, 08:19:40 PM
Quote from: doubledragoncc on April 29, 2022, 07:15:02 PMI posted new link in other thread lol but ta

Hope we get to ride again on 2t's sometime online m8

DD

Yeah, I know you did DD, and thanks for that mate, appreciated.  ;)  ;D

As soon as the next beta is released and so long as the replay issue with the GP500 category has been sorted and all the features and fixes work as stated then I'll be back riding and probably modding again mate..... It's been a long time DD, it would be great to ride with you again for sure mate. ;)  8)

Title: Re: PAINTS DATABASE
Post by: doubledragoncc on April 30, 2022, 05:46:55 PM
WOOHOO!!!

Miss the old GPBOC races. My old. PC is going to be my server for it again just need to save up for a graphic card as my RTX3080 is on my new 12th gen PC.

Look forward to smelling your smoke lol

DD