Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Priority Condition param turns from Number to Text #62

Open
mocheng opened this issue Oct 6, 2021 · 9 comments
Open

Priority Condition param turns from Number to Text #62

mocheng opened this issue Oct 6, 2021 · 9 comments
Labels
bug Something isn't working

Comments

@mocheng
Copy link

mocheng commented Oct 6, 2021

While I edit BTree, I add param with type Number to Priority Condition node. From time to time, the param automatically turns into Text type and breaks the tree logic.

For now, I just convert the param into int in task_xxx function. But, this is still annoying. It'd better to have this fixed.

   var succeed_if_has_los = task.get_param(0) as int

My environment: MacOS Big Big Sur 11.6 + Godot Engine v3.3.3.

image

@RcubDev
Copy link
Contributor

RcubDev commented Oct 6, 2021

Can you see if this occurs on this branch? https://github.com/ryan-linehan/addons-btree I feel I might have fixed this when I was refactoring a bit. I'd be happy to merge it into here if the author of the repo would like my other changes as well. (Please note I am not necessarily maintaining my repo just adding to it as I need)

@fian46
Copy link
Owner

fian46 commented Dec 23, 2021

@mocheng it's working perfectly fine in my windows machine and linux mint too are you sure to download from the asset lib ? or this is only mac problem only ? i am not sure. i don't have a mac. i am using 3.4.3 stable

@fian46 fian46 added the bug Something isn't working label Dec 23, 2021
@Sevord
Copy link

Sevord commented Feb 14, 2022

Yes, I also encountered this bug。
emeny tscn - 行为树test - Godot Engine 2022_2_14 13_48_07
when i click anywhere else,like another scence。 all priority condition’s parameter type will be text(change back to default?)
emeny tscn - 行为树test - Godot Engine 2022_2_14 13_54_37

environment:window10,godot enginer 3.4.

@fian46
Copy link
Owner

fian46 commented Feb 14, 2022

can you check what version btree installed ? because it's working fine in godot 3.4 with btree version 1.1.9.

@fian46
Copy link
Owner

fian46 commented Feb 14, 2022

are you install the plugin from asset lib ? or clone from this repo and use in your project. please download and use from assetlib only.

@Sevord
Copy link

Sevord commented Feb 14, 2022

(_) emeny tscn - 行为树test - Godot Engine 2022_2_14 16_08_12
i download it from github not assetlib.

@fian46
Copy link
Owner

fian46 commented Feb 14, 2022

please re-install it from asset lib probably the current master branch is unstable. i never tested it since last year. or just download it from release page version 1.1.9 that's probably fix the problem.

@fian46
Copy link
Owner

fian46 commented Feb 14, 2022

its strange because i have test the master branch with this case but its working perfectly in my machine.
not sure where it's gone wrong but probably you can send you project here to help debug the problem

@fian46 fian46 closed this as completed Feb 14, 2022
@fian46 fian46 reopened this Feb 14, 2022
@Sevord
Copy link

Sevord commented Feb 14, 2022

yerp。I clone this pluing-in form your Youtube‘s P6 .
it works and fine。 it is not the pluing-in’s problem。

emeny tscn - 行为树test - Godot Engine 2022_2_15 0_29_36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants