Page MenuHomeFeedback Tracker

Attaching scripts and simultaneously modding crashes game
Closed, ResolvedPublic

Description

Modded entities seem to be incompatible with attached scripts. The attached script either gets ignored or can even produce crashes.

With "attached scripts" is meant scripts that are attached to an entity placed in the world via the script property:

Details

Severity
Crash
Resolution
Open
Reproducibility
Always
Operating System
Windows 11 x64
Category
General
Steps To Reproduce
  1. Open the debug world in the workbench
  2. Open worlds/test/test.ent in world editor
  3. Switch to game mode


Additional Information

Key ingredients for producing the crash:

  • scripts/Game/GameMode/Debug3_BaseGameMode.c mods SCR_BaseGameMode:
modded class SCR_BaseGameMode : BaseGameMode
{
	void Debug3_MyTestFunction()
	{
		Print("||| Running Debug3_MyTestFunction |||");
	}
};
  • userScript attached to GameMode_Plain1 in the test world:
class GameMode_Plain1_Class: SCR_BaseGameMode 
{
	// user script
	private int myInt;

};

Event Timeline

ookexoo created this task.Jun 2 2023, 10:32 PM
ookexoo edited Steps To Reproduce. (Show Details)Jun 2 2023, 10:42 PM
Geez changed the task status from New to Assigned.Jun 6 2023, 2:44 PM
Geez closed this task as Resolved.Jun 9 2023, 11:10 AM
Geez claimed this task.
Geez added a subscriber: Geez.

Hello ookexoo.
The issue has been resolved for one of the future updates.

Nice, thanks for the update!