Skip to content

Don't show transporter launch button in skirmish/multiplayer - #4975

Open
aco4 wants to merge 1 commit into
Warzone2100:masterfrom
aco4:transporter-bug
Open

Don't show transporter launch button in skirmish/multiplayer#4975
aco4 wants to merge 1 commit into
Warzone2100:masterfrom
aco4:transporter-bug

Conversation

@aco4

@aco4 aco4 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

This can occur when a mod spawns a transporter like so:

hackNetOff();
addDroid(player, x, y, "Transporter", "SuperTransportBody", "V-Tol", "", "", "NULL-VTOL-Transport-Turret");
hackNetOn();

... because hackNetOff() temporarily sets bMultiPlayer = false

test mod: test.zip

help from Claude Opus 4.8 xhigh

This can occur when a mod spawns a transporter with addDroid() inside hackNetOff() / hackNetOn()
@aco4

aco4 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

Tested fixed on Windows 11

@aco4

aco4 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

Interestingly, this also unintentionally fixes #4974

@aco4

aco4 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

I'm investigating if

hackNetOff();
addDroid(player, x, y, "Transporter", "SuperTransportBody", "V-Tol", "", "", "NULL-VTOL-Transport-Turret");
hackNetOn();

... is the right pattern in the first place. Perhaps it should be:

addDroid(player, x, y, "Transporter", "SuperTransportBody", "V-Tol", "", "", "NULL-VTOL-Transport-Turret");

... with no hackNet?

@aco4

aco4 commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

It seems like addDroid() works without being wrapped in hackNet. But I'm not 100% certain because I believe it caused a bug previously? aco4/WZmodSurvival@6907198

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.

Units disappear in transporter

1 participant