flecs-hub / flecs-systems-admin

A web dashboard for Flecs
MIT License
36 stars 7 forks source link

Noob question, got the ecs_collision example to build. But how to view ecs on flecs-system-admin #2

Open DavidLeeEvans opened 5 years ago

DavidLeeEvans commented 5 years ago

Hello, I've got the all of the flecs-* modules to build but really don't know how to get flecs-systems-admin to display on localhost: , what port is it displaying on? When I run the ecs_collision example is it starting up the webserver portion of flecs-systems-admin?

Is there a wiki or manual for the flecs-systems-admin? I see the code has ecs_os_dbg("admin: starting server on port %u", admin[i].port); howto set admin[i].port?

ArnCarveris commented 5 years ago

Use ecs_enable_admin function.

SanderMertens commented 5 years ago

@DavidLeeEvans the ecs_collisions example uses the ecs_init_w_args function which accepts arguments that start the admin. Try adding the following command line arguments:

ecs_collisions --admin 9090

That starts the admin on port 9090. Note that you will also need to build the modules required for the admin, which are: