Stunts Forum

Stunts - the Game => Custom Cars with Stressed => Topic started by: Ryoma on April 03, 2021, 12:28:17 AM

Title: Alfa Romeo SE048SP
Post by: Ryoma on April 03, 2021, 12:28:17 AM
I spend a lot of time on it. And after the save, stressed is unable to load it.

Why ?
Title: Re: Can you save my car ?
Post by: Duplode on April 03, 2021, 02:11:01 AM
The attached 3SH contains your car0, largely intact. The problem was that your shapes had 256 vertices, while the shape file format only supports up to 255 vertices per shape (the vertex counter is a single byte field). To fix it, I used an hex editor to find and delete the last vertex, remove the reference to it in primitive #196 (that's why one of the rear wing pillars is now attached at the wrong place), set the vertex counter to 255 and adjust the offsets of the shapes.

(Ideally, Stressed would stop us from going past the 255 vertex limit. Looking at the sources, it seems this limit (https://github.com/dstien/gameformats/blob/9827f7c1a88db5bf92f1ac9e752bb3f14bd378b3/stunts/stressed/src/shape/shaperesource.h#L99) should be 255 rather than 256. Something to keep in mind for a possible new version.)
Title: Re: Can you save my car ?
Post by: Ryoma on April 03, 2021, 05:17:37 AM
Many thanks Duplode !!!!
Title: Re: Can you save my car ?
Post by: Ryoma on April 03, 2021, 12:24:37 PM
Thanks again Duplode.

Here somes pictures.
Title: Re: Alfa Romeo SE048SP
Post by: Duplode on April 03, 2021, 06:40:37 PM
So it's a Group C Alfa; nice  :)
Title: Re: Alfa Romeo SE048SP
Post by: Ryoma on April 03, 2021, 06:49:47 PM
Yeah, it's almost finish. I made a lot of change in the front.

The same engine as the 164 Procar but I increase the grip because of the rear wing and the diffusor.

The car is faster than the IMSA car and maybe the LM.

The real dashboard is stranged : only two little LCD display. So I use one for the digital speedometer and the second one for the tacho with a small needle (baregraph is boring).

I m looking for a Alfa Romeo roof and it will be released soon.
Title: Re: Alfa Romeo SE048SP
Post by: Ryoma on April 03, 2021, 07:16:38 PM
Finished
Title: Re: Alfa Romeo SE048SP
Post by: GTAManRCR on April 03, 2021, 07:24:20 PM
Downloaded already
Title: Re: Alfa Romeo SE048SP
Post by: Ryoma on April 03, 2021, 07:42:38 PM
Do you think I can put this roof to the 164 too ?
Title: Re: Alfa Romeo SE048SP
Post by: KyLiE on April 04, 2021, 02:48:06 AM
I think the original roof that you used looks better.  It's also more consistent with the real car.  Either way, it's a great looking car and fun to drive.