Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Test Maps] orange_box_x360 #60

Open
9 of 22 tasks
Tracked by #16
snake-biscuits opened this issue Oct 11, 2022 · 15 comments
Open
9 of 22 tasks
Tracked by #16

[Test Maps] orange_box_x360 #60

snake-biscuits opened this issue Oct 11, 2022 · 15 comments
Assignees
Labels
slow burn lots of work & will take a long time Test Map: Tools: Hammer This test map can be built in Hammer Test Map: Tools: Obscure This test map needs a unique Level Editor / other tool Test Map Adding a map to ship with bsp_tool for tests valve.orange_box_x360 The Orange Box (Xbox 360) branch script Xbox360 Applies to branches on the Xbox 360
Milestone

Comments

@snake-biscuits
Copy link
Owner

snake-biscuits commented Oct 11, 2022

Tools

  • Level Editor(s):
  • Compiler(s):
    • vbsp, vvis, vrad, vbspinfo (Half-Life 2)
  • Post-Compiler(s):
    • makegamedata.exe (Dino D-Day SDK)

Documentation / Guides

Maps

  • Basic room with a spawnpoint, lighting & displacements
    mapsrc/Hammer/Half-Life 2/shack.vmf -> maps/Xbox360/The Orange Box/shack.360.bsp
    • sprp v5 (currently v6; need to try another compiler set)
    • Entry in sources.txt crediting mapper / contributor
    • Compiled
    • .bsp.info.txt file with vbspinfo output for PC .bsp
    • .360.log file with makegamedata.exe log
    • Can be launched in-game (no crash, fully lit & textured etc.)
  • One sprp v7
    • Entry in sources.txt crediting mapper / contributor
    • Compiled
    • .bsp.info.txt file with vbspinfo output for PC .bsp
    • .360.log file with makegamedata.exe log
    • Can be launched in-game (no crash, fully lit & textured etc.)
  • One sprp v9
    • Entry in sources.txt crediting mapper / contributor
    • Compiled
    • .bsp.info.txt file with vbspinfo output for PC .bsp
    • .360.log file with makegamedata.exe log
    • Can be launched in-game (no crash, fully lit & textured etc.)

Active Mods / Modding Community

@snake-biscuits snake-biscuits added Test Map Adding a map to ship with bsp_tool for tests Test Map: Tools: Hammer This test map can be built in Hammer Test Map: Tools: Unknown Haven’t found an editor / compiler Test Map: Tools: Obscure This test map needs a unique Level Editor / other tool labels Oct 11, 2022
@metalex10
Copy link

I don't know if this information works for you

https://github.com/metalex10/SourceEngine2007/tree/master/src_main/utils/xbox/MakeGameData

@snake-biscuits snake-biscuits added this to the v0.4.0 milestone Jan 25, 2023
@snake-biscuits snake-biscuits modified the milestones: v0.4.0, v0.5.0 Mar 17, 2023
@snake-biscuits snake-biscuits added the slow burn lots of work & will take a long time label May 11, 2023
@snake-biscuits snake-biscuits added the valve.orange_box_x360 The Orange Box (Xbox 360) branch script label Aug 11, 2023
@snake-biscuits
Copy link
Owner Author

snake-biscuits commented Oct 19, 2023

The Official Xbox 360 Source Modding Server (Discord) has some guides and tools for porting maps
Looks like they use some tools that shipped with Dino D-Day

bin/makegamedata.exe is still included with the Dino D-Day SDK
It also has a -ps3 flag, indicating that the PS3 Orange Box has a unique map format
EA shut down the PS3 Orange Box servers years ago, testing will be very difficult
I also don't own a PS3 for testing that branch

@snake-biscuits
Copy link
Owner Author

@snake-biscuits
Copy link
Owner Author

bin/makegamedata.exe is still included with the Dino D-Day SDK

Some manipulation of game paths is necessary to get this working
The tool also fails to convert the latest orange_box format (specifically sprp v10)

AFAIK Dino D-Day is on the Portal 2 branch, which further complicates things

@snake-biscuits
Copy link
Owner Author

snake-biscuits commented Oct 19, 2023

Dino D-Day's makegamedata.exe ported hl2/sdk_shader_samples.bsp and loaded in Xenia
Tried tf/arena_nucleus.bsp without physics & it hung for a while, probably due to missing assets
(conversions need .vhv & other prop files to mount)

sdk_shader_samples is one of a handful of PC only hl2 maps, I noted this in:

Also, sdk_shader_samples has no static props, which simplified things

Screenshots

xbox_360_orange_box_map_port

@snake-biscuits snake-biscuits added the Xbox360 Applies to branches on the Xbox 360 label Oct 20, 2023
@snake-biscuits
Copy link
Owner Author

While a xbspinfo tool exists in the 2007 Source SDK code, it only checks byte sizes
Clearly the engine limits for the Xbox360 have different considerations (RAM)

@snake-biscuits
Copy link
Owner Author

Built a map in HL2's Hammer & ported it over
A rough facsimile of my process can be found in #154

Screenshots

shack_no_props

@metalex10
Copy link

@metalex10
Copy link

is 19-21 maps support
https://developer.valvesoftware.com/wiki/BSP_(Source)

@snake-biscuits
Copy link
Owner Author

is 19-21 maps support

Haven't checked.
tests/maps/Xbox360/shack.bsp is PSBV v20 w/ v6 sprp

Ask around in the Xbox 360 Modding Discord
Almost everything I needed to port maps was in there
The MODDING>mods-and-tools channel has all the tools

bsp_tool isn't going to be doing the map porting
makegamedata.exe is good enough for now

If anyone knows the details of how this works, they do

Plus, I wrote a whole guide so anyone can get started without discord access:

Most of the last 2 days was spent crunching this out, I'm not planning to return to it anytime soon

@snake-biscuits
Copy link
Owner Author

shack.360.bsp is good enough for now
Static props are broken rn, but that could easily be years of work
Official tools are official tools, broken outputs or not

I'm sure higher quality ports could be attained, but that's not the focus of bsp_tool

That might change in future when we push for "Exhaustive" testing
But that is far in the future
I likely won't return to this branch until after the 1st full pass of:

After that, we can look at exhaustive testing, tho that might require Git LFS

But right now, I have no further motivation to focus on this branch

@metalex10
Copy link

vbsp: -localphysx
vvis: -mpi -fast
vrad: -mpi -textureshadows -hdr -StaticPropLighting -StaticPropPolys -final

@snake-biscuits
Copy link
Owner Author

vbsp: -localphysx
vvis: -mpi -fast
vrad: -mpi -textureshadows -hdr -StaticPropLighting -StaticPropPolys -final

Some of those options are specific to Left4Dead & Left4Dead2
-mpi is broken on some other branches

According to Left 4 Dead 2's vbsp:

$ "Left 4 Dead 2/bin/vbsp.exe" -game "Left 4 Dead 2/left4dead2" --help
-localphysx : use the local version of PhysX, don't rely on PhysX System Software.

Half-Life 2 maps fail to compile if you use these settings
Not sure why you shared this

@snake-biscuits
Copy link
Owner Author

Maps should be using sprp v5 for The Orange Box, not v6
Adjacent games use v7 & v9 so we might not have to split branches
But to satisfy #90 we will need at least 1 map for each sprp format

@metalex10
Copy link

is not vbsp.exe from left 4 dead 2, is for hl2

@snake-biscuits snake-biscuits removed the Test Map: Tools: Unknown Haven’t found an editor / compiler label Feb 4, 2024
@snake-biscuits snake-biscuits self-assigned this Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
slow burn lots of work & will take a long time Test Map: Tools: Hammer This test map can be built in Hammer Test Map: Tools: Obscure This test map needs a unique Level Editor / other tool Test Map Adding a map to ship with bsp_tool for tests valve.orange_box_x360 The Orange Box (Xbox 360) branch script Xbox360 Applies to branches on the Xbox 360
Projects
Status: Todo: Maps
Development

No branches or pull requests

2 participants