• Welcome to PiBoSo Official Forum. Please login or sign up.
 
September 21, 2020, 12:47:44 PM

News:

GP Bikes beta18c available! :)


PAINTS DATABASE

Started by doubledragoncc, May 31, 2020, 08:32:07 AM

Previous topic - Next topic

doubledragoncc

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
GPBOC Live Streams: https://www.youtube.com/c/IASystemsComputerControls; i7 7700 4.8GHz z270 ASUS Maximus Code Mobo 16GB 3866MHz DDR4 RAM ASUS Strix RTX2070 OC 8GB DDR6 Kraken X62 AIO Cooler ROG Thor 850w PSU in ROG Helios Tower Case.
https://paypal.me/IASystems

h106frp

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.

doubledragoncc

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
GPBOC Live Streams: https://www.youtube.com/c/IASystemsComputerControls; i7 7700 4.8GHz z270 ASUS Maximus Code Mobo 16GB 3866MHz DDR4 RAM ASUS Strix RTX2070 OC 8GB DDR6 Kraken X62 AIO Cooler ROG Thor 850w PSU in ROG Helios Tower Case.
https://paypal.me/IASystems

h106frp

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

Hawk

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.  ;)

h106frp

You could try 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

adrmelandri

I'm gonna check my paints if they exceed 31 characters
Ich bin ein Fan von allem, was den tatsächlichen menschlichen Kontakt ersetzen kann.
I'm a fan of anything that can replace actual human contact.
https://adrmeisterwerk.blogspot.com/

doubledragoncc

May 31, 2020, 01:52:47 PM #7 Last Edit: May 31, 2020, 02:01:25 PM by doubledragoncc
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
GPBOC Live Streams: https://www.youtube.com/c/IASystemsComputerControls; i7 7700 4.8GHz z270 ASUS Maximus Code Mobo 16GB 3866MHz DDR4 RAM ASUS Strix RTX2070 OC 8GB DDR6 Kraken X62 AIO Cooler ROG Thor 850w PSU in ROG Helios Tower Case.
https://paypal.me/IASystems

doubledragoncc

May 31, 2020, 01:54:57 PM #8 Last Edit: May 31, 2020, 04:28:10 PM by doubledragoncc
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
GPBOC Live Streams: https://www.youtube.com/c/IASystemsComputerControls; i7 7700 4.8GHz z270 ASUS Maximus Code Mobo 16GB 3866MHz DDR4 RAM ASUS Strix RTX2070 OC 8GB DDR6 Kraken X62 AIO Cooler ROG Thor 850w PSU in ROG Helios Tower Case.
https://paypal.me/IASystems

Furious

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

doubledragoncc

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
GPBOC Live Streams: https://www.youtube.com/c/IASystemsComputerControls; i7 7700 4.8GHz z270 ASUS Maximus Code Mobo 16GB 3866MHz DDR4 RAM ASUS Strix RTX2070 OC 8GB DDR6 Kraken X62 AIO Cooler ROG Thor 850w PSU in ROG Helios Tower Case.
https://paypal.me/IASystems

h106frp

June 01, 2020, 02:00:04 PM #11 Last Edit: June 01, 2020, 02:01:40 PM by h106frp
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..........

Myst1cPrun3

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

h106frp

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.

doubledragoncc

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
GPBOC Live Streams: https://www.youtube.com/c/IASystemsComputerControls; i7 7700 4.8GHz z270 ASUS Maximus Code Mobo 16GB 3866MHz DDR4 RAM ASUS Strix RTX2070 OC 8GB DDR6 Kraken X62 AIO Cooler ROG Thor 850w PSU in ROG Helios Tower Case.
https://paypal.me/IASystems