Skip to content

fixes the 404 errors with the SRD urls after SRD updates#4

Open
Gulluth wants to merge 6 commits into
mainfrom
srd-urls
Open

fixes the 404 errors with the SRD urls after SRD updates#4
Gulluth wants to merge 6 commits into
mainfrom
srd-urls

Conversation

@Gulluth
Copy link
Copy Markdown

@Gulluth Gulluth commented May 22, 2026

This PR fixes the 404 errors with the SRD urls after SRD updates

I didn't want to have to install Unity, so I attempted to add a devcontainer. The project was based on Unity 2020.3 LTS and upstream provides this version in an earlier Ubuntu LTS release which doesn't support devcontainers. Instead of hacking the earlier version of Ubuntu to support devcontainers, it was easier to update VaarnAtlas to Unity 2022.3 LTS which uses a newer Ubuntu release with devcontainer support.

In the end I did have to install Unity Hub locally, but I kept the devcontainer support so future work will be easier. Updating the LTS Unity also extends bugfix updates to the Unity engine for 2 more years. Easy choice.

Gulluth added 6 commits May 22, 2026 10:51
- Migrates project from Unity 2020.3.11f1 to 2022.3.62f3; updates
  Packages/manifest.json and ProjectSettings accordingly
- Adds .devcontainer/ with devcontainer.json, setup.sh, and
  get-license.sh for Codespaces and local Docker development with
  Unity license activation
- Adds Assets/Editor/DevContainerSetup.cs for generating .csproj/.sln
  IntelliSense files via Unity batch mode (using 2022.3 API)
- Updates .gitignore to exclude Logs/, UserSettings/, .vscode/;
  removes those directories from tracking
- Fixes IndexOutOfRangeException in GenerateInterior() by clamping
  cell.x to valid chosencells bounds (was resolution-dependent crash)
- Defers initial Generate() call by one frame so Camera.aspect is
  settled before map dimensions are computed, fixing map not filling
  screen on first load
hushed archives now links to the archive generator instead of friends of jak
I reread the faction entry and realized my mistake :)
@Gulluth Gulluth linked an issue May 22, 2026 that may be closed by this pull request
@Gulluth
Copy link
Copy Markdown
Author

Gulluth commented May 22, 2026

This should resolve #3, but a second verification can't hurt @bughunterstudios.

I've only built and run this locally, I am not sure what additional steps are needed to post an updated build to itch.io.

Comment thread Assets/GenerateMap.cs
map_chars = null;

// Wait one frame so the camera aspect ratio reflects the final Game window size.
yield return null;
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the map resize bug

Comment thread Assets/GenerateMap.cs
cell = new Vector2Int(Mathf.RoundToInt(cell_x), Random.Range(0, available_height / cellsize));
cell = new Vector2Int(
Mathf.Clamp(Mathf.RoundToInt(cell_x), 0, (width / cellsize) - 1),
Random.Range(0, available_height / cellsize));
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes a map generation crash that causes the map to not load

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vaarn SRD URLs

1 participant