Jump to content

A16 - Custom Vehicles by Manux [SDX]


Recommended Posts

Now that's what I am talking about, excited to see the progress! I have been waiting for the multiplayer so me and my brothers can have a couple wars with the vehicles LOL!!

 

Sounds good, please report any issues with it, I really want this to work, and I'm sure many of you want that too! ;)

Link to post
Share on other sites

New Update: First "functional" multiplayer version

 

- Fixed the vehicle spawning bugs

- Fixed the UIAtlas override NRE

- All vehicle features seem to work

- Has not been tested for animation sync issues

 

It's possible that animation won't be sync when you look at other players on vehicles, I could not test that yet.

You need both the server and clients to have the mod for everything to work.

Just as usual, in multi, you need to put a lock yourself in your vehicles to see the vehicle icons on the map and compass.

 

Please report any issues with it, I will do my best to address them as quick as possible...

 

github

Link to post
Share on other sites
@manux what is the bigger backpack size of this mod? I have mine set to 80 and if I need to edit any files in your mod to make sure it functions properly as I have a custom UI for my personal server.

 

With the new custom storage size feature, the regular sizes are:

- small: 4x6

- medium: 5x9

- large: 8x10

 

If you use my bigger backpack mod: then it will detect it when you build with SDX and use these sizes instead:

- small: 6x9

- medium: 10x10

- large: 12x15

 

My bigger back pack mod is actually based on stedman420's Simple UI Plus 120.

 

Since you use a size of 80, which is the size of my regular backpack large storage, you should be fine to use your own windows.xml values. You'll just need to tweak it a bit if you want to have the new buttons: Take All and Drop All.

 

And don't forget to add the new Stash All buttons to your backpack, those are really useful and they work with any containers, including vehicle storage.

Edited by manux (see edit history)
Link to post
Share on other sites

@manux - Did have a quick question I don't remember seeing if anyone asked or if it was already said.

 

1. Are there recipes for all of these to build the vehicles? Or is it strictly Creative only?

2. Once the vehicles is in game, can we take them back and store them like pick them back up and place the item like in a Locked Safe

 

I seen this on a couple servers with MiniBikes can't remember if that was actually a mod that allowed that or if it was default in the game. I personally never used the minibike myself because didn't like it LOL!

Link to post
Share on other sites
@manux - Did have a quick question I don't remember seeing if anyone asked or if it was already said.

 

1. Are there recipes for all of these to build the vehicles? Or is it strictly Creative only?

2. Once the vehicles is in game, can we take them back and store them like pick them back up and place the item like in a Locked Safe

 

I seen this on a couple servers with MiniBikes can't remember if that was actually a mod that allowed that or if it was default in the game. I personally never used the minibike myself because didn't like it LOL!

 

There's no recipes to make the whole vehicle at once. I don't think this is possible in vanilla, since it is built out of parts.

You could disassemble the vehicle and store it's parts in a safe storage.

Right now I didn't make recipes for all the custom parts I have, just didn't have time to fine tune all those details. I also didn't make them appear in loot containers in the world or at traders. But you can easily add all that by editing your xmls.

 

The pro bike parts are currently the only custom parts for which I made recipes, and they will also appear in loot containers and at traders.

Link to post
Share on other sites
@manux what is the bigger backpack size of this mod? I have mine set to 80 and if I need to edit any files in your mod to make sure it functions properly as I have a custom UI for my personal server.

 

Actually I think I jumped too quick on your question earlier.

The sizes I gave you up there are the sizes of the different vehicle storages.

The backpack itself just uses the regular size, but if you use my bigger backpack mod (stedman's Simple UI Plus 120), it has 120 slots.

 

The UI becomes pretty small with that bigger backpack mod and you need a resolution that can take it, like 1920x1080.

 

But you might be able to use your backpack with it instead. Just not sure if my custom storages will fit well in your UI, might need a little bit of tweaking...

Basically to make the different custom storage size windows, I just make the biggest one, then I copy paste it for the smaller ones, and just reduce the number of slots in it.

You then need to make 3 xui.xml window_groups, one for each storage size, and link your different windows from windows.xml in them.

Just take a look at my ui_edits.xml file, that's where all that stuff is deployed from.

 

The xui.xml window_groups are what you set in the entityclass of a vehicle in the VehicleXuiName xml property, along with and appropriate LootContainer that has the same number of rows and colums in the LootListAlive property.

For example:

<property name="VehicleXuiName" value="vehicleMediumStorage" />
<property name="LootListAlive" value="190" />

Edited by manux (see edit history)
Link to post
Share on other sites

Updated with the latest patch brand new installation. No other mods installed

 

Serious FPS drop, went from driving around at 65-70fps and as soon as I hit anything with it, instant drop to 10fps and as low as 0.07fps

 

Resolution isn't an issue with me, I run 3440x1440 on a 34-Inch Curved Screen (have 3 of these connected to my system due to the programming and systems administration I do as a career)

 

System Specs are a Beast and I know its not the system, I can run 7D2D with max settings with all other mods pretty without a stutter. All other vehicles in Helicopter seem to be functioning fine with no issues that I have seen. Just seems to be the Loader AKA The Beast

 

MSI God Like Gaming Motherboard

i7-6950X Extreme Edition CPU

128 GB DDR4 Ram

3 - 1080TI Gaming X Cards

2 - 1TB SSDs

And much more. :p

Edited by FastBurst (see edit history)
Link to post
Share on other sites

Further test, So seems with the Loader, if the Shopping Basket is loaded that is where the lag and FPS is seriously dropping. Without it, It drops to about half sometimes or 25% but playable Also taking off the weapons on it helped a lot too, not sure if they are related.

Link to post
Share on other sites
Further test, So seems with the Loader, if the Shopping Basket is loaded that is where the lag and FPS is seriously dropping. Without it, It drops to about half sometimes or 25% but playable Also taking off the weapons on it helped a lot too, not sure if they are related.

 

Thanks for the feedback FastBurst.

I also noticed that the Loader had serious FPS issues when it's destroying objects. It's really not as bad in SP.

I will have to look into that...

Do you also have FPS issues with other vehicles? They destroy less stuff, so it should be better.

 

The weapons and the camera controls are currently separate Unity MonoBehaviours that have their own Update function, so it's very possible that this adds additional overhead.

I only started looking at multi yesterday, so I haven't been able to properly compare all those details yet, and I'm not yet very experienced with making mods that work for multi.

I might try to bring all the sub-systems back to the main vehicle update function, so that there is only 1 update per vehicle...

There might also be optimizations that can be done on the destroy system. It's currently a huge set of if-else conditions to be able to select what gets destroyed through xml properties.

 

EDIT:

It could also be due to the fact that I don't yet totally understand the role of the server versus the clients.

So I don't yet know which pieces of code should only be called on clients...

Edited by manux (see edit history)
Link to post
Share on other sites

There's definitely a problem with harvesting to storage, and it seems to be what causes the big FPS drop.

The FPS drop is the same in SP and multi, I had not noticed that yet.

 

On my side, in a SP game, I get the opposite of what you mentioned. If I remove the basket from the loader, I now go back to normal FPS when destroying.

When the basket is there, it drops like crazy.

That could be related to my new custom storage system, I'll dig further to try to find the source of the problem...

 

Thanks a lot for reporting this and giving me some details on what you get and in which context!

Edited by manux (see edit history)
Link to post
Share on other sites

Found it, it did a stupid change in one of my refactoring.

I was currently calling the method to get the vehicle container again and again each time a block would get destroyed.

This also had the effect of creating internal stack overflows and also sometimes completely wiping the contents of the container.

I'll test a bit more and submit a new patch...

Link to post
Share on other sites

I knew it had to be something lol, seen the videos and didn't seem to see any issues in the videos.

I haven't deployed it to the server yet was just playing it on the Client Multiplayer map, not the actual server itself. For all my tests that I have done if I can get it working there, it 9/10 works on the Dedicated Server.

 

Glad I was able to assist. For me I haven't seen any issues with the other vehicles. What I am in the process of doing is just making all the Vehicles the same size storage as the Custom UI is pretty much set in stone.

 

Having different size storage is nice but in MY opinion I personally think it should just be one size for all that myself just makes it easier to maintain and as a Player consistency on that front to me, is Key and easier to learn/understand. Less confusing and easier to focus on gameplay :p

Edited by FastBurst (see edit history)
Link to post
Share on other sites

Sounds good!

When you test it with multiple players, it would be nice if I can get some feedback on the animaton synching. I know it had issues in the past. When you we're looking at other players driving vehicles, it would not update properly. I'm not yet setup to test that, I hope I can be soon...

Link to post
Share on other sites
I will wait for the update to and test that out, then I will push it to my personal server and my brother and I can test that for you.

 

Awesome thanks! Yes I meant to mention to wait for the update ;) It's here now!

Link to post
Share on other sites

MP and SP update

 

- Destroy and Harvest performances are back to normal!

- Cannot use weapons anymore when they are broken (when no more health on them)

- "No Ammo" tooltips now show up on top of toolbelt

- Weapons degrade when shooting.

- Ammo damage should now be modulated by the weapon quality and health

 

In vehicleWeapons.xml, I changed the vehicle weapons DegradationMax values to be more like regular weapons.

And I added DegradationRate values also based on regular weapons.

You can change those values to change the rate of damage to the weapons when firing.

- Guns are like an AK-47

- Explosive Launchers are like the Rocket Launcher

Edited by manux (see edit history)
Link to post
Share on other sites

TERMS OF USE

 

Since I now have all the information regarding the purchased Assets I have in my mod, here is the new Terms of Use for this mod:

 

License:

Creative Commons

Attribution-NonCommercial 4.0

International (CC BY-NC 4.0)

 

In summary:

- This license lets you remix, tweak, and build upon my work non-commercially, as long as you credit me in your mod.

- You cannot ask for money for downloading your mod, if it includes my mod, or a modified version of my mod. Having a link for voluntary donations for you mod is ok.

 

Please refer to the 2 links below for more information on the license:

View License Deed

View Legal Code

 

 

Additional Restrictions

Some Assets in this mod were purchased from the Sketchfab store.

See the list of purchased Assets and their details on my github readme, under the Terms of Use section.

 

The following additional restrictions apply for those assets:

- If you include those 3D Assets in your mod along with my mod or a modified version of my mod, you do not need to re-purchase them from Sketchfab.

- You cannot distribute those 3D Assets individually, or as part of your mod, if you are not including my mod or a modified version of my mod.

- Those Assets can only be present in your mod if they are in a binary file, like a .unity3d resource file.

- You cannot extract those Assets from the binary files using Assets extraction softwares, to modify them further, and then add them back to your mod.

- You cannot ask for money for downloading your mod, if it includes my mod, a modified version of my mod, and/or those Assets from my mod. Having a link for voluntary donations for you mod is ok.

- If you wish to include those purchased assets individually, or make modifications to them, you have to purchase them from Sketchfab.

Edited by manux (see edit history)
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
×
×
  • Create New...