ConsoleVehicles - Console commands to spawn vehicles

Hi, very limited programming knowledge. Is it possible to load vehicles to a map that they were not meant for? For instance, loading a Mi28 to Metro Rush or something similar?

Thanks in advance

I’m not a programmer either. I tried something just like that the other day. Specifically I spawned a helli to Seine Crossing. Apparently some maps have some kind of lower ceiling/sky because the helli couldnt go any higher :slight_smile: Would be nice if that could be tweaked though. Urban maps with transporte helis at least would be awesome

Ahh ok. Did the helo show up when you asked for the maps vehicles list? Or did you just try to spawn it based on its ingame name?

You gotta first “inyect” the vehicle assets from other maps that do have helis. I tested the sample that Janssent mentioned in the page above. That brings quite a few assets from one of the maps.
You could download the list of mods in zip from this github https://codeload.github.com/J4nssent/VU-Mods/zip/master. And then extract only the “vespa” folder to your server mods folder. Then make sure to load at least the vespa mod and consolevehicles.

Hey Janssent, I’m having trouble with one of the last lines of this code to inyect resources from a different map from the one in the example.
The first parts no problem I can find the internal map names and modes, etc.
But I don’t know where or how to get the correct GUID for RegistryContainer(ResourceManager:SearchForInstanceByGuid(Guid(‘421454A2-6F76-B4C6-7240-322C71D8DDAB’)))
I want to get resources from xp5_001 so I guess I should just replace xp5_002 with xp5_001 in the example. But no idea about the guid number.

Ok awesome, will try that. So I just place the “Vespa” folder in the Mods folder and add Vespa to the Modlist.txt. Then ingame I use the ConsoleVehicles commands to spawn f.ex. Mi-28 in what ever map, right?

Thx super much for helping me out with this :slight_smile:

Yeah, that mod and the example Janssent copied at the start of the topic will inyect the vehicles / resources from the map Nebandan Flats in the Conquest Large mode, including the mi28, etc: Nebandan Flats | Battlefield Wiki | Fandom
I’m still finding out how to take the resources from other maps myself. I’m no programmer at all, just testing stuff :stuck_out_tongue:

1 Like

Sweet man, gonna try when I get home :slight_smile:

Hey guys, keep getting this error. Any idea what I’m doing wrong? It happens a few seconds after the last entry in the Server Console (“Update check complete. No new updates available.”) comes up. I’m able to load up Ziba Tower gun master but not any large Conquest maps such as Gulf of Oman.

This is the error that comes up:

VU-Vespa

This is the crash report:

Crash ID: e738f56e-bd2c-44bf-b234-3875b88f3877
Build Number: 17384
Release Branch: prod

Any ideas?

Hey Gevi, I found this under VU Documentation. No idea how this all works but perhaps you can figure something out. It seems to me you should be able to get the ResoureGUID through some commands there:

Thanks Ingis, I got the place to get the info I needed at the discord server using the ebx tool.

Ingis, I just reproduced that crash. Looks like the server crashes when injecting resources from other maps that already exist or conflict with the ones in the running map. This mod Im uploading here injects resources from Operation Riverside in Conquest LArge . From what I tried it doesnt crash with Gulf of Oman. Use it with consolevehicles mod as before.
Inyectar.zip (1.3 KB)

1 Like

Genius, will try that :slight_smile:

I tried launching TeamDeathMatch0 on my server with only 3 mods : fun-bots + ConsoleVehicles + Vespa

Venice Unleashed - Beta Build 17487
fun-bots - V1.5.0.1
ConsoleVehicles - Sep 29, 2020
Vespa - Sep 19, 2020

Here are the test results =>

2

Please help me fix crash on these maps : XP1_001 , XP1_002 , XP1_003 , XP3_Shield , XP4_FD , XP4_Parl , XP5_002

1 Like

You might be able to fix the XP5_002 crash by not loading the XP5_002 bundles when on that map in the bundle hook. I don’t know why those other maps crash, but it’s most likely the MP bundles (not the SP ones). You can try mounting a different level+gamemode that also has the dirtbike.

1 Like

i did the exactly what you said but it just didn’t work.
if i just Only put the ConsoleVehicles in the Mods fold , that worked, but if I Both put them into the folder it kept showing me this

@Janssent

Thank you for your tip.
I will try mounting a different map.
In order to do that, I think I should find out the Guid for other maps.
How did you find the Guid for XP5_002?

local xp5_002Registry = RegistryContainer(ResourceManager:SearchForInstanceByGuid(Guid(‘421454A2-6F76-B4C6-7240-322C71D8DDAB’)))

Can you help me finding out Guid for XP1_001 , XP1_002 , XP1_003 , XP3_Shield , XP4_FD , XP4_Parl ?
I want to try loading bundles from these maps : XP1_001 , XP1_002 , XP1_003 , XP3_Shield , XP4_FD , XP4_Parl

I want to try loading bundles from these maps : XP1_001 , XP1_002 , XP1_003 , XP3_Shield , XP4_FD , XP4_Parl

You only need to use ResourceManager:AddRegistry for the registries of the bundles you mounted.
To find out what bundles contain what assets, look in the VU-Wiki. For example finding out what maps have the dirtbike: https://github.com/Powback/VU-Wiki/search?q=KLR650

The RegistryContainer for a bundle will be a property of the SubWorldData for that bundle. The name of the bundle you want to mount will also be the path to the EBX partition of the SubWorldData.


This means you can just paste the bundle name in GitHub’s file finder:

Finally you have to find the GUID in the EBX partition:

how can I use rocket pods of jet in TDM by Vespa mod?

You want the vespa to shoot the jet rocket pods?

1 Like