Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (85,001 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption 2

    2. Red Dead Redemption

    3. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Forum Support

    2. Site Suggestions

Junior_Djjr

VehFuncs

Recommended Posts

sonicfan0607

Now, when I open IVF project in my IDE, this voice tells me: "Hey, I want this code to be runned on Steam version too".

offtopic, but why can't you just drop steam version support? many people use 1.0 hoodlum or compact.

Share this post


Link to post
Share on other sites
_F_

 

Now, when I open IVF project in my IDE, this voice tells me: "Hey, I want this code to be runned on Steam version too".

offtopic, but why can't you just drop steam version support? many people use 1.0 hoodlum or compact.

 

Yeah good point, I don't think there are many people who play San Andreas on steam :D

Share this post


Link to post
Share on other sites
LaDiDa

I'd advise any to downgrade (upgrade) to v1.0 either way D:

Edited by LaDiDa

Share this post


Link to post
Share on other sites
_F_

Yeah I mean most of the mods don't work /or have problems with steam any ways, so probably the people who want to/ know anything about modding, they wouldn't use the steam version anyways

Share this post


Link to post
Share on other sites
Junior_Djjr

I honestly don't care who doesn't use 1.0, so much that I never even tell which versions my mods are, because they are always 1.0 US.

Create mods for other versions is much work for little public.

The time I would be adapting a mod to another version I might be leaving the mod multilingual to reach new audiences ← I think this is a better time spent, and just few modders worry about it.

Share this post


Link to post
Share on other sites
_F_

Yeah exactly my point

Share this post


Link to post
Share on other sites
ArcticModding

I don't know why this code was coded to work only outside missions ($ONMISSION == 0), I would also like to dettach during missions.

This version is better.

{$cleo}0000:while true    wait 0     if Player.Defined(0)    jf continue    if Actor.Driving($PLAYER_ACTOR)      jf continue        if and // SHIFT+BACKSPACE    key_pressed 8     key_pressed 16     jf continue        [email protected] = actor.CurrentCar($PLAYER_ACTOR)    0A97: [email protected] = car [email protected] struct     [email protected] += 0x4C8     0A8D: [email protected] = read_memory [email protected] size 4 vp 0     if not [email protected] == 0     jf continue        0AEB: [email protected] = car_struct [email protected] handle     if 056E:   car [email protected] defined     jf continue        07AC: detach_trailer [email protected] from_cab [email protected] end

 

In samp it actually snaps right back on. It does not really detach at all. You hear that its detaching for a quick second but as I said, it snaps right back on. :O

Share this post


Link to post
Share on other sites
Ndukong

Hi. Saw this mod on www.mixmods.com.br and really liked it. I'm converting some cars from GTA IV to San Andreas and the recursive extras function would be so cool to use on some cars. However, if I may suggest, you could implement up/down lights, bandito hydraulics, etc, just like from Vehicle special abilities mod (since there are limits when using VSA). Actually, this was suggested to me by my friend M4K3 on this forum. He converts IV/V/MP3 cars to GTA san andreas.

Share this post


Link to post
Share on other sites
ngr_ardiansyah

well plenty of thing i want you to implement :lol:

- digital gear indicators not just speedo and tachometer

- sliding door ( i know it possible with active dash but dont know how to adapt a car for that)

- convertible roof like your peugeot

- auto spoiler like imvehft has but can be raised/lowered manually too

- bike can be tunable like in V?

 

 

 

Share this post


Link to post
Share on other sites
Junior_Djjr

- digital gear indicators not just speedo and tachometer

Saying also here: There's no gear in GTA SA, It's just a looped audio. I don't know if it would be possible to create an effective gear simulation.

 

- sliding door ( i know it possible with active dash but dont know how to adapt a car for that)

VehFuncs can be a substitute for Active Dashboard... it's a very poorly done mod.

 

- convertible roof like your peugeot

The problem with this kind of thing is that creating this for a specific vehicle is very easy (really, you have no idea). But creating a system that enables a wide range of different vehicles is difficult. Even though I'm avoiding the need for additional files.

 

- auto spoiler like imvehft has but can be raised/lowered manually too

Only for this reason?

 

- bike can be tunable like in V?

I don't feel like doing mods like this because of my Tuning Mod. It's a completely limitless tuning solution, you can create customizable vehicles using it.

Share this post


Link to post
Share on other sites
Junior_Djjr
Posted (edited)

A guy on my forum created Gang Rider, so you can adapt vehicles to carry more gang members.

 

Look how nice is the combination of VehFuncs's extra system with Gang Rider :)

gta-sa-san-mod-carreta-trator-gang-gangu

You can make seats smartly adapting with extra parts.

 

There are still some limitations of the Gang Rider that make some places impossible to work, but it's really cool.

Edited by Junior_Djjr

Share this post


Link to post
Share on other sites
Ndukong

Hi. I saw the peek preview of your infernus on Ezekiel's HD car topic. It had up/down lights, a very cool feature I suggested a few posts back. Any idea when you will post updated version of this mod? And perhaps, it would be nice if every now and then, u update the community with what you are and have been doing on the mod. This topic isn't getting the attention it deserves.

Share this post


Link to post
Share on other sites
Junior_Djjr
Posted (edited)

Hi. I saw the peek preview of your infernus on Ezekiel's HD car topic. It had up/down lights, a very cool feature I suggested a few posts back. Any idea when you will post updated version of this mod? And perhaps, it would be nice if every now and then, u update the community with what you are and have been doing on the mod. This topic isn't getting the attention it deserves.

I thought about it today. It may take a while since I have another important mod to finish (which I promised to release a month ago.... it's impossible to promise releases, it's incredible) and I'm creating a new forum, so I'm busy now.

Btw: this sort of thing, as the hitch, I prefer that Fabio or someone else do it because I have no knowledge of Assembly. Fabio did a great job with hitch system, it's the best hitch solution today.

 

Also, I think that extra parts working on doors etc is more important. But for this I'm going to need some help, probably from @DK22Pac since he already did this on ImVehFt: make the nodes _ok, _dam etc keep with their RwFrames. I tried NOP in the function but it seems to need other things I don't know...

If he's seeing this, I'd like to tell me how you did it in ImVehFt, but I can also open a thread to ask this..

 

Btw: I have a feeling that just having ImVehFt installed the extra parts will already work on the doors, bumpers etc.

Edited by Junior_Djjr

Share this post


Link to post
Share on other sites
Junior_Djjr
Posted (edited)

Current ideas (and improvements) were listed there:

https://github.com/JuniorDjjr/VehFuncs/issues

Thanks specially for ArcticModding for good ideas. Airride is another good thing to do, brazilians love this. But I need a good sound fx solution for this...

Edited by Junior_Djjr

Share this post


Link to post
Share on other sites
Davve95
Posted (edited)

Awesome features. Some ideas: Wobbling exhaust and if the wheel is damaged it will start wobbling like in IV.

 

And if it's a crap car it will loosen some speed and backfire black exhaust (temporary) like in IV aswell.

 

Are you planning to create some epic handling aswell? Sad that you aren't doing things for with just sounds too :(. But anyway it's awesome.

Edited by Davve95

Share this post


Link to post
Share on other sites
Junior_Djjr
Posted (edited)

Wobbling exhaust

How did I not think of that too?

I think it would work same as engine (using the same feature). edit: almost.

 

 

and if the wheel is damaged it will start wobbling like in IV.

I thought about it yesterday, because I was trying some things with physics and I applied a small force to the right, unintentionally, it was very similar to when a wheel is damaged, including sometimes creating a skid mark, I liked the result. Maybe someday I'll do it, even if it's simple.

 

 

Are you planning to create some epic handling aswell? Sad that you aren't doing things for with just sounds too :(. But anyway it's awesome.

I see no need. Edited by Junior_Djjr

Share this post


Link to post
Share on other sites
Davve95

Awesome!

Share this post


Link to post
Share on other sites
Mysterdogg

Hi Junior, I was checking this new reinvention of the Enhanced Vehicles Functions and I personally like it a lot, specially because of the new extras system, that will definitely be a really useful feature on my upcoming vehicles (...) I've a few suggestions, since most of the people have requested and suggested some of my ideas, I would like to suggest some of the features presented in Alexander's Vehicle special Abilities like moving turrets, pop-up lights and cement mixter.

 

I would like to say that this modification is meant to give us realistic and useful features, not just options that we will use only a few times (...) for example, many people want working controllable wipers but after a short time nobody will ever use it again, the same thing happens with automatic windows, everyone will say "hey wanna see something cool? I can control all the Windows, bro" and then forget about. What I'm saying is that if anyone want to suggest or request something think about those features that are fully automatic, just like moving fans, working engine bands and animated emergency light sirens, just like GTA IV, V & O features.

Share this post


Link to post
Share on other sites
Junior_Djjr
Posted (edited)

Hi Junior, I was checking this new reinvention of the Enhanced Vehicles Functions and I personally like it a lot, specially because of the new extras system, that will definitely be a really useful feature on my upcoming vehicles (...) I've a few suggestions, since most of the people have requested and suggested some of my ideas, I would like to suggest some of the features presented in Alexander's Vehicle special Abilities like moving turrets, pop-up lights and cement mixter.

 

I would like to say that this modification is meant to give us realistic and useful features, not just options that we will use only a few times (...) for example, many people want working controllable wipers but after a short time nobody will ever use it again, the same thing happens with automatic windows, everyone will say "hey wanna see something cool? I can control all the Windows, bro" and then forget about. What I'm saying is that if anyone want to suggest or request something think about those features that are fully automatic, just like moving fans, working engine bands and animated emergency light sirens, just like GTA IV, V & O features.

I prefer everything related to lights to be done by IVF, it already did a great job, just needs to improve it.

 

About Vehicle Special Abilities, I really like that @fabio3 solution for hitch function. I want it done like this.

 

 


Extras now works with any part, and working damage!

0%2B-%2BCopia%2B-%2BCopia.jpg

I will make a better solution for wheels vary, it's possible at the moment but still hacky...

Hey, we can change the tire model if it's bursted.

 

To be possible I had to do something similar to what ImVehFt does, but better for me. NOPing 0x004C8E53 and patching 0x004C7700 with:

 

 

RpAtomic *__cdecl MoveObjectsCB(RpAtomic *atomic, RwFrame *frame){	const std::string frameName = GetFrameNodeName(frame);	const std::string atomicFrameName = GetFrameNodeName(GetObjectParent((RwObject*)atomic));	std::size_t found = frameName.find("_");	if (found != std::string::npos)	{		found = atomicFrameName.find(&frameName[0], 0, found);		if (found != std::string::npos) {			RpAtomicSetFrame(atomic, frame);		} 	}	return atomic;}

 

 

Unfortunately IVF may spoils a bit. It sets atomics that doesn't need, for example almost any node that you add on bump_front_dummy the atomic will be set to dummy's frame, thus losing control of the nodes.

In my solution, it will work only on nodes with name started with the same first word. i.e. for "bump_front_dummy", it will be set "bump_front_ok" or even "bump_ok" and "bump_something", but it will not set "example" or our "f_extras", so now the VF's extra system will work on bumpers (and also other functions).

 

Besides facilitating the other mods (like Tuning Mod and VehFuncs), this also seems convenient to me and it must be rare to cause malfunction in some vehicle mod. The only problem I noticed was that the transparency become bugged if the doors name doesn't start with the name "door", but I've never seen a mod that does that (most people don't even know it's possible to use another name instead of "door_**_ok"! And if someone did, the correct thing is always follow the game default, right?). Same for windscreen.

 

Why not look for _ok and _dam parts? Because we need it for our extras.

 

edit: I already contacted DK22Pac about this.

Edited by Junior_Djjr

Share this post


Link to post
Share on other sites
Junior_Djjr
Posted (edited)

Updated v0.3 beta - 12/05/18

  • Recursive Extras and other functions now work on literally any vehicle part, as doors and bumpers, including working damage. So, now is possible to have for example a Fox and Crossfox as extras on same .dff.
  • Added wheel variation support (yes, you can use Recursive Extras on wheels to vary them). The wheels will be processed and copied to respective dummies, in original game style, but now with fully control.
  • Added characteristic of double and single exhaust. For example utilizing on some double exhaust extra.
  • Added f_gear — part that rotates with engine on, and faster when accelerates.
  • Added f_fan — part that rotates with engine on, like a ventilator.
  • The hitch only works if visible. For example a f_extra_ok on bump_front_dummy, when damaged it will be without hitch, literally. (obviously this functionality isn't applied if the node is a dummy).
  • Fixed several problems related to parts update on Tuning Mod.
  • The part list on Tuning Mod's "Manage" menu is improved (like, but better than ImVehFt).
  • Other small fixes and improvements on code.
LErA2tt.jpg

crossfox-fox-zmodeler-extras.jpg

 

Download it on first page.

 

If nothing important to fix, it will take me a while to get back to working on this mod. The current extra system is already a milestone for me.

Feel free to start adapting cars to this mod now.

 

edit: VehFuncs isn't working on helis due to plugin-sdk+SilentPatch error. Wait for fix.

Edited by Junior_Djjr

Share this post


Link to post
Share on other sites
Junior_Djjr

Sorry for this

  • Fixed problems with cars that doesn't have "chassis" on .dff and use wheels on top of hierarchy.
  • New version of GSX (report if you find problems with save and load on garages in cars that use extras from this mod).

And be aware about this bug if you're adapting car with tuning support and using extras on bumpers and wheels.

Share this post


Link to post
Share on other sites
goodidea82

It would be cool to see a well done mobile crane. ZAZ has tried it a long time ago:


Also an improved excavador would be nice:

Just some suggestions.

 

I wonder if the recursive parts can have some advanced functionality as would be needed for the mobile crane or a functioning excavador.

Share this post


Link to post
Share on other sites
_F_

Wow!!! I can´t wait to try these functions with my cars!! Thank you so much bro ;)

Share this post


Link to post
Share on other sites
Crack Yo' Neck

Very neat! This is mainly useful for a vehicle modeler like me. But i want to report a bug.

 

 


rbf6zU2.png

I'm using both Fastman92 limit adjuster and open limit adjuster and sadly, this shows up
I hope you can find the solution about this bug in the future.

 



Also, i'd have some suggestion for this mod

 

-Adjustable pop-up lights rotation

San Andreas has pop-up lights rotation locked in 40 degrees by default. Maybe we can adjust a pop-up lights rotation up to 90 degrees.

 

-Automatic Spoiler and working aero flaps similar to Pagani Huayra

'nuff said

 

 

I guess that's all for me. Good luck with your projects!

Share this post


Link to post
Share on other sites
Junior_Djjr
Posted (edited)

Very neat! This is mainly useful for a vehicle modeler like me. But i want to report a bug.

Send VehFuncs.log after this.

edit: Fixed now, check.

 

-Automatic Spoiler and working aero flaps similar to Pagani Huayra

IVF already does this.

Edited by Junior_Djjr

Share this post


Link to post
Share on other sites
Crack Yo' Neck

It works now. Thanks!

Send VehFuncs.log after this.

The reason why i don't send the log is, when the crash happens, the log generates nothing. It just an empty 0kb file.

IVF already does this.

IVF Auto-spoiler mainly depends on speed. What i mean is an aero flaps that only retracts depending on wheel turns left or right.

Share this post


Link to post
Share on other sites
Junior_Djjr

Updated again.... Thanks to Michtogino for report.

  • Fixed malfunction of class selection

I hope to be stable now.

Don't hesitate to report bugs, this mod is only truly tested when facing real conditions. and this is not so real

Share this post


Link to post
Share on other sites
Junior_Djjr

Again:

Ok, now this sh*t is really recursive.

Share this post


Link to post
Share on other sites
TerRaBite92

Help me please. I create variable wheels as extra, in game wheels working and started two variant. What is this? And where error from me?

| screen ZM

Share this post


Link to post
Share on other sites
Junior_Djjr

The wheel was like an object on the map? lol wtf

And you didn't use extras on the wheels, so obviously the wheel will appear like this, you need to make them vary. Read the wiki.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.