Skip to content
This repository was archived by the owner on Jun 28, 2026. It is now read-only.

Change PixelsPerMeter const to an env var#151

Closed
Aidenkrz wants to merge 1 commit into
Space-Wizards-Federation:masterfrom
Aidenkrz:pixels2
Closed

Change PixelsPerMeter const to an env var#151
Aidenkrz wants to merge 1 commit into
Space-Wizards-Federation:masterfrom
Aidenkrz:pixels2

Conversation

@Aidenkrz

@Aidenkrz Aidenkrz commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

I want to make the game 64x64 on a new fork im working on

// If you modify this make sure to edit the value in the Robust.Shared.Audio.AudioParams struct default too!

Comment has been out of date as of like 8 years ago now lol, nuking it

Content PR: Space-Wizards-Federation/space-station-14#193

Comment on lines +37 to +39
private static int ReadPixelsPerMeter()
{
var raw = Environment.GetEnvironmentVariable(PixelsPerMeterEnvVar);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How is content supposed to change this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

just set the envvar when you run it 🤷
I could instead make it something you can change in a props file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's going to be set globally for every game unless I'm a dumbass?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yo im stupid i forgot i was in client not server

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

CVar would be better for it, static readonly is fine but maybe if a server is running multiple gamesTM.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@Aidenkrz Aidenkrz closed this Jun 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants