PiBoSo Official Forum

GP Bikes => Mods => Bikes => Topic started by: h106frp on April 19, 2016, 07:41:44 AM

Title: Integrating a new stand - help please
Post by: h106frp on April 19, 2016, 07:41:44 AM
I am trying to add a single sided stand, i looked at the 'default' scheme but i do not seem to be able to emulate it.

Does anybody know;
The correct position for the model origin?
Are any special named objects required in the 3D model?
What is the correct file structure in the game folder.

Thanks
Title: Re: Integrating a new stand - help please
Post by: doubledragoncc on April 19, 2016, 07:47:48 AM
Cool idea and very realistic for actual street bikes.

Hope you can do it. Sooooooo want to ride that bike

DD
Title: Re: Integrating a new stand - help please
Post by: h106frp on April 19, 2016, 08:13:24 AM
It looks like it should be easy to do, but like all things its undocumented. The stock bike reference a 'default' but i tried to emulate this but the game does not pick up the file.

Have patience with the bike, the texturing with shaders for all the individual parts is a big job but very nearly complete. Then i need to sort the .geom file  :(

I want to get an early Alpha release published just to test the graphical loading on different systems and multiplayer with the full bike model, after that i will create the LODs
Title: Re: Integrating a new stand - help please
Post by: doubledragoncc on April 19, 2016, 08:17:10 AM
COOL!!!

DD
Title: Re: Integrating a new stand - help please
Post by: matty0l215 on April 19, 2016, 11:12:03 AM
Ask Manu. He got the Moto gp stand in game :)
Title: Re: Integrating a new stand - help please
Post by: HornetMaX on April 19, 2016, 11:26:55 AM
Quote from: matty0l215 on April 19, 2016, 11:12:03 AM
Ask Manu. He got the Moto gp stand in game :)
Or Ricco.

As always, if the modder that succeeds in doing something "hard" (chain, gauges, stands etc) spends 10min in documenting a bit how to do it, plenty of others will benefit.
Title: Re: Integrating a new stand - help please
Post by: doubledragoncc on April 19, 2016, 11:34:57 AM
Matty, the motoGP stand is the same type as normal stand, an actual sidestand on a streetbike is attached to the bike and the bike leans over when it is resting on it. I think that is the problem???


DD
Title: Re: Integrating a new stand - help please
Post by: matty0l215 on April 19, 2016, 11:40:12 AM
Quote from: doubledragoncc on April 19, 2016, 11:34:57 AM
Matty, the motoGP stand is the same type as normal stand, an actual sidestand on a streetbike is attached to the bike and the bike leans over when it is resting on it. I think that is the problem???


DD

I dont think so. I think it is a new stand, it has its own moto gp stand folder? I might be wrong and i cant check right now.
Title: Re: Integrating a new stand - help please
Post by: HornetMaX on April 19, 2016, 11:43:36 AM
Manu's bikes have a custom stand I think.
Title: Re: Integrating a new stand - help please
Post by: h106frp on April 19, 2016, 11:56:10 AM
For now i just want to add a stand suitable for a single sided swingarm where a pin goes into the rear spindle. The default one looks a bit silly with my bike at the moment.

It might be possible to 'fake' a side-stand but i am not sure if the bike could be made to lean over.

If Manu has the added folder it might be the lead i need, i will download the bikeset this evening and compare it to the default bike file structure. The stand is declared in the bike config file, i just dont seem to be able to get the game to load the new file.
Title: Re: Integrating a new stand - help please
Post by: HornetMaX on April 19, 2016, 12:01:12 PM
Single-sided stand is surely possible, oDi did it for his SBKs and I even think some older model from Juju and JC had custom stands too (some of which single-sided)

I don't get the "bike leaning" point: the bike just sits on the stand at the specified height and position: there's no physics involved I think.

The stand folder is somewhere in misc.pkz.
Title: Re: Integrating a new stand - help please
Post by: doubledragoncc on April 19, 2016, 12:03:34 PM
Okay, my bad lol.

There was a single sided bike in GPB  beta 7 as I still have it. It was called single-arm.

Checking now.

The bike leaning is for a streetbike on its sidestand dude

DD

Found it : (http://iasystems.tk/pics/gpb/core%202016-04-19%2013-06-58-972.jpg)

Title: Re: Integrating a new stand - help please
Post by: doubledragoncc on April 19, 2016, 12:12:37 PM
I put the stand folder on dropbox for you to check

https://www.dropbox.com/s/2f9e0nh9v4b05pj/single_arm.rar?dl=0 (https://www.dropbox.com/s/2f9e0nh9v4b05pj/single_arm.rar?dl=0)

DD
Title: Re: Integrating a new stand - help please
Post by: h106frp on April 19, 2016, 12:30:25 PM
Thanks DD,
It seems i am on the right track, can you look in the bike.ini and have a look what is entered for

[showroom]
stand = default

I think this might be the bit that is causing problems.

If all this is the same as i have already tried then its special 3D object names - so i am stuffed  :(


The 996RS is a lovely model - wish it could be updated. I did not find out about it until after i started to try a model and it was the reason i converted to old 916 road bike spec for my bike.
Title: Re: Integrating a new stand - help please
Post by: Manu on April 19, 2016, 01:00:25 PM
(http://s29.postimg.org/vmlsxjhyf/STAND.png)
Title: Re: Integrating a new stand - help please
Post by: doubledragoncc on April 19, 2016, 01:10:55 PM
Heres the bikes ini file

[INFO]
name = Ducati 996 RS SBK
short_name = 996 RS
garage_pic=
engine_type = 2L 4-stroke
engine_displacement = 998
max_power = 133
Weight = 162
author = GpbikesItalia

[showroom]
stand = single_arm
frontsusp_length = 0.07
rearsusp_rot = -2

[data]
code = 8
cat = SBK

[race]
length = 120

Hope it helps bro. I can Upload the whole bike if you want?

DD
Title: Re: Integrating a new stand - help please
Post by: HornetMaX on April 19, 2016, 01:15:13 PM
Quote from: Manu on April 19, 2016, 01:00:25 PM
(http://postimg.org/image/4orvvsxb7/full/)
Fixed for Manu :)

(http://s29.postimg.org/vmlsxjhyf/STAND.png)
Title: Re: Integrating a new stand - help please
Post by: h106frp on April 19, 2016, 03:10:13 PM
Thank you Manu, i will give this a try, i think the model origin is my problem with the stand being hidden beneath the showroom floor.

@DD thanks for the file view, this is exactly as i have tried so its a model geometry origin problem.
Title: Re: Integrating a new stand - help please
Post by: doubledragoncc on April 19, 2016, 04:53:52 PM
Well at least it helped you find where the problem lies. Good work H

DD
Title: Re: Integrating a new stand - help please
Post by: h106frp on April 19, 2016, 06:53:02 PM
 :-[

I am an idiot - wasted an hour before i realised that when unpacking the game files i had created ...\misc\misc\... directory structure.

All good now but thanks for the info on the stand origin Manu, that was still required.

Thank you  :)
Title: Re: Integrating a new stand - help please
Post by: matty0l215 on April 19, 2016, 06:58:22 PM
Quote from: h106frp on April 19, 2016, 06:53:02 PM
:-[

I am an idiot - wasted an hour before i realised that when unpacking the game files i had created ...\misc\misc\... directory structure.

All good now but thanks for the info on the stand origin Manu, that was still required.

Thank you  :)

Oh dear  :o

Very embarrassing ;D

Don't worry mate we all make silly mistake ;) :P
Title: Re: Integrating a new stand - help please
Post by: doubledragoncc on April 19, 2016, 07:06:21 PM
l dont know how many times lve done that H lol

DD
Title: Re: Integrating a new stand - help please
Post by: h106frp on April 19, 2016, 08:12:59 PM
Nice shiny single sided stand all working in the showroom  :)

My misadventures did indicate that a road bike does look good just sat on its wheels and you probably could 'fake' a kick stand. We would need PB to add 'lean' and 'steer' to the [showroom] config options though to make it look right.
Title: Re: Integrating a new stand - help please
Post by: HornetMaX on April 19, 2016, 08:15:50 PM
Quote from: h106frp on April 19, 2016, 08:12:59 PM
My misadventures did indicate that a road bike does look good just sat on its wheels and you probably could 'fake' a kick stand. We would need PB to add 'lean' and 'steer' to the [showroom] config options though to make it look right.
Never thought about that (the kick stand). Sounds like a good idea ! Go suggestions and whislist !!
Title: Re: Integrating a new stand - help please
Post by: doubledragoncc on April 19, 2016, 09:28:52 PM
That is what I said "Side Stand" IS a "Kick Stand" lol

Thats why I was saying about leaning over ON the side stand.

Bloody terminology

DD
Title: Re: Integrating a new stand - help please
Post by: HornetMaX on April 19, 2016, 10:24:21 PM
Ah OK. I though you meant a stand for bikes with a mono swingarm.