Question about xinject bsp injection
Question about xinject bsp injection
I'm trying to do a sp->mp conversion with xinject but keep getting an error. Say i was using SW for example, it's sbsp size is 1984512. Does the bsp i inject over this need to be smaller just as all meta injection is done?? I only ask this because sp bsp's are huge! The smallest one i saw was 2790704! Does it still work even tho the new bsp is bigger, or do i need to find a smaller sp bsp?
First of all, the meta you select when you inject the BSP doesn't matter at all.
That meta isn't actually modified.
When you select a BSP Xinject knows what to do with it.
The main issue is that if the BSP you're injecting is too large it can cause the cache file to exceed 47MB, in which case it'll be unusable.
Also, keep in mind that many of the SP BSP's lightmaps are quite large too.
I've been able to fit a BSP that was just over 6MB into bg, and the file size wasn't inflated, but after I injected the lightmap the cache file was just over 49MB
I would recommend injecting large BSPs into Wizard or Putput (Chiron) because these maps have slightly fewer assets than other maps, thus a bit more room for injecting.
That meta isn't actually modified.
When you select a BSP Xinject knows what to do with it.
The main issue is that if the BSP you're injecting is too large it can cause the cache file to exceed 47MB, in which case it'll be unusable.
Also, keep in mind that many of the SP BSP's lightmaps are quite large too.
I've been able to fit a BSP that was just over 6MB into bg, and the file size wasn't inflated, but after I injected the lightmap the cache file was just over 49MB

I would recommend injecting large BSPs into Wizard or Putput (Chiron) because these maps have slightly fewer assets than other maps, thus a bit more room for injecting.
-
- Posts: 226
- Joined: Wed Mar 10, 2004 10:37 am
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
-
- Posts: 49
- Joined: Fri Sep 26, 2003 12:26 pm
if you inject a bsp with lightmap, the filesize didnt change, and sparkedit can open it without a problem, does it work then?
cos i dont want to go move all spawnpoints so to figure out then that it didnt work
so i moved a 'few' spawn points more in the map area and when i load it with halo it just crashes
cos i dont want to go move all spawnpoints so to figure out then that it didnt work
so i moved a 'few' spawn points more in the map area and when i load it with halo it just crashes
That should most likely work...XBOX War3z wrote:if you inject a bsp with lightmap, the filesize didnt change, and sparkedit can open it without a problem, does it work then?
cos i dont want to go move all spawnpoints so to figure out then that it didnt work
so i moved a 'few' spawn points more in the map area and when i load it with halo it just crashes
As long as it's a compatible BSP (as we know, some aren't) and all the dependencies & lone IDs are correct.
Apparently some BSPs may also have a decal issue which requires you to null out the packet count for the decal reflexive. I, myself, haven't yet had to do this.
Afaik the map will not load if you don't move all the spawns inside the BSP, but once you do it should not crash.
For anyone who is having trouble finding their player spawns, etc. after injecting a BSP....
Open Sparkedit, go to Tools > Options and set the "Overall Draw Distance" to 10000 (the maximum).
Now look all around and you should be able to find everything.
The problem is simply that when you inject an SP BSP it puts the BSP in the same position in space in the MP level that it was in in the SP level....so, it's just that your BSP is further from your spawns, etc. than the "overall draw distance".
Open Sparkedit, go to Tools > Options and set the "Overall Draw Distance" to 10000 (the maximum).
Now look all around and you should be able to find everything.
The problem is simply that when you inject an SP BSP it puts the BSP in the same position in space in the MP level that it was in in the SP level....so, it's just that your BSP is further from your spawns, etc. than the "overall draw distance".
I am having some trouble with a30_b. I injected the bsp with fix missing on. I changed the dependencies and loneid's that popped up. But, when it was done, I checked the dependencies and they were all still unknown. So, I changed them to what I wanted. I then loaded up the level without moving the spawns. It loaded and I was in freefall for about 3 seconds and then it froze. So, I changed the spawn points to inside the new BSP. When I went to load it it just froze when the countdown hit loading level... So, I'm asking if anyone knows if I missed something or if this level just isn't compatible. Also, I injected the BSP over Wizard if that makes a difference.
P.S. I would have posted this under the Xinject topic, but the files section seems to be down.
P.S. I would have posted this under the Xinject topic, but the files section seems to be down.
-
- Posts: 357
- Joined: Sun Mar 07, 2004 4:34 pm
![]() |
![]() |
![]() |
well i just injected a 7mb bsp into wizard and it worked sorta(didnt move spawns yet so it kidna didnt work) but the map did loadxorange wrote:The main issue is that if the BSP you're injecting is too large it can cause the cache file to exceed 47MB, in which case it'll be unusable.
Also, keep in mind that many of the SP BSP's lightmaps are quite large too.
I've been able to fit a BSP that was just over 6MB into bg, and the file size wasn't inflated, but after I injected the lightmap the cache file was just over 49MB![]()
I would recommend injecting large BSPs into Wizard or Putput (Chiron) because these maps have slightly fewer assets than other maps, thus a bit more room for injecting.
but the only thing is its a huge wizard
in a compressed map file the mapfiles header at offset 0x60 change 01 to 00
that will make it load to 278 megs (make it think its single player)
you can add a whole bunch of crap with hxe mapbuilding and maybe have another bsp
(hxe mapbuilding and hht v3 bsp injecting)
for the first post
each file has a certin amout of junk space i dont know if xinject will inject the rest of the bsp in the eof (end of file (junk space)) but i think it does because i injected a 7mb bsp over a 500kb bsp
I did try it in just slayer. It doesn't load at all. The only thing I can think of is that I messed up while I was linking the BSP to the shaders and bitmaps etc. Or, maybe this BSP just doesn't work.
If anyone who has gotten another bsp working, could you try and get this one working? Don't bother with injecting the right shaders, but just the BSP and link it to any shaders/bitmaps that are already there just to see if you can get it in. If you are succesful, would you mind telling me how to do it?
I must have screwed up somewhere if it does work. So thanks anyone who is willing.
If anyone who has gotten another bsp working, could you try and get this one working? Don't bother with injecting the right shaders, but just the BSP and link it to any shaders/bitmaps that are already there just to see if you can get it in. If you are succesful, would you mind telling me how to do it?

if i can get mine woeking i'll give it a shot. I've got a30_a working, but i can't figure out why it freezes after about 3 min. i'll keep on it and hopefully release it and start work on another.
Also, if pokecancer sees this, what was wrong w/ Xinject before the fix?
And does anyone know what the [senv] - alpha grate is applied to?
Also, if pokecancer sees this, what was wrong w/ Xinject before the fix?
And does anyone know what the [senv] - alpha grate is applied to?