Перемещение предмета в слот #505
Replies: 2 comments
-
|
move_to_slot принимает клиенский объект а не строку |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
А как из строки(секции костюма) получить клиентский объект. Попробовал так как хрей экстеншен. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Пытаюсь после спавна костюма в рюкзак ГГ переместить его в слот. ОГСР движок V 181. Получаю вылет, что не так то?
function upgradeS:spawn_item(spawn_item, dist) -- спавним только в игре if self:check_game() then --self:on_quit() alife():create (spawn_item, db.actor:position(), db.actor:level_vertex_id(), db.actor:game_vertex_id(), db.actor:id()) db.actor:move_to_slot(spawn_item, true)) --Перемещаем объект в слот end endВылет:
[C]: in function 'move_to_slot'
...д fgm\fgm_v_1_7_4\gamedata\scripts\ui_upgr_select.script:367: in function 'spawn_item'
...д fgm\fgm_v_1_7_4\gamedata\scripts\ui_upgr_select.script:419: in function <...д fgm\fgm_v_1_7_4\gamedata\scripts\ui_upgr_select.script:374>
[11.03.25 22:09:13.074] Locals:
[11.03.25 22:09:13.074] string (*temporary) : [luabind::detail::class_rep::function_dispatcher] Caught unhandled exception!
[11.03.25 22:09:13.074] End
[11.03.25 22:09:13.074] Locals:
[11.03.25 22:09:13.074] userdata (*temporary) : (game_object): 000002C97146F1D0
[11.03.25 22:09:13.074] nil (*temporary) : [not available]
[11.03.25 22:09:13.074] End
[11.03.25 22:09:13.074] Locals:
[11.03.25 22:09:13.074] Userdata: self
[11.03.25 22:09:13.074] userdata self.owner : (CUIGameCustom): 000002C9725967B0
[11.03.25 22:09:13.074] string spawn_item : novice_outfit_aa
[11.03.25 22:09:13.074] number dist : 1.000000
[11.03.25 22:09:13.074] End
[11.03.25 22:09:13.074] Locals:
[11.03.25 22:09:13.074] Userdata: self
[11.03.25 22:09:13.074] userdata self.owner : (CUIGameCustom): 000002C9725967B0
[11.03.25 22:09:13.074] nil actor : [not available]
[11.03.25 22:09:13.074] nil npc : [not available]
[11.03.25 22:09:13.074] userdata outfit : (game_object): 000002C97CC7C9D0
[11.03.25 22:09:13.074] number UPcost : 200.000000
[11.03.25 22:09:13.074] End
[11.03.25 22:09:13.074] *********************************************************************************
[11.03.25 22:09:13.074] ********************************************************************************
[11.03.25 22:09:13.074] !![LogStackTrace] Thread: [X-RAY Primary thread]
[11.03.25 22:09:13.097] !!stack trace:
Beta Was this translation helpful? Give feedback.
All reactions