Page MenuHomeFeedback Tracker

Warnings "FIX-ME: func is only supported in proto methods" and "FIX-ME: Failed to create callback" are spurious.
Assigned, UrgentPublic

Description

This code

ref ScriptCaller TestCaller;;

void test_addfunc(func fn) {
	TestCaller = ScriptCaller.Create(fn);
}
void test_testme( int i ) {
	Print("Test me! " + i.ToString());
}

modded class DayZGame {
	void DayZGame() {
		test_addfunc(test_testme);
		TestCaller.Invoke(1);
	}
}

Produces the following log entries.

FIX-ME: func is only supported in proto methods
FIX-ME: Failed to create callback
Test me! 1

So the FIX-ME warnings say it will not work, following by it working just fine.

Can these warnings be removed?

Details

Severity
Minor
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
General
Steps To Reproduce
ref ScriptCaller TestCaller;;

void test_addfunc(func fn) {
	TestCaller = ScriptCaller.Create(fn);
}
void test_testme( int i ) {
	Print("Test me! " + i.ToString());
}

modded class DayZGame {
	void DayZGame() {
		test_addfunc(test_testme);
		TestCaller.Invoke(1);
	}
}

Event Timeline

antihax created this task.Aug 16 2023, 5:37 AM
Geez changed the task status from New to Assigned.Aug 16 2023, 10:33 AM