Page MenuHomeFeedback Tracker

modding SCR_MapCursorModule class breaks it when opening a map
Closed, ResolvedPublic

Description

When opening map with the modded class:

UpdateEntities
WORLD : Frame

SCRIPT    (E): NULL pointer to instance

Class: 'SCR_MapToolInteractionUI'
Function: 'OnMapOpen'
Stack trace:
Scripts/Game/Map/ComponentsUI/SCR_MapToolInteractionUI.c:212 Function OnMapOpen
Scripts/Game/Map/SCR_MapEntity.c:276 Function OnMapOpen
Scripts/Game/Map/SCR_MapEntity.c:1449 Function EOnFrame

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General
Steps To Reproduce
// paste in some .c file
modded class SCR_MapCursorModule {};

Event Timeline

Geez changed the task status from New to Assigned.Apr 12 2023, 11:44 AM
Geez closed this task as Resolved.May 22 2023, 12:01 PM
Geez claimed this task.
Geez added a subscriber: Geez.

Hello glutenFreeVapes.
This is not a bug, this happens because the class is loaded through a config, which means it requires to be marked as a BaseContainer in order to be loadable, since it is not, config cannot use it and its completely missing during map load init

short version: add this above the line

[BaseContainerProps()]
modded class SCR_MapCursorModule {};