2025-06-14 05:08 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002930Spring engineLuapublic2014-10-31 18:36
ReporterFLOZi 
Assigned ToKloot 
PrioritynormalSeveritytrivialReproducibilityN/A
StatusclosedResolutionfixed 
Product Version85.0.1 
Target VersionFixed in Version86.0 
Summary0002930: Default gadgetHandler limits the range of registerable custom CmdIDs
DescriptionDefault gadgets.lua will only register cmd IDs in the range 30000 <= cmdID < 40000

https://github.com/spring/spring/blob/master/cont/base/springcontent/LuaGadgets/gadgets.lua#L892

(This doesn't actually preclude their use if they are not registered)
Additional InformationThis is based on trepans old proposals:

-- all negative: Engine (build commands)
-- 0 - 999: Engine
-- 1000 - 9999: Group AI
-- 10000 - 19999: LuaUI
-- 20000 - 29999: LuaCob
-- 30000 - 39999: LuaRules

Which are now outdated, as GroupAI and LuaCob no longer even exist, and I don't see a need to enforce separation of LuaUI and LuaRules? It seems to me that any (non-duplicated) value >= 1000 should be registrable.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0008292

Kloot (developer)

I don't know which projects still use the default handler, but checking ID restrictions on the Lua side makes little sense anyway. They're lifted now.

~0010373

FLOZi (reporter)

Really minor issue... gadget-handler now disallows any id <= 1000, it should be < 1000 imo. Feel free to re-close and tell me to stop wasting your time.

Also, plenty of projects use base content handler :)

~0010387

Cubex (reporter)

Resurrection bot, See what did you did here.

There are still projects that use a forked old gadgethandler with the old limit of 30000 <-> 40000.... *cof* 0K *cof*

~0013789

abma (administrator)

> There are still projects that use a forked old gadgethandler with the old limit of 30000 <-> 40000.... *cof* 0K *cof*

they need to use the "new" gadgethandler, no need to change at engine side (if i understood it correctly)
+Notes

-Issue History
Date Modified Username Field Change
2012-01-25 20:10 FLOZi New Issue
2012-02-16 16:01 Kloot Note Added: 0008292
2012-02-16 16:01 Kloot Status new => resolved
2012-02-16 16:01 Kloot Fixed in Version => 86.0
2012-02-16 16:01 Kloot Resolution open => fixed
2012-02-16 16:01 Kloot Assigned To => Kloot
2013-04-03 02:55 FLOZi Note Added: 0010373
2013-04-03 02:55 FLOZi Status resolved => feedback
2013-04-03 02:55 FLOZi Resolution fixed => reopened
2013-04-04 16:26 Cubex Note Added: 0010387
2014-10-31 18:36 abma Note Added: 0013789
2014-10-31 18:36 abma Status feedback => closed
2014-10-31 18:36 abma Resolution reopened => fixed
+Issue History